@import "../3.4.1/less/bootstrap.less";
@import "tagmanager.less";
@import "xt-columns.less";
@import "jsoneditor.less";
@import "xtro-admin-home.less";
@import "_utils.less";
@import "_markdown-parsed.less";
@grid-gutter-width: 20px;
@brand-primary: #21672a;
@brand-secondary: #95a29d;
:root {
  --brand-primary: @brand-primary;
  --brand-primary-darker: darken(@brand-primary, 10%);
  --brand-primary-lighter: lighten(@brand-primary, 10%);
  --brand-secondary: @brand-secondary;
  --brand-secondary-darker: darken(@brand-secondary, 10%);
  --brand-secondary-lighter: lighten(@brand-secondary, 10%);
  --selection-color: @brand-primary;
}
body {
  opacity: 1;
}
a {
  color: var(--brand-primary);
}
a:hover {
  color: var(--brand-primary-darker);
}
.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-primary:hover {
  background-color: var(--brand-primary-darker);
  border-color: var(--brand-primary-darker);
}
.svg-label {
  position: relative;
  display: none;
}
#jsoneditor {
  min-height: 500px;
}
#jsoneditor-src {
  display: none;
}

.rows-striped {
  > div:nth-child(odd) {
    background: #f1f1f1;
  }
}

.input-xs {
  .input-size(24px; 2px; 4px; 12px;14px; 0);
}

#ui-list {
  > tbody > tr > td {
    padding: 2px 3px;
  }
}
body {
  background: var(--brand-secondary-darker);
}
.body-wrapper {
  background: @body-bg;
}
@navbar-height: 35px;

.navbar {
  margin-bottom: 0;
}

@font-family-sans-serif: system, -apple-system, ".SFNSDisplay-Regular", "Helvetica Neue", Helvetica, Arial, sans-serif; /*'Open Sans', sans-serif;*/

.ui-autocomplete {
  z-index: 2000;
  font-family: @font-family-sans-serif;
  max-width: 330px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
}

.tab-content {
  padding-top: 7px;
}
.dropdown-menu > li.nav-header {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: normal;
  line-height: @line-height-base;
  color: @text-muted;
  white-space: nowrap;
}

.form-actions {
  margin-top: 10px;
  padding-top: 10px;
}

.navbar-collapse {
  max-height: none;
}

body {
  padding-bottom: 40px;
}
body.xt-hidden-navbar {
  padding-bottom: 0;
  > .body-wrapper {
    min-height: 100vh;
  }
}

#xtro-top {
  margin: 0;
  padding-bottom: 0;
  padding-top: 10px;
  background: #f2f2f2;
  margin-top: 0;
  border-bottom: 1px solid #eaeaea;
}
#main-navbar {
  border-bottom: 2px solid var(--brand-primary);
}

@media (max-width: 767px) {
  .container-header {
    display: none;
  }
}

.ui-autocomplete {
  z-index: 2000;
  font-family: @sansFontFamily;
  max-width: 330px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
}

.xt-img-align-left {
  float: left;
}
.xt-img-align-right {
  float: right;
}

#horiz-actions {
  margin-left: 5px;
  margin-right: 5px;
  z-index: 1000;
  .popover {
    min-width: 200px;
    background: var(--brand-secondary-darker);
    .popover-title {
      background: rgba(0, 0, 0, 0.3);
      border-color: rgba(0, 0, 0, 0.6);
      color: #fff;
    }
    a {
      display: block;
      padding: 3px 0;
      color: #fff;
      text-decoration: none;
    }
    .popover-content > div {
      border-bottom: 1px solid rgba(0, 0, 0, 0.2);
      margin: 0 -7px;
      padding: 0 7px;
      &:hover {
        background: rgba(255, 255, 255, 0.3);
      }
    }
    .popover-content > div:last-child {
      border-bottom: none;
    }
    &.right > .arrow:after {
      border-right-color: var(--brand-secondary-darker);
    }
  }
}

#nav-toolbar {
  margin-right: 5px;
}

iframe {
  border: none;
}
footer {
  padding-top: 25px;
  text-align: center;
  color: #fff;
  a {
    color: #fff;
  }
}

.navbar-brand img {
  margin-top: -5px;
  min-width: 65px;
  display: block;
  height: auto !important;
}
.d-flex {
  display: flex;
}
#view-options {
  margin-left: 5px;
  margin-bottom: 5px;
  margin-right: auto;
}
.form-control-sm {
  padding: 3px 8px;
  height: 28px;
}
.form-control-xs {
  padding: 2px 4px;
  height: 22px;
  font-size: 12px;
}
#form-fast-edit {
  max-width: 150px;
  margin-left: 15px;
  margin-right: 15px;
}

.number {
  text-align: right !important;
}

.float-wrapper {
  overflow: hidden;
}

#holder-wrapper {
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}
#holder {
  position: relative;
  height: 100%;
}
#holder div {
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px;
  color: #fff;
}

.italic {
  font-style: italic;
}

#breadcrumbs {
  display: flex;
  .primary-key {
    &::before {
      content: "#";
      user-select: none;
    }
    font-family: monospace;
    padding: 2px 4px;
    font-size: 16px;
    flex-grow: 0;
    border: 1px solid #ddd;
    margin-left: 5px;
  }
}
#breadcrumbs .breadcrumb {
  margin-bottom: 0;
  margin-right: auto;
  flex-grow: 1;
}

