:root {
    --admin-toolbar-height: 46px;
    --admin-breadcrumbs-height: 45px;
}

body.djangocms-admin-style #header #header-logo {
    height: 26px;
    margin: 10px 15px 10px 20px;
    padding: 0 !important;
}

.cms-toolbar #cms-toolbar-logo {
    height: 26px;
    margin: 10px 0 10px 20px;
}

body.login.djangocms-admin-style #container {
    box-shadow: none !important;
    border: 1px solid #ddd;
    border-radius: 0;
}

body.login.djangocms-admin-style #header-logo {
    float: left !important;
    height: 50px !important;
    margin-top: -90px !important;
}

body.djangocms-admin-style .main #nav-sidebar {
    padding: 20px;
    flex: 0 0 330px;
    height: calc(100vh - (20px * 2) - var(--admin-toolbar-height) - var(--admin-breadcrumbs-height));
}

body.djangocms-admin-style .main:not(.shifted) > #nav-sidebar {
    display: none !important;
}

body.djangocms-admin-style .filebrowser #container #content,
body.djangocms-admin-style #content-main > .cms-pagetree-root,
body.djangocms-admin-style.change-list #changelist .paginator,
body.djangocms-admin-style.change-list #changelist.filtered .paginator,
body.djangocms-admin-style.change-list #changelist .results {
    box-shadow: none !important;
}

body.djangocms-admin-style .main #nav-sidebar table caption a.section,
body.djangocms-admin-style .main #nav-sidebar table caption a.section:link,
body.djangocms-admin-style .main #nav-sidebar table caption a.section:visited,
body.djangocms-admin-style.dashboard table caption a.section,
body.djangocms-admin-style.dashboard table caption a.section:link,
body.djangocms-admin-style.dashboard table caption a.section:visited {
    border: none !important;
    background: #c90024 !important;
    color: #fff !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 10px !important;
    display: block !important;
    text-transform: none !important;
    pointer-events: none !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

body.djangocms-admin-style .main #nav-sidebar table caption,
body.djangocms-admin-style.dashboard table caption {
    padding: 0 !important;
    margin: 0 !important;
}

body.djangocms-admin-style .main #nav-sidebar table,
body.djangocms-admin-style.dashboard table {
    box-shadow: none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
}

/* Set content max height, margin and overflow. (new scroll container) */
body.djangocms-admin-style.change-form:not(.cms-admin-modal):not(.popup) #content,
body.djangocms-admin-style.change-list #content {
    padding: 20px !important;
    margin: calc(var(--admin-toolbar-height) + var(--admin-breadcrumbs-height)) 0 0 0 !important;
    overflow: auto;
    height: calc(100vh - 40px - var(--admin-toolbar-height) - var(--admin-breadcrumbs-height));
}


body.djangocms-admin-style.delete-confirmation #content {
    margin: calc(var(--admin-toolbar-height) + var(--admin-breadcrumbs-height) + 20px) 20px 20px 20px !important;
    box-shadow: none !important;
    overflow: auto;
    max-height: calc(100vh - 92px - var(--admin-toolbar-height) - var(--admin-breadcrumbs-height));
    border: 1px solid #ddd !important;
}

body.djangocms-admin-style.change-form:not(.cms-admin-modal):not(.popup) #content #content-main form {
    margin: 0 !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
}

body.djangocms-admin-style.dashboard #main {
    position: absolute;
    top: var(--admin-toolbar-height);
    left: 0;
    right: 0;
    bottom: 0;
}


body.djangocms-admin-style.dashboard #main #content {
    max-height: calc(100vh - (2 * 20px) - var(--admin-toolbar-height));
    overflow: auto;
    margin: 0 25% 0 0 !important;
    padding: 20px !important;
}


body.djangocms-admin-style.dashboard #main #content #content-related {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding-top: 30px !important;
}


body.djangocms-admin-style.dashboard.cms-admin-sideframe #main #content #content-related {
    padding-top: 65px !important;
}

body.djangocms-admin-style .cms-pagetree-header {
    margin-top: 0 !important;
}

body.djangocms-admin-style .cms-btn-group.cms-btn-active {
    box-shadow: none !important;
}

body.djangocms-admin-style .cms-btn-group:active {
    box-shadow: none !important;
}


@media only screen and (max-width: 1300px) {
    body.djangocms-admin-style .submit-row {
        display: flex;
        flex-direction: column;
    }

    body.djangocms-admin-style .submit-row * {
        text-align: center;
    }
}


body.djangocms-admin-style .submit-row {
    border-radius: 0 !important;
}

