/** 
 *------------------------------------------------------------------------------
 * @package       T3 Framework for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt, JoomlaBamboo, (contribute to this project at github 
 *                & Google group to become co-author)
 * @Google group: https://groups.google.com/forum/#!forum/t3fw
 * @Link:         http://t3-framework.org 
 *------------------------------------------------------------------------------
 */


// ---------------------------------------------------------
// GENERIC ARTICLE STYLES
// ---------------------------------------------------------

//
// Articles Layout
// --------------------------------------------------------
.blog {
}

// Home Blog
.blog-featured {
  .filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    .com-contact-featured__filter {
      display: flex;
      flex-wrap: wrap;
    }

    .display-limit {
      margin: 0;
    }
  }

  .pagination-wrap {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: space-between;

    .counter {
      display: flex;
      align-items: center;
      margin: 0;
      padding: .5rem 1rem;
    }

    .pagination {
      margin: 0;
    }
  }
}

// Leading Article Rows
.items-leading {
  margin-bottom: @t3-global-margin * 2;

  // Table view
  @media (max-width: @screen-sm-max){
    margin-bottom: @grid-gutter-width;
  }

  // Image
  .image-wrap {
    .item-image {
      width: 100%;
      margin-bottom: -@grid-gutter-width * 3;

      // Table view
      @media (max-width: @screen-sm-max){
        margin-bottom: 0;
      }

      img {
        width: 100%;
      }
    }
  }

  // Content
  .intro-wrap {
    background: #fff;
    border-top: none;
    border: 1px solid @hr-border;
    display: block;
    float: left;
    //margin-top: -@grid-gutter-width * 3;
    max-width: 850px;
    padding: @grid-gutter-width;
    width: 100%;

    // Title
    .article-header {
      h2 {
        color: @brand-secondary;
        font-size: @font-size-h3;
        margin-bottom: @t3-global-margin / 3;

        a {
          color: @brand-secondary;

          &:hover {
            text-decoration: underline;
          }
        }
      }
    }

    .article-aside {
      margin-bottom: @t3-global-margin / 2;

      .article-info {
        float: left;

        .category-name {
          a {
            >span {
              color: @gray-light;

              &:hover {
                color: @brand-primary;
              }
            }
          }
        }
      }
    }

    // Read more
    .readmore {
      .btn {
        font-size: 12px;
        padding: @t3-global-padding / 2  @grid-gutter-width / 2;
      }
    }
  }
}


// Article Rows
.items-row {
  margin-bottom: @grid-gutter-width;

  // Table view
  @media (max-width: @screen-sm-max){
   margin-bottom: 0;
  }

  .item {
    // Table view
    @media (max-width: @screen-sm-max){
      padding-bottom: @grid-gutter-width;
      float: left;
    }
  }

  // Image
  .image-wrap {
    .item-image {
      width: 100%;

      img {
        width: 100%;
      }
    }
  }

  // Content
  .intro-wrap {
    border-top: none;
    border: 1px solid @hr-border;
    display: block;
    float: left;
    padding: @grid-gutter-width;
    width: 100%;

    // Title
    .article-header {
      h2 {
        color: @brand-secondary;
        font-size: @font-size-h4;
        margin-bottom: @t3-global-margin / 3;

        a {
          color: @brand-secondary;

          &:hover {
            text-decoration: underline;
          }
        }
      }
    }

    .article-aside {
      margin-bottom: @t3-global-margin / 2;

      .article-info {
        float: left;

        .category-name {
          a {
            >span {
              color: @gray-light;

              &:hover {
                color: @brand-primary;
              }
            }
          }
        }
      }
    }

    // Read more
    .readmore {
      .btn {
        font-size: 12px;
        padding: @t3-global-padding / 2  @grid-gutter-width / 2;
      }
    }
  }
}

// Field
.fields-container {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  margin-top: @grid-gutter-width;
  width: 100%;

  >.field-entry {
    width: 50%;
    margin-bottom: @t3-global-margin / 6;
  }

  .contact-field-entry  {
    font-weight: 600;
  }

  .contact-field-entry {
    margin-bottom: 0  !important;
  }
}

.list-pic {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: @t3-global-margin 0;

  .item {
    margin: @grid-gutter-width/ 2 0;

    +.item {
      margin-left: @t3-global-margin / 2;
    }
  }
}

// Divider
.divider-vertical {
  border-top: 1px solid @hr-border;
  border: 0;
  margin: 0 0 (@t3-global-margin * 2);
}


// Article Aside
// -------------------------
.article-aside {
  color: @gray-light;
  font-size: @t3-font-size-small;
  margin-bottom: @t3-global-margin;
}

.article-header {
  a {
    color: @brand-secondary;

    &:hover {
      text-decoration: underline;
    }
  }
}

.article-info {
  display: inline-block;
  margin: 0;
  width: 85%;

  a {
    // Link states
    &:hover, &:focus, &:active {
    }
  }
  
  .article-info-term {
    display: none;
  }
  
  dd {
    display: inline-block;
    margin-left: 0;
    margin-right: 10px;
    white-space: nowrap;

    strong {
      font-weight: bold;
    }
  }

  .field-label {
    display: none;
  }

  .r-author .field-value > a:hover {
    text-decoration: none;
  }

  .author-avatar {
    border-radius: 50%;
    height: @grid-gutter-width;
    width: auto;
    display: inline-block;
  }

}

// Author
.createdby {
}

// Category Name
.category-name {
}

// URL
.article-url {
}

// Publish Date
.published {
}

// Modified Date
.modifydate {
}

// Article Desciption
.contentdescription {
}

.contentdescription p {
}


// Article Footer
// -------------------------
.article-footer {
  color: @gray-light;
  font-size: @font-size-small;
  margin-bottom: @t3-global-margin;
}


// Article Images
// -------------------------

.article-intro,
.article-content {

  // Make the image reponsive.
  // Remove if you don't want article images to be responsived.
  img {
    .img-responsive();
  }

  // Add proper margin
  img[align=left],
  .img_caption.left,
  .pull-left.item-image {
    margin: 0 (@t3-global-margin*1.5) @t3-global-margin 0;
  }

  img[align=right],
  .img_caption.right,
  .pull-right.item-image {
    margin: 0 0 @t3-global-margin (@t3-global-margin* 1.5);
  }

}

.article-content {
  iframe {
    @media (max-width: @screen-sm) {
      width: 100% !important; 
      height: auto;
    }
  }
}

.img-intro-none,
.img-intro-left,
.img-intro-right,
.img-fulltext-none,
.img-fulltext-left,
.img-fulltext-right,
.img_caption {
  position: relative;
}

.img-intro-none,
.img-intro-left,
.img-intro-right,
.img-fulltext-none,
.img-fulltext-left,
.img-fulltext-right,
.img_caption {
  margin-bottom: @t3-global-margin;
  max-width: 100%;
}

.img-fulltext-left {
  float: left;
  margin-right: @t3-global-margin;
}

.img-fulltext-right {
  float: right;
  margin-left: @t3-global-margin;
}

.img-intro-none img,
.img-intro-left img,
.img-intro-right img,
.img-fulltext-none img,
.img-fulltext-left img,
.img-fulltext-right img {
  margin: 0;
}

// Image caption
.img_caption img {
  margin-bottom: 1px !important;
}

.img_caption p.img_caption {
  background: @gray-lighter;
  clear: both;
  color: @gray;
  font-size: @font-size-small;
  margin: 0;
  padding: 5px;
  text-align: center;
  width: 100%;
}

// Full Image Gallery
.full-image {
  .carousel-control {
    .ion-ios-arrow-round-back,
    .ion-ios-arrow-round-forward {
      position: absolute;
      top: 50%;
      margin-top: -@grid-gutter-width/2;
      left: 50%;
      margin-left: -@grid-gutter-width/2;
      background: none;
      border-radius: 50%;
      color: @white;
      display: inline-block;
      line-height: @grid-gutter-width;
      height: @grid-gutter-width;
      width: @grid-gutter-width;
      font-size: @font-size-h2;
    }
  }
}

// Reponsive Article Images
@media screen and (max-width: @screen-xs-max) {
  article img[align=left], .img_caption.left,
  article img[align=right], .img_caption.right,
  .img-fulltext-left, .img-fulltext-right {
    float: none !important;
    margin-left: 0;
    margin-right: 0;
    width: 100% !important;
  }
}


// Article Actions
// -------------------------
article aside .btn-group {
  .dropdown-menu {
  }
  
  > .dropdown-toggle,
  > .dropdown-toggle:hover,
  > .dropdown-toggle:active,
  > .dropdown-toggle:focus {
    padding: 2px 5px;
  }

  > .dropdown-toggle .caret {
    margin-left: 2px;
  }

}


