@import (reference) "../defs.less";


@img_base: '../../images';


.box, .modalbox {
  background-color: @box-bg;
  background-position: top left;
  background-repeat: repeat-x;
  border: 1px @box-border-color solid;
  border-radius: @box-border-radius;
  box-shadow: @box-shadow;
}

.box {
  &.important {
    background-color: #fdf2a0;
    background-image: url('@{img_base}/gold_box_top_bg.png');
    border: 1px #b7a93e solid;
    padding: 0 10px;

    .box-inner {
      background: url("@{img_base}/important.png") no-repeat top left;
      padding: 0 0 0 50px;
    }
  }

  &.tip {
    background-color: #fdf2a0;
    background-image: url('@{img_base}/gold_box_top_bg.png');
    border: 1px #b7a93e solid;
    padding: 0 10px;

    .box-inner {
      background: transparent;
    }

    h1 {
      padding-left: 0;
    }
  }

  &.trophies {
    background-color: @trophy-banner-bg-color;
    background-image: url('@{img_base}/gold_box_top_bg.png');
    border: 1px #b7a93e solid;
    padding: 0 5px;

    h1 {
      margin: 0;
      padding: 0 0 0 0.5em;
    }

    img {
      margin: 0;
      padding: 0;
      position: absolute;
      bottom: 0;
    }

    .box-inner {
      background: transparent;
      position: relative;
    }

    .trophy-row {
      position: relative;
      margin: 30px 0 10px 0;

      &:first-child {
        margin-top: 10px;
      }
    }
  }
}

.admin h1.title,
.box-head,
.modalbox-title {
  background: @box-title-bg;
  border-bottom: 1px #728eac solid;
  margin: 0;
  padding: 0.4em 0.6em;
  border-radius: @box-border-radius @box-border-radius 0 0;
}

.box-title,
.modalbox-title {
  font-size: 120%;
}

.box-title {
  margin: 0;
  padding: 0;
}

.box-main {
  padding: @box-main-padding;
}

.box-container {
  margin-bottom: 10px;
  width: 100%;
}

.box-inner,
.modalbox-inner {
  background-image: url('@{img_base}/box_bottom_bg.png');
  background-position: bottom left;
  background-repeat: repeat-x;
  border-radius: @box-border-radius;

  padding-bottom: 1px\9; /* IE wants this. The \9 targets IE 7,8,9. */
}

.box-inner form {
  margin: 0;
}

.modalbox, .modalbox-bg {
  z-index: @z-index-dialog;
}