body.cms-admin-sideframe.cms-debug #container .breadcrumbs,
body.djangocms-admin-style.cms-pagetree-wrapper.cms-admin-sideframe #container .breadcrumbs,
body.djangocms-admin-style #container .breadcrumbs {
    margin-top: var(--admin-toolbar-height) !important;
    padding-top: 12px !important;
    right: 0 !important;
    left: 0 !important;
    padding-left: 20px !important;
    border-bottom: 1px solid #ddd !important;
    background: #f2f2f2 !important;
    padding-bottom: 12px !important;
    z-index: 99;
    height: calc(var(--admin-breadcrumbs-height) - (2 * 12px)) !important;
}

body.djangocms-admin-style .cms-sideframe-controls {
    top: 51px !important;
    box-shadow: none !important;
    inset-inline-end: 6px !important;
}

body.djangocms-admin-style.dashboard #content > h1:first-child {
    display: none;
}

body.djangocms-admin-style h3.ui-sortable-handle {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

body.djangocms-admin-style.dashboard #container #content-main table td a:not(.addlink),
body.djangocms-admin-style.dashboard #container #content-main table th a:not(.addlink) {
    color: #333;
}


body.djangocms-admin-style #container .breadcrumbs a:hover,
body.djangocms-admin-style #container .breadcrumbs a,
body.djangocms-admin-style a:not(.addlink):not(.jstree-anchor),
body.djangocms-admin-style a:not(.addlink):not(.jstree-anchor):link,
body.djangocms-admin-style a:not(.addlink):not(.jstree-anchor):link:visited,
body.djangocms-admin-style a:not(.addlink):not(.jstree-anchor):visited,
body.djangocms-admin-style .changelink,
body.djangocms-admin-style .changelink a:hover,
body.djangocms-admin-style .changelink,
body.djangocms-admin-style .changelink a {
    color: #c90024;
}

body.djangocms-admin-style.dashboard #container #content-main table td a:not(.addlink):hover,
body.djangocms-admin-style.dashboard #container #content-main table th a:not(.addlink):hover,
body.djangocms-admin-style .changelink a:hover,
body.djangocms-admin-style .changelink:hover,
body.djangocms-admin-style .filebrowser .navigator-table .column-name a,
body.djangocms-admin-style .selector a.selector-chooseall,
body.djangocms-admin-style .selector a.selector-clearall,
body.djangocms-admin-style .calendar-shortcuts a:before,
body.djangocms-admin-style span.datetimeshortcuts a:before,
body.djangocms-admin-style #main a:not(.addlink):not(.cms-btn):not(.viewsitelink):not(.navigator-button):active,
body.djangocms-admin-style #main a:not(.addlink):not(.cms-btn):not(.viewsitelink):not(.navigator-button):hover,
body.djangocms-admin-style #main a:not(.addlink):link:not(.cms-btn):active,
body.djangocms-admin-style #main a:not(.addlink):link:not(.viewsitelink):not(.cms-btn):not(.viewsitelink):not(.navigator-button):hover,
body.djangocms-admin-style.change-list #changelist #changelist-filter li.selected a,
body.djangocms-admin-style.change-list #changelist table tbody td a, .change-list #changelist table tbody td a:link, .change-list #changelist table tbody td a:link:visited, .change-list #changelist table tbody td a:visited, .change-list #changelist table tbody th a, .change-list #changelist table tbody th a:link, .change-list #changelist table tbody th a:link:visited, .change-list #changelist table tbody th a:visited,
div.cms .cms-modal-breadcrumb a, body #container .breadcrumbs a:hover {
    color: #c90024 !important;
}

body.djangocms-admin-style .selector a.selector-chooseall,
body.djangocms-admin-style .selector a.selector-clearall {
    filter: grayscale(100%) brightness(0.7);
}

body.djangocms-admin-style form .form-row .filer-dropzone .filerFile a.related-lookup,
body.djangocms-admin-style form .form-row .filer-dropzone .filerFile a.related-lookup:focus,
body.djangocms-admin-style .object-tools .viewsitelink,
body.djangocms-admin-style #content-main .object-tools .addlink,
body.djangocms-admin-style #content-main .object-tools .addlink:focus,
body.djangocms-admin-style .navigator-button,
body.djangocms-admin-style .navigator-button:visited,
body.djangocms-admin-style .navigator-button:link:visited,
body.djangocms-admin-style .navigator-button:link,
body.djangocms-admin-style .navigator-button:focus,
body.djangocms-admin-style .navigator-button:focus,
body.djangocms-admin-style .navigator-button:visited:focus,
body.djangocms-admin-style .navigator-button:link:visited:focus,
body.djangocms-admin-style .navigator-button:link:focus,
body.djangocms-admin-style .cms-pagetree-header-search button.cms-pagetree-header-search-btn,
body.djangocms-admin-style.cms-pagetree-wrapper a.cms-btn-action,
body.djangocms-admin-style.change-list #changelist-search input[type=submit],
body.djangocms-admin-style input[type=button].default:focus,
body.djangocms-admin-style input[type=submit].default:focus,
body.djangocms-admin-style input[type=button].default:hover,
body.djangocms-admin-style input[type=submit].default:hover,
body.djangocms-admin-style input[type=button].default,
body.djangocms-admin-style input[type=submit].default {
    background-color: #c90024 !important;
    border-color: #c90024 !important;
}

