/*START:___search___*/
@use "../../vendors/bootstrap" as *;
@use "../../base/typo" as *;


.search {
  min-height: 100svh;
  display: grid;

  &.style-2 {
    grid-template-rows: 35vh 1fr;
    grid-template-rows: 35svh 1fr;

    .search-content {
      margin-block: var(--ev-space-2xl);
    }

    #searchtable {
      margin-block: var(--ev-space-xs);
    }

    #searchtable_length {
      margin-bottom: var(--ev-space-xs-s);
    }

    .text-muted p {
      margin-bottom: var(--ev-space-3xs);
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
      padding: var(--ev-space-3xs) var(--ev-space-xs);
    }

    ul {
      padding-left: 1rem;
      line-height: 1.8;
    }

    .h5 {
      color: var(--ev-body-color);
    }

    .search-desc p {
      font-size: var(--ev-step--1);
    }

    a {
      text-decoration: none !important;
    }

    #searchtable_info,
    #searchtable_paginate,
    #searchtable_length {
      font-size: var(--ev-step--1);
    }
  }

  .search-form {
    display: flex;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.15);
    border-radius: 100vmax;
    padding: 0.5rem 1rem;
    margin-inline: 1rem;

    .search-input {
      background: unset;
      border: hidden !important;
      color: var(--ev-body-color);
      width: 100%;

      &:focus-visible {
        outline: unset;
      }
    }

    .search-submit {
      background: transparent;
      border: hidden;
    }
  }

  .search-header {
    background-color: #f6f6f6;
    display: grid;
    place-content: center;
  }

  &.style-2 .search-header {
    place-content: end center;
    padding-bottom: 2rem;
  }

  .search-title {
    @extend .h2;
    margin-inline: auto;
    text-align: center;
  }

  &.style-1 .h2 {
    text-align: center;
  }

  &.style-1 .h4 {
    opacity: 0.76;
  }

  .search-content {
    @extend .container;
  }

  .dataTables_wrapper {

    .dataTables_length,
    .dataTables_filter,
    .dataTables_info,
    .dataTables_processing,
    .dataTables_paginate {
      color: unset;
    }

    .dataTables_length select {
      color: unset;
    }

    .dataTables_info {
      padding: 0;
    }

    .dataTables_paginate {
      padding: 0;

      .paginate_button {
        border: unset;
        color: var(--ev-body-color) !important;

        &:hover {
          background: var(--ev-primary, var(--ev-dark)) !important;
          color: var(--ev-body-bg) !important;
        }
      }

      .paginate_button.disabled,
      .paginate_button.disabled:hover,
      .paginate_button.disabled:active {
        &:hover {
          background: unset !important;
          border: unset !important;
        }
      }

      .paginate_button.current,
      .paginate_button.current:hover {
        background: var(--ev-primary, var(--ev-dark)) !important;
        color: var(--ev-body-bg) !important;
      }
    }
  }

  table.dataTable {

    &.no-footer {
      border-color: transparent;
    }

    thead {
      display: none;
    }

    tr {
      &:first-child td {
        border-top: 1px solid rgba(30, 30, 30, 0.11);
      }

      td {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(30, 30, 30, 0.11);
      }
    }
  }
}

/*END:___search___*/