div#logo {
    color: #333333;
    font-size: 0px;
    background-color: #003c40;
}
div#logo:before {
    content: "Ersties Administration Area";
    color: #8AD0DF;
    font-size: 24px;
}

a {
    color: #003065;
}

th {
    background-color: #dbebf2;
}

body:not(.without_menu) div#logo {
    left: 0;
    right: 0;
    top: 0;
    position: fixed;
}
body:not(.without_menu) div#navtop {
    position: fixed;
    right: 0;
    top: 0;
}
body:not(.without_menu) ul.menu {
    position: fixed;
    left: 0;
    top: 34px;
    bottom: 0;
    width: 170px;
    overflow: auto;
    padding-top: 0px;
    min-height: auto;
}
body:not(.without_menu) #content {
    position: fixed;
    left: 170px; 
    right: 0;
    top: 34px;
    bottom: 0;
    overflow: auto;
    margin-left: 0;
}

ul.menu {
    background-color:#c9e1eb;
}
ul.menu li a {
    display: block;
    border-bottom: 1px solid #e0eef3; 
}
ul.menu li a:hover,
ul.menu li.current a {
    border-bottom: 1px solid;
}
div.info, div.message {
    background-color: #8AD0DF;
}

form.log-form {
    width: auto;
}

form input[type=radio] {
    width: auto;
}

.video-list-stats {
    padding: 0 .3em;
    white-space: nowrap;
}

#content.video_list .thumbnails {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
}

.video-list-thumb {
    display: inline-block;
    position: relative;
    margin-right: 10px;
    padding: 3px;
    border: 1px solid transparent;
    cursor: pointer;
}
.video-list-thumb:last-child {
    margin-right: 0;
}

.video-list-thumb.selected {
    border-color: green;
}

form label.video-list-thumb {
    display: inline-block;
}

form .video-list-thumb input[type="radio"] {
    position: absolute;
    left: -9999px;
}

.video-thumbnails input[type="radio"] {
    width: auto;
}

#content.Gallery .video-thumbnails > *,
#content.video_edit .video-thumbnails > * {
    display: inline-block;
    width: 33%;
}

#content.Gallery .video-thumbnails > * > .error,
#content.video_edit .video-thumbnails > * > .error {
    padding: 5px;
    background: #faa;
    color: #000;
    text-align: center;
    margin-right: 5px;
}

#content.Gallery fieldset.images tr.item td:first-child {
    cursor: pointer;
}

#content.Error td {
    vertical-align: top;
}
#content.Error td.debug_backtrace {
    width: 300px;
    word-wrap: break-word;
}
#content.Error td.debug_backtrace pre {
    white-space:pre-wrap;
    display: none;
    width:1100px;
}
#content.Log .form-panel {
    display: inline;
}
#content.Log table.legend {
    width: auto;
    height: 320px;
}
#content.Log table.legend td {
    vertical-align: top;
    white-space: nowrap;
    min-width: 130px;
    border-right: 1px solid #ccc;
    padding: 0 5px;
}
#content.Log table.legend td h5 {
    text-align: center;
}
#content.Log table.legend td label {
    display: block;
}
#content.FinancialChart .diagram td{
    text-align: right;
}
#content.FinancialChart .data{
    padding-right: 2%;
}
#content.FinancialChart .data table{
    clear: left;
}
#content.FinancialChart .data table tr.totals {
    font-weight: bold;
}
#content.FinancialChart .data table td {
    text-align: right;
}
#content.FinancialChart .data table th {
    text-align: right;
}
#content.FinancialChart .data table th.date,
#content.FinancialChart .data table td.date,
#content.FinancialChart .data table td.total
{
    text-align: left;
    width: 100px;
}
#content.Scouting-tool table tr {
    display: inline-block;
    width: 260px;
    padding: 5px;
    border: 1px solid #eee;
    margin-right: 5px;
    margin-bottom: 5px;
}

#content.Scouting-tool table tr td {
    height: 500px;
    vertical-align: top;
}

#content.Scouting-tool table td span,
#content.Scouting-tool table td label
{
    display: block;
}
#content.Scouting-tool table td button.save-notes {
    float: right;
    height: 20px;
    margin-top: 3px;
    padding: 0;
    display: none;
}
#content.Scouting-tool table textarea {
    resize: none;
    width: 250px;
    height: 65px;
    border: none;
}
#content.Scouting-tool table tr:first-child {
    display: block;
    width: auto;
    margin: 0;
}
#content.Scouting-tool table tr:first-child th{
    display: block;
}
#content.Scouting-tool .online-state {
    float: right;
    color: red;
}
#content.Scouting-tool .online-state.Online {
    color: green;
}