body.djangocms-admin-style form .form-row .filer-dropzone .filerFile a.related-lookup:hover,
body.djangocms-admin-style form .form-row .filer-dropzone .filerFile a.related-lookup:hover:active,
body.djangocms-admin-style .object-tools .viewsitelink:active:focus,
body.djangocms-admin-style .object-tools .viewsitelink:active:hover,
body.djangocms-admin-style .object-tools .viewsitelink:focus,
body.djangocms-admin-style .object-tools .viewsitelink:hover,
body.djangocms-admin-style a.navigator-button:active:hover,
body.djangocms-admin-style a.navigator-button:active:focus,
body.djangocms-admin-style a.navigator-button:visited:active:hover,
body.djangocms-admin-style a.navigator-button:visited:active:focus,
body.djangocms-admin-style a.navigator-button:link:visited:active:hover,
body.djangocms-admin-style a.navigator-button:link:visited:active:focus,
body.djangocms-admin-style a.navigator-button:link:active:hover,
body.djangocms-admin-style a.navigator-button:link:active:focus,
body.djangocms-admin-style a.navigator-button:active,
body.djangocms-admin-style a.navigator-button:visited:active,
body.djangocms-admin-style a.navigator-button:link:visited:active,
body.djangocms-admin-style a.navigator-button:link:active,
body.djangocms-admin-style a.navigator-button:hover,
body.djangocms-admin-style a.navigator-button:visited:hover,
body.djangocms-admin-style a.navigator-button:link:visited:hover,
body.djangocms-admin-style a.navigator-button:link:hover,
body.djangocms-admin-style .cms-pagetree-header-search button.cms-pagetree-header-search-btn:active,
body.djangocms-admin-style .cms-pagetree-header-search button.cms-pagetree-header-search-btn:focus,
body.djangocms-admin-style .cms-pagetree-header-search button.cms-pagetree-header-search-btn:hover,
body.djangocms-admin-style.cms-pagetree-wrapper a.cms-btn-action:active:focus,
body.djangocms-admin-style.cms-pagetree-wrapper a.cms-btn-action:active:hover,
body.djangocms-admin-style.cms-pagetree-wrapper a.cms-btn-action:hover,
body.djangocms-admin-style.change-list #changelist-search input[type=submit]:focus,
body.djangocms-admin-style.change-list #changelist-search input[type=submit]:hover,
body.djangocms-admin-style.change-list #changelist-search input[type=submit]:active:focus,
body.djangocms-admin-style.change-list #changelist-search input[type=submit]:active:hover,
body.djangocms-admin-style #content-main .object-tools .addlink:hover,
body.djangocms-admin-style #content-main .object-tools .addlink:active:focus,
body.djangocms-admin-style #content-main .object-tools .addlink:active:hover,
body.djangocms-admin-style input[type=button].default:active:focus,
body.djangocms-admin-style input[type=button].default:active:hover,
body.djangocms-admin-style input[type=submit].default:active:focus,
body.djangocms-admin-style input[type=submit].default:active:hover {
    background-color: #ac0120 !important;
    border-color: #ac0120 !important;
}

body.djangocms-admin-style .navigator-button[disabled],
body.djangocms-admin-style .navigator-button[disabled]:hover,
body.djangocms-admin-style .navigator-button[disabled]:focus .navigator-button[disabled]:active,
body.djangocms-admin-style .navigator-button:visited[disabled], .navigator-button:visited[disabled]:hover,
body.djangocms-admin-style .navigator-button:visited[disabled]:focus .navigator-button[disabled]:active,
body.djangocms-admin-style .navigator-button:link:visited[disabled],
body.djangocms-admin-style .navigator-button:link:visited[disabled]:hover,
body.djangocms-admin-style .navigator-button:link:visited[disabled]:focus .navigator-button[disabled]:active,
body.djangocms-admin-style .navigator-button:link[disabled],
body.djangocms-admin-style .navigator-button:link[disabled]:hover,
body.djangocms-admin-style .navigator-button:link[disabled]:focus .navigator-button[disabled]:active,
body.djangocms-admin-style .navigator-button[disabled]:focus .navigator-button:visited[disabled]:active,
body.djangocms-admin-style .navigator-button:visited[disabled]:focus .navigator-button:visited[disabled]:active,
body.djangocms-admin-style .navigator-button:link:visited[disabled]:focus .navigator-button:visited[disabled]:active,
body.djangocms-admin-style .navigator-button:link[disabled]:focus .navigator-button:visited[disabled]:active,
body.djangocms-admin-style .navigator-button[disabled]:focus .navigator-button:link:visited[disabled]:active,
body.djangocms-admin-style .navigator-button:visited[disabled]:focus .navigator-button:link:visited[disabled]:active,
body.djangocms-admin-style .navigator-button:link:visited[disabled]:focus .navigator-button:link:visited[disabled]:active,
body.djangocms-admin-style .navigator-button:link[disabled]:focus .navigator-button:link:visited[disabled]:active,
body.djangocms-admin-style .navigator-button[disabled]:focus .navigator-button:link[disabled]:active,
body.djangocms-admin-style .navigator-button:visited[disabled]:focus .navigator-button:link[disabled]:active,
body.djangocms-admin-style .navigator-button:link:visited[disabled]:focus .navigator-button:link[disabled]:active,
body.djangocms-admin-style .navigator-button:link[disabled]:focus .navigator-button:link[disabled]:active {
    background-color: #d89ca6 !important;
    border-color: #d89ca6 !important;
}