//
// Articles Property Layout
// --------------------------------------------------------
.item-property {

  .fields-container {
    > .field-entry {
      margin-bottom: @grid-gutter-width/4;
      width: 100%;

      &::before {
        display: none;
      }

      .field-label {
        color: @gray-light;
        display: inline-block;
        font-size: @font-size-h6;
        font-weight: normal;
        min-width: @grid-gutter-width*3;
        text-transform: uppercase;
      }

      .field-value {
        color: @gray-darker;
        font-weight: bold;
      }

      &.r-area,
      &.r-price {
        float: left;
        width: auto;
      }

      &.r-area + .r-value-of-area,
      &.r-price + .r-value-of-price {
        float: left;
        margin-left: 5px;
        width: auto;

        .field-label {
          display: none;
        }
      }

      &.r-price {
        .field-value:after {
          margin-left: 5px;
          content: "/";
        }
      }

      &.r-price + .r-value-of-price .field-value {
        display: block;
        font-size: @font-size-small;
        font-weight: normal;
        margin-top: -4px;
      }

      &.r-latlong,
      &.r-type {
        display: none;
      }
    }
  }

  .item-image {
    margin-bottom: @t3-global-margin;
  }

  // Sidebar
  @media (max-width: @screen-md-max) {
    .article-sidebar {
      padding-top: @grid-gutter-width;
    }
  }

  .article-sidebar-box {
    margin-bottom: @grid-gutter-width;

    &:last-child {
      margin-bottom: 0;
    }

    &.box-border {
      background: @white;
      border: 1px solid @t3-border-color;
      padding: @grid-gutter-width;
      position: relative;

      .tag-label {
        background: @brand-success;
        color: @white;
        font-size: @font-size-h6;
        font-weight: 700;
        height: @t3-global-padding;
        left: @grid-gutter-width;
        line-height: @t3-global-padding;
        margin-top: -@t3-global-margin / 2;
        padding: 0 @t3-global-padding / 2;
        position: absolute;
        text-transform: uppercase;
        top: 100%;

        &:before {
          border-color: transparent transparent transparent @brand-success;
          border-style: solid;
          border-width: @t3-global-padding / 2 @t3-global-padding / 2 @t3-global-padding / 2 @t3-global-padding / 4;
          content: "";
          left: 100%;
          position: absolute;
        }

        &.label-rent {
          background: @brand-warning;

          &:before {
            border-color: transparent transparent transparent @brand-warning;
          }
        }
      }

      .featured-label {
        background: @white;
        border-radius: 50%;
        box-shadow: 0 0 18px rgba(0, 0, 0, 0.1);
        color: @gray-lighter;
        font-size: @font-size-h6;
        font-weight: 700;
        height: @grid-gutter-width;
        line-height: @grid-gutter-width;
        margin-top: -@grid-gutter-width/2;
        padding: 0;
        position: absolute;
        right: @grid-gutter-width;
        text-align: center;    
        text-transform: uppercase;
        top: 100%;
        width: @grid-gutter-width;


        &.featured-label-yes {
          background: @brand-danger;
          color: @white;
        }
      }
    }

    // Intro Image
    .intro-image {
      margin-left: -@grid-gutter-width;
      margin-right: -@grid-gutter-width;
      margin-top: -@grid-gutter-width;
      position: relative;

      .item-image {
        float: none !important;

        img {
          width: 100%;
        }

        .carousel-control {
          .ion-ios-arrow-round-back,
          .ion-ios-arrow-round-forward {
            position: absolute;
            top: 50%;
            margin-top: -@grid-gutter-width/2;
            left: 50%;
            margin-left: -@grid-gutter-width/2;
            background: none;
            border-radius: 50%;
            color: @white;
            display: inline-block;
            line-height: @grid-gutter-width;
            height: @grid-gutter-width;
            width: @grid-gutter-width;
          }
        }
      }
    }

    .article-title {
      a {
        color: @headings-color;
      }
    }

    .fields-container {
      margin-bottom: 0;
      margin-top: 0;

      .author-avatar {
        border-radius: 50%;
        height: @grid-gutter-width;
        width: auto;
        display: inline-block;
      }
    }

    .map-container {
      width: 100% !important;
    }
  }
}


// ---------------------------------------------------------
// ROW LISTS
// ---------------------------------------------------------
// List types using in Joomla! Core

// Alternating Rows
.row-even,
.row-odd {
  border-bottom: 1px solid @table-border-color;
  padding: 5px;
  width: 99%;
}

.row-odd {
  background-color: @table-bg;
}

.row-even {
  background-color: @table-bg-accent;
}

.blog-row-rule,
.blog-item-rule {
  border: 0;
}

// Row reveal
.row-fluid .row-reveal {
  visibility: hidden;
}

.row-fluid:hover .row-reveal {
  visibility: visible;
}

// Nav List Offset
.nav-list > li.offset > a {
  padding-left: 30px;
  font-size: 12px;
}


// Striped
// -------
.list-striped,
.row-striped {
  border-top: 1px solid @table-border-color;
  line-height: @line-height-computed;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  text-align: left;
  vertical-align: middle;
}

.list-striped li,
.list-striped dd,
.row-striped .row,
.row-striped .row-fluid {
  border-bottom: 1px solid @table-border-color;
  padding: 10px 15px;
}

.list-striped li:nth-child(odd),
.list-striped dd:nth-child(odd),
.row-striped .row:nth-child(odd),
.row-striped .row-fluid:nth-child(odd) {
  background-color: @table-bg-accent;
}

.list-striped li:hover,
.list-striped dd:hover,
.row-striped .row:hover,
.row-striped .row-fluid:hover {
  background-color: @table-bg-hover;
}

.row-striped .row-fluid {
  width: 97%; // lower than 100% since we have padding
}

.row-striped .row-fluid [class*="span"] {
  min-height: 10px;
}

.row-striped .row-fluid [class*="span"] {
  margin-left: 8px;
}

.row-striped .row-fluid [class*="span"]:first-child {
  margin-left: 0;
}


// Condensed
// ---------
.list-condensed {
  li {
    padding: 5px 10px;
  }
}

.row-condensed {
  .row, .row-fluid {
    padding: 5px 10px;
  }
}


// Bordered
// --------
.list-bordered,
.row-bordered {
  border: 1px solid @table-border-color;
  line-height: 18px;
  list-style: none;
  margin-left: 0;
  text-align: left;
  vertical-align: middle;
}



// ---------------------------------------------------------
// COMMON JOOMLA STYLES
// ---------------------------------------------------------

//
// LOGIN
// ---------------------------------------------------------
.login-wrap {
  background: transparent;
  border: 1px solid @hr-border;
  margin: @grid-gutter-width* 3 auto;
  max-width: 100%;
  padding: @grid-gutter-width * 2;
  text-align: left;
  width: 470px;

  // Mobile view
  @media (max-width: @screen-xs-max) {
    margin: @t3-global-margin* 2 auto;
    padding: @t3-global-padding;
  }

  // Header
  .page-header {
    border: 0;
    margin-bottom: @t3-global-margin * 1.5;
    padding: 0;

    // Mobile view
    @media (max-width: @screen-xs-max) {
      margin-bottom: @t3-global-margin;
    }

    h1 {
      border: none;
      color: @headings-color;
      font-size: 50px;
      margin-top: 0;
      padding: 0;
      text-transform: unset;

      // Mobile view
      @media (max-width: @screen-xs-max) {
        font-size: 45px;
      }
    }
  }

  // Description
  .login-description {

  }

  // Login Form
  form {

    fieldset {
    }

    .control-label {
      text-align: left;
      padding-top: 0;
    }

    label {
      color: @text-color;
      text-align: left;
      font-weight: @font-weight-normal;
    }

    .form-group {
      margin-bottom: @t3-global-margin;

      input[type="text"],
      input[type="password"] {
        box-shadow: none;
        width: 100%;
      }

      .checkbox {
        padding-top: 0;
        min-height: 0;

        input[type="checkbox"] {
          margin-top: 6px;
        }
      }
    }
  }

  .input-group {
    display: flex;

    .form-control {
      flex: 1;
    }
  }

  // Links
  .other-links {
    margin-bottom: 0 !important;

    ul {
      margin: 0;
      padding: 0;

      li {
        display: inline-block;
        list-style: none;
        padding: 0 @t3-global-padding / 4;

        a {
          color: @gray;

          &:hover,&:focus,&:active {
            color: @brand-primary;
          }
        }

        + li {
          margin-top: @t3-global-margin / 2;
        }
      }
    }
  }
}


//
// LOGOUT
// ---------------------------------------------------------
.logout {
  margin: @grid-gutter-width * 3 auto;
  max-width: 500px;
  text-align: center;

  .page-header {
    border: 0;
    margin-bottom: @t3-global-margin;

    h1 {
      border: none;
      color: @headings-color;
      font-size: 50px;
      text-transform: unset;

      // Mobile view
      @media (max-width: @screen-xs-max) {
        font-size: 45px;
      }
    }
  }

  .form-horizontal .control-group {
    margin-bottom: 0;

    .controls {
      margin-left: 0;
    }
  }
}



//
// REGISTER
// ---------------------------------------------------------
.registration,
.profile-edit,
.profile {
   margin: @grid-gutter-width *3 auto;
  border: 1px solid @hr-border;
  max-width: 100%;
  padding: @grid-gutter-width * 2;

  // Mobile view
  @media (max-width: @screen-xs-max) {
    padding: @t3-global-padding;
    margin: @t3-global-margin *2 auto;
  }

  legend {
    border-bottom: none;
    color: @headings-color;
    font-family: @headings-font-family;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: @t3-global-margin;

    // Mobile view
    @media (max-width: @screen-xs-max) {
      font-size: 30px;
    }

    + .control-group {
      margin-top: 0;
    }
  }

  .control-label.control-label {
    padding-top: 0;
    min-width: 100%;

    label {
      font-weight: 500;
    }
  }

  .form-group {
    margin-bottom: 0;
    
    +.form-group {
      margin-top: @t3-global-margin;
    }

    .control-label {
      text-align: left;
      padding-top: 0;

      label {
        color: @text-color;
        font-weight: @font-weight-normal;
      }

      .text label {
        font-weight: normal;
        color: @red;
      }
    }
  }

  input.required {
    width: 100%;
  }
  
  fieldset dt {
    margin-right: 5px;
  }

  .form-actions {
    background: none;
    margin-top: @t3-global-margin;
    padding: 0;

    // Mobile view
    @media (max-width: @screen-xs-max) {
      margin-top: @t3-global-margin;
    }

    .btn {
      margin-right: @t3-global-margin/2;
      margin-top: 5px;
    }
  }
}