#xtro-upload-form {
  position: absolute;
  top: 48px;
  right: 55px;
  z-index: 999;
  width: 270px;
  margin-right: 0;
}

#xtro-upload-form + .xt-flex-cols {
  .table-responsive {
    padding-top: 60px;
  }
}

.allow-upload .titles-area {
  padding-right: 300px;
}

#actions-affix {
  position: absolute;
  right: 5px;
  &.affix {
    top: 5px;
    position: fixed;
  }
}

#tools-affix {
  &.affix {
    position: static;
  }
}

@media (min-width: 768px) {
  #tools-affix {
    &.affix {
      position: fixed;
    }
  }
  #tools-affix,
  #actions-affix {
    &.affix {
      top: 5px;
    }
  }
}
#in-editing-record {
  background: #fff;
  position: relative;
  .xt-flex-cols {
    display: flex;
  }
  .col-tools,
  .col-actions {
    background: var(--brand-secondary-lighter);
  }
  .col-tools,
  .col-actions,
  .col-edit {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .col-edit {
    padding-right: 55px;
    padding-left: 15px;
    position: relative;
    flex-grow: 1;
  }

  @media (min-width: @screen-md-min) {
    .col-tools,
    .col-actions,
    .col-edit {
      padding-bottom: 30px;
    }
    .col-tools {
      /*width: 190px;
      min-width: 190px;*/
      padding-bottom: 30px;
    }
    .col-edit {
      flex: 2;
    }
  }

  .navbar {
    margin-bottom: 5px;
  }
  .form-group {
    margin-bottom: 7px;
  }
  label {
    margin-bottom: 3px;
  }
  .radio,
  .checkbox {
    margin-top: 4px;
    margin-bottom: 4px;
  }
  .nav > li > a {
    padding: 6px 10px;
  }
  .alert {
    padding: 6px 10px;
    margin-bottom: 10px;
  }
  .form-control {
    padding: 4px 8px;
    height: 28px;
  }
  textarea.form-control {
    height: auto;
  }
}
@media (max-width: @screen-sm-min) {
  .nav-tabs {
    border-bottom: none;
  }
  .nav-tabs > li {
    float: none;
    margin-bottom: 0;
  }
  .nav-tabs > li.active > a,
  .nav-tabs > li.active > a:hover,
  .nav-tabs > li.active > a:focus {
    border-bottom-color: #ddd;
    border-radius: 4px;
  }
}

.breadcrumb-sm {
  padding: @breadcrumb-padding-vertical*.7 @breadcrumb-padding-horizontal*.7;
  margin-bottom: @line-height-computed*.7;
  font-size: 12px;
}

.form-group-row {
  margin-top: 10px;
  margin-bottom: 10px;
  label {
    padding-top: 5px;
    text-align: right;
    display: block;
  }
}

#component-content {
  padding-bottom: 15px;
  > .breadcrumb {
    margin-top: 15px;
  }
}

#xtro-editing-wrapper {
  margin-bottom: -15px;
}

#xt-related-container-drop-area {
  min-height: 40px;
  .label {
    display: inline-block;
    margin-left: 6px;
    margin-bottom: 4px;
  }
}
#xt-related-container-drag-area {
  .label {
    display: inline-block;
    margin-left: 6px;
    margin-bottom: 4px;
  }
}

.table > tbody > tr.draft > td {
  background: #fefefe;
  color: #999;
  font-style: italic;
  a {
    color: #333;
  }
}

.tab-metadata {
  .row-metadata-edit {
    padding: 8px 0 5px 0;

    &:nth-child(odd) {
      background: #f9f9f9;
    }
  }
}

.hr-sm {
  margin-top: 7px;
  margin-bottom: 7px;
}

.xtui-advanced {
  display: none;
}

.xtui-advanced-active {
  .xtui-advanced {
    display: block;
  }
}
.input-group-btn > .btn-sm {
  padding: 4px 10px;
}

.is-deleted {
  text-decoration: line-through;
}

.ui-menu .ui-menu-item-wrapper {
  display: block;
}

.slick {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-points-x: repeat(100%);
  -webkit-scroll-snap-type: x mandatory;
  -ms-scroll-snap-type: x mandatory;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  scrollbar-width: none;
  -ms-overflow-style: none;
  > div {
    scroll-snap-align: start;
  }
}

.xt-flex {
  display: flex;
  margin: 10px 0;
  .xt-flex-col-label {
    width: 10%;
    flex-grow: 0;
    text-align: right;
    padding-top: 5px;
    padding-right: 10px;
    font-weight: bold;
  }
  .xt-flex-col {
    max-width: 100%;
    flex-grow: 1;
    padding: 0 5px;
  }
}

@media (max-width: @screen-sm-min) {
  .xt-flex {
    display: block;
  }
  .xt-flex .xt-flex-col-label {
    text-align: center;
  }
  .xt-flex .xt-flex-col,
  .xt-flex .xt-flex-col-label {
    display: block;
    width: auto;
  }
}
