@import "~@department-of-veterans-affairs/css-library/dist/tokens/scss/variables";
@import "~@department-of-veterans-affairs/css-library/dist/stylesheets/modules/m-process-list";
@import "~@department-of-veterans-affairs/css-library/dist/stylesheets/modules/m-form-process";
@import "../../../platform/forms/sass/m-schemaform";
@import "~@department-of-veterans-affairs/css-library/dist/stylesheets/modules/m-modal";
@import "~@department-of-veterans-affairs/css-library/dist/stylesheets/modules/m-omb-info";
@import "../../../platform/forms/sass/m-form-confirmation";

$facility-locator-shadow: rgba(0, 0, 0, 0.5);

.card-heading {
  font-weight: 600;
}

.form-panel {
  min-width: 100%;
}

.form-checkbox > input[type="checkbox"] + .schemaform-label {
  margin-top: 0.625rem;
}

.schemaform-label {
  display: inline;
  max-width: 30rem;
}

.schemaform-description {
  max-width: 30rem;
}

.schemaform-widget-wrapper {
  max-width: 480px;
}

.schemaform-intro {
  padding: 0;
}

#root_aboutYourself_socialOrServiceNum_ssn-label,
#root_aboutYourself_socialOrServiceNum_serviceNumber-label {
  margin-top: 0.625rem;
}

.empty-message {
  width: 50%;
  padding: 0.78125rem;
  font-weight: 600;

  @media (max-width: $small-screen) {
    width: 92%;
    padding: 0.78125rem;
    font-weight: 400;
  }
}

.no-messages {
  margin: 3.125rem 0;
}

.attachment-box {
  padding: 0.78125rem 1.5625rem;
  margin: 0.625rem 0;
  align-items: center;

  @media (max-width: $small-screen) {
    flex-direction: column;
    align-items: flex-start;
    p {
      margin: 0;
    }
  }
}

.need-help-footer {
  margin: 1.875rem 0;
}

.multiline-ellipsis-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  font-size: 16px;
}

.multiline-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: calc(1.2rem * 2);
  line-height: 1.5;
  font-size: 16px;
}

.multiline-ellipsis-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: calc(1.5rem * 3);
  line-height: 1.5;
  font-size: 16px;
}

.multiline-ellipsis-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 93px;
  line-height: 1.5;
  font-size: 16px;
}

.no-attachments {
  background-color: var(--vads-color-base-lightest);
  padding: 5px;
}

.attachments-list {
  list-style: none;
  padding: 0;
}

.attachment-file {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
}

.remove-attachment-button-wrapper {
  color: var(--vads-color-secondary-dark);
}

.header-breadcrumbs {
  font-size: 16px !important;
  font-weight: normal !important;
  font-family: "Source Sans Pro", "Helvetica Neue", "Helvetica", "Roboto",
    "Arial", sans-serif !important;
}

.facility-locator {
  .facility-introtext {
    padding: 0 15px 15px;
  }

  label {
    margin-top: 0;
  }

  .clearfix {
    content: "";
    display: block;
    clear: both;
  }

  .search-controls-container {
    padding: 24px 16px 0 12px;
    border: solid thin var(--vads-color-base-lightest);
    background: var(--vads-color-base-lightest);
    max-width: 100%;

    select:disabled {
      background: var(--vads-color-base-lightest);
    }

    #facility-search-controls {
      display: flex;
      flex-direction: column;

      input,
      textarea,
      select,
      .input-container {
        max-width: none;
        margin-bottom: 24px;
        padding: 0 0.7em;

        @media (min-width: $small-desktop-screen) {
          max-width: 418px;
          width: 418px;
          margin-right: 18px;
        }
      }

      .input-container {
        padding: 0;
      }

      input[type="submit"] {
        width: 100%;
        padding: 0 0.625rem;
        margin-top: 0;

        @media (min-width: $small-desktop-screen) {
          margin-top: 27px;
          min-width: 67px;
          width: auto;
        }
      }

      #location-input-field {
        display: flex;
        flex-direction: row;
        margin: 0;

        label {
          min-width: 62%;
        }

        @media (min-width: $small-desktop-screen) {
          flex-direction: row;
        }

        @media (max-width: $small-screen) {
          display: block;
        }
      }

      .search-input {
        display: flex;
        flex-direction: row;
        margin-top: 1rem;
        margin-bottom: 2.5rem;

        #facility-search {
          border-top-left-radius: 0px;
          border-bottom-left-radius: 0px;
          width: 35%;
          height: auto;
          margin: 0;

          .button-text {
            @media (max-width: $small-screen) {
              display: none;
            }
          }

          .button-icon {
            @media (min-width: $small-screen) {
              display: none;
            }
          }
        }

        input {
          margin: 0;
          width: 100%;
          height: 3.28125rem;
        }
      }

      .location-loader {
        max-height: 2rem;
        overflow: hidden;
      }

      .use-my-location-link {
        text-decoration: none;
        background-color: transparent;
        color: var(--vads-color-link);
        font-weight: normal;
        padding: 0;
        margin: 0;
        text-align: left;

        @media (max-width: $small-desktop-screen) {
          text-align: left;
        }

        @media (max-width: $small-screen) {
          margin-top: 1.25rem;
        }
      }

      #search-controls-bottom-row {
        @media (min-width: $small-desktop-screen) {
          display: flex;
          flex-direction: row;
        }
      }
    }
  }

  .clear-button {
    font-size: 16px;
    position: absolute;
    float: right;
    background-color: rgba(255, 255, 255, 0);
    color: var(--vads-color-black);
    max-width: 1.25rem;
    left: 65%;
    padding-left: 0.3125rem;

    &:hover {
      background-color: unset;
      color: unset;
    }

    @media (max-width: $small-screen) {
      left: 64%;
    }
  }
}