.registration {
  width: 500px;

  // Star
  #jform_spacer-lbl {
    .red {
      color: @yellow;
    }
  }

  input[type="text"],
  input[type="tel"],
  input[type="url"] {
    width: 100%;
  }

  // Field
  .field-media-wrapper {
    .input-prepend {
      display: flex;

      .field-media-preview {
        align-items: center;
        display: flex;
        justify-content: center;
        width: 50px;
      }

      #jform_com_fields_avatar {
        display: block !important;
      }
    }
  }

  // Caledar
  .field-calendar {
    .input-append {
      display: flex;
    }
  }

  .controls {
    fieldset {
      padding-top: 0;
    }
  }

  .input-append {
    display: flex;
    max-width: 500px;

    // Mobile view
    @media (max-width: @screen-xs-min){
      display: block;
    }

    .media-preview {
      background: @gray-lighter;
      border: 1px solid @hr-border;
      line-height: 49px;
      width: @input-height-base;

      // Mobile view
      @media (max-width: @screen-xs-min){
        display: inline-block;
        float: left;
      }
    }

    #jform_com_fields_avatar {
      display: block !important;
      background: @gray-lighter;
      width: 170px;

      // Mobile view
      @media (max-width: @screen-xs-min){
        width: 170px;
        margin-bottom: @t3-global-margin / 2;
      }
    }

    .btn {
      background: @gray-lightest;
      border: 1px solid @hr-border;
      color: @gray;
      display: inline-block;
      height: @input-height-base;
      line-height: @input-height-base;
      padding: 0 @grid-gutter-width/2;
      position: static;

      &.modal {
        width: 150px;
      }

      &:hover {
        background: @gray-lighter;
      }
    }
  }
}

.form-register {
  fieldset {
    padding: 0 0 10px;
  }

  p {
    margin: 0 0 5px;
  }

  p.form-des {
    margin: 15px 0;
  }

  label {
    display: block;
    float: left;
    font-weight: bold;
    text-align: right;
    width: 130px;
  }

  .input,
  .inputbox {
    margin-left: 10px;
    width: 200px;
  }

  .btn,
  .button {
    margin-left: 140px;
  }

}

.registration fieldset dt {
  margin-right: 5px;
}

.admintable textarea {
  max-width: 90% !important;
  resize: none;
}



//
// MAILTO WINDOWS
// ---------------------------------------------------------
.view-mailto {
  .window-mainbody {
    background-color: @white;
  }
}

.com_mailto {
  body {
    padding: @t3-global-padding / 2;
  }

  .t3-mainbody {
    padding-top: 0;
    padding-bottom: 0;
  }

  .t3-content {
    width: auto;
  }
}

#mailto-window {
  background: #fff;
  margin: 0;
  padding: 0;

   h2 {
      margin-top: 0;
      margin-bottom: @t3-global-margin;
      font-size: 24px;
    }
    
    .mailto-close {
      font-size: 16px;

      &:hover {
        color: @brand-primary;
        border: none;
      }

      .fa {
        color: @text-color;

        &:hover {
          color: @brand-primary;
        }
      }
    }
}

#mailtoForm {
  .formelm {
    overflow: hidden;
    padding: 5px 0;
    vertical-align: middle;
  }
  
  .formelm label {
    display: inline-block;
    float: left;
    font-weight: bold;
    vertical-align: middle;
    width: 100px;
  }
  
  p {
    margin-top: 20px;
  }
  
  .input,
  .inputbox {
    width: 65%;
  }
  
  .btn,
  .button,
  button {
    margin-right: 5px;
  }

  .control-group {
    margin-bottom: @t3-global-margin /2;
  }
}



//
// USERS
// ---------------------------------------------------------
.user-details {
  padding: 10px 0;

  p {
    margin: 0 0 5px;
  }
  
  label {
    display: block;
    float: left;
    font-weight: bold;
    text-align: right;
    width: 130px;
  }
  
  .input,
  .inputbox {
    margin-left: 10px;
    width: 200px;
  }
  
  .btn,
  button {
    margin-left: 140px;
  }
  
  .paramlist {
    .paramlist_key {
      padding: 0 0 5px;
      width: 130px;
    }
    
    .paramlist_value {
      padding: 0 0 5px;
    }
  }
  
  .user_name span {
    font-weight: bold;
    padding-left: 10px;
  }
}


// Reset & Remind
// --------------
.reset,
.remind {
  border: 1px solid @hr-border;
  margin: auto;
  max-width: 650px;
  padding: @grid-gutter-width * 2;

  // Mobile view
  @media (max-width: @screen-xs-max) {
    padding: @t3-global-padding;
  }

  .control-group {
    .control-label {
      label {
        font-weight: 500;
      }
    }
  }

  .form-group {
    > div {
      padding: 0;
    }
  }
}

.reset .form-validate p,
.remind .form-validate p {
  background: @gray-lighter;
  border-radius: @border-radius-base;
  border: 1px solid @t3-border-color;
  margin-bottom: @t3-global-margin;
  padding: (@t3-global-padding / 2) @t3-global-padding;
}

.reset .form-validate fieldset dl,
.remind .form-validate fieldset dl {
  margin: 0;
}

.reset .form-validate fieldset dt,
.remind .form-validate fieldset dt {
  margin: 4px 0 0 0;
}

#terms_terms-lbl,
#privacyconsent_privacy-lbl,
#consentbox-lbl ,
#profile_tos-lbl {
  a.modal {
    &:hover, &:focus, &:active {
      color: @brand-primary;
    }
  }
}

#jform_terms_terms-lbl,
#jform_privacyconsent_privacy-lbl,
#jform_consentbox-lbl ,
#jform_profile_tos-lbl {
  a.modal {
    display: inline;
    position: relative;

    &:hover, &:focus, &:active {
      color: @brand-primary;
    }
  }
}

#consentbox,
#jform_terms_terms,
#jform_privacyconsent_privacy,
#jform_consentbox,
#jform_profile_tos {
  input[type="radio"],
  input[type="checkbox"] {
    position: relative;
    margin: 0;
    margin-right: 5px;
    width: auto;
    display: inline;
  }

  label {
    margin-right: @t3-global-margin / 2;
    padding: 0;
    display: inline;
  }
}

// Star wrong position
#jform_terms_terms-lbl,
#jform_privacyconsent_privacy-lbl,
#jform_consentbox-lbl {
  .star {
    vertical-align: top;
    width: 10px;
  }
}

.form-horizontal fieldset {
  .control-group {
    .control-label {
      display: block;
      float: none;
      text-align: left;
    }

    .controls {
      margin-left: 0;
    }
  }

  + fieldset {
    margin-top: @grid-gutter-width / 2;

    // Mobile view
    @media (max-width: @screen-xs-max) {
      margin-top: @grid-gutter-width / 3;
    }
  }
}


// Profile Edit
.profile-edit {
  @media screen and (min-width: @screen-md-min) {
    width: 800px;
  }

  // Field Edit Prodile
  fieldset {
    .col-md-6 {
      > .form-group {
        margin: 0 0 @t3-global-margin;
        padding: 0;

        input[type="text"],
        input[type="password"],
        input[type="email"],
        select {
          width: 100%;
        }
      }
    }

    + fieldset {
      margin-top: @t3-global-margin;
    }
  }

  .form-horizontal {
    .radio {
      min-height: 0;
    }
  }

  #jform_actionlogs_actionlogsExtensions {
    padding: 0 @t3-global-padding;
  }

  // Help reset
  #helpsite-refresh {
    background: @btn-default-bg;
    border: 1px solid @btn-default-border;
    color: @btn-default-color;
    margin-top: @t3-global-margin;

    &:hover,
    &:focus,
    &:active {
      background: darken(@btn-default-bg,10%);
    }

    @media (max-width: @screen-xs-max){
      display: flex;
      justify-content: center;
      text-align: center;
      width: 115px;
    }
  }

  .field-params {
    >.form-group {
      display: flex;
      flex-wrap: wrap;

      >div {
        width: 48%;

        @media (max-width: @screen-xs-max){
          width: 100%;
        }

        .chzn-container {
          @media (min-width: @screen-sm-max) and (min-width: @screen-lg-min){
            width: 290px !important;
          }
        }
      }

      @media (max-width: @screen-xs-max){
        .controls {
          display: flex;
          flex-direction: column;
        }
      }
    }
  }

  // Field
  .field-fields-0 {
    >.form-group {
      >div {
        width: 100%;
      }

      .input-append {
        display: flex;
        max-width: 500px;

        // Mobile view
        @media (max-width: @screen-xs-min){
          display: block;
        }

        .media-preview {
          background: @gray-lightest;
          border: 1px solid @hr-border;
          line-height: 49px;
          width: @input-height-base;

          // Mobile view
          @media (max-width: @screen-xs-min){
            display: inline-block;
            float: left;
          }
        }

        #jform_com_fields_avatar {
          display: block !important;
          background: @gray-lightest;

          // Mobile view
          @media (max-width: @screen-xs-min){
            margin-bottom: @t3-global-margin / 2;
            width: 170px;
          }
        }

        .btn {
          background: @gray-lighter;
          border: 1px solid @hr-border;
          color: @gray;
          display: inline-block;
          height: @input-height-base;
          line-height: @input-height-base;
          padding: 0 @grid-gutter-width/2;
          position: static;

          &.modal {
            width: 150px;
          }

          &:hover {
            background: @gray-light;
          }
        }
      }
    }
  }
}

