/* Backend styles include used by main backend and login */
$textColor: #333 !default;

:root {
    --primary: #079ee0;
    --text: #202020;
    --btn-hover: #1A709E;
    --content-background: #FFFFFF;
}

@import "modules/base";
@import "modules/text";
@import "modules/layout";
@import "modules/popup";
@import "modules/input";
@import "modules/dropdown";
@import "modules/table";

body {
  font-weight: 300;
}
// Use lighter 400 font-weight by default for implicitly "bold" elements
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, b, strong, label, th {
  font-weight: 400;
}

h1, .h1 {
  font-size: 2.675rem;
}
h2, .h2 {
  font-size: 2rem;
}
h3, .h3 {
  font-size: 1.72rem;
}
h4, .h4, .tabContainer > ul {
  font-size: 1.35rem;
}

.navigationBar {
  box-shadow: 0 1px 8px rgba(191, 191, 191, 0.5);
  .logo {
    max-width: 100%;
    max-height: 25px;
  }
  .navbar-brand-name {
    font-weight: 400;
    margin-left: 0.25em;
  }
  .dropdown-menu {
      margin-top: 0;
  }
}

.content-head {
  margin-bottom: 4rem;
  > h1:last-child {
    margin: 0;
  }
}

div.contentTitle {
  > h1 {
    margin: 0;
  }
  // @todo: allow regular paragraph text flow ... everywhere?
  p {
    margin: 0.5em 0;
  }
  > p {
    font-size: 1.5rem;
  }
}

.underlined {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: solid var(--primary) 5px;
}

.page{
  position:relative;
}

// -------------------------------------------------------------------- PAGE TOP
.head {
  margin-bottom: 4rem;
  // Add padding to compensate for absolute-positioned navbar-fixed-top
  // See https://getbootstrap.com/docs/3.4/components/#navbar-fixed-top
  padding-top: 60px;
}

.sitelinks {
  &.list-inline li:not(:first-child):before {
    content: "|";
    margin-left: -5px;
    margin-right: 5px;
  }
}

.list-head, .list-head .btn {
  font-size: 1.3rem;
  font-weight: 300;

  .content-box {
    display: inline-block;
  }
}

textarea, input[type=text], input[type=number], input[type=password], .dropdownValue, .dropdownList {
  border-radius: 8px;
}

.tabContainer {
  > ul {
    margin-bottom: 2rem;
  }
  // Use Layout rules from .nav-pills without using .nav-pills buttonish styling
  // See https://github.com/twbs/bootstrap/blob/v3.4.1/less/navs.less#L117
  // Mark active link with an underline instead
  .nav > li {
    float: left;
    > a {
      padding-left: 0;  // Remove Bootstrap 3 default 15px left / right for underline sizing
      padding-right: 0;
      padding-bottom: 10px; // = Bootstrap 3 default. Repeated for clarity
      color: black;
      cursor: pointer;
    }
    // Pad enclosing li instead of >a for underline sizing; redistribute entire padding right
    padding-left: 0;
    padding-right: 30px;

    font-weight: bold;
    a:not(.active) {
      opacity: 0.7;
    }
    a.active {
      // Trade bottom-padding for border to maintain height
      padding-bottom: 7px;
      border-bottom: solid var(--primary) 3px;
    }
  }
}

.contentPane {
  width: 90%;
  max-width: 80rem;

  margin: 0 auto;
  > .content {

    form {
      &:after{
        content: "";
        display: block;
        visibility: hidden;
        clear: both;
      }
    }

    .button-group {
      text-align: right;
      margin: 20px 0;
    }
    .button-group input{
      margin-right: 5px;
    }
  }
}

#listFilterPermission {
  // following (default!) collection add interaction doesn't work for Element permissions, and should also
  // not be displayed
  & ~ * .collectionAdd {
    display: none;
  }
  & + form {
    .collectionAdd, .labelInput.required {
      display: none;
    }
  }
}

