
/*
 *   Copyright (C) 2019-2020 CERN.
 *   Copyright (C) 2019-2020 Northwestern University.
 *   Copyright (C) 2021 New York University.
 *
 * Invenio App RDM is free software; you can redistribute it and/or modify it
 * under the terms of the MIT License; see LICENSE file for more details.
 */

html,
body {
  color: #000;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.outer-navbar {
  background-image: @navbar_background_image;
  background-color: @navbar_background_color;
  border-color: transparent;

  #invenio-nav {
    background: transparent;
  }

  a {
    color: #f0f6ff;
  }
}

.item.right-menu {
  line-height: 44px !important;
}

.no-dots-list {
  list-style-type: none;
  margin-block-start: unset;
  margin-block-end: unset;
}

.centered {
  text-align: center;
}

.titlecase {
  text-transform: capitalize;
}

// Search page
.record-elem .record-title {
  color: #0377cd;
}

.record-elem .record-description {
  color: #000000;
}

.panel-free-title {
  color: #0377cd;
}

// Log-in and sign-up
.cover-page {
  background-image: @navbar_background_image;
  background-color: @navbar_background_color;
  border-color: transparent;
}

.theme.header {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

// Dashboard uploads page

.item.deposits-list-item {
  .ui.grid .checkbox-column {
    display: flex;
    align-items: center;

    .icon {
      padding-left: 0.5em;
      padding-bottom: 20px;
    }
  }

  div.status-icon {
    margin-right: 10px;
  }

  .actions > a,
  .stats > span {
    padding-right: 0.5em;
  }
}

.ui.items > .item .extra.labels-actions {
  margin-bottom: 0.75em;

  &.user-communities {
    margin-top: 0.25em;

    [class*="right floated"] {
      margin-top: 0;
    }
  }
}

.ui.label.access-status {
  color: #ffffff;

  &.open {
    background-color: @accessRightOpen;
  }

  &.restricted {
    background-color: @accessRightRestricted;
  }

  &.embargoed {
    background-color: @accessRightEmbargoed;
  }

  &.metadata-only {
    background-color: @accessRightMetadataOnly;
  }
}

.ui.card.borderless-facet {
  box-shadow: none;

  .content {
    border-top: none;

    h2.header:not(.ui) {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 1rem;
      font-size: 1.1em;
    }
  }
}

.content.facet-content.active {
  padding-left: 21px !important;
}

.facet-subtitle {
  padding-left: 20px !important;
}

.result-options {
  height: 66px;
  margin-top: @defaultMargin;
}

.inline-id-icon {
  height: 16px;
  width: auto;
  vertical-align: text-bottom;
}

.ui.grid {
  .row.file-upload-area-row {
    padding-top: 0;
    padding-bottom: 0;

    .ui.basic.very.padded.segment.file-upload-area {
      border: 2px dashed #999999;
      border-radius: 5px;
      background: #eeeeee none;
      margin-top: 20px;

      &.no-files {
        margin: 0;
      }
    }
  }

  .row.file-upload-note-row {
    padding-top: 5px;
  }

  .row.file-import-note-row {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

.ui.table {
  .ui.blue.medium.file-upload-progress {
    &.progress,
    &.success {
      &.active,
      &.disabled {
        margin-bottom: 0;

        &.error {
          margin-bottom: 0;
        }
      }
    }
  }

  .file-table-row {
    .file-table-header-cell {
      padding-top: 10px;
      padding-bottom: 10px;
    }

    .file-table-cell {
      padding-top: 5px;
      padding-bottom: 5px;

      &.file-upload-pending {
        text-align: center;
      }
    }
  }
}

.ui.modal {
  .header.deposit-modal-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.ui.menu {
  .active.item.license-menu-item-active {
    border-color: #2185d0;
    background-color: #2185d0;
    color: white;

    &:hover {
      border-color: #0d71bb;
      background-color: #0d71bb;
      color: white;
    }
  }
}

.ui.grid.record-citation {
  margin: 0 0 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;

  label {
    font-weight: 700;
  }

  .citation-style-selector {
    display: inline-block;
    width: 157px;

    .ui.selection.dropdown {
      min-width: 112px;
      max-width: 112px;
      margin-left: 10px;
    }
  }

  .citation-error-message {
    color: @errorText;
  }
}

.subject {
  display: inline-block;
  padding: .18rem .6rem;
  box-sizing: border-box;
  color: @mutedTextColor;
  border: 2px solid @lightTextColor;
  border-radius: 4px;
  cursor: pointer;
}

a.subject:hover {
  background-color: rgba(119, 119, 119, 0.07);
  color: darken(#757575, 15%);
  text-decoration: none;
}

.ui.segment.rdm-sidebar dl {
  dt.hidden {
    display: none;
  }

  dd.subject {
    margin-bottom: 3px;
  }
}