// Profile
.profile {
  @media screen and (min-width: @screen-md-min) {
    width: 600px;
  }

  .dl-horizontal dd,
  .dl-horizontal dt {
    border: 0;
    margin-bottom: 5px;
  }

  #users-profile-custom {
    margin-top: @t3-global-margin*2;
  }
}

.form-register {

  fieldset {
    padding: 0 0 10px;
  }

  p {
    margin: 0 0 5px;
  }

  p.form-des {
    margin: 15px 0;
  }

  label {
    display: block;
    float: left;
    font-weight: bold;
    text-align: right;
    width: 130px;
  }

  .input,
  .inputbox {
    margin-left: 10px;
    width: 200px;
  }

  .btn,
  .button {
    margin-left: 140px;
  }

}

.admintable textarea {
  max-width: 90% !important;
  resize: none;
}


//
// SEARCH
// ---------------------------------------------------------
.search {
  margin: auto;
  max-width: 100%;
  padding: @grid-gutter-width * 2 0;
  width: 700px;
  .clearfix();

  // Mobile view
  @media (max-width: @screen-xs-max){
    padding: @t3-global-padding 0;
  }

  // Header
  .page-title {
    border: none;
    color: @headings-color;
    font-size: 45px;
    margin-bottom: @t3-global-margin*2;
    text-align: center;

    // Mobile view
    @media (max-width: @screen-xs-max) {
      font-size: @font-size-h1;
      margin-bottom: @t3-global-margin;
    }
  }

  // Search Form
  #searchForm {
    margin-bottom: @t3-global-margin;
  }
}

.searchintro {
  color: @headings-color;
  font-size: @font-size-h4;
  text-align: center;

  // Number result
  span.badge {
    background: @brand-primary;
    border-radius: 15px;
    font-size: @font-size-h4;
    padding: 5px 10px;
  }
}


// Form Search 
// -----------
#searchForm {
  .clearfix();

  .btn-toolbar {
    margin-bottom: @t3-global-margin/2;
  }

  .form-group {
    display: block;
    margin-bottom: @t3-global-margin;
    position: relative;
    text-align: center;

    // Mobile view
    @media (max-width: @screen-xs-max) {
      text-align: left;
    }

    #search-searchword {
      float: none;
      margin-bottom: @t3-global-margin;

      &:focus, &:active {
        box-shadow: none;
      }
    }

    // Button Search
    .input-group-btn {
      position: absolute;
      right: 0;
      top: 0;
      width: auto;
      z-index: 2;

      .btn {
        border-radius: @border-radius-base;
        height: @input-height-base;
        padding: 0;
        width: @input-height-base;
      }
    }
  }

  fieldset {
    margin: @t3-global-margin 0 0 0;
    text-align: center;

    // Mobile view
    @media (max-width: @screen-xs-max) {
      text-align: left;
    }
  }

  // Title
  legend {
    border: none;
    color: @headings-color;
    font-size: @font-size-base;
    font-weight: 600;
    margin-bottom: @t3-global-margin / 2;
    text-align: center;

    // Mobile view
    @media (max-width: @screen-xs-max){
      text-align: left;
    }
  }

  label.ordering {
    color: @headings-color;
    font-size: @font-size-base;
    font-weight: 600;
  }

  .radio-inline,
  .checkbox-inline {
  }

  select {
    display: inline-block;
    margin-left: 5px;
    min-width: 60px;
    padding-left: 5px;
    width: auto;
  }

  // Form limit
  .form-limit {
    margin-top: @line-height-computed;
    text-align: center;

    // Mobile view
    @media (max-width: @screen-xs-max) {
      text-align: left;
    }

    .counter {
      margin-top: @t3-global-padding / 2;
    }
  }

  .counter {
    border: none;
    margin-top: @t3-global-margin/2;

    @media (min-width: @screen-sm-min) {
      float: right;
      margin-top: @line-height-computed;
    }
  }

  .phrases-box input[type="radio"],
  .only input[type="checkbox"] {
    vertical-align: top;
  }

  .chzn-container,
  label[for=limit] {
    display: inline-block;
    margin: 0 10px;
  }

  #ordering_chzn {
    display: inline-block;
    float: none;
    margin-left: 5px;
  }
}

#search-form {  
  ul#finder-filter-select-list {
    margin-left: 0;
    padding-left: 0;

    li {
      list-style: none;
      padding: (@t3-global-padding / 2) 0;
      
      label {
        width: 150px;
      }
    }
  }

  .word {
    .form-group {
      display: block;
      margin-bottom: @t3-global-margin;
    }
  }

  .awesomplete {    
    ul {
      text-align: left;
    }
  }
}

#search-results {
  #search-result-list {
    text-align: left;
  }
}

// Block level forms elements on Mobile
@media screen and (max-width: @screen-xs-max) {
  #searchForm {
    .radio-inline,
    .checkbox-inline {
      display: block;
      width: 100%;
      margin-left: 0;
    }
  }
}


// Search Result
// -------------
.search-results {
  border-top: 2px solid @t3-border-color;
  margin-left: 0;
  margin-top: @t3-global-margin;
  padding-left: 0;
  text-align: center;

  // Title
  .result-title {
    color: @headings-color;
    font-size: @font-size-h4;
    font-weight: 600;
    margin-top: @t3-global-margin;

    // Mobile view
    @media (max-width: @screen-xs-max) {
      font-size: @t3-font-size-big;
    }

    a {
      color: @headings-color;
    }
  }

  // Category
  .result-category {
    font-size: @t3-font-size-smaller;
    color: @gray-light;
  }

  // Result Text
  .result-text {
    margin-top: 5px;
    margin-bottom: 5px;
  }

  // Result URL
  .result-url {
    color: @gray;
    margin-top: @line-height-computed;
  }

  // Date
  .result-created {
    font-size: @t3-font-size-smaller;
    color: @gray-light;
  }

  // Higlight
  .highlight {
  }
}



//
// SMART SEARCH
// ---------------------------------------------------------
div.finder {
  margin-bottom: @line-height-computed;
  margin: auto;
  max-width: 100%;
  padding: @grid-gutter-width * 2 0;
  width: 700px;

  @media (max-width: @screen-xs-max){
    padding: @t3-global-padding 0;
  }

  > h1 {
    border: none;
    color: @text-color;
    font-size: 56px;
    margin-bottom: @t3-global-margin*1.5;
    text-align: center;

    @media (max-width: @screen-xs) {    
      font-size: 32px;
    }
  }

  #search-form {
    text-align: center;

    .form-group {
      > label {
        color: @headings-color;
        display: block;
        font-family: @headings-font-family;
        font-size: 45px;
        font-weight: 300;
        letter-spacing: -1px;
        margin-bottom: @t3-global-margin/2;

        // Mobile view
        @media (max-width: @screen-xs-max) {
          font-size: @font-size-h2;
        }
      }

      input.inputbox {
        width: 100%;
      }

      // Remove disable button search
      .btn.disabled {
        cursor: pointer;
        pointer-events: auto;
      }
    }

    #smartsearch-btn {
      @media (max-width: @screen-xs-max) {
        margin-bottom: @t3-global-margin/2;
        vertical-align: top;
      }
    }

    .input-group {
      display: flex;
      flex-wrap: wrap;

      .btn-primary + .btn {
        border-color: @btn-default-border;
        background-color: @btn-default-bg;
        color: @btn-default-color;
      }
    }

    .js-finder-advanced {
      margin-top: @t3-global-margin;
      overflow: hidden;
    }
  }

  #advancedSearch {
  }

  .form-inline .input-group {
    .awesomplete {
      flex: 1;
      input { 
        width: 100%;
      }
    }
  }

  #finder-filter-window {

    // Filter By Date
    #finder-filter-select-dates {
      display: flex;
      flex-wrap: wrap;
      gap: @t3-global-margin/2;
      margin-bottom: @t3-global-margin*2;

      .filter-date {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        gap: @t3-global-margin;
        width: 100%;
        max-width: 100%;

        @media screen and (min-width: 1200px) {
          width: 40%;
          max-width: 40%;
        }
 
        label {
          flex-basis: 100%;
        }

        select.inputbox {
          margin: 0;
          width: 100% !important;
	        max-width: unset;
        }

        .field-calendar {
          width: 100%;
          .form-control {
            flex: 1;
            max-width: unset;
            border: 1px solid @t3-border-color;
          }
        }

        .chzn-container {
          margin-bottom: 6px;
        }

        br {
          display: none;
        }
      }

    }

    // Filter By Type 
    .filter-branch {
      display: flex;
      flex-wrap: wrap;
      gap: @t3-global-margin;
      width: 100%;

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

      .control-label {
        padding: 0;
        margin-bottom: @t3-global-margin/2;
      }

      .controls {
        margin-left: 0;

        select {
          width: 100%;
        }
      }
    }
  }

  label {
    font-weight: 600;

    &.me-2 {
      margin-bottom: 10px;
    }
  }

  .filter-branch {
    .controls {
      text-align: left;
    }
  }

  // The Form
  #finder-search {
  }

  // The result
  #search-results {
    text-align: center;

    #search-query-explained{
    }

    .search-pagination {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: @t3-global-margin * 2;
    }
  }

  .js-calendar {
    .buttons-wrapper {
      .btn {
        margin-right: @t3-global-margin / 4;

        &:hover {
          background: @gray-lighter;
        }
      }
    }
  }
}

