@import "../../../Shared/assets/css/index.scss";

/* ==========================================================================
   MAIN APP CONTAINER
   ========================================================================== */

.app-container {
  display: flex;
  text-align: start;
  flex-direction: row;
  background-color: #fff;
  padding-top: 50px;
  width: 100%;
  padding-bottom: 90px;

  .slide-container {
    width: 100%;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.line-clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: fit-content;
  line-clamp: 2;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.3;
  height: 2.9em;
}

.line-clamp3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  height: fit-content;
  line-clamp: 3;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 28px;
  height: 84px;
}

.page-content> :not(.no-style) {
  width: 100% !important;
}


.navigation-container {
  // display: flex;
  gap: 4.5rem;
  // padding-right: 2rem;
  display: grid;
  grid-template-columns: 1fr 3fr;
}


.scrollableContent-224 {
  overflow-y: unset;

}



/* ==========================================================================
   NAVIGATION STYLES
   ========================================================================== */

.navigation-container .nav-bar {
  text-align: start;
  display: flex;
  flex-direction: column;
  padding-right: 2rem;
}

.navigation-container .nav-bar .nav-item {
  padding: 10px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  margin-left: 0px;
  padding-left: 0px;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.navigation-container .nav-bar .nav-item:hover {
  font-weight: bold;
}

.navigation-container .nav-bar .nav-item.active {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.75rem;
  text-align: left;
}

.navigation-container .nav-bar .nav-item.active span {
  border-bottom: .1875rem solid #FFCC00;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
}

.mobile-nav .dropdown-label {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: auto;
  height: fit-content;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.75rem;
  text-align: left;
  cursor: pointer;
}

.mobile-nav .dropdown-content {
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: .5rem;
  box-shadow: -0.25rem .25rem .5rem rgba(0, 0, 0, 0.1);
  box-shadow: .25rem .25rem .5rem rgba(0, 0, 0, 0.1);
  z-index: 2;
  position: absolute;
  width: 100%;
  margin-top: 12px;
  left: 0;
}

.mobile-nav .dropdown-content li {
  padding: 10px 10px 10px 5%;
  font-size: .875rem !important;
  cursor: pointer;
  position: relative;
  z-index: 1000;
  background-color: #FFFFFF;
}

.mobile-nav .dropdown-content li.active {
  background-color: #e1e5eb;
}

/* ==========================================================================
   CARD COMPONENTS
   ========================================================================== */

.navigation-container .card-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  grid-template-rows: min-content
}

.card-container .card-info {
  border: .0625rem solid #E1E4EA;
  border-radius: .5rem;
  border-bottom: .5rem solid #FFCC00;
  padding: 2rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  max-height: 17.2rem;
  cursor: pointer;
}

.card-container .card-info:hover {
  box-shadow: 0rem 1.875rem 3.75rem 0rem #00000014;
  transform: translateY(-1rem);
}

.card-container .card-info:active {
  box-shadow: 0rem 1.875rem 3.75rem 0rem #00000014;
  transform: translateY(-1rem);

}

.card-container .card-info .card-content {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  height: 100%;
  justify-content: space-between;
}


.card-container .card-info .card-content img {
  width: 2rem;
  height: 2rem;
}

.card-container .card-info .card-content .card-title {
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1.3rem;
  height: 2.6rem;
}

.chevron-up {
  cursor: pointer;
  -moz-transition: all .5s linear;
  -webkit-transition: all .5s linear;
  transition: all .5s linear;
}

.rotate180 {
  transform: rotate(180deg);
}

.card-container .card-info .card-content .card-description {
  margin: 0rem;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3rem;
  text-overflow: ellipsis;
  height: 3.9rem;
}

/* ==========================================================================
   MODAL COMPONENTS
   ========================================================================== */

.modal-popup-container {
  width: 63rem;
  height: 36.75rem;
  border-radius: .5rem;
  border: 0;
  background: #FFFFFF;
  padding: 2rem;
  overflow: unset;

  .ms-Modal-scrollableContent {
    height: 100%;
  }
}

.modal-popup-logo {
  display: none;
}