.permissionsTable{
  tbody .tagbox {
    cursor: pointer;
  }

  .tagbox {
    display: inline-block;
    font-size: 85%;
    width: auto;
    padding: 3px .5em;
    margin: 0 .25em;
    user-select: none;
    border-radius: 5px;

    i {
      cursor: pointer;
    }

    input {
      display: none;
    }
    &.multi {
      background-color:#c1c1c1;
    }

    &.active, &.active-inherited {
      color:white;
      &.success {
        background-color: #8DCA35;
      }
      &.warning {
        background-color: #FFAB00;
      }
      &.danger {
        background-color: #FF702A;
      }
    }
    &.active-inherited {
        opacity: 0.6;
    }
  }
}
.iconColumn {
  // .iconColumn contents mix div / a / span elements, but they should all
  // size and align the same way
  > * {
    display: inline-block;
  }
  > * + *, .screentypes i:not(:first-child) {
    margin-left: 0.5em;
  }
}

.popover {
  font-size: inherit;
}

.popup .table {
  background-color: white;
}

.content-box {
  background: white;
  border-radius: 15px;
  box-shadow: 5px 10px 8px rgba(191, 191, 191, 0.5);
  .content & {
    margin-bottom: 2.5rem;
  }
}
.content-box-lg {
  padding: 30px 40px;
  @media screen and (max-width: 767px) {
    padding: 25px;
  }
}
.content-box-md {
  padding: 15px;
}
.clip-text {
  overflow-x: hidden;
  text-overflow: ellipsis;
}

.flashBox{
  $width:280px;

  text-align: center;
  width: $width;
  margin-left: -$width/2;
  position: fixed;
  z-index: 1035;  // Must be higher than .navbar-fixed-top's 1030
  top: 0;
  left: 50%;
  transition: all 1s ease-in-out;
  opacity: 1;
  &.kill {
    top: -100px;
    opacity: 0;
  }
}

footer {
  padding-bottom: 2.5rem;
}

.action-button, .listFilterBoxes .btn {
  border-radius: 10px;
  padding: 5px 12px;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  i + * {
    margin-left: 0.5em;
  }
}

.ui-sortable-handle {
  cursor: move;
  &:hover, &.ui-sortable-helper {
    background-color: #fafafa;
  }
}

.ui-slider .ui-slider-range {
  background: #c2e5a4;
}

.badge--datasource {
    font-size: 1rem; float: right;
}

.btn-light{
 --bs-btn-border-color: #dee2e6;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--btn-hover);
  --bs-btn-hover-border-color: var(--btn-hover);
  --bs-btn-active-bg: var(--btn-hover);
  --bs-btn-active-border-color: var(--btn-hover);
}

.btn-outline-primary {
    --bs-btn-color: var(--text);
    --bs-btn-border-color: #cecece;
    --bs-btn-bg: var(--content-background);
    --bs-btn-hover-color: var(--content-background);
    --bs-btn-hover-border-color: var(--btn-hover);
    --bs-btn-hover-bg: var(--btn-hover);
    --bs-btn-active-color: var(--content-background);
    --bs-btn-active-border-color: var(--primary);
    --bs-btn-active-bg: var(--primary);
}

.application-list__spacing-top {
    margin-top: 10px;
}

.application-list__spacing-bottom {
    margin-bottom: 10px;
}

.application-list__title {
    font-weight: 500;
}

@media screen and (min-width: 767px) {
    .application-list__title {
        max-width: 150px;
    }
}

.navbar-brand {
    min-width: 100px;
    white-space: normal;
}

@media screen and (max-width: 767px) {
    .navbar-brand {
        word-wrap: anywhere;
    }
    .contentTitle {
        font-size: 1.7rem;
        margin-top: 10px !important;
    }

}


.filter-group {
    display: flex;
}

.permission-collection {
    overflow-x: scroll;
}

.form-check--inline .form-check {
    display: inline;
}
.form-check-input {
    border-color: #A9A9A9;
    border-width: 2px;
}

.showmore {
    margin-bottom: 10px;
}

.instanceContainer .help-text {
    float: right;
}
