/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2016-2017 Dan "Ducky" Little
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

.search-result {
  margin: 0;
  clear: both;
  position: relative;
  padding: 5px;

  .search-label,
  .search-action {
    width: 50%;
    margin: 0;
    float: left;
    overflow: hidden;
  }
  .search-action {
    text-align: right;
  }

  .zoomto-link {
    left-padding: 16px;
    cursor: pointer;
    font-weight: bold;
  }

  .zoomto-link:hover {
    color: #0fdc56;
  }
}

.service-manager {
  .results-header {
    background-color: #cfe7b3;
    padding: 5px;
    font-weight: bold;
    font-size: @gm-text-header;
    clear: both;
  }

  .results-query-id {
    /* hiding this now that querying is more stable. */
    display: none;

    font-style: italic;
    font-size: @gm-text-fine;
    padding: 4px;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .results-tools {
    float: right;
  }

  .results-info {
    display: flex;

    .results-info-item {
      background: none;
      border-radius: 0;

      width: 30%;

      padding: 0.25em;
      margin: 5px;
      text-align: center;

      border: solid 1px #ccc;

      .label {
        width: 100%;
        font-size: @gm-text-fine;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .value {
        height: 2em;
        font-size: 2em;
        display: flex;
        justify-content: center;
        align-items: center;

        .icon {
          font-size: 1em;
          margin-right: 0;
        }
      }

      &.disabled {
        border-color: #eee;
        color: #eee;
        cursor: not-allowed;
        .icon {
          cursor: not-allowed;
        }
      }
    }
  }

  .results-info-counts {
    margin: 5px;

    .results-info-item {
      display: flex;
      margin-bottom: 2px;

      .label {
        flex: 1;
        font-weight: bold;
      }

      .value {
        text-align: right;
      }
    }

    .results-info-item.filtered-features {
      font-style: italic;
      font-size: @gm-text-secondary;
      margin-top: 5px;
    }
  }

  .results {
    padding: 4px;

    label {
      font-weight: bold;
    }

    .item {
      margin: 2px;
    }
  }
}
