* {
    box-sizing: border-box;
}

body {
	font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
    line-height: 1.3;
	color: #333;
    background-color: #ddd;
    margin: 0;
    padding: 0;
}

body.frame {
    background-color: #fff;
}

body.frame h1 {
    margin: 0 0 15px 0;
}

.body-centered {
    width: 90%;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: Palatino, Georgia, Times, sans-serif;
}

.headline {
    font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
}

.subheadline {
    font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: normal;
}

.section-headline {
    margin: 20px 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #646465;
}

a {
	text-decoration: none;
	color: #333333;
}

a:hover {
    text-decoration: underline;
}

a.text {
    text-decoration: underline;
}

img {
    border: 0;
}

ul {
    padding-left: 16px;
    margin: 0;
}

hr {
    border: 0;
    height: 1px;
    background: #646465;
}

.text--strong {
    font-size: 14px;
    font-weight: bold;
}

.text--attention {
    color: #990000;
}

.text--highlight {
    color: #cc0000;
}

.text--disabled {
    color: #999999;
}

.text--big {
    font-size: 16px;
}

.text--small {
    font-size: 10px;
}

.text-align-right {
    text-align: right;
}

.text-align-ceter {
    text-align: center;
}

.nowrap {
    white-space: nowrap;
}

.block {
    display: block;
}

.fullwidth {
    width: 100%;
}

.screenheight {
    min-height: 100vh;
}

.hyphens {
    hyphens: auto;
}

