@background-color: #f8f8f8;
@sidebar-background-color: #ebebeb;

@general-text-color: #414141;
@red-text-color: #C41533;

@bt-color-bg-submit: #c61833;
@bt-color-submit: #ffffff;

@light-text-color: #d0d0d0;

@bt-hover-color: #c61833;

@dividor-light: 1px solid rgba(255, 255, 255, 0.2);
@dividor-light-failback: 1px solid #707070;
@dividor-dark: 1px solid #000000;

@header-height: 60px;
@header-color: #d3d3d3;
@header-font-size: 23px;
@header-font-weight: 200;

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

html, body {
  height: 100%;
  display: block;
}

body {
  line-height: 1.3;
  font-family: "Helvetica", "Arial", sans-serif;
  background-color: @background-color;
  color: @general-text-color;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a:link, a:hover, a:visited, a:active {
  color: inherit;
  text-decoration: inherit;
}

*, :after, :before {
  box-sizing: border-box;
}

.content {
  padding: 30px 60px;
  overflow: hidden;
}

.sidebar {
  float: left;
  width: 170px;
  padding: 0;
  border-right: 1px solid #c8c8c8;
  outline: solid 1px #ffffff;
  background-color: @sidebar-background-color;
  height: 100%;

  nav {
    margin: 120px 0 0 0;
    color: #999999;
    border-top: 1px solid #c8c8c8;
    border-bottom: 1px solid #ffffff;

    li {
      text-transform: uppercase;
      border-top: 1px solid #ffffff;
      border-bottom: 1px solid #c8c8c8;
      padding: 12px 6px;

      &.active {
        background-color: #f6f6f6;
        color: #414141;
      }

      &:hover {
        color: @bt-hover-color;
      }

      li {
        color: #999999;
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px dashed #d0d0d0;
        border-top: 1px dashed #ffffff;
        text-transform: none;

        &:first-child {
          margin-top: 5px;
          border-top: none;
        }

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

        &.active {
          color: #414141;
        }
      }

    }
  }
}

.login {
  header {
    background-color: #090909;
    height: auto;
    padding-left: 0;

    img {
      width: 100%;
      display: block;
      position: relative;
    }
  }

  form {
    > ul {
      display: none;
    }

    input {
      margin-right: 5px;
    }

    input, button {
      width: auto;
      display: inline-block;
    }
  }

  .message-box {
    margin-top: 10px;
  }
}

.message-box {
  padding: 9px 0px 9px 40px;
  background-repeat: no-repeat;

  h1 {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  p {
    font-size: 16px;
    font-weight: lighter;
    margin-bottom: 8px;
  }

  ul {
    font-size: 14px;
  }

  li {
    background-repeat: no-repeat;
    padding: 4px 0 4px 15px;
    background-position: 0% 50%;
  }

  li:first-child {
    padding-top: 0;
  }
}

.error {
  color: #c51733;
  background-image: url("../images/icons/alert.png");

  li {
    background-image: url("../images/icons/red-arrow.png");
  }
}

.success {
  color: #44a51c;
  background-image: url("../images/icons/success.png");

  li {
    background-image: url("../images/icons/green-arrow.png");
  }
}

.info {
  color: #999999;
  background-image: url("../images/icons/info.png");

  li {
    background-image: url("../images/icons/grey-arrow.png");
  }
}

@org-label-line-height: 40px;
@org-label-font-size: 13px;

.organisation-chart {
  text-align: center;
  position: relative;
  float: left;
  background-image: url("../images/organisation-lines/line-vertical_top_level.png");
  background-repeat: no-repeat;
  background-position: 50% 60px;
  margin: 80px 30px 30px 30px;

  .organization-children-label {
    position: absolute;
    color: @light-text-color;
    top: 70px;
    left: 5px;
    display: none;
  }

  .open-chart-btn {
    position: absolute;
    display: none;
  }

  .organisation-label {
    background-color: @background-color;
    border: 4px solid white;
    padding: 0 15px;
    width: 180px;
    line-height: @org-label-line-height;
    font-size: @org-label-font-size;
    text-transform: uppercase;
    display: block;
    margin: 0 auto 52px auto;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
  }

  .organisation-label:hover {
    color: @bt-hover-color;
  }

  .create-organisation-placeholder {
    padding: 40px 0 0 0;

    .organisation-label {
      border: 1px dashed #d0d0d0;
      background-color: transparent;
      line-height: @org-label-line-height;
      -webkit-box-shadow: none;
      box-shadow: none;
      text-align: right;

      .add-organisation-btn {
        background-color: @bt-color-bg-submit;
        color: @bt-color-submit;
        font-weight: lighter;
        padding: 2px 6px;
      }
    }
  }

  li {
    float: left;
    padding: 20px 30px 0 0;
    background-image: url("../images/organisation-lines/line-horizontal_center.png");
    background-repeat: no-repeat;
    background-position: -195px 0;
  }

  li:first-child {
    background-image: url("../images/organisation-lines/line-horizontal_left.png");
    background-repeat: no-repeat;
    background-position: 106px 0;
  }

  li:last-child {
    background-image: url("../images/organisation-lines/line-horizontal_right.png");
    background-repeat: no-repeat;
    background-position: -295px 0;

  }

  ol {
    display: none;
    overflow: hidden;
  }

  .open {
    display: block;
  }
}

.child-organisation {
  margin: 0;
  padding: 20px 3px 0 3px;
  background-image: none;

  .organization-children-label {
    display: block;
  }

  .open-chart-btn {
    left: 33px;
    top: 70px;
    display: block;
  }

  .child-organisation {
    background-image: none;
    padding: 35px 3px 0 3px;

    ol {
      padding: 10px 0 0 0;
    }

    .open-chart-btn {
      left: -39px;
      top: 44px;
    }

    .organization-children-label {
      top: 10px;
      left: 5px;
    }
  }

  .create-organisation-placeholder {
    padding: 40px 0 0 35px;
    background-image: url("../images/organisation-lines/line-vertical.png");
    background-position: 34px 0;
  }

  .organisation-label {
    background-color: white;
    border: 0px;
    border: 1px solid white;
    text-align: left;
    margin: 0;
  }

  ol {
    padding: 30px 0 0 0;

    li,
    li:first-child {
      clear: both;
      background-image: url("../images/organisation-lines/line-vertical_center.png");
      background-position: 34px -13px;
      padding: 0 0 0 60px;
    }

    li:last-child {
      padding: 20px 0 0 60px;
      background-image: url("../images/organisation-lines/line-vertical_bottom.png");
      background-position: 34px -360px;
    }
  }
}

.organisation-filter {
  .inner-padding {
    padding: 60px 0 0 0;
    background-color: @sidebar-background-color;
    border-right: 1px solid #c8c8c8;
  }

  display: block;
  padding: 0 0 0 0;
  height: 100%;
  width: 250px;
  float: left;

  h1 {
    .header;
    text-align: center;
    padding: 30px 0 26px 0;
  }

  select {
    .filter-select;
    margin: 10px 0 10px 20px;
  }

  ol {
    .item-list;
  }
}

.organisation-editor, .user-editor {
  .inner-padding {
    padding: 60px 0 0 30px;
    background-color: @sidebar-background-color;
    border-right: 1px solid #c8c8c8;
  }

  display: block;
  padding: 0 0 0 0;
  height: 100%;
  width: 500px;
  float: left;

  .zipheader {
    float: left;
    width: 130px + 20px;
  }
  .cityheader {
    float: left;
    width: 100px;
  }

  .zip {
    width: 130px - 23px;
    margin: 0 16px 0 0;
  }

  .city {
    width: 289px - 23px;
  }

  .opening-hours-header {
    float: left;
  }

  .add-another {
    .small-link;
    padding: 0 0 0 20px;
  }

  h1 {
    .header;
    padding: 30px 0 26px 0;
  }

  h2 {
    .header2;
  }

  h3 {
    .header3;
    margin: 0 0 17px 0;
  }

  select {
    .small-select;
    margin: 0px 0 3px 0;
  }

  select[name=role] {
    .large-select;
    margin: 0px 0 3px 0;
  }

  input {
    .textinput;
    margin: 9px 0 20px 0;
    width: 440px - 23px;
  }

  textarea {
    font-size: 18px;
  }

  .clear {
    clear: both;
  }
}

.tags-add {
  .inner-padding {
    padding: 60px 0 0 0;
    background-color: @sidebar-background-color;
    border-right: 1px solid #c8c8c8;
  }

  display: block;
  padding: 0 0 0 0;
  height: 100%;
  width: 500px;
  float: left;

  h1 {
    .header;
    //text-align: center;
    padding: 30px 0 26px 24px;
  }

  input {
    .textinput;
    margin: 9px 0 0 24px;
    width: 455px - 23px;
  }
}

.tags-list {
  .inner-padding {
    padding: 60px 0 0 0;
    background-color: @sidebar-background-color;
    border-right: 1px solid #c8c8c8;
  }

  display: block;
  padding: 0 0 0 0;
  height: 100%;
  width: 500px;
  float: left;

  h1 {
    .header;
    //text-align: center;
    padding: 30px 0 0px 24px;
  }

  h2 {
    .header2;
    text-transform: uppercase;
    padding: 20px 0 10px 24px;
  }

  ol {
    margin: 0 19px 0 24px;
    li {
      height: 40px;
    }
  }
}

.images-tags {
  .inner-padding {
    padding: 60px 0 0 0;
    background-color: @sidebar-background-color;
    border-right: 1px solid #c8c8c8;
  }

  display: block;
  padding: 0 0 0 0;
  height: 100%;
  width: 250px;
  float: left;

  h1 {
    .header;
    //text-align: center;
    padding: 30px 0 0px 24px;
  }

  h2 {
    .header2;
    text-transform: uppercase;
    padding: 20px 0 10px 24px;
  }

  input {
    .textinput;
    margin: 9px 0 0 24px;
    width: 200px - 23px;
  }

  ol.selected-tags {
    cursor: pointer;
    margin: 0 19px 0 24px;
    padding-top: 8px;
    li {
      padding: 12px 10px;
    }
  }
}

/*.images-grid, .templates-grid {
    .inner-padding {
        padding: 60px 0 0 0;
        background-color: @sidebar-background-color;
        border-right: 1px solid #c8c8c8;
    }

    display: block;
    padding: 0 0 0 0;
    height: 100%;
    width: 1020px;
    float: left;

    h1 {
        .header;
        //text-align: center;
        padding: 30px 0 0px 24px;
    }

    h2 {
        .header2;
        text-transform: uppercase;
        padding: 20px 0 10px 24px;
    }

    ol {
        margin: 0 19px 0 24px;
        li {
            height: 40px;
        }
    }

    .grid > div {
        float: left;
        .image-badge;
        .properties {
            margin-left: 20px;
        }
        .links {
            margin-left: 20px;
        }
    }
}

.image-badge {
    width: 270px;
    height: 350px;
    background-color: #a9cc38;
    margin: 15px;
    img {
        padding: 20px;
        width: 230px;
    }
}
*/
.image-tags-add {
  .inner-padding {
    padding: 60px 0 0 0;
    background-color: @sidebar-background-color;
    border-right: 1px solid #c8c8c8;
  }

  display: block;
  padding: 0 0 0 0;
  height: 100%;
  width: 250px;
  float: left;

  h1 {
    .header;
    //text-align: center;
    padding: 30px 0 0px 24px;
  }

  h2 {
    .header2;
    text-transform: uppercase;
    padding: 20px 0 10px 24px;
  }

  input {
    .textinput;
    margin: 9px 0 0 24px;
    width: 200px - 23px;
  }
}

.image-tags {
  .inner-padding {
    padding: 60px 0 0 0;
    background-color: @sidebar-background-color;
    border-right: 1px solid #c8c8c8;
  }

  display: block;
  padding: 0 0 0 0;
  height: 100%;
  width: 250px;
  float: left;

  h1 {
    .header;
    //text-align: center;
    padding: 30px 0 0px 24px;
  }

  h2 {
    .header2;
    text-transform: uppercase;
    padding: 20px 0 10px 24px;
  }

  input {
    .textinput;
    margin: 9px 0 0 24px;
    width: 200px - 23px;
  }

  ol {
    cursor: pointer;
    margin: 0 19px 0 24px;
    padding-top: 8px;
    li {
      padding: 12px 10px;
    }
  }
}

.image-view {
  .inner-padding {
    padding: 60px 0 0 0;
    background-color: @sidebar-background-color;
    border-right: 1px solid #c8c8c8;
  }
}

.template-parameters, .parameter-tags {
  .inner-padding {
    padding: 60px 0 0 0;
    background-color: @sidebar-background-color;
    border-right: 1px solid #c8c8c8;
  }

  display: block;
  padding: 0 0 0 0;
  height: 100%;
  width: 250px;
  float: left;

  h1 {
    .header;
    //text-align: center;
    padding: 30px 0 0px 24px;
  }

  h2 {
    .header2;
    text-transform: uppercase;
    padding: 20px 0 10px 24px;
  }

  input {
    .textinput;
    margin: 9px 0 0 24px;
    width: 200px - 23px;
  }
}

.template-parameters {
  ol {
    cursor: pointer;
    margin: 0 19px 0 24px;
    padding-top: 8px;
    li {
      padding: 12px 10px;
    }
  }
}

ol.tag-suggestions {
  cursor: pointer;
  margin: 0 19px 0 24px;
  padding-top: 8px;
  li {
    &.selected {
      background-color: #F8F8F8;
    }
    &:hover {
      background-color: #F8F8F8;
    }
    color: @red-text-color;
    padding: 12px 10px;
    .highlight {
      font-weight: bold;
    }
  }
}

.parameter-tags {
  ol.tags {
    cursor: pointer;
    margin: 0 19px 0 24px;
    padding-top: 8px;
    li {
      padding: 12px 10px;
    }
  }
}

.tag {
  float: left;
  table tr td:first-child {
    width: 400px;
  }
}

.editor {
  width: 100%;
  padding-top: 60px;
  word-wrap: break-word;

  & > div {
    float: left;
  }

  .options {
    width: 150px;
    padding-top: 100px;

    h1 {
      width: 100%;
      text-align: center;
      text-transform: uppercase;
    }

    .items {
      & > div {
        width: 150px;
        height: 20px;
        padding: 20px 0px;
      }
    }
  }

  .column1 {
    h1 {
      .header;
      text-align: center;
      padding: 10px 0 26px 0;
    }

    width: 250px;
    padding-top: 20px;
  }

  .template > div {
    float: left;
  }

  .asset-list1 {
    img {
      height: 210px;
    }
    & > div {
      height: 290px;
    }
  }

  .asset-list2 {
    img {
      width: 200px;
    }
    & > div {
      height: 290px;
    }
  }

  .asset-list3 {
    img {
      width: 200px;
    }
    & > div {
      height: 290px;
    }
  }

  .clear {
    clear: both;
  }
}

// GENERAL CLASSES
.textinput {
  padding: 5px 10px;
  font-size: 17px;
  background-color: #F8F8F8;
}

.header {
  font-size: @header-font-size;
  font-weight: @header-font-weight;
}

.header2 {
  font-size: 12px;
  color: #ACACAC;
  font-weight: 100;
}

.header3 {
  font-size: 18px;
  font-weight: 100;
}

.filter-select {
  width: 210px;
  padding: 8px;
  line-height: 1;
  border: 1px solid #c8c8c8;
  border-radius: 2px;
  background-color: #fff;
  -webkit-appearance: none;
  color: #999999;
}

.small-select {
  width: 150px;
  padding: 8px;
  line-height: 1;
  background-color: #D0D0D0;
  border: 1px solid #D0D0D0;
  border-radius: 2px;
  -webkit-appearance: none;
  color: #999999;
}

.large-select {
  width: 440px;
  padding: 16px;
  color: @general-text-color !important;
  font-size: 13px;
  line-height: 1;
  background-color: #D0D0D0;
  border: 1px solid #D0D0D0;
  border-radius: 2px;
  -webkit-appearance: none;
}

.item-list {
  color: #999999;
  padding: 10px 0 0 0;
  li {
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #c8c8c8;
    padding: 15px 23px;

    &.active {
      background-color: #f6f6f6;
      color: #414141;
    }

    &:hover {
      color: @bt-hover-color;
    }
  }
}

.small-link {
  font-size: 10px;
  color: #ACACAC;
  text-decoration: underline;
}

/* Form element styling - MA */
@bg-color: #ebebeb;

@red: #00a9e0;
@green: #65b345;
@grey: #999999;
@light-grey: #d0d0d0;
@lighter-grey: #e3e3e3;
@superlight-grey: #f8f8f8;

@black: #414141;
@white: #fff;

.col {
  float: left;

  padding-right: 1em;

  &:last-of-type {
    padding-right: 0;
  }

  &.w5 {
    width: 5%;
  }

  &.w10 {
    width: 10%;
  }

  &.w15 {
    width: 15%;
  }

  &.w20 {
    width: 20%;
  }

  &.w25 {
    width: 25%;
  }

  &.w30 {
    width: 30%;
  }

  &.w33 {
    width: 33.333%;
  }

  &.w40 {
    width: 40%;
  }

  &.w50 {
    width: 50%;
  }

  &.w60 {
    width: 60%;
  }

  &.w65 {
    width: 65%;
  }

  &.w66 {
    width: 66.666%;
  }

  &.w70 {
    width: 70%;
  }

  &.w75 {
    width: 75%;
  }

  &.w80 {
    width: 80%;
  }

  &.w90 {
    width: 90%;
  }

  &.w100 {
    width: 100%;
  }
}

.form-row {
  margin-bottom: 1em;
}

label {
  clear: both;
  font-size: 1.2rem;
  font-size: 12px;
  color: @grey;

  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

input,
.button {
  color: @black;
  font-size: 1.8rem;
  font-size: 18px;
  padding: 0.5em;
}

//input[type="text"] {
//  width: 100%;
//  background-color: #f8f8f8;
//
//  border: 1px solid @light-grey;
//
//  -webkit-border-radius: 5px;
//  -moz-border-radius: 5px;
//  border-radius: 5px;
//
//  -webkit-box-shadow: 0 1px #f8f8f8, inset 0 1px 1px rgba(0, 0, 0, .2);
//  -moz-box-shadow: 0 1px #f8f8f8, inset 0 1px 1px rgba(0, 0, 0, .2);
//  box-shadow: 0 1px #f8f8f8, inset 0 1px 1px rgba(0, 0, 0, .2);
//
//  &:focus {
//    background-color: @white;
//    outline: none;
//  }
//
//  &:disabled {
//    color: @light-grey;
//    background-color: @bg-color;
//  }
//
//  &.input-w-button {
//    position: relative;
//  }
//}

input[type="button"],
input[type="submit"],
.button {
  width: 100%;
  border: 0;
  color: @white;
  cursor: pointer;

  &:active {
    outline: none;
    -webkit-box-shadow: 0 1px #f8f8f8, inset 0 1px 1px rgba(0, 0, 0, .2);
    -moz-box-shadow: 0 1px #f8f8f8, inset 0 1px 1px rgba(0, 0, 0, .2);
    box-shadow: 0 1px #f8f8f8, inset 0 1px 1px rgba(0, 0, 0, .2);
  }

  &:disabled {
    cursor: auto;
  }

  &.grey-button {
    background-color: #d0d0d0;
  }

  &.grey-button:hover {
    background-color: #bbbbbb;
  }

  &.grey-button:active {
    background-color: #bbbbbb;
  }

  &.grey-button:disabled {
    background-color: @lighter-grey;
  }

  &.red-button {
    background-color: @red;
  }

  &.red-button:hover {
    background-color: #0096d8;
  }

  &.red-button:active {
    background-color: #0096d8;
  }

  &.red-button:disabled {
    background-color: #80d4ef;
  }
}

.input-group {
  position: relative;

  .infield-button {
    width: auto;
    padding: 0;
    margin: 0;
    position: absolute;
    right: 0.5em;
    bottom: 0.5em;
    border: 0;
    background: transparent;

    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;

  }

  .infield-icon {
    position: absolute;
    right: 1em;
    bottom: 2em;
  }
}

.ok {
  input {
    border-color: @green;
  }

  label {
    color: @green;
  }

  .infield-icon {
    color: @green;
  }
}

.error {
  input {
    border-color: @red;
  }

  label {
    color: @red;
  }

  .infield-icon {
    color: @red;
  }

  .error-msg {
    color: @red;
    font-size: 1.2rem;
    font-size: 12px;
  }
}

/* user editor override TODO: remove */
.user-editor .inner-padding {
  padding: 6rem 2rem !important;
}

/* END form styling */

h1 {
  font-size: 2.3rem;
  font-size: 23px;
}

/* IMAGE grids */

.images-grid {
  clear: both;

  .grid {
    .ad {
      text-align: left;
      margin: 0 2rem 2rem 0;
      float: left;
    }

    .ad-shadow {
      padding-bottom: 2rem;
      background: transparent url('../images/ad-shadow.png') no-repeat bottom center;
      background-size: contain;

    }

    .ad-wrapper {
      padding: 0.5rem;
      background-color: @white;
      /*width: 33.33333333%;*/

      &.new {

      }

      .image-wrapper {
        text-align: center;
        padding: 2rem;
        background-color: @superlight-grey;
        .img {
          width: 100%;
        }
      }

      .properties, .links {
        padding: 2rem 2rem;
      }

      .links {
        text-align: left;
      }

      a {
        color: @red;
      }

    }
  }
}

input,
.button {
  &.inline {
    width: auto;
    display: inline-block;
  }
  &.w200px {
    width: 200px;
  }
  &.w300px {
    width: 300px;
  }
}

#freshwidget-button {
  display: none !important;
}

.privacy-policy-updates {
  color: #989898;

  .privacy-policy-notice {
    overflow: hidden;

    @icon-size: 40px;
    @text-size: 25px;

    .icon {
      background-color: #989898;
      color: #fff;
      font-size: @text-size;
      width: @icon-size;
      height: @icon-size;
      line-height: @icon-size;
      display: block;
      text-align: center;
    }

    h1 {
      font-size: @text-size;
      margin-top: 5px;
      margin-bottom: 15px;
    }

    p {
      line-height: 1.5;

      a {
        color: @red;
      }
    }

    + .privacy-policy-links {
      margin-top: 20px;
    }
  }

  .privacy-policy-links {
    overflow: hidden;

    a {
      margin-right: 20px;

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

.hidden {
  display: none !important;
}

.d-block {
  display: block !important;
}

.form-container {
  margin-bottom: 20px;

  a {
    margin-top: 20px;
    color: #989898;
  }
}