/* =============================================================================
   Legacy _LayoutBackoffice parity for the Backoffice pages Core renders itself.
   Values come from the legacy frontoffice.css / old/layout-menus.css / buttons.css,
   which win there because they load last. Loaded after every other stylesheet.
   ============================================================================= */

/* "Backoffice" title bar. Core renders it inside .main-content-container, which already
   carries the fixed-header offset and the sidebar margin, so the sibling positioning in
   layout-menus.css (margin-left 180px / 165px, responsive widths) is undone here. */
.main-content-container > .top-sub-box,
html:not(.menu-expanded) .main-content-container > .top-sub-box,
html.menu-expanded .main-content-container > .top-sub-box {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
}

.main-content-container > .top-sub-box .Menu_TopMenus {
    line-height: 30px;
}

/* Content area: legacy .content-box > .main-content, a 1200px centred column on the grey page.
   Legacy pins the page (html/body overflow hidden) and scrolls only the content box, which
   fills the viewport under the 90px header + title bar. */
html.legacy-backoffice,
html.legacy-backoffice body {
    overflow: hidden;
}

.main-content-container > .content-box {
    box-sizing: border-box !important;
    height: calc(100vh - 90px) !important;
    overflow-y: scroll !important;
    padding: 20px 20px 10px 40px !important;
}

.main-content-container > .content-box > .main-content {
    margin: auto;
    max-width: 1200px;
}

/* The white card */
.main-content .box-style {
    background: #fff none repeat scroll 0 0;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    clear: both;
    margin: auto;
    margin-bottom: 40px;
    padding: 2% 5%;
    position: relative;
}

    .main-content .box-style .row {
        margin: 0;
    }

/* Headings: legacy "h1..h6 { margin: 10px }" + backoffice-site.css ".main-content h3" */
.main-content h1, .main-content h2, .main-content h3,
.main-content h4, .main-content h5, .main-content h6 {
    margin: 10px;
}

.main-content h3 {
    font-size: 23px;
    margin-bottom: 20px;
}

/* Grid cells: Core's layout.css gives every col-* a 30px min-height; legacy keeps bootstrap's 1px,
   which is what makes legacy table rows 29px tall instead of 36px. */
.main-content [class*="col-xs-"],
.main-content [class*="col-sm-"],
.main-content [class*="col-md-"],
.main-content [class*="col-lg-"] {
    min-height: 1px;
}

/* Table header cells: legacy backoffice.css */
.main-content .TableRecordsHeader div,
.main-content .TableRecordsHeader a {
    font-size: 13px;
    font-weight: normal;
}

/* Scrollbars: legacy common bundle */
html.legacy-backoffice ::-webkit-scrollbar {
    width: 10px;
}

html.legacy-backoffice ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

html.legacy-backoffice ::-webkit-scrollbar-thumb {
    background: #888;
}

/* Blue buttons (legacy buttons.css / backoffice-buttons.css) */
input.btn.btn-blue,
.btn.btn-blue {
    background: #4285f4;
    color: #fff;
}

/* Header search button: filled blue, capitalised */
.search-box .input-append .btn {
    border: none !important;
    background: #4285f4 !important;
    color: #fff !important;
    padding: 0 10px !important;
    text-transform: capitalize;
    line-height: 32px;
    float: right;
}