.autocomplete-suggestions {
  max-width: 200px;
}

#searchForm {
  .phrases-box input[type="radio"] {
    vertical-align: top;
    margin-top: 6px;
  }
}



//
// CONTACT
// ---------------------------------------------------------
.contact {
  .page-header {
    border: none;
    display: none;

    h2 {
      margin: 0;
    }
  }

  h2 {
    color: @brand-secondary;
    font-size: 26px;
    margin-bottom: @grid-gutter-width / 2;
    margin-top: 0;
    position: relative;
  }

  input[type="email"],
  input[type="text"] {
    width: 100%;
  }

  textarea {
    box-shadow: none;
  }

  .thumbnail {
    @media (max-width: @screen-sm) {    
      width: 100%;
    }
  }

  .dl-horizontal {
    margin-bottom: 0;

    > dt {
      color: @gray;
      display: block;
      float: none;
      font-size: @font-size-h6;
      font-weight: 400;
      text-align: left;
      text-transform: uppercase;
    }

    > dd {       
      margin-left: 0;
      margin-bottom: @grid-gutter-width /2 ;

      a {
        border-bottom: 1px solid @brand-primary;
      }

      .fa {
        margin-right: @t3-global-margin / 5;
        width: 15px;
      }
    }

    &.contact-address {
      >dt {
        display: none;
      }
    }
  }

  .contact-miscinfo {
    dt {
      display: none;
    }
  }

  // Avatar
  img {
    max-width: 100%;
  }

  // Control form group
  .form-group {
    &.cus-field {
      margin-bottom: 0;
    }
  }

  // Label
  label {
    font-weight: @font-weight-normal;
    padding-bottom: @t3-global-padding / 4;
    position: relative;

    &.invalid {
      background: transparent;
      color: @red;
    }
  }

  // Link
  .contact-links ul li {
    border: none;
    display: inline-block;
    margin: 0 2px 4px 2px;

    a {
      background: @hr-border;
      border-radius: @border-radius-base;
      color: @white;
      display: inline-block;
      font-size: @font-size-h6;
      font-weight: @font-weight-normal;
      height: @grid-gutter-width;
      line-height: @grid-gutter-width;
      padding: 0;
      text-align: center;
      text-transform: uppercase;
      width: @grid-gutter-width;

      &.google-plus{
        background: @googleplus;
        border-color: @googleplus;
      }

      &.facebook {
        background: @facebook;
        border-color: @facebook;
      }

      &.twitter {
        background: @twitter;
        border-color: @twitter;
      }

      &.vimeo {
        background: @vimeo;
        border-color: @vimeo;
      }

      &.youtube {
        background: @youtube;
        border-color: @youtube;
      }

      &:hover,&:focus,&:active {
        background: darken(@hr-border, 5%);

        &.google-plus {
          background: darken(@googleplus, 10%);
          border-color: darken(@googleplus, 10%);
        }

        &.facebook {
          background: darken(@facebook, 10%);
          border-color: darken(@facebook, 10%);
        }

        &.twitter {
          background: darken(@twitter, 10%);
          border-color: darken(@twitter, 10%);
        }

        &.vimeo {
          background: darken(@vimeo, 10%);
          border-color: darken(@vimeo, 10%);
        }

        &.youtube {
          background: darken(@youtube, 10%);
          border-color: darken(@youtube, 10%);
        }
      }
    }
  }

  // Check Box
  div.checkbox {
    margin-bottom: 0;
    padding-top: 0 !important;

    input {
      margin-left: 0;
      margin-top: 6px;
    }
  }

  .control-btn {
    // Mobile view
    @media (max-width: @screen-xs-max) {
      margin-top: @t3-global-margin;
    }
  }

  .thumbnail {
    border: 0;
    padding: 0;

    img {
      border: 3px solid @t3-border-color;
      padding: 0;
    }
  }

  // Custom Field 
  .contact-fields.dl-horizontal {
    > dt {
      display: block;
      margin-right: @t3-global-margin / 2;
      width: auto;
    }
  }

  .form-horizontal fieldset + fieldset {
    margin-top: 0;
  }

  // Contact Info
  .contact-profile {
    label {
      margin: 4px 0 0 0;
      padding: 0;
      font-weight: 600;
    }

    dt {
      display: inline-block;
      float: left;
      margin-right: @t3-global-margin / 2;
      width: auto;
    }

    dd {
      display: block;
      margin-bottom: @t3-global-margin / 2;
    }
  }
}

.contact-form {
  legend {
    border: 0;
    color: @text-color;
    font-size: @font-size-base;
    margin: 0 0 @t3-global-margin/2;
    padding: 0;
  }

  .form-group {
    margin: 0 -@t3-global-margin @grid-gutter-width/2;

    // Mobile view
    @media (max-width: @screen-xs-max) {
      margin: 0 0 @grid-gutter-width/2;
    }

    [class^="col-"] {
      padding: 0 @t3-global-padding;

      // Mobile view
      @media (max-width: @screen-xs-max) {
        padding: 0;
      }
    }

    label {
      padding-top: 0;
    }

    .contact-name {
      // Mobile view
      @media (max-width: @screen-xs-max) {
        margin-bottom: @grid-gutter-width/2;
      }
    }
  }

  // Fixed for Input and Text Area not display properly
  #jform_contact_emailmsg {
    width: 100%;
  }

  #jform_contact_message {
    box-shadow: none;
    height: auto;
    width: 100%;

    &.invalid {
      background: transparent;
    }
  }
  // Fixed for Capcha on Small Screen
  @media (max-width: @screen-sm) {
    // The capcha image
    #recaptcha_image {
      width: 220px;
    }
    #recaptcha_image img {
      max-width: 220px;
    }
    #recaptcha_response_field {
      max-width: 220px;
    }
  }
}

.map-container {
  max-width: 100%;
  margin: 0 !important;
}

// Plain Style
.plain-style {
  .contact-title {
    border-bottom: 1px solid @hr-border;

    h2 {
      margin: 0;
      padding: @t3-global-padding/2 @grid-gutter-width;

      // Mobile view
      @media (max-width: @screen-xs-max) {
        padding: @t3-global-padding/2;
      }
    }
  }

  // Map
  .group-item {
    position: relative;
    padding: 150px 0;

    // Mobile view
      @media (max-width: @screen-xs-max){
        padding: 0;
      }

    .wrap-map {
      height: 100%;
      left: 0;
      max-width: 100%;
      position: absolute;
      top: 0;

      // Mobile view
      @media (max-width: @screen-xs-max){
        margin-bottom: @grid-gutter-width;
        position: static;
        width: 100%;
      }

      .map-container {
        width: 1920px !important;
        min-height: 100%;

        // Mobile view
        @media (max-width: @screen-xs-max){
          max-height: 400px !important;
          min-height: 400px !important;
        }
      }
    }

    .wrap-content {
      background: @brand-secondary;
      color: @white;
      max-width: 450px;
      padding: @grid-gutter-width;
      position: relative;
      z-index: 1000;

      .title {
        h3 {
          color: @white;
          font-size: @font-size-h2;
          margin-bottom: @t3-global-margin;
          margin-top: 0;
        }
      }
    }
  }

  .contact-inner {
    margin: @grid-gutter-width * 2 auto;

    // Mobile view
    @media (max-width: @screen-xs-max){
      margin: @grid-gutter-width auto;
    }

    // Form contact
    .contact-box {
      border: 1px solid @hr-border;

      .contact-body {
        padding: @grid-gutter-width;

        // Mobile view
        @media (max-width: @screen-xs-max) {
          padding: @t3-global-padding/2;
        }
      }
    }
  }

  .contact-info {
    border: 1px solid @hr-border;

    +div {
      margin-top: @grid-gutter-width;
    }
    
    .box-content {
      padding: @grid-gutter-width;

      // Mobile view
      @media (max-width: @screen-xs-max) {
        padding: @t3-global-padding/2;
      }
    }
  }

  .contact-link {
    border: 1px solid @hr-border;

    .contact-links {
      padding: @grid-gutter-width;

      // Mobile view
      @media (max-width: @screen-xs-max) {
        padding: @t3-global-padding/2;
      }
    }
  }

  .contact-information {
    // Mobile view
    @media (max-width: @screen-xs-max) {
      margin-top: @grid-gutter-width;
    }
  }
}