body.djangocms-admin-style .submit-row-backup {
    display: flex;
    flex-direction: row;
    align-items: center;
}

body.djangocms-admin-style .submit-row-backup > p {
    text-align: left;
    margin-right: auto;
}


body.djangocms-admin-style.change-list #changelist #changelist-filter {
    padding: 15px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
}

body.djangocms-admin-style.change-list #changelist #has-filters ~ .paginator,
body.djangocms-admin-style.change-list #changelist #toolbartable .paginator,
body.djangocms-admin-style.change-list #changelist .results + .paginator,
body.djangocms-admin-style.change-list #changelist.filtered .paginator,
body.djangocms-admin-style.change-list #changelist .paginator {
    width: unset !important;
    border: 1px solid #ddd !important;
    position: unset !important;
}

body.djangocms-admin-style #change-history .paginator,
body.djangocms-admin-style.change-list .js-filer-dropzone + .paginator,
body.djangocms-admin-style.change-list #changelist .results + .paginator {
    border-top: none !important;
}

body.djangocms-admin-style.change-list .js-filer-dropzone + .paginator {
    border-bottom: 1px solid #ddd !important;
}

body.djangocms-admin-style.change-list #changelist .results {
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    border-top: 1px solid #ddd !important;
    width: unset !important;
}

body.djangocms-admin-style #change-history .paginator {
    padding: 10px !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
}

body.djangocms-admin-style .cms-pagetree-legend {
    border-bottom: 1px solid #ddd !important;
}

body.djangocms-admin-style.filebrowser #container #content .navigator-top-nav {
    border: 1px solid #ddd !important;
    width: calc(100% - 40px);
}

body.djangocms-admin-style.filebrowser #container #content #content-main {
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
}

body.djangocms-admin-style.change-list #changelist #changelist-filter {
    padding: 15px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
}

body.djangocms-admin-style.change-list #changelist.filtered .actions,
body.djangocms-admin-style.change-list #changelist.filtered .paginator,
body.djangocms-admin-style.change-list #changelist.filtered .results,
body.djangocms-admin-style.change-list #changelist.filtered .xfull {
    margin-right: 0 !important;
}

body.djangocms-admin-style #change-history thead th.sortable .sortpriority,
body.djangocms-admin-style.change-list table thead th.sortable .sortpriority,
body.djangocms-admin-style.dashboard table thead th.sortable .sortpriority,
body.djangocms-admin-style .results table thead th.sortable .sortpriority,
body.djangocms-admin-style .tabular table thead th.sortable .sortpriority {
    background-color: #c90024 !important;
}

body.djangocms-admin-style.change-form #id_password {
    padding: 15px !important;
    border: 1px solid #ddd !important;
}

body.djangocms-admin-style.change-form #id_password .button {
    margin-top: 15px !important;
    display: inline-block;
}

body.djangocms-admin-style #content form .module, form .module {
    width: 100% !important;
}

body.djangocms-admin-style .cms-pagetree-sites-list {
    display: none !important;
}

body.djangocms-admin-style .cms-pagetree-header-search button.cms-pagetree-header-search-btn {
    margin-right: 12px;
}

body.djangocms-admin-style .module.clockbox,
body.djangocms-admin-style .module.calendarbox {
    top: 0 !important;
    left: 0 !important;
    bottom: unset !important;
    right: unset !important;
    z-index: 99999;
    width: unset !important;
}

body.djangocms-admin-style #content #content-main {
    position: relative;
}

body.djangocms-admin-style div.calendarbox table td.selected a {
    background-color: #c90024 !important;
}

body.djangocms-admin-style div.calendarbox table td.selected a:hover {
    background: whitesmoke !important;
}

body.djangocms-admin-style div.calendarbox .calendarnav-next,
body.djangocms-admin-style div.calendarbox .calendarnav-previous {
    color: #c90024 !important;
}

