/*
 * redweb.css
 *
 * (c) Copyright 2008-2011 Mittelrhein Verlag GmbH. All Rights Reserved.
 */

body {
    font: 14px/20px 'Droid Sans', sans-serif;
    padding: 0;
    margin: 0;
    color: #222;
}

body > div.body {
    height: 100vh;
    min-width: 768px;
    display: flex;
    flex-direction: column;
}

body > div.print {
    display: none;
}

@media print {
    body > div.body {
        display: none;
    }

    body > div.print {
        display: block;
    }
}

a {
    color: #0078b7;
    text-decoration: none;
}

strong {
    font-weight: bold;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-weight: bold;
}

h1,
.h1 {
    font-size: 18px;
}

h2,
.h2 {
    font-size: 14px;
}

table {
    width: 100%;
}

*:focus,
*:active {
    -moz-outline: 0px none transparent;
    outline: 0px none transparent;
}

ul.dottedlist {
    list-style-type: circle;
    padding-left: 13px;
}

/* HANDY CLASSES --------------------------------------------------------------------------- */

.float_left {
    float: left !important;
}

.float_right {
    float: right !important;
}

.align_right {
    text-align: right !important;
}

.align_left {
    text-align: left !important;
}

.align_center {
    text-align: center !important;
}

.align_justify {
    text-align: justify;
}

.nowrap {
    white-space: nowrap;
}

.smalltext {
    font-size: 11px;
}

.smallertext {
    font-size: 12px;
}

.normaltext {
    font-weight: normal;
    text-transform: none;
}

.greytext {
    color: #666;
}

.greytext strong {
    color: #666;
}

/* WARNING, ERROR, SUCCESS DIVS (also handy ;) -------------------------------------------------- */

div.warning,
div.success,
div.error {
    padding: 0.5em;
    text-align: center;
    margin-bottom: 1em;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}

div.error {
    background-color: #fdd;
}

div.warning {
    background-color: #ffc;
}

div.success {
    background-color: #bbffb6;
}

span.error {
    color: #b00;
    text-transform: uppercase;
    font-weight: bold;
}

/* HEADER & FOOTER ------------------------------------------------------------------------- */

header,
footer {
    z-index: 1000;
}

/* NAVIGATION & MENUS ---------------------------------------------------------------------- */

.menu {
    position: relative;
    display: inline-block;
}

.menubutton {
    display: inline-block;
}

.menubutton i[class] {
    color: var(--fontColorSurface);
}

.desktop-nav .menubutton.current i[class],
.desktop-nav .menu:hover .menubutton i[class] {
    color: var(--primary-text);
}

.submenu,
.tablet-nav #notification-menu .submenu {
    display: none;
    position: absolute;
    margin-left: -1px;
    z-index: 1100;
    background: #ffffff;
    border: 1px solid #d3d3d3;
    border-top: none;
    border-radius: 4px;
    padding: 6px 0;
    box-shadow: 0px 0px 5px #aaa;
    -moz-box-shadow: 0px 0px 5px #aaa;
    -webkit-box-shadow: 0px 0px 5px #aaa;
}

.submenu a {
    display: block;
    padding: 4px 8px;
    margin: 1px 8px;
    border-radius: 4px;
    white-space: nowrap;
    color: #191919;
    cursor: pointer;
}

.submenu a:hover {
    background-color: var(--primaryHLLightest);
    color: var(--primary);
}

.submenu.default a:hover {
    background-color: var(--primaryDefaultHLLightest);
    color: var(--primaryDefault);
}

.submenu.topic a:hover {
    background-color: var(--primaryTopicHLLightest);
    color: var(--primaryTopic);
}

.submenu.appointment a:hover {
    background-color: var(--primaryAppointmentHLLightest);
    color: var(--primaryAppointment);
}

.submenu hr {
    border: none;
    border-top: 1px solid #e7e7e7;
}

.menu:not(.profile_menu):hover .submenu,
.profile_menu.show_profile_menu .submenu {
    display: block;
}

.tablet-nav .menu:hover .submenu {
    display: none;
}

.profile_menu_overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0.1;
    z-index: 1000;
}

header nav {
    height: 50px;
    background: var(--backgroundSurface);
    color: var(--fontColorSurface);
}

header nav .logo {
    float: left;
    width: 100px;
    height: 50px;
    margin: 0px 20px 0px 20px;
    background: var(--backgroundSurface) url("../images/logo.d09ac750a0db.svg") no-repeat
        center;
    /* no-repeat 26px 15px;*/
    background-size: 100px auto;
}

header .menu {
    float: left;
}

header .menubutton {
    display: inline-block;
}

header .menubutton,
.tablet-nav .submenu > a {
    color: var(--fontColorSurface);
    line-height: 42px;
    padding: 0 12px 0 16px;
    font-size: 16px;
    margin: 4px;
    border-radius: 4px;
}