.ava-progress-bar {
  border: 1px solid var(--vads-color-base-lightest);
  background-color: var(--vads-color-base-lightest);
  border-radius: 3px;
  height: 1rem;
  width: 100%;
  display: block;
  margin: 2rem 0 4rem 0;
}

.ava-progress-bar-inner {
  height: 100%;
  background-color: var(--vads-color-orange);
  border: 1px solid var(--vads-color-orange);
  border-radius: 3px;
  display: block;
}

.ava-progress-bar-text {
  font-weight: 600;
  display: block;
}

.progress-box {
  padding-left: 0;
}
.health-facility-label {
  display: flex;
  flex-direction: column;
  align-items: center;

  @include media($medium-screen) {
    flex-direction: row;
  }
}

.tabs {
  border-left: 1px solid var(--vads-color-gray-light-alt);
  border-bottom: 1px solid var(--vads-color-gray-light-alt);
  border-right: 1px solid var(--vads-color-gray-light-alt);
  padding: 0;
  margin: 0;
  border-top: 0;
}

.tab {
  text-align: center;
  background: var(--vads-color-gray-light-alt);
  border-top: solid 3px var(--vads-color-gray-light-alt);

  display: inline-block;
  position: relative;
  list-style: none;
  padding: 6px 12px;
  cursor: pointer;

  &.react-tabs__tab--selected {
    border-top: solid 3px var(--vads-color-primary);
    background: var(--vads-color-white);
    border-bottom: none;
  }
}

.react-tabs [role="tab"][aria-selected="true"] {
  border-left: none;
  border-right: none;
}

ul.react-tabs__tab-list {
  padding: 0;
  margin-top: 0;
  border-top: none;
}

.vacard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 24px;
}

.vacardCategory {
  margin-top: 0;
  margin-bottom: 12px;
}

.vacard .inquiry-question {
  height: 93px;
  overflow: "hidden";
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: "vertical";
  text-overflow: "ellipsis";
  white-space: normal;
}

.vacardSubmitterQuestion {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  font-size: 16px;
  box-sizing: border-box;
  padding-top: 0px;
  margin-top: 0px;
}

.vacardSelectFilters {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex: 1;
  margin-bottom: 0;

  @media screen and (max-width: $medium-screen) {
    flex-direction: column;
    margin-bottom: 1rem;
  }

  > div {
    flex: 1;
  }

  > div:last-child {
    flex: 2;
  }
}

.filter-actions {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  width: auto;
  height: 40px;

  @media screen and (max-width: $medium-screen) {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    height: auto;

    va-button-pair {
      width: 100%;

      ::part(button-pair) {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem;
      }

      ::part(button-container) {
        flex: 1;
        width: 50%;
        margin: 0;
      }

      ::part(primary-button),
      ::part(secondary-button) {
        width: 100%;
        margin: 0;
      }
    }
  }
}

.filter-container {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  margin-bottom: 1rem;

  @media screen and (max-width: $medium-screen) {
    flex-direction: column;
  }
}

.dashboard-card {
  background-color: var(--vads-color-base-medium);
  border: none;
}

.dashboard-cards-grid-with-business {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding-bottom: 40px;
  padding-left: 20px;
  padding-right: 20px;
}

.dashboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.dashboard-dl {
  margin-top: 0;
  margin-bottom: 24px;
}

.custom-review-dl {
  margin: 16px auto;
}

.search-hint-text {
  color: var(--vads-color-base-dark);
}

.ask-va-modal-content {
  margin-bottom: 2rem;
}

.va-file-input.no-file {
  margin: 0;
}

.dashboard-card-list {
  list-style-type: none;
}

va-radio-option#facility-not-listed
  .usa-radio__label[for="facility-not-listedinput"][role="radio"] {
  font-weight: 600;
}

.school-info-bar {
  border-left: 4px solid var(--vads-color-primary);
}

.school-state-error {
  border-left: 0.25rem solid var(--vads-color-secondary-dark);
  padding-left: 1rem;
  position: relative;

  [error]:not([error=""]) {
    border-left: none;
  }
}

div.form-review-array > div[name="fileUpload"] {
  display: none;
}

div.form-review-array:has(> div[name="fileUpload"]) {
  margin-top: 0;
}

div.review-row:has(> div.review-page-attachments) {
  flex-direction: column;
}

.review-page-attachments {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
}

// fix cancel button in edit mode - reveiw page
div.vads-u-display--flex > button#cancel {
  @include media($medium-screen) {
    margin: 26px 9px 9px 0;
  }
}