:focus::-webkit-input-placeholder { color:transparent; }
:focus::-moz-placeholder { color:transparent; }
:focus::placeholder { color:transparent; }

.hidden {
    display: none;
}

.admin .Error th.date {
    width: 100px;

}

.model-admin-image {
    max-width: 150px;
    max-height: 150px;
    line-height: 150px;
}


/* developer tools */
.layout1 {
    padding: 20px 200px;
    text-align: left;
}
.layout1>* {
    width: 400px;
}
.layout1 form {
    width: 200px;
}

.layout1 input, .layout1 select {
    display: block;
}

.form_error {
    color: #ff0000;
    padding: 5px;
    margin: 0 auto 10px;
    border: 1px solid #ff0000;
    text-align: center;
} 

/* autocomplete */
div.tagsinput {
    padding: 5px 2px 0 0;    
    border: 1px solid #aaa;
}

div.tagsinput span.tag {
    margin-left: 5px;
}



.gallery_desc .texts{
    width: 40%;
}

#content.gallery_desc td,
#content.gallery_desc th{
    vertical-align: top;
}
#content.gallery_desc td p {
    margin-bottom: 1.4em;
}
#content.gallery_desc td p:last-of-type {
    margin-bottom: 0;
}

.pagination ul li a {
    display: block;
}

.admin_images_fieldset,
.admin_images {
    margin-top: 10px;
}
.admin_images_fieldset  div.fieldset-content > div,
.admin_images div.fieldset-content > div {
    display: inline-block;
    border: 1px solid grey;
    margin: 5px;
    vertical-align: top;
}

.admin_images_fieldset div.fieldset-content img,
.admin_images div.fieldset-content img {
    display: inline-block;
    vertical-align: middle;
    margin: 2px;
}

fieldset.cropped-banner {
    max-width: 500px;
}

fieldset.cropped-banner img {
    max-width: 100%;
}

/* Payment provider interaction */
.full_match{
    color: green;
    cursor: pointer;
    text-decoration: none;
}

.partial_match{
    color: #D4D402;
    cursor: pointer;
    text-decoration: none;
}

.chart_select {
    display: none;
}
.chart_select.visible {
    display: block;
}

.non-active {
    color: grey;
    text-decoration: none;
    pointer-events: none;
    cursor: default;
}

/* Accordion description */
.page-description {
    margin: 1em 5px;
    border: 1px solid #ccc;
}
.page-description .title,
.page-description .text {
    padding: .5em 1em;
}
.page-description .text {
    display: none;
    font-family: monospace;
}
.page-description .text div{
    white-space: pre-wrap;
}
.page-description .title {
    font-weight: bold;
    background: #eee;
    cursor: pointer;
}

/* Debt collection tools */
.debt_collection td {
    vertical-align: top;
}

.debt_collection .current_transaction {
    color: green;
}

.debt_collection .list_loader_button {
    padding: .3em 0;
    color: #003065;
    text-align: center;
    cursor: pointer;
}

.debt_collection .transactions_list .transactions_list-child:nth-child(n+10) {
    display: none;
}

.debt_collection .roll_in {
    display: none;
}

/* Hide `Load more` button if list has less than 10 items */
.debt_collection .load_more:nth-child(-n+10) {
    display: none;
}

.debt_collection .roll_in:nth-child(-n+11) {
    display: none;
}

.debt_collection .transactions_list.full_list .transactions_list-child:nth-child(n+10) {
    display: table-row;
}

.debt_collection .transactions_list.full_list .load_more {
    display: none;
}

.debt_collection .transactions_list.full_list .roll_in {
    display: table-row;
}

.debt_collection .action_link {
    white-space: nowrap;
    margin-right: 15px;
}

.debt_collection h1 {
    overflow: hidden;
}

.debt_collection .editable {
    display: block;
    width: 100%;
    padding: 0.5em 1em;
    resize: vertical;
    box-sizing: border-box;
    font-family: Arial;
    font-size: 14px;
    border: 1px dashed black;
}

.switch-marketing-allowed {
    margin: 6px 0;
    padding: 6px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.Model .switch-marketing-allowed input[type="checkbox"] {
    top: 0;
}

.highcharts-legend-item h1 {
    position: relative;
    left: -20px;
}

.payment-provider-interaction .raw-data-dialog {
    display: none;
}
.payment-provider-interaction td.type,
.payment-provider-interaction td.date {
    white-space: nowrap;
}

.ui-dialog.cancel-dialog {
    padding: 0;
    background: #e6e6e6;
}

#cancel_dialog {
    padding: 0;
}