/*header .menu:hover .menubutton, header .menubutton:hover, header .menubutton.current {
    background:             #399FD4; }*/

.tablet-nav .menu:hover > a,
.tablet-nav .submenu.default a:hover {
    background-color: var(--primaryDefaultHLLightest);
    color: var(--primaryDefault);
}

.tablet-nav .menu.topic:hover > a {
    background-color: var(--primaryTopicHLLightest);
    color: var(--primaryTopic);
}

.tablet-nav .submenu.topic a:hover {
    background-color: var(--primaryTopicHLLightest);
    color: var(--primaryTopic);
}

.tablet-nav .menu.appointment:hover > a {
    background-color: var(--primaryAppointmentHLLightest);
    color: var(--primaryAppointment);
}

.tablet-nav .submenu.appointment a:hover {
    background-color: var(--primaryAppointmentHLLightest);
    color: var(--primaryAppointment);
}

.tablet-nav .menu:hover > a i,
.tablet-nav .submenu a:hover i {
    color: var(--primaryDefault);
}

.tablet-nav .menu.topic:hover > a i,
.tablet-nav .submenu.topic a:hover i {
    color: var(--primaryTopic);
}

.tablet-nav .menu.appointment:hover > a i,
.tablet-nav .submenu.appointment a:hover i {
    color: var(--primaryAppointment);
}

.tablet-nav .menubutton.current i {
    color: var(--primaryDefault-text);
}

.tablet-nav .menubutton.topic.current i {
    color: var(--primaryTopic-text);
}

.tablet-nav .menubutton.appointment.current i {
    color: var(--primaryAppointment-text);
}

header .menubutton.current {
    background-color: var(--primaryDefault);
    color: var(--primaryDefault-text);
}

header .menubutton.appointment.current {
    background: var(--primaryAppointment);
    color: var(--primaryAppointment-text);
}

header .menubutton.topic.current {
    background: var(--primaryTopic);
    color: var(--primaryTopic-text);
}

header .desktop-nav .menu:hover .menubutton,
header .desktop-nav .menubutton:hover,
header #desktop-nav .menu:hover .menubutton,
header #desktop-nav .menubutton:hover {
    background: var(--primaryDefaultHighlight);
    color: var(--primaryDefault-text);
}

header .desktop-nav .menu:hover .menubutton.appointment,
header .desktop-nav .menubutton.appointment:hover,
header #desktop-nav .menu:hover .menubutton.appointment,
header #desktop-nav .menubutton.appointment:hover {
    background: var(--primaryAppointmentHighlight);
    color: var(--primaryAppointment-text);
}

header .desktop-nav .menu:hover .menubutton.topic,
header .desktop-nav .menubutton.topic:hover,
header #desktop-nav .menu:hover .menubutton.topic,
header #desktop-nav .menubutton.topic:hover {
    background: var(--primaryTopicHighlight);
    color: var(--primaryTopic-text);
}

header .menubutton .counter {
    display: inline-block;
    position: relative;
    top: -1px;
    padding: 5px 8px;
    margin-left: 3px;
    text-align: center;
    font-size: 12px;
    line-height: 1;
    min-width: 1.5em;
    color: var(--primaryDefault-text);
    background: var(--primaryDefault);
    border-radius: 12px;
    -moz-border-radius: 12px;
    -webkit-border-radius: 12px;
}

header .menubutton.appointment .counter {
    display: inline-block;
    position: relative;
    top: -1px;
    padding: 5px 7px;
    margin-left: 3px;
    text-align: center;
    font-size: 12px;
    line-height: 1;
    min-width: 1.5em;
    color: var(--primaryAppointment-text);
    background: var(--primaryAppointment);
    border-radius: 12px;
    -moz-border-radius: 12px;
    -webkit-border-radius: 12px;
}

header .menubutton.topic .counter {
    display: inline-block;
    position: relative;
    top: -1px;
    padding: 5px 7px;
    margin-left: 3px;
    text-align: center;
    font-size: 12px;
    line-height: 1;
    min-width: 1.5em;
    color: var(--primaryTopic-text);
    background: var(--primaryTopic);
    border-radius: 12px;
    -moz-border-radius: 12px;
    -webkit-border-radius: 12px;
}

header .profile_menu {
    float: right !important;
    padding-right: 10px;
    /* height is important because 100% let's it overflow the navbar and hence creates problems with the submenu */
    height: 50px;
}

header .profile_menu .submenu {
    right: 0;
    top: 42px;
}

header .profile_menu .submenu.profile_menu_overlay {
    top: 50px;
}

footer .menubutton,
.table-sorting-component .menubutton {
    line-height: 20px;
    font-size: 12px;
    padding: 0 13px 0 13px;
    border: 1px solid #dddddd;
}

footer .submenu {
    bottom: 22px;
}

#sort-order-label {
    color: grey;
    padding-left: 1em;
    font-size: 80%;
}