.modal-popup-header {
  padding-top: 1.25rem;
}

.modal-popup-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 0rem;
  text-align: left;
  color: #23282E;
}

.modal-popup-header p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75rem;
  text-align: left;
  color: #23282E;
  margin-top: 2.5rem;
}

.modal-popup-content {
  display: flex;
  flex-direction: row;
  gap: 5.4375rem;
  margin-top: 3.375rem;
  justify-content: space-between;
  overflow: auto;
  max-height: calc(100% - 170px);
}

/* Scrollbar Styles */
.modal-popup-content::-webkit-scrollbar {
  width: 8px;
}

.modal-popup-content::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 4px;
}

.modal-popup-content::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}

.modal-popup-content::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-close img {
  width: 2rem;
  height: 2rem;
  padding: .3125rem;
}

.modal-close-modal {
  outline: none;
  border: none;
  background: none;
  cursor: pointer;
}

.modal-close-modal:hover {
  background-color: #f1f3f8;
  outline: none;
  border: none;
}

/* ==========================================================================
   MODAL TABLE STYLES
   ========================================================================== */

.modal-table-container {
  display: inline-table;
  padding-top: 1rem;
  width: 100%;
  height: fit-content;
}

.modal-table-container th {
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5rem;
  text-align: left;
  color: #64718B;
  width: fit-content;
  height: fit-content;
  box-sizing: border-box;
  border-bottom: 1px solid #e1e4ea;
  padding: 1rem;
}

.modal-table-container td {
  font-family: 'Noto Sans';
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75rem;
  text-align: left;
  color: #2B363C;
  width: fit-content;
  height: fit-content;
  box-sizing: border-box;
  border-bottom: .0625rem solid #e1e4ea;
  padding: 1rem;
}

.modal-table-container td.size {
  white-space: nowrap;
}

.modal-table-container td img {
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.modal-table-container td img:hover {
  background-color: #f1f3f8;
}

.modal-popup-actions {
  display: grid;
  justify-content: space-between;
  gap: 1rem;
  border: none;
  grid-template-columns: repeat(4, 1fr);
  outline: none;
}

.modal-popup-actions-icon {
  padding: .3125rem;
  cursor: pointer;
  border-radius: .25rem;
  justify-content: center;
}

.modal-popup-actions-icon:hover {
  background-color: #f1f3f8;
}

.modal-popup-actions-icon:focus-visible {
  outline: none;
  border: none;
}

.modal-table-total-container {
  height: 100%;
  width: 100%;
  overflow-y: auto;
}

/* Scrollbar Styles */
.modal-table-total-container::-webkit-scrollbar {
  width: 8px;
}

.modal-table-total-container::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 4px;
}

.modal-table-total-container::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}

.modal-table-total-container::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}


.icon-download {
  grid-column: 1;
  display: grid;
}

.icon-search {
  grid-column: 2;
  display: grid;
}

.icon-link {
  grid-column: 3;
  display: grid;
}

.icon-image {
  grid-column: 4;
  display: grid;
}

/* ==========================================================================
   MODAL IMAGE CONTAINER
   ========================================================================== */

.modal-image-container {
  width: 19.0625rem;
  height: 20.1875rem;
  padding: 1.8456rem 1.7275rem 1.8456rem 1.7275rem;
  border-radius: .5rem;
  opacity: 0rem;
  display: flex;
  justify-content: center;
  background-color: #F1F3F8;
}

.modal-image-container img {
  width: 15.6069rem;
  height: 16.4962rem;
}

/* ==========================================================================
   STATE CONTAINERS
   ========================================================================== */

.error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.5rem;
  text-align: center;
  width: 100%;
}

.error-container img {
  width: 100px;
  height: 100px;
}

.error-container h3 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  color: #64718B;
}