#cancel_dialog .sender-name {
    padding: 10px 15px;
    text-align: right;
    background: #f5f5f5;
}
#cancel_dialog input {
    padding: 3px;
}

#cancel_dialog tr.filter th {
    background: #f5f5f5;
    border-radius: 0;
}

#cancel_dialog table td {
    border: 1px solid #b5b5b5;
    position: relative;
    padding: 10px 15px;
    border-left: none;
    border-right: none;
}
#cancel_dialog table td.title {
    white-space: nowrap;
}
#cancel_dialog table .edit {
    width: 40px;
}

#cancel_dialog table {
    border-collapse: collapse;
    border: none;
    background-color: #fff;
}

#cancel_dialog table td.title.favourite:after {
    content: '☆';
    font-size: 14px;
    color: green;
}

#cancel_dialog table th {
    background-color: #e6e6e6;
    border-radius: 0;
    padding: 10px 15px;
}

#cancel_dialog table .language .version {
    display: table;
    width: 100%;
    border-top: 1px solid #b5b5b5;
}

#cancel_dialog table .language:first-child .version:first-child {
    border-top: none;
}

#cancel_dialog table .language .version .text {
    display: table-cell;
    padding: 10px 0;
}

#cancel_dialog table .language .version .action {
    display: table-cell;
    width: 80px;
    padding: 10px 0;
    vertical-align: middle;
}

#cancel_dialog table .language.hide-non-favourites .version:not(:first-child),
#cancel_dialog table .language.hide-non-favourites .change-versions-view .hide,
#cancel_dialog table .language .change-versions-view .view-all {
    display: none;
}

#cancel_dialog table .language.hide-non-favourites .change-versions-view .view-all {
    display: inline;
}

#cancel_dialog .copy-text-wrapper {
    position: relative;
}

#cancel_dialog .copy-text {
    margin: 0;
    white-space: nowrap;
}

#cancel_dialog .change-text-output {
    color: #37a;
}

#cancel_dialog, #cancel_dialog .text .long-text,
#cancel_dialog .text.full .show-full-text,
#cancel_dialog .text.full .short-text,
#cancel_dialog .text .hide-full-text,
#cancel_dialog .text .hide-all-versions {
    display: none;
}

#cancel_dialog .text.full .long-text,
#cancel_dialog .text.full .hide-full-text {
    display: inline;
}

div.loading {
    position: fixed;
    z-index : 999999;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.8) url('/framework/template/admin/cms/style/images/loading.gif') no-repeat 50% 50%;
}

.cancellation_reply_edit div.form textarea {
    box-sizing: border-box;
}

.landing_list .actions a {
    margin-right: 10px;
}


.clearfix {
    clear: both;
}

body.admin td.referring_url {
    word-wrap: break-word;
    max-width: 300px;
}

.survey-question {
    padding: 1em 0;
    border-bottom: 1px solid black;
}
.survey-question:last-child {
    border-bottom: none;
}

.survey-question-date {
    font-size: .8em;
}
.video_embed_code {
    display: none;
    height: 75px;
}
.embed_video_list a.array_element_del{
    display: none;
}
#gallery_images_sortable .item {
    display: inline-block;
    width: 33%;
    border: 1px solid lightblue;
    margin: -1px;
}

.gallery-form .general-part,
.gallery-form .thumbnails-part {
    float:left;
    margin:0 2% 5px 0;
    width:31.33%;
}

.gallery-form .thumbnails-part {
    width:64.66%;
}

.campaign-statistics {
    margin-bottom: 10px;
    border-collapse: collapse;
}

.campaign-statistics td {
    border: 1px solid #ccc;
}

.campaign-statistics td table {
    border-collapse: collapse;
}

@media only screen and (max-width : 900) {
#gallery_images_sortable .item {
    width: 33%;
}
}

@media only screen and (min-width : 1200px) {
#gallery_images_sortable .item {
    width: 25%;
}
}

@media only screen and (min-width : 1400px) {
#gallery_images_sortable .item {
    width: 20%;
}
}

.item .array_element_del {
    background-color: #e0eef3;
    color: #4d4d4d;
    border: 1px solid #ccc;
    font-weight: 600;
    padding: 4px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;

}

#gallery_images_sortable .item input[type="file"] {
    width: 100% !important;
}

.cropped-image-block .fieldset-content {
    text-align: center;
}
.cropped-image-block .cropped-image-holder {
    display: inline-block;
    position: relative;
}
.cropped-image-block .cropped-image-holder img {
    max-width: 50%;
}