.nav-subheading {
    color: grey;
    font-size: 12px;
    padding-left: 1em;
}

.tablet.nav-subheading {
    color: white;
}

/* MOBILE NAV BAR -------------------------------------------------------------------------- */

.tablet-nav {
    width: 100vw;
}

.tablet-nav #menu-list {
    display: flex;
    flex-direction: column;
}

.tablet-nav .hide-on-tablet,
.tablet-nav ~ #infobar .hide-on-tablet {
    display: none !important;
}

.desktop-nav .hide-on-desktop {
    display: none !important;
}

#burger-menu-icon {
    font-size: 30px;
    /* color:                  white; */
    padding: 10px;
    margin-left: 5px;
    cursor: pointer;
    float: left;
}

.tablet-nav #menu-list,
.tablet-nav .profile_menu .submenu,
.tablet-nav #notification-menu .submenu {
    position: absolute;
    top: 50px;
    z-index: 1001;
    /* border:                 1px solid #2686BB; */
    overflow-y: auto;
    overflow-x: hidden;
    white-space: nowrap;
    border-radius: 5px;
    box-shadow: 3px 9px 20px 3px rgba(0, 0, 0, 0.3);
}

.tablet-nav .profile_menu .submenu {
    right: 0px;
}

.tablet-nav #menu-list,
.tablet-nav .submenu {
    display: none;
    flex-direction: column;
    flex-basis: auto;
    width: auto;
}

.tablet-nav #menu-list {
    left: 5px;
    /*background:           #2686BB;*/
    background: var(--backgroundSurface);
    max-height: 75vh;
    max-width: 90vh;
}

.tablet-nav #menu-list a {
    width: calc(100% - 8px);
    margin-right: 10px;
}

.tablet-nav #menu-list .submenu > a {
    width: calc(100% - 28px);
    margin-right: 10px;
}

.tablet-nav #menu-list .menu-item {
    display: none;
}

.tablet-nav .submenu .tablet-menubutton {
    padding-left: 45px;
    /*background:             #2686BB;*/
    background: var(--backgroundSurface);
}

.tablet-nav .submenu .tablet-menubutton:hover {
    padding-left: 45px;
    background: #2b8dc2;
}

.menubutton-upper-border {
    border-top: 1px solid #8abcd6;
}

.narrow-text {
    font-weight: 100;
    color: #8abcd6;
}

nav.tablet-nav .logo {
    display: inline;
}

/* PROFILE --------------------------------------------------------------------------------- */

#profile {
    float: right;
    margin: 9px 26px 0 0;
    color: #fff;
}

#profile a {
    color: #fff;
}

#profile img {
    width: 32px;
    height: 32px;
    margin: 0 6px 0 0;
    float: left;
    display: block;
}

/* INFOBAR --------------------------------------------------------------------------------- */

#infobar {
    position: relative;
    background: var(--backgroundSurface);
    padding: 3px 26px;
    z-index: 100;
    min-height: 44px;
    color: var(--fontColorSurface);
}

body.show-infobar #infobar {
    display: block;
}

#infobar .logo {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 200px;
    height: 50px;
    background-size: cover;
}

#infobar h1 {
    font-size: 16px;
    line-height: 38px;
    font-weight: normal;
}

#infobar a {
    color: var(--fontColorSurface);
}

#infobar i[class] {
    color: var(--fontColorSurface);
}

/* CONTENT --------------------------------------------------------------------------------- */

#content {
    padding: 16px;
    overflow-x: hidden;
    flex-grow: 1;
}

#content .content_container {
    display: flex;
    flex-direction: row;
    height: 100%;
    /*justify-content: space-between;*/
}

#content .sidebar {
    order: 2;
    width: 316px;
    margin: -20px -16px -20px 0;
    padding: 20px 16px;
    background: #fcfcfc;
    position: relative;
    border-left: 1px solid #e7e7e7;
}

#content .center {
    order: 1;
    padding-right: 16px;
    position: relative;
    width: calc(100vw - 316px);
}

.topic-content-list #content .center {
    overflow-y: auto;
}

/* DATATABLE ------------------------------------------------------------------------------- */

.datatable,
.datagrid {
    width: 100%;
    margin-bottom: 29px;
}

.dash-item .datatable:last-child {
    margin-bottom: 0;
}

.update-me .datatable,
.update-me .datagrid {
    margin-bottom: 29px;
}

.update-me .inner .datatable,
.update-me .inner .datagrid,
.inner .datagrid {
    margin-bottom: 0px;
}

.datatable.fixed_layout {
    table-layout: fixed;
}

.datatable .selectable,
.datagrid .selectable {
    background: #fff;
}

.datatable .selectable:hover,
.datagrid .selectable:hover,
.selectable.hover {
    background: var(--highlight) !important;
}

.datatable .selectable.selected,
.datatable .selectable.selected:hover,
.data_details_metadata.selected,
.datagrid .selectable.selected,
.datagrid .selectable.selected:hover {
    background: var(--select) !important;
}