.loading-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 40vh;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* Tablet and Mobile Styles */
@media (max-width: 768px) {
  .modal-table-total-container {
    height: 100%;
    width: 100%;
    overflow: unset;
  }

  .modal-popup-root {
    background: white;
    background-color: white;
    inset: none;
  }

  .modal-popup-root .ms-Overlay,
  .modal-popup-root .ms-Overlay--dark {
    display: none;
  }

  .modal-popup-container {
    display: flex;
    width: 100%;
    height: 100dvh;
    box-shadow: none;
    max-width: 100%;
    max-height: 100%;
    overflow: visible;

    .ms-Modal-scrollableContent {
      overflow-y: unset;
    }
  }

  .modal-popup-container .modal-close {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
  }

  .modal-popup-container .modal-popup-logo {
    display: flex;
    width: 100%;
    height: 2.25rem;
    justify-items: center;
    justify-content: space-between;
  }

  .modal-popup-container .modal-popup-header {
    display: flex;
    position: relative;
    padding: 0px;
    height: fit-content;
  }

  .modal-popup-container .modal-popup-header h2 {
    font-size: 16px;
    font-weight: 600;
    line-height: 28px;
    text-align: left;
    margin-top: 9px;
  }

  .modal-popup-container .modal-popup-header p {
    display: none;
  }

  .modal-popup-container .modal-popup-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
    padding-right: .5rem;
    overflow-y: auto;
    max-height: calc(100dvh - 12.5rem);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .modal-popup-container .modal-table-container {
    width: 100%;
    height: auto;
  }

  .modal-popup-container .modal-table-container thead {
    display: none;
  }

  .modal-popup-container .modal-table-container tr {
    display: block;
    margin-bottom: 10px;
    border-bottom: 3px solid #CDD2DC;
  }

  .modal-popup-container .modal-table-container td {
    padding: 10px 0px;
    border-bottom: 1px solid #e1e4ea;
    position: relative;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    display: flex;
    color: #23282E;
    box-sizing: border-box;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    text-align: right;
  }

  .modal-popup-container .modal-table-container td span {
    display: inline-block;
    width: 50%;
    text-align: left;
    color: #64718B;
  }

  .modal-popup-container .modal-table-container td .modal-popup-actions {
    display: grid;
    justify-content: space-evenly;
    gap: 0px;
    grid-template-columns: repeat(4, 1fr);
  }

  .modal-popup-container .modal-table-container td::before {
    content: attr(data-label);
    font-weight: 500;
    width: 50%;
    text-align: left;
    padding-right: 10px;
    color: #64718B;
  }

  .modal-popup-container .modal-table-container th {
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    border-bottom: 3px solid #e1e4ea;
  }

  .modal-popup-container .modal-table-container td img {
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
  }

  .modal-popup-container .modal-image-container {
    width: 100%;
    height: 175px;
    padding: 16px;
    gap: 0px;
    border-radius: 8px;
    order: -1;
    position: relative;
    overflow: hidden;
  }

  .modal-popup-container .modal-image-container img {
    width: calc(100% - 32px);
    height: 143px;
    object-fit: cover;
  }

  .modal-popup-container .modal-close {
    display: none;
  }

  .modal-popup-container .modal-close img {
    width: 2.75rem;
    height: 3.75rem;
  }

  /* App Container Mobile Styles */
  .app-container {
    display: flex;
    text-align: start;
    flex-direction: column;
    width: 100%;
  }

  .app-container .navigation-container {
    display: flex;
    grid-template-columns: unset;
  }

  .app-container .nav-bar {
    display: none;
  }

  .app-container .mobile-nav {
    display: block;
    width: auto;
    height: fit-content;
    font-size: .875rem;
    padding: 10px 0;
    font-weight: 500;
    line-height: 1.75rem;
    text-align: left;
    border: 0rem;
    border-top: .25rem solid #FFCC00;
    color: #2B363C;
    border-bottom: .125rem solid #E1E4EA;
  }

  .app-container .card-container {
    position: relative;
    z-index: 1;
    margin-top: 1.875rem;
    display: grid;
    gap: 2rem;
  }

  .app-container .card-info {
    padding: 1rem;
    padding-top: 2rem;
  }
}



/* Small Mobile Styles */
@media (max-width: 36.5rem) {
  .card-container {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .card-container .card-info:hover {
    box-shadow: none;
    transform: translateY(0rem);
  }

  .card-container .card-info:active {
    box-shadow: none;
    transform: translateY(0rem);
  }
}