// Slide Style
#slide-contact {
  height: auto !important;
  margin: @grid-gutter-width*2 auto;
  max-width: 1296px;

  .panel {
    box-shadow: none;
    //border: 0;

    + .panel {
      margin-top: @t3-global-margin/2;
    }

    // Panel Heading
    .panel-heading {
      background-color: transparent;
      color: @headings-color;
      margin-bottom: -1px;
      padding: @t3-global-padding*0.75 @t3-global-padding;

      // Title
      .panel-title {
        a {
          color: @headings-color;
          font-weight: 600;
          font-size: 14px;
        }
      }

      .accordion-toggle {
        display: inline-block;
        font-family: @font-family-sans-serif;
        position: relative;
        text-decoration: none;
        text-transform: uppercase;
      }
    }

    // Panel Body
    .panel-body {
      border-top: 1px solid @t3-border-color;
      padding: @t3-global-padding;

      .thumbnail {
        width: 100%;

        img {
          width: 100%;
          border: none;
        }
      }
    }
  }
}

// Tab Style
#myTabTabs {
  background: @white;
  border: 1px solid @hr-border;
  margin: @grid-gutter-width*2 auto 0;
  max-width: 1296px;
  overflow: hidden;

  li {
    margin: 0;
    position: relative;

    // Mobile view
    @media (max-width: @screen-xs-max){
      background: @gray-lighter;
      border-bottom: 1px solid @gray-lightest;
      padding: @t3-global-padding / 3;
      text-align: center;
      width: 100%;

      &:last-child {
        border-bottom: none;
      }
    }

    a {
      .transition(0.4s);
      background: transparent;
      border-radius: 0;
      border: none;
      box-shadow: none;
      color: @headings-color;
      font-size: 18px;
      padding: @t3-global-padding /2;

      // Mobile view
      @media (max-width: @screen-xs-max){
        width: 100%;
      }

      &:hover {
        border: none;
        box-shadow: none;
        color: @brand-primary;
      }
    }

    &.active {
      a {
        color: @brand-primary;
      }
    }
  }
}

#myTabContent {
  background: @white;
  border-top: none;
  border: 1px solid @hr-border;
  display: flex;
  margin: 0 auto @grid-gutter-width*2;
  max-width: 1296px;
  padding: @grid-gutter-width;

  // Mobile view
  @media (max-width: @screen-xs-max){
    padding: @t3-global-padding/2;
  }

  #basic-details {
    width: 100%;
  }

  .tab-pane {
    width: 100%;
  }
}

// The Accordion Title
.contact .accordion-toggle {
  font-weight: bold;
}

// Contact Category
.contact-category {
  // Filter
  .filters {
    border-bottom: 1px solid @t3-border-color;
    margin-bottom: @grid-gutter-width;
    padding-bottom: @grid-gutter-width;

    .btn-group {
      margin: 0;
    }
  }

  // Contact List
  .contact-inner {
    border: 1px solid @t3-border-color;
    margin-bottom: @grid-gutter-width;
    .transition(box-shadow 500ms);
    
    &:hover {
      box-shadow: 0 0 18px rgba(0, 0, 0, 0.1);
    }
  }

  .contact-image {
    img {
      width: 100%;
    }
  }

  .contact-desc {
    color: @gray-light;
    padding: @grid-gutter-width;

    span {
      display: block;
    }

    .contact-position {
      font-size: @font-size-h6;
      text-transform: uppercase;
      margin: @t3-global-margin / 4 0 @t3-global-margin / 2;
    }
  }
}

.contact-category,
.content-category {
  div.pagination {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 100%;

    &::after,
    &::before {
      display: none;
    }

    p {
      margin: 0;
    }
  }
}

// View Agent Detail
.view-agent {
  padding: @grid-gutter-width * 3 0;

  // Mobile view
  @media (max-width: @screen-xs-max) {
    padding: @grid-gutter-width 0;
  }

  // Info
  .contact-info {
    border: 1px solid @t3-border-color;
    padding: @grid-gutter-width;

    // Mobile view
    @media (max-width: @screen-xs-max) {
      margin-bottom: @grid-gutter-width;
    }

    .contact-thumbnail {
      margin: -@grid-gutter-width -@grid-gutter-width @grid-gutter-width -@grid-gutter-width;

      img {
        width: 100%;
      }
    }

    h2 {
      margin-bottom: @t3-global-margin / 2;
    }

    .contact-position {
      font-size: @font-size-h6;
      margin-bottom: @grid-gutter-width / 2;
      text-transform: uppercase;
    }

    .dl-horizontal > dd {
      margin-bottom: @t3-global-margin / 4;
    }

    > .contact-title {
      display: none;
    }

    .contact-links {
      margin-top: @t3-global-margin;
    }

    .contact-form {
      .col-sm-6 {
        width: 100%;

        + .col-sm-6 {
          margin-top: @grid-gutter-width / 2;
        }
      }
    }
  }

  .contact-article {
    > h3 {
      margin-top: 0;
      font-size: @font-size-h2;

      // Mobile view
      @media (max-width: @screen-xs-max) {
        font-size: @font-size-h3;
      }
    }

    .contact-articles {
      border: 1px solid @t3-border-color;

      ul {
        margin: 0;
        padding: 0;

        > li {
          a {
            display: block;
            margin: 0;
            padding: @grid-gutter-width / 2 @grid-gutter-width;

            &:before {
              color: @headings-color;
              content: "\f284";
              font-family: "Ionicons";
              margin-right: @t3-global-margin / 4;
            }
          }

          + li {
            border-top: 1px solid @t3-border-color;
          }
        }
      }
    }
  }
}

//
// ARCHIVED ITEMS
// ---------------------------------------------------------
#archive-items {
  > li {
    line-height: normal;
    margin: 0;
    overflow: visible;
    padding: 0;
  }

  .intro {
    clear: both;
    overflow: hidden;
  }
}



//
// CATEGORY LIST
// ---------------------------------------------------------
.categories-list {
  > .category-item {
    float: none;
    width: 100%;

    .category-inner {
      min-height: auto !important;
    }

    .item-title {
      display: flex;
      align-items: center;

      .btn {
        margin: 0 0 0 auto;
        padding: 0;

        span {
          display: flex;
          align-items: center;
          justify-content: center;
        }
      } 
    }

    .category-item {
      margin: 0 0 3rem;
    }
  }

  .category-item {
    margin-bottom: @line-height-computed;
  }
  
  .category-inner {
    .description-image {
      img {
        width: 100%;
      }
    }
  }

  .category-info {
    border-top: none;
    border: 1px solid @hr-border;
    padding: @grid-gutter-width;
    overflow: hidden;

    .item-title {
      color: @brand-secondary;
      font-size: @font-size-h4;
      font-weight: 500;
      margin-top: 0;

      a {
        color: @brand-secondary;

        &:hover {
          text-decoration: underline;
        }
      }

      span {
        background: @brand-primary;
        border-radius: 50%;
        color: @white;
        float: right;
        font-size: @font-size-h6;
        height: @t3-global-margin;
        line-height: @grid-gutter-width / 2;
        margin-left: @t3-global-margin / 2;
        margin-top: @t3-global-margin/6;
        width: @t3-global-margin;
      }
    }
  }
}

.category-desc {
}


// Category List
// -----------------
.category-item {
  .clearfix();

  .page-header {
    font-size: @font-size-large;
    font-weight: normal;
    line-height: normal;
    margin: 0;
    padding: (@line-height-computed / 2) 5px;
  }

  // Sub Categories
  .category-item {
    margin-bottom: 0;
    margin-left: @grid-gutter-width;

    .page-header {
      font-size: @font-size-base;
    }
  }

}

// Children Category List
// -----------------------
.cat-children {
  h3 {}

  .page-header {
    line-height: normal;
    padding: @t3-global-padding/6 0;
    margin: 0;
    font-size: 16px;
    font-weight: normal;
  }

  >div {
    padding: 0;

    +div {
      margin-top: @t3-global-margin / 2;
      padding: 0;
      border: none;
    }

    h3 {
      border: none;

      &:before {
        color: @gray-light;
        content: "\f07c";
        font-family: FontAwesome;
        margin-right: @t3-global-margin / 8;
      }

      a {
        color: @text-color;
        font-weight: 400;

        &:hover,&:focus,&:active {
          border-bottom: 1px solid @hr-border;
        }
      }
    }
  }
}



//
// NEWS FEEDS
// ---------------------------------------------------------

// Feed categories
// ---------------
.newsfeed-category,
.newsfeed {
  > h2 {
    border-bottom: 1px solid @t3-border-color;
    padding-bottom: @t3-global-padding;
    margin-bottom: @t3-global-margin;
    margin-top: 0;
  }

  .category-desc {
    margin-bottom: @t3-global-margin;
  }
  
  .category {
    li {
      .clearfix();
    }
  }
}


// Feeds item
// ----------
.newsfeed {
  > h2 {
    border-bottom: 1px solid @t3-border-color;
    padding-bottom: @t3-global-padding;
    margin-bottom: @t3-global-margin;
    margin-top: 0;
  }

  .feed-description {
    margin-bottom: @t3-global-margin;
    font-size: @t3-font-size-bigger;
  }
  
  .feed-item-description .feed-description {
    font-size: @font-size-base;
  }
  
  ol li > a {
    font-weight: bold;
    font-size: @t3-font-size-bigger;
  }
}



// 
// CONTENT NAVIGATIONS
// ---------------------------------------------------------