.datatable .detailed .hide_in_detailed_view,
.datatable .compact .show_in_detailed_view,
.datatable.tablet .hide-on-tablet,
.datatable.desktop .hide-on-desktop {
    display: none;
}

.datatable .detailed .block-in-deailed-view {
    display: block;
}

.datatable .compact .block-in-deailed-view {
    display: inline-block;
}

.datatable .even,
.datatable > tbody > tr {
    background: #ffffff;
}

.sidebar .datatable tr {
    background: transparent;
}

.datatable .odd {
    background: #fcfcfc;
}

.datatable th,
.datatable td,
.datatable .table-header,
.datatable.grid-template > div {
    padding: 8px 16px 8px 16px;
    text-align: left;
    vertical-align: top;
    line-height: 16px;
    border-top: 1px solid var(--border);
}

.datatable th.compact,
.datatable td.compact,
.datatable .table-header.compact,
.datatable td.compact {
    padding: 6px 0;
}

.datatable th,
.datatable .table-header {
    border-bottom: 1px solid #e7e7e7;
    white-space: nowrap;
    vertical-align: bottom;
    color: #999;
}

.datatable th:first-child,
.table-header:first-child {
    font-weight: bold;
    text-transform: uppercase;
    color: #000;
    padding-left: 3px !important;
}

/*.datatable td, .table-header,
.datatable.grid-template.desktop > div,
.datatable.grid-template.tablet > div.tablet-underline,
.datatable.grid-template.mobile > div.mobile-underline {
    border-bottom:          1px solid #e7e7e7;
}*/
.table-header {
    padding: 6px 6px 6px 3px;
}

.datatable div:not(.table-header):first-child,
.datatable td:first-child {
    text-align: left;
}

.datatable .nohpadding {
    padding-left: 0;
    padding-right: 0;
}

.datatable .novpadding {
    padding-top: 0;
    padding-bottom: 0;
}

.datatable .sectionheader:first-child td,
.datatable tr.sectionheader:first-child th {
    padding-top: 0px;
}

.datatable tr.sectionheader td,
.datatable tr.sectionheader th {
    padding-top: 39px;
}

/* DIALOG ---------------------------------------------------------------------------------- */

#mask {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    z-index: 92000;
    background-color: rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
}

#dialog {
    position: relative;
    z-index: 92001;
    display: none;
    margin: 2px;
    border: 8px solid white;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.1);
    width: fit-content;
}

#dialog {
    max-height: 100%;
}

#dialog .dialog_content,
#dialog .dialog_content form .dialog_body,
#dialog .dialog_content form .dialog_body.has_tabs .tabs,
#dialog .dialog_content form .dialog_body.has_tabs .tabs .tab_panel {
    max-height: 100%;
}

#dialog {
    --maxh: calc(100vh - 20px);
    max-height: var(--maxh);
}

#dialog.set-height-to-max-height {
    height: var(--maxh);
}

#dialog.set-height-to-max-height .dialog_content,
#dialog.set-height-to-max-height .dialog_content form .dialog_body,
#dialog.set-height-to-max-height
    .dialog_content
    form
    .dialog_body.has_tabs
    .tabs,
#dialog.set-height-to-max-height
    .dialog_content
    form
    .dialog_body.has_tabs
    .tabs
    .tab_panel {
    max-height: 100%;
    height: 100%;
}

#dialog.set-height-to-max-height.correct-scrollheight .dialog_content {
    height: calc(100% - 40px);
}

#dialog.set-height-to-max-height .dialog_content form {
    height: var(--maxh);
    max-height: calc(100% - 80px);
}

#mask-height-container {
    max-height: 100vh;
    max-width: 100vw;
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dialog .dialog_content form .dialog_body {
    overflow-y: auto;
}

#dialog .dialog_content form .dialog_body.has_tabs {
    overflow-y: hidden;
}

#dialog.set-height-to-max-height .scrollcontainer {
    height: calc(100% - 80px);
    overflow: auto;
}

#dialog.set-height-to-max-height.correct-scrollheight .scrollcontainer {
    height: calc(100% - 40px);
}

.dialog_content {
    background: #fff;
}

.dialog_content.wide {
    width: 800px;
}

.dialog_content.extra-wide {
    width: 80vw;
}

.dialog_content.normal,
.dialog_content {
    width: 600px;
}

.dialog_content.small {
    width: 400px;
}

.dialog_header,
.ui-dialog-titlebar {
    background: white;
    /* color:                  #fff; */
    padding: 6px 23px;
    font-weight: bold;
    font-size: 16px;
}

.dialog_header.split-dialog {
    padding-left: 13px;
}

.dialog_body {
    padding: 13px;
    background: #fff;
}

.preview-dialog .dialog_body {
    overflow-y: auto;
}

