// -------------------------------------
//
//	Universal
//
// -------------------------------------

body {
    min-width: 980px;
    background: #f3f4f5;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #3c3c3c;
}

a {
    text-decoration: none;
    color: $blue;
    @include transition(color .15s);

    &:hover {
        color: #cb9c40;
    }
}

h1 {
    float: left;
    font-size: 28px;
    margin: 36px 6px;
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

p + p,
p + ul,
p + ol {
    margin-top: 20px;
}

code {
    margin: 0 2px;
    padding: 0px 5px;
    border-radius: 3px;
    border: 1px solid #eaeaea;
    font-family: Monaco, monospace;
    font-size: 12px;
    background-color: #f8f8f8;
}

.waiting {
    opacity: 0.1;
}

.page-actions {
    float: right;
    margin-top: 42px;
}

.main-wrapper {
    position: relative;
    margin: 0 40px;
}

.inner-wrapper {
    position: relative;
    max-width: 1280px;
    margin: auto;

    > article {
        clear: both;
    }
}

.window {
    background: #fff;
    border: 1px solid $darkGrey;
    border-radius: 3px;
    @include box-shadow(0 1px 2px rgba(0, 0, 0, .1));
}

.sidebar {
    float: right;
    width: 28%;
}

.left {
    float: left;
}

.right {
    float: right;
}

footer {
    clear: both;
    height: 100px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 6px 8px 8px;
    @include box-sizing(border-box);
    border: 1px solid #b0b6c2;
    border-radius: 2px;
    @include linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, .3));
    background-color: #edf1f5;
    @include box-shadow(0 1px 2px rgba(0, 0, 0, .1) inset);
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    color: #3c3c3c;
    outline: 0;

    &::-webkit-input-placeholder,
    &:-moz-placeholder,
    &:-ms-input-placeholder {
        color: #979faf;
    }
}

input.search {
    padding: 6px 15px 8px 30px;
    @include box-sizing(border-box);
    border: 1px solid $darkGrey;
    border-radius: 20px;
    background: url(../img/search-icon.png) no-repeat 8px 7px #edf1f5;
    font-family: 'Open Sans', sans-serif;
    color: #3c3c3c;
    outline: 0;

    &::-webkit-input-placeholder {
        color: #979faf;
    }
}

label {
    font-size: 12px;
}

code {
    padding: 0 4px;
    border-radius: 3px;
    background: #eee;
    font-family: Monaco, monospace;
}

.text-editor {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    @include box-sizing(border-box);
    border: 1px solid #b0b6c2;
    @include linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3));
    background-color:  #edf1f5;
    @include box-shadow(0 1px 2px rgba(0, 0, 0, 0.1) inset);
    font-family: Monaco, monospace;
}

.new-unit-item,
.new-subsection-item,
.new-policy-item {
    @include grey-button;
    margin: 5px 8px;
    padding: 3px 10px 4px 10px;
    font-size: 10px;

    .new-folder-icon,
    .new-policy-icon,
    .new-unit-icon {
        position: relative;
        top: 2px;
    }
}

.item-actions {
    position: absolute;
    top: 5px;
    right: 5px;

    .edit-button,
    .delete-button,
    .visibility-toggle {
        float: left;
        margin-right: 13px;
        color: #a4aab7;
    }
}

.item-details {
    float: left;
    padding: 10px 0;
}

.window {
    margin-bottom: 20px;

    .window-contents {
        padding: 20px;
    }

    h4 {
        padding: 6px 14px;
        border-bottom: 1px solid #cbd1db;
        border-radius: 3px 3px 0 0;
        @include linear-gradient(top, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 70%);
        background-color: #edf1f5;
        @include box-shadow(0 1px 0 rgba(255, 255, 255, .7) inset);
        font-size: 14px;
        font-weight: 600;
    }

    label {
        display: block;
        margin-bottom: 6px;
        font-weight: 700;

        &.inline-label {
            display: inline;
        }

        .description {
            display: block;
            font-size: 11px;
            font-weight: 400;
            font-style: italic;
            line-height: 1.3;
            color: #999;
        }
    }

    .row {
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #cbd1db;
    }
}

body.hide-wip {
    .wip, .wip-box {
        display: none !important;
    }
}

body.show-wip {
    .wip {
        outline: 1px solid #f00 !important;
        position: relative;
    }

    .wip-box {
        @extend .wip;
        &:after {
            content: "WIP";
            font-size: 8px;
            padding: 2px;
            background: #f00;
            color: #fff;
            @include position(absolute, 0px 0px 0 0);
        }
    }
}

.waiting {
    
}
.toast-notification {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  max-width: 350px;
  padding: 15px 20px 17px;
  border-radius: 3px;
  border: 1px solid #333;
  @include linear-gradient(top, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0));
  background-color: rgba(30, 30, 30, .92);
  @include box-shadow(0 1px 3px rgba(0, 0, 0, .3), 0 1px 0 rgba(255, 255, 255, .1) inset);
  font-size: 13px;
  text-align: center;
  color: #fff;
  @include transition(all .2s);

  p, span {
    color: #fff;
  }

  strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
  }

  .close-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 27px;
    height: 27px;
    font-size: 22px;
    font-weight: 700;
    line-height: 25px;
    color: #aaa;
    text-align: center;

    .close-icon {
      font-size: 16px;
      font-weight: 700;
    }
  }

  .action-button {
    @include blue-button;
    @include box-sizing(border-box);
    width: 100%;
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
  }
}

.waiting {
    position: relative;

    &:before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 999998;
        width: 100%;
        height: 100%;
        border-radius: inherit;
        background: rgba(255, 255, 255, .9);
    }

    &:after {
        content: '';
        @extend .spinner-icon;
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -10px;
        margin-top: -10px;
        z-index: 999999;
    }
}

.waiting-inline {
    &:after {
        content: '';
        @extend .spinner-icon;
    }
}

.tooltip {
    display: block;
    position: absolute;
    z-index: 9999999;
    padding: 4px 8px;
    background: rgba(0, 0, 0, .9);
    border-radius: 3px;
    pointer-events: none;
    font-size: 11px;
    color: #fff;
    text-align: center;

    &:before {
        content: '▾';
        position: absolute;
        bottom: -10px;
        left: 50%;
        width: 20px;
        height: 10px;
        margin-left: -10px;        
        font-size: 16px;
        line-height: 0;
        color: rgba(0, 0, 0, .9);
    }
}