//  Pagebreak Nav
// --------------
.article-content .pagination {

  ul {
    display: block;
    list-style: none;
    overflow: hidden;
    padding: 0;

    li {
      border: 1px solid @t3-border-color;
      float: left;
      line-height: normal;
      margin-right: (@t3-global-margin / 2);
      padding: (@t3-global-padding / 2) @t3-global-padding;

      // Hover state
      &:hover {
      }
    }

    li a {
      background-color: transparent;
      border: 0;
      line-height: normal;
      padding: 0;
      text-decoration: none;

      // Link States
      &:hover, &:focus, &:active {
      }
    }
  }
  
}

.pagenavcounter {
  margin: 0 0 @t3-global-margin;
  font-weight: bold;
}


// PageBreak Index
// ---------------
#article-index,
.article-index {
  border-radius: @border-radius-base;
  border: 1px solid @t3-border-color;
  float: right;
  margin: 0 0 @t3-global-margin @t3-global-margin;
  padding: 10px;
  width: 25%;

  @media (max-width: @screen-sm-max){
    width: 100%;
    margin: 0 0 @t3-global-margin 0;
  }
  
  ul {
    border: 0;
    list-style: none;
    margin: 0;
    padding: 0;

    > li {
      border: 0;
      margin-top: 2px;
    }

    // Link
    > li > a {
      border: 0;
      padding: 5px;
      border-radius: @nav-pills-border-radius;

      // Link states
      &:hover, &:active, &:focus {
      }
    }

    // Active
    > .active > a {
      border: 0;
      background: @nav-pills-active-link-hover-bg;
      color: @nav-pills-active-link-hover-color;

      // Link states
      &:hover, &:active, &:focus {
        border: 0;
        background: @nav-pills-active-link-hover-bg;
        color: @nav-pills-active-link-hover-color;
      }
    }

  }
}


// Articles Navigation
// -------------------
.pagenav {
  margin: 0;
  padding: 0;
  list-style: none;

  > li {
    margin: 0;
    padding: 0;
    float: left;
  }
  
  > li.pagenav-prev,
  > li.previous {
    margin-right: 10px;
  }
  
  > li.pagenav-next,
  > li.next {
    float: right;
  }

  li > a {
    border-radius: @border-radius-base;
    border: 1px solid @pagination-border;
    line-height: normal;
    padding: (@t3-global-padding / 2) @t3-global-padding;

    &:hover, &:active, &:focus {
      background-color: @pagination-hover-bg;
    }
  }

}


// Items More
// -----------
.items-more {
  h3 {
    margin: 0 0 @t3-global-margin;
    font-weight: 400;
  }

  .nav {
    padding-bottom: @t3-global-padding;

    > li {
      + li {
        margin-top: @t3-global-margin / 2;
      }

      a {
        color: @text-color;
        padding: 0;

        &:before {
          color: @text-color;
          content: "\f0da";
          font-family: FontAwesome;
          font-size: @font-size-h6;
          margin-right: @t3-global-margin/6;
        }

        &:hover,
        &:focus,
        &:active {
          color: @brand-primary;
          background: transparent;

          &:before {
            color: @brand-primary;
          }
        }
      }
    }

    &.nav-stacked {
      li {
        a {
          &:hover {
            //border: 1px solid transparent;
          }
        }
      }
    }
  }
}


// Back Buttons
// -----------
.back_button a {
  display: block;
  margin: 10px 0;

  // Link states
  &:hover, &:focus, &:active {
  }
}


// Form Control
// ------------
.filters {
  margin: (@t3-global-margin / 2) 0;
}

.display-limit {
  margin: (@t3-global-margin / 2) 0 5px;
}

.filters .filter-search {
  
}

.filters .display-limit {
  float: right;
  text-align: right;
}




// ---------------------------------------------------------
// MESSAGES & NOTIFICATIONS
// ---------------------------------------------------------

//
// MESSAGES
// ---------------------------------------------------------
#system-message {
  dt {
    font-weight: bold;
  }
  
  dd {
    font-weight: bold;
  }

  dd.message ul,
  dd.error ul,
  dd.notice ul {
    margin: 0;
    padding: 0;
  }
  
  dd.message ul li,
  dd.error ul li,
  dd.notice ul li {
    background: none;
    margin: 0;
    padding: 5px;
  }
}


// System Standard Messages
// ------------------------
#system-message dd.message ul {
}

// System Error Messages
// ---------------------
.error {
}

.error h2 {
}

#system-message dd.error ul {
}


// System Notice Messages
// ----------------------
#system-message dd.notice ul {
}

.alert.alert-message,
.alert.alert-success {
  .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
}

.alert.alert-info,
.alert.alert-notice {
  .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
}

.alert.alert-error,
.alert.danger,
.alert.alert-error {
  .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
}

.alert.warning,
.alert.alert-warning {
  .alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text);
}


//
// Tooltips
// ---------------------------------------------------------
.tip-wrap {
  background: #fff6df;
  border: 1px solid #fb3;
  border-radius: 5px;
  .box-shadow (none);
  max-width: 300px;
  z-index: 999;
}

.tip-title {
  border-bottom: 1px solid #fb3;
  font-weight: bold;
  padding: 5px 10px;
}

.tip-text {
  font-size: @font-size-base;
  margin: 0;
  padding: 5px 10px;
}

.hasTip img {
  border: none;
  margin: 0 5px 0 0;
}



// ---------------------------------------------------------
// MISC
// ---------------------------------------------------------

// Language 
// --------
.languageswitcherload {
  @media (min-width: @screen-sm) {
    float: right;
    width: 100%;
    .mod-languages {
      text-align: right;
    }
  }
}

// Calendar 
// --------
div.calendar {
  width: 187px;
}

// Edit 
// --------
.edit.item-page {
  #adminForm {
    > .btn-toolbar {
      margin-bottom: @grid-gutter-width;
    }

    ul.nav-tabs {
      margin: 0 0 @grid-gutter-width;
      border-bottom: 1px solid @t3-border-color;

      li {
        &.active {
          a {
            background: @white;
          }
        }
      }

      > li > a {
        padding: 10px 15px;
        margin-right: 2px;
        border: 1px solid @t3-border-color;
        border-bottom: 0;
      }
    }

    > fieldset {
      margin-bottom: @grid-gutter-width;
    }
  }

  .js-stools {
    .js-stools-container-filters {
      >div {
        .chzn-container {
          width: 220px !important;
        }
      }
    }
  }

  .calendar-container {
    .time {
      >td {
        .time {
          padding: 0;
        }
      }
    }

    .buttons-wrapper {
      .js-btn {
        padding: @t3-global-padding /2 @grid-gutter-width/2;
        margin-right: 6px;
      }
    }
  }

  a.modal.btn, 
  .com_config form a.modal.btn {
    &:hover {
      background: @brand-primary;
    }
  }
}

.chzn-container-multi .chzn-choices li.search-field input[type="text"] {
  height: auto;
}

.choices__button_joomla {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  opacity: .5;
  padding: 0 10px;
  position: relative;
  text-indent: -9999px;

  &::before {
    bottom: 0;
    content: "×";
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    text-align: center;
    text-indent: 0;
    top: 0;
  }
}

// ---------------------------------------------------------
// JOOMLA 3.0 EXTENDING BOOTSTRAP
// ---------------------------------------------------------

// iFrames
.iframe-bordered {
  border: 1px solid @table-border-color;
}

// Fixed for Chosen
.chzn-container {
  display: block;
}

.chzn-container-single .chzn-single,
.chzn-container-multi .chzn-choices .search-field input,
.chzn-container-single .chzn-search input {
  height: 26px;
}

.chzn-container-single .chzn-drop,
.chzn-container .chzn-drop {
  .box-sizing (content-box) !important;
}

// Input Prepend Chosen Select Boxes
.input-prepend .chzn-container-single .chzn-single {
  border-color: @input-border;
  height: 26px;
  border-radius: 0 3px 3px 0;
  .box-shadow(none);
}

.input-prepend .chzn-container-active .chzn-single-with-drop {
  border-radius: 0 3px 0 0;
}

.input-prepend .chzn-container-single .chzn-drop{
  border-color: @input-border;
}

// Chosen proper wrapping in Bootstrap btn-group
.btn-group .chzn-results {
  white-space: normal;
}


#imageModal_jform_com_fields_avatar,
#modal-consentbox {
  top: 5%;
  display: block;
  z-index: 1050;
  left: 50%;
  width: 80%;
  position: fixed;
  margin-left: -40%;
  background: #fff;
  border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
  box-shadow: 0 3px 7px rgba(0,0,0,0.3);
    -webkit-box-shadow: 0 3px 7px rgba(0,0,0,0.3);
    -moz-box-shadow: 0 3px 7px rgba(0,0,0,0.3);
  background-clip: padding-box;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
  outline: none;
  padding: 0 !important;
  transform: none;
  bottom: auto;

  &.in {
    opacity: 1;
    display: block !important;
  }

  .modal-header {
    padding: 9px 15px;
    border-bottom: 1px solid #eee;
  }

  .modal-body {
    overflow-y: auto;
    width: 98%;
    position: relative;
    padding: 1%;
  }

  .close {
    position: relative;
    z-index: 1000;
  }
}

#imageModal_jform_com_fields_avatar,
#modal-jform_consentbox,
#modal-consentbox {
  .modal-body {
    height: 75vh;
  }

  .iframe {
    height: 98%;
  }
}