.dialog_footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 12px 15px 4px;
    text-align: right;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.oauth_button_form .dialog_footer {
    border-top: 0;
}

.dialog_footer button {
    margin-left: 10px;
}

.dialog_body h1 {
    margin: 13px 0;
}

.dialog_body h1:first-child {
    margin: 0 0 13px;
}

.dialog_body h2,
.dialog_body h5 {
    margin: 6px 0;
}

.dialog_body h2:first-child,
.dialog_body h5:first-child {
    margin: 0 0 6px;
}

.dialog_body p {
    margin: 0 0 13px;
}

.dialog_body p:last-child {
    margin: 0;
}

.dialog_body.has_tabs,
.dialog_body.has_tabs.has_form {
    padding: 0;
}

.dialog_body.has_form,
.dialog_body.has_form .ui-tabs-panel {
    padding: 10px;
}

datalist option {
    display: none;
}

/* TABS ------------------------------------------------------------------------------------ */

.tabs > ul {
    background: transparent url("../images/tabsbg.d36b61dfa0c0.png") repeat-x bottom;
    padding: 3px 0 0;
}

.tabs.noborder > ul {
    background: none;
}

.dialog_content .tabs > ul {
    padding: 3px 13px 0;
}

.tabs > ul li {
    display: inline-block;
}

.tabs > ul li a {
    display: inline-block;
    padding: 6px 12px;
    border-style: solid;
    color: var(--fontColorSurfaceLight);
    margin-left: 1px;
    margin-right: 1px;
}

.tabs > ul li a:hover {
    color: var(--fontColorSurface);
    background: var(--primaryDefaultHLLightest);
    border-color: #bbb;
}

.tabs > ul li a.active {
    font-weight: bold;
    background: var(--primaryDefaultHLLightest);
    border-color: #bbb;
    color: var(--primaryDefault);
}

.tabs .tab_panel {
    padding: 13px;
    overflow-y: auto;
    max-height: 100%;
    position: relative;
    z-index: 2;
    /* userprofile dialog is not scrollable otherwise because a div is on top of this */
}

/* FORMS ----------------------------------------------------------------------------------- */

form .error {
    padding: 6px;
    text-align: center;
    background-color: rgba(var(--warningRaw), 0.1);
    color: var(--warning);
    margin-bottom: 6px;
}

form .error p {
    margin: 0;
}

form .errorlist {
    margin: 0;
    padding: 6px 0 0;
    float: right;
}

form .errorlist li {
    list-style-type: none;
    font-size: 93%;
    color: #ad0000;
    margin: 0;
}

form p {
    margin-bottom: 6px;
}

form .editor p:last-of-type {
    margin-bottom: 0;
}

label {
    white-space: nowrap;
    padding: 6px 0 3px;
    display: inline-block;
}

label:not(.mce-label):not(.date-picker-label)

/*:not(.MuiFormLabel-root):not(.MuiInputLabel-root)*/
,
.readonly-form-value {
    white-space: nowrap;
    padding: 6px 10px 3px;
    display: inline-block;
}

input[type='checkbox'] + label {
    font-weight: normal;
}

label.required,
label.look-required {
    color: var(--warning);
}

label.required:after,
label.look-required:after {
    content: ' *';
}

.char_counter {
    padding: 6px 0 3px;
    display: block;
}

/* INPUTS AND SELECTS ----------------------------------------------------------------------------------- */

input.required,
select.required,
textarea.required,
input.look-required,
select.look-required,
textarea.look-required {
    border: 1px solid var(--warning);
    padding: 5px 11px;
}

input,
textarea,
select,
button,
option {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

input,
input[type='text'],
input[type='password'],
input[type='url'],
input[type='email'],
input[type='number'],
input[type='date'],
input[type='time'],
textarea:not(.tox-textarea) {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 100px;
}

select,
select[multiple] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
}

.plain {
    border-radius: 0;
}

input[type='text'],
input[type='password'],
input[type='url'],
input[type='email'],
input[type='number'],
select:not([multiple]) {
    height: 34px;
}

input[type='text']:focus,
input[type='password']:focus,
input[type='url']:focus,
input[type='email']:focus,
input[type='number']:focus,
select:focus {
    border-color: var(--primaryDefault);
    border-width: 2px;
    padding: 5px 11px;
    outline: 0;
}

textarea:not(.plain):focus {
    border-color: var(--primaryDefault);
    border-width: 2px;
    padding: 5px 11px;
    outline: 0;
}

input::placeholder {
    color: #ccc;
}

select[multiple]::-webkit-scrollbar,
textarea::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 11px;
    height: 11px;
}

select[multiple]::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
    border-radius: 8px;
    border: 2px solid white;
    /* should match background, can't be transparent */
    background-color: rgba(0, 0, 0, 0.5);
}

optgroup {
    margin-bottom: 6px;
}

form table {
    width: 100%;
}