.content-iframe {
    width: 100%;
    height: 300px;
    padding: 0;
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pt-5 {
    padding-top: 5px;
}

.pl-5 {
    padding-left: 5px;
}

.p-5 {
    padding: 5px;
}

.p-15 {
    padding: 15px;
}

.p-20 {
    padding: 20px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-14 {
    margin-bottom: 14px;
}

.mb-30 {
    margin-bottom: 30px;
}

.m-0 {
    margin: 0;
}

.mt-0 {
    margin-top: 0;
}

.mt-3 {
    margin-top: 3px;
}

.mt-5 {
    margin-top: 5px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.ml-5 {
    margin-left: 5px;
}

.mr-8 {
    margin-right: 8px;
}

.w-80 {
    width: 80px;
}

.save-status-container {
    position: relative;
    padding-right: 20px;
}

.save-status-icon {
    position: absolute;
    right: 0;
    top: 0;
    width: 15px;
    cursor: pointer;
}

/* clearfix */
.clearfix:before,
.clearfix:after {
    content: ' ';
    display: table;
}

.clearfix:after {
    clear: both;
}

/* flex */
.flex {
    display: flex;
    flex-wrap: wrap;
}

.flex-space-between {
    justify-content: space-between;
}

.flex > .centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-item-100 {
    min-width: 100%;
    max-width: 100%;
}

.flex-item-50 {
    min-width: calc(50% - 7px);
    max-width: calc(50% - 7px);
}

.flex-item-50:first-child {
    margin-right: 7px;
}

.flex-item-50:last-child {
    margin-left: 7px;
}

.flex-item-33 {
    min-width: calc(33% - 11px);
    max-width: calc(33% - 11px);
    margin-left: 7px;
    margin-right: 7px;
}

.flex-item-33:first-child {
    margin-left: 0
}

.flex-item-33:last-child {
    margin-right: 0;
}

.flex-item-25 {
    min-width: calc(25% - 11px);
    max-width: calc(25% - 11px);
    margin-left: 7px;
    margin-right: 7px;
}

.flex-item-25:first-child {
    margin-left: 0
}

.flex-item-25:last-child {
    margin-right: 0;
}

.flex-item-7030:first-child {
    min-width: calc(70% - 7px);
    max-width: calc(70% - 7px);
    margin-right: 7px
}

.flex-item-7030:last-child {
    min-width: calc(30% - 7px);
    max-width: calc(30% - 7px);
    margin-left: 7px;
}

.flex-item-7525:first-child {
    min-width: calc(75% - 7px);
    max-width: calc(75% - 7px);
    margin-right: 7px
}

.flex-item-7525:last-child {
    min-width: calc(25% - 7px);
    max-width: calc(25% - 7px);
    margin-left: 7px;
}

@media (max-width: 1024px) {
    .flex-item-25 {
        min-width: calc(50% - 7px);
        max-width: calc(50% - 7px);
    }

    .flex-item-25:first-child {
        margin-bottom: 14px;
    }

    .flex-item-25:nth-child(2) {
        margin-right: 0;
        margin-bottom: 14px;
    }

    .flex-item-25:nth-child(3) {
        margin-left: 0
    }
}

@media (max-width: 768px) {
    .flex {
        display: block;
    }

    .flex-item-50,
    .flex-item-33,
    .flex-item-7030,
    .flex-item-7525,
    .flex-item-25 {
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .flex-item-50:first-child,
    .flex-item-7030:first-child,
    .flex-item-7525:first-child,
    .flex-item-33,
    .flex-item-25 {
        margin-bottom: 14px !important;
    }

    .flex-item-33:last-child,
    .flex-item-25:last-child {
        margin-bottom: 0 !important;
    }
}

.navigation {
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #646465;
}

.navigation-bottom {
    margin-top: 15px;
    padding-top: 5px;
    border-top: 1px solid #646465;
}

.navigation .pagination,
.navigation-bottom .pagination{
    float: right;
}

.navigation .flex-item-33,
.navigation-bottom .flex-item-33 {
    text-align: center;
}

.navigation .flex-item-33:first-child,
.navigation-bottom .flex-item-33:first-child {
    text-align: left;
}

.navigation .flex-item-33:last-child,
.navigation-bottom .flex-item-33:last-child {
    text-align: right;
}

/* box */
.box {
    border: 1px solid #646465;
    background-color: #fafafa;
}

.box h2 {
    padding: 5px;
    margin: 0;
    background-color: #2e3f5f;
    font-weight: bold;
    white-space: nowrap;
    color: #fff;
    font-size: 14px;
    text-align: left;
}

.box--bottom-link {
    padding: 5px;
    background-color: #ebebeb;
}

.box--bottom-link a {
    font-weight: bold;
}

.box-image {
    display: block;
    margin: 0 auto 15px auto;
}

/* tabs */
.tabs {
    display: flex;
}

.tab {
    padding: 5px 10px;
    border-top: 1px solid #646465;
    border-right: 1px solid #646465;
}

.tab:first-child {
    border-left: 1px solid #646465;
}

.tab.is-active {
    background-color: #646465;
    color: #fff;
}

.tab.is-active a {
    color: #fff;
}

/* table */
.table {
    display: table;
    width: 100%;
}

.trow {
    display: table-row;
}

.trow.highlighted {
    background-color: #cc0000 !important;
}

.trow.highlighted .tcell {
    color: #fff;
}

.trow.attention {
    background-color: #d2cb86 !important;
}

a.trow,
a.trow:hover {
    text-decoration: none;
}

a.trow:hover .underline {
    text-decoration: underline
}

.trow:nth-child(even) {
    background-color: #d8d8d8;
}

.trow:nth-child(odd) {
    background-color: #eee;
}

.thead,
.tcell {
    display: table-cell;
    hyphens: auto;
    overflow: hidden;
}

.trow.top-bordered .tcell {
    border-top: 1px solid #2e3f5f;
}

.thead {
    padding: 5px;
    background-color: #2e3f5f;
    font-weight: bold;
    text-align: center;
    color: #fff;
}

.thead a.sort-link {
    color: #fff;
}

.thead a.sort-link.has-image {
    display: inline-block;
    position: relative;
    padding-right: 25px;
}

.thead a.sort-link.has-image img {
    position: absolute;
    right: 0;
    top: calc(50% - 10px);
}

.tcell {
    padding: 5px;
    vertical-align: top;
}

.tcell.right {
    text-align: right;
}

.tcell.center {
    text-align: center;
}

.tcell a {
    display: inline-block;
}

.tcell.has-image img {
    max-width: 50px;
}

.table-attributes {
    font-size: 10px;
}

.table-attributes td {
    vertical-align: top;
}

.table-attributes td:first-child {
    font-weight: bold;
    padding-right: 3px;
}

/* form */
.form-row {
    display: flex;
    margin-top: 5px;
    margin-bottom: 5px;
}

.form-row.is-dummy,
.form-row.is-label {
    height: 21px;
}

.form-row > label {
    min-width: 25%;
    max-width: 25%;
    padding-right: 10px;
    font-weight: bold;
}

.form-rows-5050 .form-row > label {
    min-width: 50%;
    max-width: 50%;
}

.form-rows-3466 .form-row > label {
    min-width: 34%;
    max-width: 34%;
}

.form-row.has-input > label {
    padding-top: 4px;
}

.form-row .form-field {
    min-width: calc(75% - 10px);
    max-width: calc(75% - 10px);
}

.form-rows-5050 .form-row .form-field {
    min-width: calc(50% - 10px);
    max-width: calc(50% - 10px);
}

.form-rows-3466 .form-row .form-field {
    min-width: calc(66% - 10px);
    max-width: calc(66% - 10px);
}

.form-row.has-checkbox:not(.is-indented) .form-field {
    min-width: 100% !important;
    max-width: 100% !important;
}

.form-row.has-icon .form-field {
    display: flex;
}

.form-row.has-icon .form-field img,
.form-row.has-icon .form-field button,
.form-row.has-icon .form-field span {
    align-self: center;
    margin-left: 5px;
}

.form-row.has-icon .form-field button {
    padding: 1px 5px 2px;
}

.form-row.has-checkbox .form-field,
.form-row.is-indented .form-field {
    display: flex;
}

.form-row.has-checkbox .form-field label.same-width {
    min-width: 23%;
    max-width: 23%;
    white-space: nowrap;
}

.form--indented,
.form-row.is-indented .form-field {
    margin-left: 25%;
}

.form-rows-5050 .form-row.is-indented .form-field {
    margin-left: 50%;
}

.form-rows-3466 .form-row.is-indented .form-field {
    margin-left: 34%;
}

.form-row .form-field .crypt-text {
    width: 100%;
    max-width: 300px;
    margin: 5px 0;
}

.form-row .form-field img {
    margin-left: 5px;
}

.form-row .form-field img.preview {
    margin: 0;
    width: 100px;
    height: auto;
}

.form-row .form-field > .form-field--group,
.form-row .form-field > .form-dyn-select,
.form-row .form-field > select,
.form-row .form-field > input:not(.button) {
    width: 100%;
    max-width: 300px;
}

.form-row .form-field > input.day,
.form-row .form-field > input.month,
.form-row .form-field > input.minute,
.form-row .form-field > input.hour {
    width: 10%;
    max-width: 30px;
}

.form-row .form-field > input.year {
    width: 20%;
    max-width: 60px;
}

.form-row .form-field > textarea {
    width: 100%;
}

.form-row .form-field > .form-dyn-select {
    position: relative;
}

.form-row .form-field > .form-dyn-select button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 23px;
    padding: 0;
}

.form-row .form-field > .form-dyn-select input {
    width: 100%;
}

.form-dyn-select-container {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    max-height: 200px;
    background-color: #fff;
    border: 1px solid #bcbbbb;
    overflow: auto;
    z-index: 100;
    display: none;
}

.form-dyn-select-container div {
    padding: 2px;
    cursor: pointer;
}

.form-dyn-select-container div:hover,
.form-dyn-select-container div.hover {
    background-color: #ccdae4;
}

.form-dyn-select.active .form-dyn-select-container {
    display: block;
}

.form-field--group-inner {
    margin-bottom: 3px;
}

.form-row .form-field > textarea {
    min-height: 100px;
}

.form-row .form-field > textarea.receipients {
    height: 40px;
    min-height: 0;
    max-width: 300px;
}

.form-row .form-field.combined-30-70 :first-child,
.form-row .form-field.combined-70-30 :last-child {
    width: 29%;
    max-width: 88px;
}

.form-row .form-field.combined-70-30 :first-child,
.form-row .form-field.combined-30-70 :last-child {
    width: 69%;
    max-width: 208px;
}

.form-row .form-field.combined-50-50 :first-child,
.form-row .form-field.combined-50-50 :last-child {
    width: 49%;
    max-width: 148px;
}

.form-row.has-checkbox .form-field input {
    width: auto;
    margin-right: 8px;
}

.form-row.has-checkbox .form-field input.is-5050 {
    width: 50%;
    max-width: 140px;
}

.form-hr {
    margin: 15px 0;
}

select,
input,
textarea {
	border: 1px solid #bcbbbb;
	padding: 3px;
}

select.error,
input.error,
textarea.error {
	border: 1px solid #990000;
}

textarea.editor {
	width: 100%;
    height: 300px;
}

textarea.editor + iframe {
    border: 1px solid #bcbbbb !important;
    height: 765px !important;
}

.button {
    display: inline-block;
    border: 1px solid #2e3f5f;
    padding: 5px 10px;
	color: #2e3f5f;
	background-color: #ccdae4;
	font-size: 13px;
	font-weight: bold;
	cursor: pointer;
    width: auto;
}

.button.is-inline {
    padding: 1px 10px 2px;
}

.button.is-active,
.button:hover {
    border: 1px solid #990000;
	color: #990000;
	background-color: #ffff99;
    text-decoration: none;
}

.button[disabled] {
    border: 1px solid #ccc;
	color: #ccc;
	background-color: #eee;
}

.button.fa,
.button.far,
.button.fas {
    width: 35px;
    height: 30px;
    text-align: center;
}

.button.fa.small,
.button.far.small,
.button.fas.small {
    width: 20px;
    height: 20px;
    padding: 2px;
    font-size: 10px;
}

.hidden {
    display: none;
    visibility: hidden;
}

.visible {
    visibility: visible;
}

.login-table {
    width: 100%;
    background-color: #ccc;
    margin-bottom: 10px;
}

.login-table td {
    font-family: Palatino, Georgia, Times, sans-serif;
    font-size: 14px;
    padding: 2px;
}

.login-table td:first-child {
    font-weight: bold;
}

.login-table td:last-child {
    word-break: break-all;
}

@media (max-width: 768px) {
    .form-row.is-dummy {
        display: none;
    }
}

@media (max-width: 640px) {
    .form-row {
        display: block;
    }

    .form-row label {
        margin-bottom: 3px;
    }

    .form-row label,
    .form-row .form-field {
        display: block;
        min-width: 0;
        max-width: 100%;
    }

    .form--indented,
    .form-row.is-indented .form-field {
        margin-left: 0;
    }

    .hide-on-mobile,
    .table thead {
        display: none;
    }

    .trow {
        display: block;
        margin-bottom: 10px;
    }

    .tcell {
        position: relative;
        display: block;
        width: auto;
        min-height: 26px;
        padding: 5px 5px 5px 120px;
        text-align: left !important;
        border-bottom: 1px solid #2e3f5f;
        border-right: 1px solid #2e3f5f;
        border-left: 1px solid #2e3f5f;
    }

    .tcell:first-child {
        border-top: 1px solid #2e3f5f;
    }

    .tcell:before {
        position: absolute;
        content: attr(data-label);
        width: 100px;
        top: 0;
        bottom: 0;
        left: 0;
        padding: 5px;
        background-color: #2e3f5f;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        text-align: left;
        color: #fff;
        font-weight: bold;
    }
}
