@import 'new-layout.css';
/* FONTS */

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/Roboto/Roboto-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/Roboto/Roboto-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: italic;
    font-weight: normal;
    src: url('../fonts/Roboto/Roboto-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/Roboto/Roboto-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 500;
    src: url('../fonts/Roboto/Roboto-MediumItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/opensans-regular.eot');
    src: url('../fonts/opensans-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/opensans-regular.woff2') format('woff2'), url('../fonts/opensans-regular.woff') format('woff'), url('../fonts/opensans-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/opensans-bold.eot');
    src: url('../fonts/opensans-bold.eot?#iefix') format('embedded-opentype'), url('../fonts/opensans-bold.woff2') format('woff2'), url('../fonts/opensans-bold.woff') format('woff'), url('../fonts/opensans-bold.ttf') format('truetype');
}

/* DOCUMENT DEFAULTS */

html,
body {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font: 14px/1.45 'Open Sans', Helvetica, Arial, sans-serif;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* GRID */

.grid {
    display: table;
    width: 100%;
    border-width: 0.75em 0.75em 0;
    border-style: solid;
    border-color: transparent;
    border-collapse: collapse;
    background-color: #fff;
}

.grid.fixed {
    table-layout: fixed;
}

.grid+.grid {
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.grid .row {
    display: table-row;
    outline: none;
}

.grid .col {
    display: table-cell;
    padding: 0 0.25em;
    border-bottom: 0.75em solid transparent;
    text-align: left;
    vertical-align: top;
}

.grid .col.right {
    text-align: right;
}

.grid .button {
    display: inline-block;
}

.grid.letter,
.grid.general {
    border-width: 0.2em 0.75em 0;
}

.letter .row .letter,
.general .row .general {
    display: table-cell;
    padding: 0 0.25em;
    border-bottom: none;
    text-align: left;
    vertical-align: top;
    font-size: .95em
}

/* FLEXBOX */

[layout] {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

[layout=column] {
    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

[layout=row] {
    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
}

[layout-align="center"],
[layout-align="center center"],
[layout-align="center start"],
[layout-align="center end"] {
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

[layout-align="start"],
[layout-align="start center"],
[layout-align="start start"],
[layout-align="start end"] {
    -webkit-box-pack: start;
    -moz-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

[layout-align="end"],
[layout-align="end center"],
[layout-align="end start"],
[layout-align="end end"] {
    -webkit-box-pack: end;
    -moz-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

[layout-align="space-around"],
[layout-align="space-around center"],
[layout-align="space-around start"],
[layout-align="space-around end"] {
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -webkit-justify-content: space-around;
    -ms-flex-pack: distribute;
    justify-content: space-around;
}

[layout-align="space-between"],
[layout-align="space-between center"],
[layout-align="space-between start"],
[layout-align="space-between end"] {
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

[layout-align="center center"],
[layout-align="start center"],
[layout-align="end center"],
[layout-align="space-around center"],
[layout-align="space-between center"] {
    -webkit-box-align: center;
    -moz-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

[layout-align="center start"],
[layout-align="start start"],
[layout-align="end start"],
[layout-align="space-around start"],
[layout-align="space-between start"] {
    -webkit-box-align: start;
    -moz-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

[layout-align="center end"],
[layout-align="start end"],
[layout-align="end end"],
[layout-align="space-around end"],
[layout-align="space-between end"] {
    -webkit-box-align: end;
    -moz-box-align: end;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    align-items: flex-end;
}

[flex] {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

[scroll] {
    overflow: auto;
}

/* PAGE LAYOUT */

header {
    position: relative;
    min-height: 2.5em;
}

footer {
    position: relative;
    min-height: 1.5em;
}

footer a {
    color: inherit;
    text-decoration: none;
}

footer .version {
    position: absolute;
    top: 50%;
    left: 1em;
    margin-top: -0.5em;
    line-height: 1em;
}

main {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

section {
    position: relative;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

section>div {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
}

/* MENU */

nav {
    padding: .5em;
}

nav>span {
    position: relative;
    height: 2em;
    line-height: 2em;
    padding: 0 .5em;
    white-space: nowrap;
    cursor: pointer;
}

nav>span>nav {
    position: absolute;
    z-index: 999;
}

nav>span>nav>span {
    display: block;
}

main>nav>span>span.icon-triangle-down {
    height: 2em;
    line-height: 2em;
    text-transform: none;
    right: 0px;
    position: absolute;
}

/* MENU LAYOUT */

/* TOP */

main {
    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

main>nav>span {
    display: inline-block;
    text-align: center;
}

main>nav>span>nav {
    top: 2em;
    left: 0;
    text-align: left;
    min-width: 150%;
}

/* LEFT */

main {
    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
}

main>nav>span {
    display: block;
    padding-right: 1em;
    text-align: left;
}

main>nav>span>nav {
    top: 0;
    left: 100%;
    min-width: inherit;
}

main>nav>span>nav>span {
    padding-right: 1em;
}

/* USER PANEL */

.user-panel {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 999;
    width: auto;
    border-width: 0;
    background-color: transparent;
}

.user-panel .grid {
    border-width: 0.25em 0;
    background-color: transparent;
}

.user-panel .col {
    border-bottom: 0;
    vertical-align: bottom;
}

/* CONTACT INFO */

.contact-info {
    margin: 0.25em;
}

.contact-info .grid {
    border-width: 0;
}

.contact-info.grid .grid {
    font-size: 0.8em;
}

.contact-info .col {
    padding: 0 0.25em;
    vertical-align: middle;
}

.contact-info img {
    display: block;
    width: 4.5em;
    height: 4.5em;
}

/* USER SETTINGS */

.user-settings {
    height: 2.5em;
}

.user-settings .col {
    padding: 0 0 0 0.25em;
    vertical-align: middle;
}

.user-options>div {
    padding: 0;
}

.user-options>div>span {
    display: block;
    position: relative;
    height: 2em;
    line-height: 2em;
    padding: 0 .5em;
    white-space: nowrap;
    cursor: pointer;
}

.user-options>div>span>span.icon-triangle-down {
    padding-left: .25em;
}

.user-options>div>span>div {
    position: absolute;
    top: 100%;
    right: 0;
    padding: .5em;
    text-align: center;
    z-index: 999;
}

.user-options>div>span>div>span {
    display: block;
    padding: 0 .5em;
}

/* TABLE */

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    position: relative;
    padding: .2em .5em;
    border: 1px solid rgba(236, 240, 241, 1);
    text-align: left;
    vertical-align: middle;
}

th.control,
td.control {
    width: 1em;
    padding: 0 .5em;
}

td.control>* {
    cursor: pointer;
}

th.sort {
    padding: 0;
}

th.sort .sort-control {
    position: relative;
    margin: 0;
    padding: .18em .5em;
    height: 100%;
}

th .icon {
    margin-top: .3em;
}

td .icon {
    font-size: 1.2em;
}

table.no-border th,
table.no-border td {
    border: none;
    vertical-align: top;
}

/* IMPORT DRAG & DROP */

.drop-box {
    background-color: rgba(236, 240, 241, 1);
    border: 5px dashed rgba(52, 73, 94, 1);
    width: 400px;
    height: 6em;
    text-align: center;
    padding-top: 2em;
    margin: 1em;
    cursor: pointer;
}

.dragover {
    border: 5px dashed rgba(41, 128, 185, 1);
}

/* TOOLTIP */

.tooltip {
    position: relative
}

.tooltip:hover .tooltip-message,
.tooltip:focus .tooltip-message {
    display: block;
}

.tooltip-message {
    display: none;
    position: absolute;
    margin-top: 5px;
    padding: .25em .5em;
    background-color: #000;
    color: #fff;
    border: 1px solid rgba(189, 195, 199, 1.0);
    white-space: nowrap;
    z-index: 999;
}

.tooltip-message:before,
.tooltip-message:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent transparent currentColor transparent;
}

.tooltip-message:before {
    border-width: 0 9px 9px 9px;
    color: rgba(189, 195, 199, 1.0);
}

.tooltip-message:after {
    border-width: 0 7px 7px 7px;
    color: #000;
}

.tooltip-left {
    top: 100%;
    left: -2px;
}

.tooltip-left:before {
    top: -9px;
    left: -2px;
}

.tooltip-left:after {
    top: -7px;
    left: 0;
}

.tooltip-right {
    top: 100%;
    right: -2px;
}

.tooltip-right:before {
    top: -9px;
    right: -2px;
}

.tooltip-right:after {
    top: -7px;
    right: 0;
}

/* INFO CENTER */

.search::-ms-clear {
    width: 0;
    height: 0;
}

.message {
    margin-bottom: .5em;
    border-left: 1em solid rgba(189, 195, 199, 1.0);
}

.message .right,
.message-controls {
    float: right;
    margin-left: .5em;
}

.message-header {
    padding: .2em .5em;
    background-color: #ecf0f1;
    border: 1px solid rgba(189, 195, 199, 1.0);
    border-left: none;
    cursor: pointer;
}

.message-header>span+span,
.message-controls>span,
.message-controls>a {
    margin-left: .5em;
}

.message-details {
    border: 1px solid rgba(189, 195, 199, 1.0);
    border-left: none;
    border-top: none;
    cursor: default;
    white-space: pre-wrap;
}

.message-details.letter,
.message-details.general {
    border-bottom: none;
}

.message-details.letter:last-child,
.message-details.general:last-child {
    border-bottom: 1px solid rgba(189, 195, 199, 1.0);
    padding-bottom: .2em;
}

.message-details a {
    color: inherit;
    text-decoration: none;
}

.message-details .col:first-child {
    white-space: nowrap;
}

.message-details .col+.col {
    width: 100%;
}

.message-footer {
    height: 30px;
    padding: .5em;
}

.message-memo {
    border-top: 1px solid rgba(189, 195, 199, 1.0);
}

/* CONTAINERS */

.tabs {
    margin: 0;
    padding: 0;
    outline: none;
    border: 0;
    background: none;
    position: relative;
    text-align: left;
    padding-top: 2em;
}

.tabs>input {
    display: none;
}

.tabs>.tab-buttons {
    position: absolute;
    top: 0;
    left: 0;
}

.tabs>.tab-buttons>label,
.collapse>label {
    display: inline-block;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    font-size: 1em;
    line-height: 1em;
    background-color: rgba(52, 73, 94, 1);
    color: #fff;
    cursor: pointer;
}

.tabs>.tab-buttons>label span,
.collapse>label span {
    display: block;
    padding: .5em 1.25em;
    background: transparent;
    transition: background 0.2s, color 0.2s;
    -o-transition: background 0.2s, color 0.2s;
    -ms-transition: background 0.2s, color 0.2s;
    -moz-transition: background 0.2s, color 0.2s;
    -webkit-transition: background 0.2s, color 0.2s;
}

.tabs>.tab-content,
.collapse>.collapse-content {
    width: 100%;
    background: #fff;
    border-top: 3px solid rgba(52, 152, 219, 1.0);
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.collapse {
    display: block;
}

.collapse+.collapse {
    margin-top: .25em;
}

.collapse>input {
    display: none;
}

.collapse>input:checked+label span:after {
    content: '\e72c';
}

.collapse>label {
    display: block;
}

.collapse>label span {
    position: relative;
    padding: .5em 1em;
}

.collapse>label span:after {
    content: '\e72e';
    position: absolute;
    top: .4em;
    right: .5em;
    font-family: 'entypo';
    font-style: normal;
    font-size: 1.2em;
}

.collapse>.collapse-content {
    display: none;
    border: none;
}

.tab-buttons>.collapse,
.tab-buttons>.collapse>label {
    display: inline-block;
}

.tab-buttons>.collapse+.collapse {
    margin-top: 0;
}

.tab-buttons>.collapse>label span {
    padding: .5em 1.25em;
}

.tab-buttons>.collapse>label span:after {
    content: none !important;
}

.collapse>label:hover span,
.collapse>input:checked+label span {
    background: rgba(52, 152, 219, 1.0);
}

.collapse>input:checked~.collapse-content {
    position: relative;
    display: block;
}

.right {
    text-align: right !important;
}

.center {
    text-align: center !important;
}

.left {
    text-align: left !important;
}

/* DEFAULT THEME */

html,
body {
    background-color: rgba(236, 240, 241, 1);
    color: rgba(0, 0, 0, 1);
}

header {
    background-color: rgba(41, 128, 185, 1);
    color: rgba(255, 255, 255, 1);
}

footer {
    background-color: rgba(41, 128, 185, 1);
    color: rgba(255, 255, 255, 1);
}

nav {
    background-color: rgba(52, 73, 94, 1);
    color: rgba(255, 255, 255, 1);
}

nav>span:hover,
nav>span>nav {
    background-color: rgba(41, 128, 185, 1);
    color: rgba(255, 255, 255, 1);
}

nav>span>nav>span:hover {
    background-color: rgba(52, 152, 219, 1);
    color: rgba(255, 255, 255, 1);
}

nav>span.menuSelected {
    background-color: rgba(41, 128, 185, 1);
    color: rgba(255, 255, 255, 1);
}

.user-options>div {
    background-color: rgba(41, 128, 185, 1);
    color: rgba(255, 255, 255, 1);
}

.user-options>div>span:hover,
.user-options>div>span>div {
    background-color: rgba(52, 73, 94, 1);
    color: rgba(255, 255, 255, 1);
}

.user-options>div>span>div>span:hover {
    background-color: rgba(41, 128, 185, 1);
    color: rgba(255, 255, 255, 1);
}

.user-options>div>span.menuSelected {
    background-color: rgba(52, 73, 94, 1);
    color: rgba(255, 255, 255, 1);
}

.panel {
    background-color: rgba(255, 255, 255, 1);
    color: rgba(0, 0, 0, 1);
}

.box {
    margin: 0.75em;
    padding: 0.75em;
    border: 1px solid black;
}

.box-noborder {
    margin: 0em;
    padding: 0em;
}

.image-upload td {
    border-color: transparent;
    vertical-align: top;
}

.image-upload .drop-box {
    margin: 0;
    padding: 0;
    font-size: 1.2em;
    height: 150px;
    line-height: 150px;
}

.image-preview img {
    width: auto;
    max-height: 150px;
}

.image-preview {
    width: 300px;
    text-align: center;
}

/* BUTTONS */

.button {
    position: relative;
    display: block;
    height: 1.75em;
    margin-left: 0.75em;
    padding: 0 0.75em;
    /*outline: none;*/
    border: 0;
    font: 1em/1.75 'Open Sans', Helvetica, Arial, sans-serif;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

.button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

a.button {
    outline: none;
}

.link {
    /*outline: none;*/
    border: 0;
    text-decoration: none;
    cursor: pointer;
}

#dashboard .link-in-list {
    border: 0;
    text-decoration: none;
    cursor: pointer;
}

#dashboard .link-in-list-zebra {
    border: 0;
    text-decoration: none;
    cursor: pointer;
}

.unavailable {
    text-decoration: line-through;
    color: gray;
    cursor: auto;
}

.skip {
    height: 0;
    padding: 0;
}

.skip:focus {
    height: auto;
    padding: 0.25em;
}

/* normal state */

.button {
    background-color: rgba(189, 195, 199, 1.0);
    transition: background-color 0.2s;
    -ms-transition: background-color 0.2s;
    -moz-transition: background-color 0.2s;
    -webkit-transition: background-color 0.2s;
}

.button.button-primary {
    background-color: rgba(52, 152, 219, 1.0);
}

.button.button-danger {
    background-color: rgba(231, 76, 60, 1.0);
}

.link {
    color: rgba(52, 152, 219, 1.0);
}

/* disabled state */

.button[disabled] {
    cursor: default;
    opacity: 0.5;
}

.button[disabled]:hover {
    background-color: rgba(189, 195, 199, 1.0);
}

.button.button-primary[disabled]:hover {
    background-color: rgba(52, 152, 219, 1.0);
}

.button.button-danger[disabled]:hover {
    background-color: rgba(231, 76, 60, 1.0);
}

/* hover state */

.button:hover {
    background-color: rgba(149, 165, 166, 1.0);
}

.button.button-primary:hover {
    background-color: rgba(41, 128, 185, 1.0);
}

.button.button-danger:hover {
    background-color: rgba(192, 57, 43, 1.0);
}

.link:hover {
    color: rgba(41, 128, 185, 1.0);
}

#dashboard .link-in-list:hover {
    color: rgba(189, 195, 199, 1.0);
}

#dashboard .link-in-list-zebra:hover {
    opacity: 0.5;
}

.unavailable:hover {
    color: gray;
}

.input,
.select,
.textarea,
.radio,
.checkbox {
    position: relative;
    display: block;
}

.input input,
.select select,
.textarea textarea {
    display: block;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 100%;
    height: 1.75em;
    padding: 0.15em;
    outline: none;
    border-width: 1px;
    border-style: solid;
    background: #fff;
    font: 1em/1.45 'Open Sans', Helvetica, Arial, sans-serif;
    color: #000;
    appearance: normal;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.input img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 5px;
}

.input input[type="checkbox"] {
    width: auto;
    height: auto;
}

/* selects */

.select select {
    padding: 0 1.75em 0 0.2em;
}

.select select::-ms-expand {
    display: none;
}

.select:before {
    content: '\e703';
    position: absolute;
    top: 0;
    right: 0;
    width: 1.625em;
    height: 1.625em;
    line-height: 1.625em;
    text-align: center;
    font-family: 'entypo';
    font-style: normal;
    font-size: 1.1em;
    color: #000;
    pointer-events: none;
}

.textarea textarea {
    height: auto;
    resize: vertical;
}

/* datetime */

.input [ng-datetime]+i {
    position: absolute;
    top: 0;
    right: 0;
    width: 1.75em;
    height: 1.75em;
    line-height: 1.75em;
    text-align: center;
}

.input [ng-datetime]+i:after {
    content: '\e66d';
    font-family: 'entypo';
    font-style: normal;
    font-size: 1.1em;
    line-height: 1.625em;
    color: #000;
}

/* normal state */

.input input,
.select select,
.textarea textarea,
.radio i,
.checkbox i {
    border-color: rgba(189, 195, 199, 1.0);
    transition: border-color 0.3s;
    -ms-transition: border-color 0.3s;
    -moz-transition: border-color 0.3s;
    -webkit-transition: border-color 0.3s;
}

/* hover state */

.input:hover input,
.select:hover select,
.textarea:hover textarea,
.radio:hover i,
.checkbox:hover i {
    border-color: rgba(149, 165, 166, 1.0);
}

/* focus state */

.input input:focus,
.select select:focus,
.textarea textarea:focus,
.radio input:focus+i,
.checkbox input:focus+i {
    border-color: rgba(52, 152, 219, 1.0);
}

/* disabled state */

.input.state-disabled input,
.select.state-disabled,
.textarea.state-disabled,
.radio.state-disabled,
.checkbox.state-disabled {
    cursor: default;
    opacity: 0.5;
}

.input.state-disabled:hover input,
.select.state-disabled:hover select,
.textarea.state-disabled:hover textarea,
.radio.state-disabled:hover i,
.checkbox.state-disabled:hover i {
    border-color: rgba(189, 195, 199, 1.0);
}

/* FORMS */

.state-success {
    background-color: #dff0d8;
    border: 1px solid transparent;
    border-color: #d6e9c6;
    border-radius: 4px;
    color: #3c763d;
    margin-bottom: 20px;
    padding: 15px;
}

.state-error {
    background-color: #f2dede;
    border: 1px solid transparent;
    border-color: #ebccd1;
    border-radius: 4px;
    color: #a94442;
    margin-bottom: 20px;
    padding: 15px;
}

.state-info {
    background-color: #dbeeff;
    border: 1px solid transparent;
    border-color: #bddefd;
    border-radius: 4px;
    color: #2581d5;
    margin-bottom: 20px;
    padding: 15px;
}

/* error state */

.input-state-error>div:first-child,
.input-state-error input,
.input-state-error select,
.input-state-error textarea,
.radio.input-state-error i,
.checkbox.input-state-error i {
    background: rgba(231, 76, 60, .2);
}

.input-state-error em {
    display: block;
    margin-top: 0.15em;
    padding: 0;
    font-style: normal;
    font-size: 0.785em;
    line-height: 1.35em;
    color: rgba(231, 76, 60, 1.0);
}

/* numeric fields */

.input [type=number],
.input [ng-decimal],
.input [ng-currency] {
    text-align: right;
}

/* mnx-date */

.mnx-date-container,
.mnx-date-container div {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mnx-date-container {
    position: absolute;
    width: 220px;
    font-size: 12px;
    padding: 5px;
    border: 1px solid #bbb;
    background-color: #fff;
    font-family: sans-serif;
    z-index: 999;
}

.mnx-date-head {
    position: relative;
    height: 22px;
    line-height: 22px;
    padding: 0 25px;
    text-align: center;
    font-weight: bold;
}

.mnx-date-btn-mode {
    cursor: pointer;
}

.mnx-date-btn-prev,
.mnx-date-btn-next {
    position: absolute;
    top: 0;
    width: 25px;
    height: 22px;
    cursor: pointer;
}

.mnx-date-btn-prev {
    left: 0;
}

.mnx-date-btn-next {
    right: 0;
}

.mnx-date-btn-mode:hover,
.mnx-date-btn-prev:hover,
.mnx-date-btn-next:hover {
    background-color: #bbb;
}

.mnx-date-btn-prev[disabled],
.mnx-date-btn-next[disabled] {
    opacity: 0;
    cursor: default;
}

.mnx-date-calendar {
    table-layout: fixed;
    min-width: 175px;
    border-collapse: collapse;
}

.mnx-date-calendar th,
.mnx-date-calendar td {
    height: 22px;
    line-height: 22px;
    padding: 0 5px;
    border: 0 !important;
    text-align: center;
    text-transform: uppercase;
}

.mnx-date-calendar th {
    cursor: default;
}

.mnx-date-calendar td {
    cursor: pointer;
}

.mnx-date-cal-day:hover {
    background-color: #bbb;
}

.mnx-date-cal-day-sel {
    background-color: #bbf !important;
}

.mnx-date-cal-day-alt {
    color: #777;
}

.mnx-date-calendar td[disabled] {
    cursor: default;
}

/* mnx-color */

.mnx-color-container,
.mnx-color-container div {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mnx-color-container svg {
    display: block;
}

.mnx-color-lch,
.mnx-color-rch,
.mnx-color-alpha {
    position: relative;
}

.mnx-color-alpha {
    background-image: url("data:image/gif;base64,R0lGODdhCgAKAPAAALu7u////ywAAAAACgAKAAACEYQdmYcaDNxjEspKndVZbc8UADs=");
}

.mnx-color-container,
.mnx-color-lcur,
.mnx-color-rcur,
.mnx-color-acur {
    position: absolute;
}

/* STYLEABLE */

.mnx-color-container {
    padding: 5px;
    border: 1px solid #bbb;
    background-color: #fff;
    line-height: 0;
    z-index: 999;
}

.mnx-color-lch {
    display: inline-block;
    width: 127px;
    height: 127px;
    border: 1px solid #bbb;
}

.mnx-color-rch {
    display: inline-block;
    width: 15px;
    height: 127px;
    margin-left: 5px;
    border: 1px solid #bbb;
}

.mnx-color-alpha {
    width: 149px;
    height: 15px;
    margin-top: 5px;
    border: 1px solid #bbb;
}

.mnx-color-lcur:before,
.mnx-color-lcur:after,
.mnx-color-rcur:after,
.mnx-color-acur:after {
    content: "";
    position: absolute;
    border: 1px solid #fff;
}

.mnx-color-lcur:before,
.mnx-color-lcur:after {
    top: -2px;
    left: -2px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
}

.mnx-color-lcur:after {
    top: -3px;
    left: -3px;
    width: 5px;
    height: 5px;
    border-color: #444;
}

.mnx-color-rcur:after,
.mnx-color-acur:after {
    top: -1px;
    left: -1px;
    outline: #444 solid 1px;
}

.mnx-color-rcur:after {
    width: 15px;
    height: 1px;
}

.mnx-color-acur:after {
    width: 1px;
    height: 15px;
}

/* PIN DIV */

.pin {
    padding: 0.22em 0 0 0 !important;
    cursor: pointer;
}

.pin .icon {
    display: inline-block;
    font-size: 1.3em;
    opacity: 0.5;
}

.pin .icon.pinned {
    -ms-transform: rotate(-32deg);
    -webkit-transform: rotate(-32deg);
    transform: rotate(-32deg);
    opacity: 1;
}

.icon-trash.disabled {
    opacity: 0.5;
    cursor: default;
}

.icon.icon-magnifying-glass {
    opacity: 0.8;
}

table.border:first-of-type {
    margin-bottom: 2em;
}

table.border th,
table.border td {
    border: 1px solid black;
}

table.border td {
    border-width: 0 1px 0;
}

table.border td.th {
    border-width: 1px;
}

.table-container {
    height: 30em;
}

table.scrollable {
    display: flex;
    flex-flow: column;
    height: 100%;
    width: 100%;
}

table.scrollable thead {
    /* head takes the height it requires,
  and it's not scaled when table is resized */
    flex: 0 0 auto;
    width: -webkit-calc(100% - 0.9em);
    width: -moz-calc(100% - 0.9em);
    width: calc(100% - 0.9em);
}

table.scrollable tbody {
    /* body takes all the remaining available space */
    flex: 1 1 auto;
    display: block;
    overflow-y: scroll;
}

table.scrollable tbody tr {
    width: 100%;
}

table.scrollable thead,
table.scrollable tbody tr {
    display: table;
    table-layout: fixed;
}

.border-top {
    border-top: 1px solid black;
}

.border-right {
    border-right: 1px solid black;
}

.border-bottom {
    border-bottom: 1px solid black;
}

.border-left {
    border-left: 1px solid black;
}

.medium {
    font-size: 1.2em !important;
}

.large {
    font-size: 1.5em !important;
}

.xlarge {
    font-size: 3em !important;
}

.symbol {
    position: absolute;
    top: 0;
    right: 0;
    width: 2.75em;
    height: 1.75em;
    line-height: 1.65em;
    border: 1px solid rgb(189, 195, 199);
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    text-align: center;
}

.symbol+input,
.symbol+textarea {
    padding-right: 3em;
}

.dialog-mask {
    position: fixed;
    display: table;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10000;
}

.dialog-container {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.panel.dialog-panel {
    display: inline-block;
    min-width: 478px;
    padding: 17px;
}

.panel.dialog-panel>*+* {
    margin-top: 1em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

[layout]>.col {
    display: block;
}

@media only screen and (min-width: 1281px) {
    [layout=row] .medium {
        font-size: 100% !important;
    }
    [layout=row] .large {
        font-size: 120% !important;
    }
}

@media only screen and (max-width: 1280px) {
    [layout-md=column] {
        -webkit-box-direction: normal;
        -moz-box-direction: normal;
        -webkit-box-orient: vertical;
        -moz-box-orient: vertical;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    [layout-md=column] .panel {
        width: 100% !important;
    }
    [layout-md=column] .medium {
        font-size: 95% !important;
    }
    [layout-md=column] .large {
        font-size: 110% !important;
    }
    [layout-md=row] {
        -webkit-box-direction: normal;
        -moz-box-direction: normal;
        -webkit-box-orient: horizontal;
        -moz-box-orient: horizontal;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
    }
    [layout-md=row] .panel {
        width: 97% !important;
    }
    [layout-md=row] .medium {
        font-size: 95% !important;
    }
    [layout-md=row] .large {
        font-size: 110% !important;
    }
}

@media only screen and (max-width: 960px) {
    [layout-sm=column] {
        -webkit-box-direction: normal;
        -moz-box-direction: normal;
        -webkit-box-orient: vertical;
        -moz-box-orient: vertical;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    [layout-md=column] .panel {
        width: 97% !important;
    }
    [layout-sm=column] .medium {
        font-size: 95% !important;
    }
    [layout-sm=column] .large {
        font-size: 110% !important;
    }
}

@media only screen and (max-width: 600px) {
    [layout-xs=column] {
        -webkit-box-direction: normal;
        -moz-box-direction: normal;
        -webkit-box-orient: vertical;
        -moz-box-orient: vertical;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    [layout-md=column] .panel {
        width: 95% !important;
    }
    [layout-xs=column] .medium {
        font-size: 75% !important;
    }
    [layout-xs=column] .large {
        font-size: 85% !important;
    }
}

.dashboard-section {
    position: relative;
    outline: none;
    cursor: pointer;
    background-color: rgba(52, 73, 94, 1);
    background-repeat: no-repeat;
    background-position: center;
    transition: background-color 0.2s;
    -ms-transition: background-color 0.2s;
    -moz-transition: background-color 0.2s;
    -webkit-transition: background-color 0.2s;
}

.dashboard-section[disabled],
.dashboard-section.disabled,
#dashboardOverview>div.disabled {
    cursor: default;
    opacity: 0.5;
}

.dashboard-section.active,
.dashboard-section:hover {
    background-color: rgba(52, 152, 219, 1.0);
}

.dashboard-section .financing {
    height: 100%;
    border-radius: 10px;
    background-image: url('/images/dashboard/financing.png');
}

.dashboard-section .outpayment {
    height: 100%;
    border-radius: 10px;
    background-image: url('/images/dashboard/outpayment.png');
}

.dashboard-section .openItems {
    height: 100%;
    border-radius: 10px;
    background-image: url('/images/dashboard/openItems.png');
}

.dashboard-section .account {
    height: 100%;
    border-radius: 10px;
    background-image: url('/images/dashboard/account.png');
}

.dashboard-section .unpurchasedReceivables {
    height: 100%;
    border-radius: 10px;
    background-image: url('/images/dashboard/unpurchasedReceivables.png');
}

.dashboard-section input {
    position: absolute;
}

.dialogdemoBasicUsage.popupContainer {
    position: relative;
}

.dialogdemoBasicUsage .footer {
    width: 100%;
    text-align: center;
    margin-left: 20px;
}

.dialogdemoBasicUsage .footer,
.dialogdemoBasicUsage .footer>code {
    font-size: 0.8em;
    margin-top: 50px;
}

.dialogdemoBasicUsage button {
    width: 500px;
}

.dialogdemoBasicUsage div#status {
    color: #c60008;
}

.dialogdemoBasicUsage .dialog-demo-prerendered md-checkbox {
    margin-bottom: 0;
}

/* LOOKUP DIALOG */

.lookup-dialog {
    position: absolute;
    min-width: 500px;
    top: 100px;
}

.lookup-header {
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.lookup-body {
    position: relative;
    padding: 15px;
}

.lookup-body th,
.lookup-body td {
  border: 1px solid #ddd;
  outline: none;
  padding: 4px;
}

.lookup-body .pagination{
    margin-bottom: 0;
}

.lookup-body .pagination > .active > a,
.lookup-body .pagination > .active > a,
.lookup-body tr.selected {
  color: #fff !important;
  background-color: rgba(52, 152, 219, 1.0) !important;
  border-color: rgba(52, 152, 219, 1.0) !important;
}

.lookup-footer {
    padding: 10px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
}

.no-border {
  border: none !important;
}

tr.cronjobEntry {
  cursor: pointer;
  outline: none;
}

tr.cronjobEntry:hover {
  color: #a0a0a0;
}

/* DIRECT PAYMENT DIALOG */

.direct-payment-dialog {
  position: absolute;
  min-width: 800px;
  top: 100px;
}

:-ms-fullscreen,
:root .direct-payment-dialog {
  position: absolute;
  min-width: 800px;
  top: 100px;
  transform: translate(-50%,0) scale(1) !important;
}

.direct-payment-header {
  padding: 10px;
  border-bottom: 1px solid #e5e5e5;
}

.direct-payment-body {
  position: relative;
  padding: 15px;
}

.direct-payment-body th.row-separator,
.direct-payment-body td.row-separator {
  border-bottom-color: rgb(121, 121, 121);
  border-bottom-width: 3px;
}

.direct-payment-body th,
.direct-payment-body td {
  border: 1px solid #ddd;
  outline: none;
  padding: 4px;
}

.direct-payment-body .pagination{
  margin-bottom: 0;
}

.direct-payment-body .pagination > .active > a,
.direct-payment-body tr.selected {
  color: #fff !important;
  background-color: rgba(52, 152, 219, 1.0) !important;
  border-color: rgba(52, 152, 219, 1.0) !important;
}

.direct-payment-footer {
  padding: 10px;
  text-align: right;
  border-top: 1px solid #e5e5e5;
}