form table td {
    padding: 0 3px;
}

form table td:first-child {
    padding-left: 0;
}

form table td:last-child {
    padding-right: 0;
}

/* BUTTONS --------------------------------------------------------------------------------- */

/*
    Adapted from http://yayinternets.com/articles/emulating-google-style-buttons/ and
    http://stopdesign.com/eg/buttons/3.0/code.html.
*/

button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

button,
a.button {
    margin: 0;
    padding: 6px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    line-height: 16px;
    background-color: transparent;
    border-color: #ccc;
}

button:active:enabled,
a.button:active:enabled {
    position: relative;
}

button.default,
a.button.default,
button.submit,
a.button.submit {
    color: var(--fontColorPrimary);
    background-color: var(--primaryDefault) !important;
    border-color: var(--primaryDefault) !important;
}

button.default:hover,
a.button.default:hover,
button.submit:hover,
a.button.submit:hover {
    opacity: 0.5;
}

button.default.disabled {
    background: #ccc !important;
    border-color: #ccc !important;
    opacity: 0.5;
    cursor: default;
}

button.small,
a.button.small {
    padding: 2px 9px 2px;
    font-size: 11px;
    display: inline-block;
}

button.block {
    display: block;
    width: 100%;
}

#infobar button {
    margin-left: 6px;
    border-width: 2px;
    min-width: 10em;
    padding: 5px 12px;
}

#infobar button.default {
    border: 2px solid white !important;
}

/* special create_buttons_horizontal */

#create_buttons_horizontal a.button {
    width: 45px;
    padding: 6px 12px;
    margin-left: 6px;
    margin-bottom: 6px;
    color: var(--primaryDefault);
    display: inline-block;
}

#create_buttons_horizontal .create_button {
    color: var(--primaryDefault);
}

#create_buttons_horizontal .blue-icon {
    color: var(--primaryDefault);
}

/* LOGIN FORM ------------------------------------------------------------------------------ */

#login_form {
    width: 450px;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.logo-container {
    background: #2686bb;
    height: 80px;
}

#login_form .logo1 {
    background: #2686bb url("../images/logo-white.69edfdab6f4e.png") no-repeat 10px center;
    width: 234px;
    height: 80px;
    float: left;
}

#login_form .logo2 {
    padding-top: 30px;
    padding-right: 8px;
    height: 80px;
    background: #2686bb;
    color: #fff;
    font-size: 16px;
    float: right;
}

#login_form .login-version {
    position: absolute;
    bottom: 10px;
    left: 15px;
    color: #999;
    font-size: 12px;
}

#login_form.oauth_button_form .login-version {
    position: unset;
}

/* PAGINATION ------------------------------------------------------------------------------ */

.pagination {
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    text-align: center;
    line-height: 20px;
    width: 20px;
    font-size: 12px;
}

.pagination a {
    border: 1px solid #9aafe5;
}

.pagination i[class] {
    color: inherit;
}

.pagination .current {
    border: 1px solid #2e6ab1;
    color: #ffffff;
    background: #2e6ab1;
    font-weight: bold;
    background: #2686bb;
}

.pagination .disabled {
    border: 1px solid #dddddd;
    color: #999999;
}

/* LABEL ----------------------------------------------------------------------------------- */
/* These definitions are taken with some modifications from the bootstrap CSS Framework.     */

.label {
    background-color: #999999;
    border-radius: 4px;
    /* color            : #FFFFFF !important; */
    font-size: 11px;
    /*font-weight      : bold;*/
    line-height: 13px;
    padding: 4px 6px 4px;
    /* text-shadow      : 0 1px 0 rgba(0, 0, 0, 0.25); */
    vertical-align: middle;
    white-space: nowrap;
    text-transform: uppercase;
    position: relative;
    top: -1px;
}

.label-important {
    /* background-color : #B94A48; */
    background-color: rgba(var(--warningRaw), 0.15);
    color: rgb(var(--warningRaw));
}

.label-warning {
    /* background-color : #F89406; */
    background-color: rgba(var(--hintRaw), 0.15);
    color: rgb(var(--hintRaw));
}

.label-success {
    /* background-color : #468847;  */
    background-color: rgba(var(--okRaw), 0.15);
    color: rgb(var(--okRaw));
}

.label-info {
    /* background-color : #3A87AD; */
    background-color: var(--primary);
}

.label-inverse {
    background-color: #333333;
}

/* BADGES ---------------------------------------------------------------------------------- */
/* These definitions are taken with some modifications from the bootstrap CSS Framework.     */

.badge {
    background-color: #999999;
    border-radius: 9px 9px 9px 9px;
    color: #ffffff !important;
    font-size: 12.025px;
    font-weight: bold;
    padding: 1px 9px 2px;
    white-space: nowrap;
}

.badge-error {
    background-color: #b94a48;
}

.badge-warning {
    background-color: #f89406;
}

.badge-success {
    background-color: #468847;
}