#imageModal_jform_com_fields_avatar,
#modal-consentbox,
#modal-jform_consentbox {
  .modal-header {
    h3 {
      margin: 0;
      font-size: 26px;
    }
  }
}

#jform_privacyconsent_privacy-lbl,
#jform_consentbox-lbl ,
#jform_terms_terms-lbl,
#jform_profile_tos-lbl {
  a.modal {
    background: transparent;
    border: none;
    box-shadow: none;
    display: inline-block;
    left: 0;
    margin: 0;
    position: relative;
    width: auto;
  }
}

#jform_terms_terms,
#jform_privacyconsent_privacy,
#jform_consentbox,
#jform_profile_tos {
  input[type="radio"],
  input[type="checkbox"] {
    margin-right: 5px;
    margin: 0;
    position: relative;
    width: auto;
  }

  label {
    margin-right: @t3-global-margin / 2;
    padding: 0;
  }
}

#sbox-window {
  #sbox-content {
    iframe {
      max-width: 100%;
      max-height: 100%;
    }
  }
}

.btn-close {
  padding: 0;
  border: 0;
  line-height: normal;
  background: none;

  &:before {
    content: "x";
    border: 0;
    border-radius: .25rem;
    box-sizing: content-box;
    color: #000;
    height: 1em;
    opacity: .5;
    padding: .25em;
    width: 1em;
    font-size: 18px;
  }
}

// Page tags
.tag-category {
  .btn-toolbar {
    .btn-group {
      display: flex;
      margin-bottom: @t3-global-margin / 2;

      .btn {
        margin-left: 1px;

        &:hover {
          color: @white;
          background: @gray-light;
        }
      }
    }
  }

  #filter-search {
    box-shadow: none;
    float: left;
    border-radius: 0;
  }

  .filters {
    margin-top: 0;
    margin-bottom: @grid-gutter-width;

    .btn {
      background: @btn-default-bg;
      border-color: @btn-default-border;
      color: @btn-default-color;
      height: @input-height-base;
      margin: 0;

      &:first-child {
        border-right: none;
        border-left: none;
      }

      &:hover,
      &:focus,
      &:active {
        background: darken(@btn-default-bg,3%);
      }
    }
  }

  .btn-group {
    // Mobile view
    @media (max-width: @screen-xs-max) {
      margin-top: @t3-global-margin / 2;
    }
  }

  .category,
  .category-tags {
    border: 0;

    > li {
      background: transparent;
      border: 0;
      margin-bottom: @grid-gutter-width;

      + li {
        margin-top: 0;
      }

      .image-wrap {
        margin-bottom: @t3-global-margin;
      }

      .media-wrap {
        border: 1px solid @hr-border;

        img {
          max-width: 100%;
          width: 100%;
        }

        // Tag Content
        .media-body {
          padding: @grid-gutter-width;

          .title {
             margin-top: 0;
            font-size: @font-size-h4;

            a {
              font-weight: 500;
              color: @headings-color;

              &:hover {
                text-decoration: underline;
              }
            }
          }

          p {
            display: inline;
          }
        }
      }
    }
  }

  ul.thumbnails {
    padding: 0;
    margin-top: @grid-gutter-width;

    >li {
      background: transparent;
      list-style: none;
      display: block;
      border-bottom: 2px solid @gray-lighter;

      &:hover {
        background: transparent;
      }

      >h3 {
        margin: @grid-gutter-width/2 0;

        >a {
          &:hover {
            text-decoration: none;
          }
        }
      }

      .tag-body{
        display: block;
        margin-bottom: @t3-global-margin / 2;

        // Image
        .item-image {
          img {
            max-width: 100%;
          }
        }
      }

      .caption {
        margin-bottom: @grid-gutter-width / 2;
      }
    }
  }

  .ja-gallery-list {
    position: relative;
  }

  .pagination {
    // Mobile view
    @media (max-width: @screen-xs-max){
      float: left;
    }
  }

  .com-tags-filter-field-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .com-tags-tag-list__pagination {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: space-between;

    .pagination {
      margin: 0;
    }

    .counter {
      display: flex;
      align-items: center;
      margin: 0;
      padding: .5rem 1rem;
    }
  }

  table.category {
    margin-top: 2rem;
  }
  
}

.tags {
  margin-bottom: @t3-global-margin;

  >span {
    margin-right: @t3-global-margin/4;
    display: inline-block;

    .label {
      background: @gray-lighter;
      color: @gray;
      font-weight: 500;

      &:hover,&:focus, &:active {
        background: @brand-primary;
        color: @white;
      }
    }
  }
}

// Contact
.contact {
  .contact-form {
    .control-group {

      &.inline {
         // Mobile view
        @media (max-width: @screen-xs-max){
          display: flex;
        }

        .control-label {
          // Mobile view
          @media (max-width: @screen-xs-max){
            margin-right: @t3-global-margin / 4;
            padding-top: 0;
            width: auto;
          }
        }
      }

      .controls {
        // Mobile view
        @media (max-width: @screen-xs-max){
          margin-left: 0;
        }
      }
    }
  }
}

// Article index
.item-page {
  .article-index {
    // Mobile view
    @media (max-width: @screen-xs-max){
      width: 100%;
    }
  }

  .item-image {
    margin-bottom: @t3-global-margin;
    width: 100%;
  }

  .wrap-content-header {
    h1 {
      font-size: 30px;
    }
  }
}

// Register
.registration {
  .control-group {
    .controls {
      // Mobile view
      @media (max-width: @screen-xs-max){
        margin-left: 0;
      }
    }
  }
}

// Side bar
.t3-sidebar {
  >div {
    border-bottom: 1px solid @hr-border;
    margin-bottom: @grid-gutter-width;
    padding-bottom: @grid-gutter-width;
  }
}

// Edit article
.js-stools-container-filters {
  .js-stools-field-filter {
    .chzn-container {
      width: 220px !important;
    }
  }
}

// Edit module
#jform_showtitle {
  min-height: 0;

  .on {
    text-align: left;
  }
}

.view-profile,
.view-form,
.view-contact {
  .t3-mainbody {
    position: static;
  }

  .modal-backdrop {
    z-index: 1040;
  }
}

.view-contact {
  #system-message-container {
    padding: 0 @t3-global-padding / 6;
  }
}

.cat-items {
  ul.category {
    margin: 0;
    border: none;

    >li {
      border: none;
      background-color: transparent !important;

      .list-title {
        padding: 0;
      }
    }
  }
}

// Captcha
#jform_captcha {
  .grecaptcha-badge {
    bottom: @grid-gutter-width * 3 !important;
  }
}

.archive {
  #adminForm {
    .filter-search {
      .inputbox {
        padding: @grid-gutter-width / 2 @t3-global-margin / 2;
      }
    }
  }
}

.category-list {
  #adminForm {
    .btn-group {
      .inputbox {
        padding: @grid-gutter-width / 2 @t3-global-margin / 2;
      }
    }
  }
}

// page request confirm
.request-confirm {
  border: 1px solid @hr-border;
  margin: auto;
  max-width: 650px;
  padding: @grid-gutter-width * 2;

  // Mobile view
  @media (max-width: @screen-xs-max) {
    padding: @t3-global-padding;
  }

  .control-group {
    .control-label {
      label {
        font-weight: 500;
      }
    }

    .controls {
      margin-left: 0;
    }
  }

  .form-group {
    > div {
      padding: 0;
    }
  }

  .form-validate {
    background: transparent;
    border: none;
    padding: 0;

    legend {
      background-color: @state-warning-bg;
      border-color: @state-warning-border;
      border-radius: @border-radius-base;
      color: @state-warning-text;
      font-size: 15px;
      margin-bottom: @t3-global-margin;
      padding: (@t3-global-padding / 2) @t3-global-padding;
    }
  }
}

#acym_wrapper {
  #acymodifyform {
    fieldset {
      legend {
        border: none;
      }

      #acyuserinfo {
        label.cell {
          margin-right: 8px;
          margin-top: 4px;
        }
      }
    }
  }
}

.home {
  .t3-mainbody {
    margin-top: @grid-gutter-width * 3;
  }
}

// tabs article single 
.article-content {
  .tabs {
    display: flex;
    border: 1px solid @hr-border;
    margin: 0;

    >dt {
      padding: @t3-global-padding/2 @t3-global-padding;
      border: none;

      h3 {
        margin: 0;
        
        a {
          color: @text-color;
          font-size: 20px;

          &:hover, &:focus, &:active {
            text-decoration: none;
          }
        }
      }
    }
  }

  .current {
    .tabs {
      padding: @t3-global-padding;
      border-top: none;
    }
  }
}

// Joomla modal on Joomla 4
.modal.joomla-modal {
  &.show {
    opacity: 1;
  }

  .modal-header {
    display: flex;
    align-items: center;

    .btn-close {
      margin-left: auto;
    }
  }

  .modal-dialog {
    transform: none;
  }

  iframe {
    border: 0;
    max-width: 100%;
  }
}

#toolbar button {
  margin-right: 5px;

  @media (max-width: @screen-sm-max) {
    margin-bottom: 5px;
  }
}

div.jviewport-width80 {
  width: 80vw;
}

.jviewport-height60 {
  height: 60vh;
}

.input-group {
  display: flex;

  .form-control {
    flex: 1;
  }
}