.badge-info {
    background-color: #3a87ad;
}

.badge-inverse {
    background-color: #333333;
}

/* PROGRESS BAR ---------------------------------------------------------------------------- */
/* These definitions are taken with some modifications from the bootstrap CSS Framework.     */

@-webkit-keyframes progress-bar-stripes {
    from {
        background-position: 40px 0;
    }

    to {
        background-position: 0 0;
    }
}

@-moz-keyframes progress-bar-stripes {
    from {
        background-position: 40px 0;
    }

    to {
        background-position: 0 0;
    }
}

@-ms-keyframes progress-bar-stripes {
    from {
        background-position: 40px 0;
    }

    to {
        background-position: 0 0;
    }
}

@-o-keyframes progress-bar-stripes {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 40px 0;
    }
}

@keyframes progress-bar-stripes {
    from {
        background-position: 40px 0;
    }

    to {
        background-position: 0 0;
    }
}

.progress {
    height: 18px;
    /*margin-bottom: 18px;*/
    overflow: hidden;
    background-color: #fcfcfc;
    background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9);
    background-image: -ms-linear-gradient(top, #f5f5f5, #f9f9f9);
    background-image: -webkit-gradient(
        linear,
        0 0,
        0 100%,
        from(#f5f5f5),
        to(#f9f9f9)
    );
    background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9);
    background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9);
    background-image: linear-gradient(top, #f5f5f5, #f9f9f9);
    background-repeat: repeat-x;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#f9f9f9', GradientType=0);
    -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress .bar {
    width: 0;
    height: 18px;
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    background-color: #0e90d2;
    background-image: -moz-linear-gradient(top, #149bdf, #0480be);
    background-image: -webkit-gradient(
        linear,
        0 0,
        0 100%,
        from(#149bdf),
        to(#0480be)
    );
    background-image: -webkit-linear-gradient(top, #149bdf, #0480be);
    background-image: -o-linear-gradient(top, #149bdf, #0480be);
    background-image: linear-gradient(top, #149bdf, #0480be);
    background-image: -ms-linear-gradient(top, #149bdf, #0480be);
    background-repeat: repeat-x;
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#149bdf', endColorstr='#0480be', GradientType=0);
    -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: width 0.6s ease;
    -moz-transition: width 0.6s ease;
    -ms-transition: width 0.6s ease;
    -o-transition: width 0.6s ease;
    transition: width 0.6s ease;
}

.progress-striped .bar {
    background-color: #149bdf;
    background-image: -o-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -webkit-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -moz-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -ms-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -webkit-gradient(
        linear,
        0 100%,
        100% 0,
        color-stop(0.25, rgba(255, 255, 255, 0.15)),
        color-stop(0.25, transparent),
        color-stop(0.5, transparent),
        color-stop(0.5, rgba(255, 255, 255, 0.15)),
        color-stop(0.75, rgba(255, 255, 255, 0.15)),
        color-stop(0.75, transparent),
        to(transparent)
    );
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    -webkit-background-size: 40px 40px;
    -moz-background-size: 40px 40px;
    -o-background-size: 40px 40px;
    background-size: 40px 40px;
}

.progress.active .bar {
    -webkit-animation: progress-bar-stripes 2s linear infinite;
    -moz-animation: progress-bar-stripes 2s linear infinite;
    -ms-animation: progress-bar-stripes 2s linear infinite;
    -o-animation: progress-bar-stripes 2s linear infinite;
    animation: progress-bar-stripes 2s linear infinite;
}

.progress-danger .bar {
    background-color: #dd514c;
    background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
    background-image: -ms-linear-gradient(top, #ee5f5b, #c43c35);
    background-image: -webkit-gradient(
        linear,
        0 0,
        0 100%,
        from(#ee5f5b),
        to(#c43c35)
    );
    background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);
    background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);
    background-image: linear-gradient(top, #ee5f5b, #c43c35);
    background-repeat: repeat-x;
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#c43c35', GradientType=0);
}

.progress-danger.progress-striped .bar {
    background-color: #ee5f5b;
    background-image: -webkit-gradient(
        linear,
        0 100%,
        100% 0,
        color-stop(0.25, rgba(255, 255, 255, 0.15)),
        color-stop(0.25, transparent),
        color-stop(0.5, transparent),
        color-stop(0.5, rgba(255, 255, 255, 0.15)),
        color-stop(0.75, rgba(255, 255, 255, 0.15)),
        color-stop(0.75, transparent),
        to(transparent)
    );
    background-image: -webkit-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -moz-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -ms-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -o-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
}

.progress-success .bar {
    background-color: #5eb95e;
    background-image: -moz-linear-gradient(top, #62c462, #57a957);
    background-image: -ms-linear-gradient(top, #62c462, #57a957);
    background-image: -webkit-gradient(
        linear,
        0 0,
        0 100%,
        from(#62c462),
        to(#57a957)
    );
    background-image: -webkit-linear-gradient(top, #62c462, #57a957);
    background-image: -o-linear-gradient(top, #62c462, #57a957);
    background-image: linear-gradient(top, #62c462, #57a957);
    background-repeat: repeat-x;
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#62c462', endColorstr='#57a957', GradientType=0);
}

.progress-success.progress-striped .bar {
    background-color: #62c462;
    background-image: -webkit-gradient(
        linear,
        0 100%,
        100% 0,
        color-stop(0.25, rgba(255, 255, 255, 0.15)),
        color-stop(0.25, transparent),
        color-stop(0.5, transparent),
        color-stop(0.5, rgba(255, 255, 255, 0.15)),
        color-stop(0.75, rgba(255, 255, 255, 0.15)),
        color-stop(0.75, transparent),
        to(transparent)
    );
    background-image: -webkit-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -moz-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -ms-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -o-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
}

.progress-info .bar {
    background-color: #4bb1cf;
    background-image: -moz-linear-gradient(top, #5bc0de, #339bb9);
    background-image: -ms-linear-gradient(top, #5bc0de, #339bb9);
    background-image: -webkit-gradient(
        linear,
        0 0,
        0 100%,
        from(#5bc0de),
        to(#339bb9)
    );
    background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9);
    background-image: -o-linear-gradient(top, #5bc0de, #339bb9);
    background-image: linear-gradient(top, #5bc0de, #339bb9);
    background-repeat: repeat-x;
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#5bc0de', endColorstr='#339bb9', GradientType=0);
}

.progress-info.progress-striped .bar {
    background-color: #5bc0de;
    background-image: -webkit-gradient(
        linear,
        0 100%,
        100% 0,
        color-stop(0.25, rgba(255, 255, 255, 0.15)),
        color-stop(0.25, transparent),
        color-stop(0.5, transparent),
        color-stop(0.5, rgba(255, 255, 255, 0.15)),
        color-stop(0.75, rgba(255, 255, 255, 0.15)),
        color-stop(0.75, transparent),
        to(transparent)
    );
    background-image: -webkit-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -moz-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -ms-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -o-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
}

.progress-warning .bar {
    background-color: #faa732;
    background-image: -moz-linear-gradient(top, #fbb450, #f89406);
    background-image: -ms-linear-gradient(top, #fbb450, #f89406);
    background-image: -webkit-gradient(
        linear,
        0 0,
        0 100%,
        from(#fbb450),
        to(#f89406)
    );
    background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
    background-image: -o-linear-gradient(top, #fbb450, #f89406);
    background-image: linear-gradient(top, #fbb450, #f89406);
    background-repeat: repeat-x;
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0);
}

.progress-warning.progress-striped .bar {
    background-color: #fbb450;
    background-image: -webkit-gradient(
        linear,
        0 100%,
        100% 0,
        color-stop(0.25, rgba(255, 255, 255, 0.15)),
        color-stop(0.25, transparent),
        color-stop(0.5, transparent),
        color-stop(0.5, rgba(255, 255, 255, 0.15)),
        color-stop(0.75, rgba(255, 255, 255, 0.15)),
        color-stop(0.75, transparent),
        to(transparent)
    );
    background-image: -webkit-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -moz-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -ms-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -o-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
}

#id_linked_imagegallery_div .select2-container,
#id_linked_video_div .select2-container,
#id_linked_article_div .select2-container,
#id_linked_image_div .select2-container,
#id_linked_audio_div .select2-container,
#id_linked_document_div .select2-container {
    width: 100% !important;
    min-width: 0px;
}

.bold {
    font-weight: 900;
}

.ui-resizable-handle {
    position: absolute;
    font-size: 0.1px;
    display: block;
}

.ui-resizable-n {
    cursor: n-resize;
    height: 7px;
    width: 100%;
    top: -5px;
    left: 0;
}

.ui-resizable-s {
    cursor: s-resize;
    height: 7px;
    width: 100%;
    bottom: -5px;
    left: 0;
}

.ui-resizable-e {
    cursor: e-resize;
    width: 7px;
    right: -5px;
    top: 0;
    height: 100%;
}

.ui-resizable-w {
    cursor: w-resize;
    width: 7px;
    left: -5px;
    top: 0;
    height: 100%;
}

.ui-resizable-se {
    cursor: se-resize;
    width: 12px;
    height: 12px;
    right: 1px;
    bottom: 1px;
}

.ui-resizable-sw {
    cursor: sw-resize;
    width: 9px;
    height: 9px;
    left: -5px;
    bottom: -5px;
}

.ui-resizable-nw {
    cursor: nw-resize;
    width: 9px;
    height: 9px;
    left: -5px;
    top: -5px;
}

.ui-resizable-ne {
    cursor: ne-resize;
    width: 9px;
    height: 9px;
    right: -5px;
    top: -5px;
}
