﻿body {
    font-family: 'Source Sans Pro','Helvetica Neue',Helvetica,Arial,sans-serif;
}

/* Legacy's base type (Bootstrap 3): 14px #333 text with a 1.43 line-height, and Bootstrap 3's heading sizes. Bootstrap 5
   uses 16px / 1.5 and h4 / h5 / h6 of 24 / 20 / 16px (legacy: 18 / 14 / 12px). Inputs, buttons, menus and the pager
   follow the 14px base as they did in Bootstrap 3, and small buttons / inputs are 12px (Bootstrap 3's btn-sm / btn-xs /
   input-sm, e.g. DataTables' search box and page-length menu). Spacing stays Bootstrap 5's. The #333 text is light
   mode only; dark mode (Home.js LocalSettings.DarkMode) keeps Bootstrap's light-on-dark text colour. */
:root {
    --bs-body-font-size: 14px;
    --bs-body-line-height: 1.42857143;
}

[data-bs-theme="light"] {
    --bs-body-color: #333;
    --bs-body-color-rgb: 51, 51, 51;
}

/* Legacy colours, each named after the colour it replaces, for Site.css, the views' inline styles and Supplier.js /
   Receiver.js. Light mode keeps legacy's exact colour; dark mode maps each onto Bootstrap's dark palette by the part it
   plays on a light page: black text -> emphasis, dark greys -> body text, mid greys -> secondary text, light greys
   (rules, hover rows) -> border colour, near-white panels -> secondary / tertiary background, white -> body background,
   #bbb (button shadow) -> a dark shadow, dark green text (#418129) -> Bootstrap's light-on-dark success text. Set on
   <html> only, so the always-dark header (data-bs-theme="dark" on its <nav>) still gets the light values in light
   mode. */
:root {
    --sdc-000: #000;
    --sdc-333: #333;
    --sdc-444: #444;
    --sdc-555: #555;
    --sdc-666: #666;
    --sdc-777: #777;
    --sdc-999: #999;
    --sdc-bbb: #bbb;
    --sdc-ccc: #ccc;
    --sdc-ddd: #ddd;
    --sdc-lightgray: lightgray;
    --sdc-eaeaea: #eaeaea;
    --sdc-eee: #eee;
    --sdc-f2f2f2: #f2f2f2;
    --sdc-f4f4f4: #f4f4f4;
    --sdc-f9f9f9: #f9f9f9;
    --sdc-fff: #fff;
    --sdc-418129: #418129;
}

:root[data-bs-theme="dark"] {
    --sdc-000: var(--bs-emphasis-color);
    --sdc-333: var(--bs-body-color);
    --sdc-444: var(--bs-body-color);
    --sdc-555: var(--bs-secondary-color);
    --sdc-666: var(--bs-secondary-color);
    --sdc-777: var(--bs-secondary-color);
    --sdc-999: var(--bs-secondary);
    --sdc-bbb: rgba(0, 0, 0, .5);
    --sdc-ccc: var(--bs-border-color);
    --sdc-ddd: var(--bs-border-color);
    --sdc-lightgray: var(--bs-border-color);
    --sdc-eaeaea: var(--bs-secondary-bg);
    --sdc-eee: var(--bs-secondary-bg);
    --sdc-f2f2f2: var(--bs-secondary-bg);
    --sdc-f4f4f4: var(--bs-secondary-bg);
    --sdc-f9f9f9: var(--bs-tertiary-bg);
    --sdc-fff: var(--bs-body-bg);
    --sdc-418129: var(--bs-success-text-emphasis);
}

/* Content for one theme only, e.g. Subscription Info's logo: the dark-lettered logo.png in light mode, logo-white.png in
   dark mode. */
:root[data-bs-theme="dark"] .sdc-light-only,
:root:not([data-bs-theme="dark"]) .sdc-dark-only {
    display: none !important;
}

h1, .h1 { font-size: 36px; }
h2, .h2 { font-size: 30px; }
h3, .h3 { font-size: 24px; }
h4, .h4 { font-size: 18px; }
h5, .h5 { font-size: 14px; }
h6, .h6 { font-size: 12px; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    line-height: 1.1;
}

/* Bootstrap 3 labels were bold, except checkbox / radio labels (.checkbox / .radio, now .form-check). */
label {
    font-weight: 700;
}

.form-check-label {
    font-weight: 400;
}

.form-control,
.form-select,
.input-group-text {
    font-size: 14px;
    line-height: 1.42857143;
}

.form-control-sm,
.form-select-sm,
.input-group-sm > .form-control,
.input-group-sm > .form-select,
.input-group-sm > .input-group-text,
.input-group-sm > .btn {
    font-size: 12px;
    line-height: 1.5;
}

.btn {
    --bs-btn-font-size: 14px;
    --bs-btn-line-height: 1.42857143;
}

.btn-sm,
.btn-group-sm > .btn {
    --bs-btn-font-size: 12px;
    --bs-btn-line-height: 1.5;
}

.btn-lg,
.btn-group-lg > .btn {
    --bs-btn-font-size: 18px;
    --bs-btn-line-height: 1.3333333;
}

.dropdown-menu {
    --bs-dropdown-font-size: 14px;
}

.pagination {
    --bs-pagination-font-size: 14px;
}

.pagination-sm {
    --bs-pagination-font-size: 12px;
}

body p {
    color:#444;
}

/* The header and its dropdowns are dark (data-bs-theme="dark"; legacy's dropdowns were white), so paragraphs there
   follow the theme's text colour instead of #444: impersonate results, user menu name, settings hints. */
[data-bs-theme="dark"] p {
    color: inherit;
}

    body.modal-open .app-wrapper {
        filter: blur(5px);
        -webkit-filter: blur(5px);
        -moz-filter: blur(5px);
        -o-filter: blur(5px);
        -ms-filter: blur(5px);
        filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius='5');
    }


.login-card-body {
    padding: 40px;
}

.app-footer {
    padding: 5px 15px 1px;
}

.grey-bg {
    background: #ddd;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.loader {
}

.app-content-header .breadcrumb {
    font-size: 16px;
}

.header-list-icon {
    float: right;
    color: #00a65a !important;
}

.loading-dropdown {
    text-align: center;
    margin: 20px 0 20px 0;
}

    .loading-dropdown > .fa-refresh {
        font-size: 28px;
    }

.dropdown-menu-noleft h4, .dropdown-menu-noleft p {
    margin: 0 !important;
}

.left-margin-sm {
    margin-left: 12px;
}

.expandable-tree {
    list-style-type: none;
    padding-left: 10px;
}

    .expandable-tree li {
        margin-bottom: 3px;
    }

    .expandable-tree a {
        cursor: pointer;
    }

/* Bootstrap 3 columns were position: relative; .info-overlay and other absolutely positioned children rely on it. */
.row > [class*="col"] {
    position: relative;
}

.info-overlay {
    position: absolute;
    top: 0;
    left: calc(var(--bs-gutter-x, 1.5rem) * .5);
    right: calc(var(--bs-gutter-x, 1.5rem) * .5);
    bottom: 15px;
    z-index: 50;
    background: rgba(255,255,255,0.7);
    border-radius: 3px;
}

    .info-overlay > .fa {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -15px;
        margin-top: -15px;
        color: var(--sdc-000);
        font-size: 30px;
    }

.attribute-node {
    font-style: italic;
    color: #999;
}

.link-list div {
    margin-bottom: 3px;
}

.link-list a {
    margin-left: 3px;
}

.modal-content {
    z-index: 100;
}

.modal-info, .modal-info > .modal-dialog > .modal-content {
    z-index: 1055 !important;
}

.modal-warning, .modal-warning > .modal-dialog > .modal-content {
    z-index: 1060 !important;
}

.btn {
    box-shadow: 3px 3px 3px var(--sdc-bbb);
}

.modal-content .btn, .btn-tool, .btn-close, .input-group .btn, .app-header .btn, .dropdown-menu .btn {
    box-shadow: none;
}

/*Admin > supplier: recover button styles*/
.recoverButton {
    background-color: #5cb85c;
}

    .recoverButton:hover {
        background-color: #00a65a;
    }

.altGridButton {
    background-color: #5cb85c;
}

    .altGridButton:hover {
        background-color: #00a65a;
    }


.altGridDeleteButton {
    background-color: #dd4b39;
}

    .altGridDeleteButton:hover {
        background-color: #d73925;
    }


.dropdown-menu-hover {
    background: var(--sdc-f4f4f4);
    text-decoration: none;
}

.brandsearch-dropdown-menu-hover {
    background: #d9d9d9;
    text-decoration: none;
}

.collapse-noicon, .show-hand {
    cursor: pointer;
    user-select: none;
}

    .collapse-noicon > .fa-minus:before, .collapse-noicon > .fa-plus:before {
        content: none !important;
    }

.dh-section {
    font-weight: bold;
}

.dh-table {
    display: table;
}

.dh-table-row {
    display: table-row;
}

.dh-table-data {
    display: table-cell;
}

    .dh-table-data span, .dh-detail-data {
        margin: 3px;
    }

.show-help {
    cursor: pointer;
    margin-right: 4px;
    margin-top: 4px;
}

.dh-gradient {
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,828282+50 */
    background: #ffffff; /* Old browsers */
    background: -moz-linear-gradient(left, #ffffff 0%, #d2d6de 50%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left, #ffffff 0%,#d2d6de 50%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, #ffffff 0%,#d2d6de 50%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#d2d6de',GradientType=1 ); /* IE6-9 */
    height: 1px;
    width: 100%;
    margin-top: 3px;
    margin-bottom: 3px;
}

.db-section {
    font-weight: bold;
    margin-top: 0 !important;
    margin-left: 15px !important;
}

/* Home page dashboards (AppModel.LoadDashboards, DashboardLayout in Home.js): a tab per dashboard when the user has more
   than one, and the shared parts of a customizable dashboard (title bar with Rearrange / Customize, arrange mode). */
.dbl-tabs {
    margin-bottom: 15px;
}

.dbl-tabs .nav-link {
    font-weight: 600;
    color: var(--sdc-555);
    /* The Supplier / Reseller tabs are two lines (name, then the label small under it); the Admin tab is one, centred
       to the same height. */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.25;
}

.dbl-tabs .nav-link.active {
    color: var(--sdc-333);
}

.dbl-tab-name {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dbl-tab-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--sdc-777);
}

.dbl-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dbl-titlebar .db-section {
    margin-bottom: 0;
}

/* With the tab strip, the Supplier / Reseller tab already names the company, so the dashboard's own name heading is
   hidden and Rearrange / Customize stay on the right. Without tabs (one dashboard) the heading is the only place the
   name shows, so it stays. */
.dbl-tabs + .dbl-panes > #dashboard-pane-supplier .dbl-titlebar > .db-section,
.dbl-tabs + .dbl-panes > #dashboard-pane-receiver .dbl-titlebar > .db-section {
    display: none;
}

.dbl-tabs + .dbl-panes > #dashboard-pane-supplier .dbl-titlebar > div,
.dbl-tabs + .dbl-panes > #dashboard-pane-receiver .dbl-titlebar > div {
    margin-left: auto;
}

.dbl-titlebar .btn {
    margin: 10px 0;
}

.dbl-widgets > .dbl-widget {
    display: flex;
}

.dbl-widgets > .dbl-widget > .dbl-widget-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.dbl-widgets > .dbl-widget > .dbl-widget-inner > .card,
.dbl-widgets > .dbl-widget > .dbl-widget-inner > .info-box,
.dbl-widgets > .dbl-widget > .dbl-widget-inner > .small-box {
    flex: 1;
}

.dbl-loading {
    padding: 30px;
    text-align: center;
    font-size: 30px;
    color: var(--sdc-999);
}

.dbl-arrange-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 10px 14px;
    background: var(--bs-primary-bg-subtle);
    border-left: 4px solid var(--bs-primary);
    border-radius: 2px;
}

.dbl-arranging > .dbl-widget > .dbl-widget-inner {
    outline: 2px dashed var(--bs-primary-border-subtle);
    outline-offset: -4px;
    margin-bottom: 20px;
}

.dbl-handle {
    cursor: move;
    padding: 6px 10px;
    margin-bottom: 6px;
    background: var(--bs-primary);
    color: #fff;
    border-radius: 2px;
    font-weight: 600;
    user-select: none;
}

.dbl-placeholder {
    border: 2px dashed var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
    margin-bottom: 20px;
    visibility: visible !important;
}

/* Dashboard sections shared by the reseller and supplier dashboards (welcome, section heads, Next Steps cards, "ways to"
   tiles, number tiles). Moved from Views/Receiver/Dashboard.cshtml unchanged; :is() keeps the id's specificity. */
:is(#receiver-dashboard, #supplier-dashboard) .rdb-flex > div { display: flex; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-flex > div > .card { width: 100%; }
:is(#receiver-dashboard, #supplier-dashboard) a.rdb-way { display: block; color: inherit; text-decoration: none; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-welcome { padding: 15px 20px; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-welcome h2 { margin: 0 0 4px; font-size: 26px; font-weight: 600; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-welcome p { margin: 0; color: var(--sdc-555); }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-info { margin: 12px 0 0; padding: 10px 14px; background: var(--bs-primary-bg-subtle); border-left: 4px solid var(--bs-primary); border-radius: 2px; color: var(--sdc-333); }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-info p { color: var(--sdc-333); }
:is(#receiver-dashboard, #supplier-dashboard) .btn-link { box-shadow: none; border-color: transparent; background: transparent; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-tag { font-size: 11px; font-weight: 600; vertical-align: middle; margin-left: 6px; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sdc-777); }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-tiles { display: flex; gap: 10px; margin: 6px 0 12px; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-tiles > div { flex: 1; border: 1px solid var(--sdc-eaeaea); border-radius: 3px; padding: 8px 10px; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-tiles b { display: block; font-size: 26px; line-height: 1.2; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-tiles span { font-size: 12px; color: var(--sdc-777); }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 5px 0 10px; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-section-head h4 { margin: 0; font-size: 20px; font-weight: 600; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-section-head p { margin: 2px 0 0; color: var(--sdc-777); }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-step { padding: 14px; display: flex; flex-direction: column; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-step h5 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 15px; font-weight: 600; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-step h5 > .fa { width: 32px; height: 32px; border-radius: 3px; background: var(--bs-primary-bg-subtle); color: var(--bs-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-step p { color: var(--sdc-666); font-size: 13px; flex: 1; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-step .rdb-step-buttons { display: flex; align-items: center; gap: 6px; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-way { padding: 14px; cursor: pointer; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-way:hover { background: var(--sdc-f9f9f9); }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-way .fa { font-size: 20px; color: var(--bs-primary); }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-way h5 { margin: 8px 0 4px; font-size: 15px; font-weight: 600; color: var(--sdc-333); }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-way p { margin: 0; color: var(--sdc-777); font-size: 13px; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-help { color: var(--sdc-777); margin: -5px 0 20px; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-stats { display: flex; gap: 8px; padding: 10px; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-stats > div { flex: 1; border: 1px solid var(--sdc-eee); border-radius: 3px; padding: 6px 8px; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-stats b { display: block; font-size: 22px; }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-stats span { font-size: 12px; color: var(--sdc-777); }
:is(#receiver-dashboard, #supplier-dashboard) .rdb-padded { padding: 12px 15px; }
@media (max-width: 767px) {
    :is(#receiver-dashboard, #supplier-dashboard) .rdb-tiles, :is(#receiver-dashboard, #supplier-dashboard) .rdb-stats { flex-wrap: wrap; }
}

/* Company Profile pages (the reseller's, laid out like the Join Reseller form, and the supplier's): numbered section
   cards with Edit details. Moved from Views/Receiver/CompanyProfile.cshtml unchanged; :is() keeps the id's specificity. */
:is(#receiver-company-profile, #supplier-profile) .cp-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; flex-wrap: wrap; margin-bottom: 15px; }
:is(#receiver-company-profile, #supplier-profile) .cp-intro h3 { margin: 0 0 4px; font-size: 24px; font-weight: 600; }
:is(#receiver-company-profile, #supplier-profile) .cp-intro p { margin: 0; color: var(--sdc-666); }
:is(#receiver-company-profile, #supplier-profile) .cp-note { margin-bottom: 15px; padding: 10px 14px; background: var(--bs-primary-bg-subtle); border-left: 4px solid var(--bs-primary); border-radius: 2px; color: var(--sdc-333); }
:is(#receiver-company-profile, #supplier-profile) .cp-note p { margin: 0; color: var(--sdc-333); }
:is(#receiver-company-profile, #supplier-profile) .cp-note-warning { background: var(--bs-warning-bg-subtle); border-left-color: var(--bs-warning); }
:is(#receiver-company-profile, #supplier-profile) .cp-logo { display: flex; gap: 14px; align-items: center; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--sdc-f4f4f4); }
:is(#receiver-company-profile, #supplier-profile) .cp-logo-preview { flex: 0 0 110px; height: 80px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--sdc-eee); border-radius: 3px; background: var(--sdc-f9f9f9); }
:is(#receiver-company-profile, #supplier-profile) .cp-logo-preview img { max-width: 100px; max-height: 70px; }
:is(#receiver-company-profile, #supplier-profile) .cp-sections > div { display: flex; }
:is(#receiver-company-profile, #supplier-profile) .cp-sections .card { width: 100%; }
:is(#receiver-company-profile, #supplier-profile) .cp-step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bs-primary); color: #fff; font-size: 14px; font-weight: 700; margin-right: 8px; }
:is(#receiver-company-profile, #supplier-profile) .card-title > .fa { color: var(--bs-primary); margin-right: 6px; }
:is(#receiver-company-profile, #supplier-profile) .cp-rows { margin: 0; }
:is(#receiver-company-profile, #supplier-profile) .cp-rows > div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--sdc-f4f4f4); }
:is(#receiver-company-profile, #supplier-profile) .cp-rows > div:last-child { border-bottom: 0; }
:is(#receiver-company-profile, #supplier-profile) .cp-rows dt { flex: 0 0 42%; font-weight: 400; color: var(--sdc-777); }
:is(#receiver-company-profile, #supplier-profile) .cp-rows dd { flex: 1; min-width: 0; font-weight: 600; color: var(--sdc-333); overflow-wrap: anywhere; white-space: pre-line; }
:is(#receiver-company-profile, #supplier-profile) .cp-empty { color: var(--sdc-999); font-weight: 400; font-style: italic; }
:is(#receiver-company-profile, #supplier-profile) .cp-readonly-note { font-size: 12px; color: var(--sdc-777); margin: 4px 0 0; }
@media (max-width: 767px) {
    :is(#receiver-company-profile, #supplier-profile) .cp-rows > div { display: block; }
}

.edit-product-gradient {
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#222d32+0,ecf0f5+100 */
    background: #222d32; /* Old browsers */
    background: -moz-linear-gradient(left, #999 0%, #ffffff 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left, #999 0%,#ffffff 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, #999 0%,#ffffff 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#999', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 */
    height: 1px;
    width: 100%;
    margin-left: -5px;
}

.sc-category-gradient {
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#222d32+0,ecf0f5+100 */
    background: #222d32; /* Old browsers */
    background: -moz-linear-gradient(left, #999 0%, #ffffff 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left, #999 0%,#ffffff 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, #999 0%,#ffffff 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#999', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 */
    height: 1px;
    width: 100%;
    margin-left: -10px;
}

.impersonation {
    position: absolute;
    display: block;
    min-height: 100%;
    min-width: 100%;
    overflow: hidden;
    margin-right: 200px;
    margin-top: -100px;
    /* A watermark only: never takes clicks (it sits over the breadcrumbs) */
    pointer-events: none;
    user-select: none;
}

/* Paint the breadcrumbs over the watermark, as the positioned .app-content container already is */
.impersonation ~ .app-content-header {
    position: relative;
}

.ip-text {
    color: lightgrey;
    font-size: 120px;
    transform: rotate(300deg);
    -webkit-transform: rotate(300deg);
    max-width: 1500px;
}

.app-main {
    background-color: #ecf0f5;
}

/* Sidebar toggle (_Header): left chevron collapses the sidebar, right chevron (the same icon turned) expands it.
   Animated like AdminLTE's sidebar: not while the page loads (app-loaded) or the window resizes (hold-transition). */
.sidebar-collapse .sidebar-toggle-icon {
    transform: rotate(180deg);
}

.app-loaded:not(.hold-transition) .sidebar-toggle-icon {
    transition: transform .3s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-toggle-icon {
        transition: none !important;
    }
}

.sticky {
    position: fixed;
    top: 3.5rem;
    border: 1px solid #000 !important;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}

a.validation-error {
    background-color: #dd4b39 !important;
    color: #fff !important;
    border-radius: 3px;
    padding: 2px;
}

input.validation-error {
    border: 1px solid #000 !important;
    background: #f00 !important;
    color: #fff !important;
    font-weight: bold;
}

.no-maxwidth {
    max-width: inherit !important;
}

.grid-hover:hover {
    background-color: var(--sdc-ccc) !important;
}

.pm-wrapper p {
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pm-wrapper, .text-overflow-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ratings-wrapper {
    width: 120px;
}

.rating {
    unicode-bidi: bidi-override;
    direction: rtl;
    font-size: 20px
}

.rating-avg {
    unicode-bidi: bidi-override;
    font-size: 20px
}

    .rating span.star,
    .rating-avg span.star {
        font-family: FontAwesome;
        font-weight: normal;
        font-style: normal;
        display: inline-block
    }

        .rating span.star:hover {
            cursor: pointer
        }

        .rating span.star:before,
        .rating-avg span.star:before {
            content: "\f006";
            padding-right: 5px;
            color: #777
        }

        .rating span.star:hover:before,
        .rating span.star:hover ~ span.star:before,
        .rating-set:before {
            content: "\f005" !important;
            color: #e3cf7a !important;
        }


.sdc-radio:checked,
.sdc-radio:not(:checked) {
    position: absolute;
    left: -9999px;
}

    .sdc-radio:checked + label,
    .sdc-radio:not(:checked) + label {
        position: relative;
        padding-left: 38px;
        cursor: pointer;
        line-height: 20px;
        display: inline-block;
    }

        .sdc-radio:checked + label:before,
        .sdc-radio:not(:checked) + label:before {
            content: '';
            position: absolute;
            left: 10px;
            top: 0;
            width: 18px;
            height: 18px;
            border: 1px solid var(--sdc-ddd);
            border-radius: 100%;
            background: var(--sdc-fff);
        }

        .sdc-radio:checked + label:after,
        .sdc-radio:not(:checked) + label:after {
            content: '';
            width: 12px;
            height: 12px;
            background: #ff0000;
            position: absolute;
            top: 3px;
            left: 13px;
            border-radius: 100%;
            -webkit-transition: all 0.2s ease;
            transition: all 0.2s ease;
        }

        .sdc-radio:not(:checked) + label:after {
            opacity: 0;
            -webkit-transform: scale(0);
            transform: scale(0);
        }

        .sdc-radio:checked + label:after {
            opacity: 1;
            -webkit-transform: scale(1);
            transform: scale(1);
        }


/*Vertical Tabs Classes*/
.tabs-left, .tabs-right {
    border-bottom: none;
    padding-top: 2px;
}

.tabs-left {
    border-right: 1px solid var(--sdc-ddd);
}

.tabs-right {
    border-left: 1px solid #ddd;
}

    .tabs-left > li, .tabs-right > li {
        float: none;
        margin-bottom: 2px;
    }

.tabs-left > li {
    margin-right: -1px;
}

.tabs-right > li {
    margin-left: -1px;
}

.tabs-left > li.active > a,
.tabs-left > li.active > a:hover,
.tabs-left > li.active > a:focus {
    border-bottom-color: var(--sdc-ddd);
    border-right-color: transparent;
}

.tabs-right > li.active > a,
.tabs-right > li.active > a:hover,
.tabs-right > li.active > a:focus {
    border-bottom: 1px solid #ddd;
    border-left-color: transparent;
}

.tabs-left > li > a {
    border-radius: 4px 0 0 4px;
    margin-right: 0;
    display: block;
}

.tabs-right > li > a {
    border-radius: 0 4px 4px 0;
    margin-right: 0;
}

.vertical-text {
    margin-top: 50px;
    border: none;
    position: relative;
}

    .vertical-text > li {
        height: 20px;
        width: 120px;
        margin-bottom: 100px;
    }

        .vertical-text > li > a {
            border-bottom: 1px solid #ddd;
            border-right-color: transparent;
            text-align: center;
            border-radius: 4px 4px 0px 0px;
        }

        .vertical-text > li.active > a,
        .vertical-text > li.active > a:hover,
        .vertical-text > li.active > a:focus {
            border-bottom-color: transparent;
            border-right-color: #ddd;
            border-left-color: #ddd;
        }

    .vertical-text.tabs-left {
        left: -50px;
    }

    .vertical-text.tabs-right {
        right: -50px;
    }

        .vertical-text.tabs-right > li {
            -webkit-transform: rotate(90deg);
            -moz-transform: rotate(90deg);
            -ms-transform: rotate(90deg);
            -o-transform: rotate(90deg);
            transform: rotate(90deg);
        }

    .vertical-text.tabs-left > li {
        -webkit-transform: rotate(-90deg);
        -moz-transform: rotate(-90deg);
        -ms-transform: rotate(-90deg);
        -o-transform: rotate(-90deg);
        transform: rotate(-90deg);
    }

/*Ends Vertical Tab Classes*/


.ko_container {
    width: 125px;
    min-height: 50px;
    background-color: #AAA;
}

.item {
    background-color: #DDD;
    cursor: move;
    text-align: center;
}

    .item input {
        width: 100px;
    }


.recSpec-tab-pane {
    height: 300px;
    overflow-y: scroll;
}

.pm-wrapper p {
    display: inline;
}

body.no-modal-blur .app-wrapper {
    filter: none !important;
}

.no-modal-blur .modal {
    background: none !important;
}

.no-modal-blur .modal-backdrop.show {
    opacity: 0 !important;
}

.large.tooltip-inner {
    max-width: 350px;
    width: 350px;
}

@media (max-width: 767px) {


    .login-card-body {
        padding: 20px;
    }

    .load {
        margin-left: -50px !important;
    }
}

.loader-sdc {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-block;
    border: 3px solid;
    border-color: #58595b #58595b transparent transparent;
    box-sizing: border-box;
    animation: fwd-rotation 1s linear infinite;
    top: 45%;
    bottom: 0;
    left: 50%;
    right: 50%;
    position: absolute;
}

    .loader-sdc::after,
    .loader-sdc::before {
        content: '';
        box-sizing: border-box;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        border: 3px solid;
        border-color: transparent transparent #d2232a #d2232a;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        box-sizing: border-box;
        animation: back-rotation 0.5s linear infinite;
        transform-origin: center center;
    }

    .loader-sdc::before {
        width: 52px;
        height: 52px;
        border-color: #222 #222 transparent transparent;
        animation: fwd-rotation 1.5s linear infinite;
    }

@keyframes fwd-rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes back-rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

.tooltip-inner {
    max-width: 400px !important;
    line-height: 22px;
    font-weight: bold;
    background-color: #0073b7 !important;
}

.tooltip.right .tooltip-arrow {
    border-right-color: #0073b7;
}

.tooltip.left .tooltip-arrow {
    border-left-color: #0073b7;
}

.tooltip.top .tooltip-arrow {
    border-top-color: #0073b7;
}

.tooltip.bottom .tooltip-arrow {
    border-bottom-color: #0073b7;
}
/*CEB*/
.CEB-template:hover {
    opacity: 0.5;
}

.CEB-template {
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: pointer;
}

.template-Label {
    background-color: var(--sdc-lightgray);
    width: 100%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    max-height: 60px;
    height: 60px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .template-Label {
        font-size: 0.95em;
        max-width: 90vw;
    }
}

.CEB-Icon {
    font-size: 40px;
    padding: 8px;
}

.card-columns {
    column-count: 3;
    list-style-type: none;
    padding-inline-start: 0px;
}

.wide-card-columns {
    column-count: 6;
    list-style-type: none;
    padding-inline-start: 0px;
}

.remove-Bullets {
    list-style-type: none;
}

.remove-btn-Shadows {
    box-shadow: none;
    text-shadow: none;
}

.cursor-hand:hover {
    cursor: grab;
}

.CEB-field-header {
    width: 90%;
}

    .CEB-field-header h3 {
        cursor: pointer;
        margin: 0;
        padding-top:10px;
        padding-bottom: 20px;
        margin-bottom: 10px;
        border-bottom: 1px solid var(--sdc-eee);
    }

/*Ends CEB*/

/*Used for SEMA Data Maint Table*/
.table-condensed_custom > thead > tr > th, .table-condensed_custom > tbody > tr > th, .table-condensed_custom > tfoot > tr > th, .table-condensed_custom > thead > tr > td, .table-condensed_custom > tbody > tr > td, .table-condensed_custom > tfoot > tr > td {
    padding: 1px;
}






/* Used for new brand status tiles (Brand Data, Supplier Requests). A tile that isn't the selected filter also has bg-info,
   which Bootstrap 5 sets with !important (Bootstrap 3 didn't), so every tile came out cyan. The tile's own colour is
   !important too and lists .bg-info to win whatever the stylesheet order. The selected filter's tile (bg-blue) takes its
   footer's darker colour. */
.bg-brand-request,
.bg-brand-request.bg-info {
    background-color: #F4B183 !important;
    border: solid 1px #FF851B;
}

    .bg-brand-request > .small-box-footer {
        background-color: #FF851B !important;
    }

    .bg-brand-request.bg-blue {
        background-color: #FF851B !important;
    }

.bg-brand-approved,
.bg-brand-approved.bg-info {
    background-color: #C5E0B4 !important;
    border: solid 1px #00B050;
}

    .bg-brand-approved > .small-box-footer {
        background-color: #00B050 !important;
    }

    .bg-brand-approved.bg-blue {
        background-color: #00B050 !important;
    }

.bg-brand-updated,
.bg-brand-updated.bg-info {
    background-color: #FFE699 !important;
    border: solid 1px #FFCE32;
}

    .bg-brand-updated > .small-box-footer {
        background-color: #FFCE32 !important;
    }

    .bg-brand-updated.bg-blue {
        background-color: #FFCE32 !important;
    }

.bg-brand-expiring,
.bg-brand-expiring.bg-info {
    background-color: #BDD7EE !important;
    border: solid 1px #2E75B6;
}

    .bg-brand-expiring > .small-box-footer {
        background-color: #2E75B6 !important;
    }

    .bg-brand-expiring.bg-blue {
        background-color: #2E75B6 !important;
    }

.bg-brand-expired,
.bg-brand-expired.bg-info {
    background-color: #DBDBDB !important;
    border: solid 1px #A5A5A5;
}

    .bg-brand-expired > .small-box-footer {
        background-color: #A5A5A5 !important;
    }

    .bg-brand-expired.bg-blue {
        background-color: #A5A5A5 !important;
    }

.bg-brand-scheduled,
.bg-brand-scheduled.bg-info {
    background-color: #E7EEF1 !important;
    border: solid 1px #1991AC;
}

    .bg-brand-scheduled > .small-box-footer {
        background-color: #1991AC !important;
    }

    .bg-brand-scheduled.bg-blue {
        background-color: #1991AC !important;
    }
.text-success {
    color: #28a745 !important;
}

.text-secondary {
    color: #6c757d !important;
}

.text-request {
    color: #FF851B !important;
}


/* Styles for Product Details Page*/

/* Tabs: PartsHub's product page look (plain labels, the active one bold and underlined). */
.pd-tabs > .nav-tabs {
    border-bottom: 1px solid var(--sdc-eee);
    margin-bottom: 18px;
}

.pd-tabs > .nav-tabs > .nav-item {
    margin-right: 2px;
}

.pd-tabs > .nav-tabs .nav-link {
    color: var(--sdc-444);
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 10px 14px 8px;
    margin-bottom: -1px;
}

.pd-tabs > .nav-tabs .nav-link:hover {
    color: var(--sdc-999);
    border-bottom-color: var(--sdc-eee);
}

.pd-tabs > .nav-tabs .nav-link.active {
    color: var(--sdc-333);
    font-weight: 700;
    background-color: transparent;
    border-bottom-color: var(--bs-primary);
}

.pd-segment-title {
    font-size: 20px;
    letter-spacing: -0.4px;
    font-weight: bold;
    border-bottom: 1px solid var(--sdc-f2f2f2);
    padding-bottom: 27px;
    padding-left: 10px;
    margin-bottom: 0;
    position: relative;
}

.pd-segment-title-No-Border {
    font-size: 20px;
    letter-spacing: -0.4px;
    font-weight: bold;
    padding-bottom: 5px;
    padding-left: 10px;
    margin-bottom: 0;
    position: relative;
}

.pd-vert-right-border {
    border-right-color: var(--sdc-f2f2f2);
    border-right-style: solid;
    border-right-width: 1px;
}

.pd-vert-right-border-withspace {
    border-right-color: var(--sdc-f2f2f2);
    border-right-style: solid;
    border-right-width: 1px;
    padding-right: 10px;
}

.pd-vert-left-border {
    border-left-color: var(--sdc-f2f2f2);
    border-left-style: solid;
    border-left-width: 1px;
}

.pd-vert-left-border-withspace {
    border-left-color: var(--sdc-f2f2f2);
    border-left-style: solid;
    border-left-width: 1px;
    padding-left: 10px;
}

.pd-hor-border {
    border-bottom-color: var(--sdc-f2f2f2);
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

.pd-details-labels {
    color: #999999;
    font-size: 12px;
}

.pd-details-values{
    color: var(--sdc-333);
    font-size: 16px !important;
    font-weight: 600;
}

.pd-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pd-tab-content > .tab-pane {
    display: none !important;
}

.pd-tab-content > .tab-pane.active {
    display: block !important;
}

.pd-attribute-container {
    padding-top: 6px;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.pd-assets-image {
    width: 70px;
    height: 70px;
    position: relative;
    object-fit: contain;
    border: 1px solid var(--sdc-eee);
    border-radius: 3px;
    padding: 2px;
}

.pd-arrow-icon {
    display: inline-block;
    vertical-align: middle;
    color: var(--bs-info);
    font-size: 22px;
}

.pd-td-center-text {
    vertical-align: middle !important;
}

.pd-assets-table-header {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    font-family: "din-2014", sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    color: #999999;
    letter-spacing: 0;
}

.pd-assets-filename {
    font-family: "din-2014", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    color: #141414;
}

/* Product More Details, PartsHub layout: label (12px grey) over value (16px semibold) in grids of 4 or 2 columns, a thin
   line under each group. */
.pd-segment-next {
    margin-top: 30px;
}

.pd-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 14px;
    padding: 16px 10px;
    border-bottom: 1px solid var(--sdc-f2f2f2);
}

.pd-grid.pd-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pd-field {
    min-width: 0;
}

.pd-field.pd-wide {
    grid-column: 1 / -1;
}

.pd-field-label {
    display: block;
    color: var(--sdc-999);
    font-size: 12px;
    line-height: 18px;
}

.pd-field-value {
    display: block;
    color: var(--sdc-333);
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    overflow-wrap: anywhere;
}

.pd-pre {
    white-space: pre-line;
}

.pd-strong {
    font-weight: 600;
    color: var(--sdc-333);
}

.pd-muted {
    color: var(--sdc-bbb) !important;
}

@media (max-width: 991.98px) {
    .pd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pd-field-blank {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .pd-grid,
    .pd-grid.pd-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Overview */
.pd-overview-left {
    border-right: 1px solid var(--sdc-f2f2f2);
    padding-bottom: 16px;
}

.pd-gallery-main {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 360px;
    padding: 10px;
}

.pd-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pd-gallery-none {
    flex-direction: column;
    gap: 8px;
    color: var(--sdc-bbb);
    font-size: 14px;
}

.pd-gallery-none .fa {
    font-size: 56px;
}

.pd-thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 16px;
}

.pd-thumb-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex: 1;
    padding: 2px;
}

.pd-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    padding: 3px;
    background: var(--sdc-fff);
    border: 1px solid var(--sdc-eee);
    border-radius: 3px;
}

.pd-thumb.active {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 1px var(--bs-primary);
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-thumb-arrow {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--sdc-ddd);
    background: var(--sdc-fff);
    color: var(--bs-primary);
    font-size: 12px;
}

.pd-box {
    border: 1px solid var(--sdc-eee);
    margin-top: 8px;
}

.pd-box .pd-grid {
    border-bottom: 0;
}

.pd-box-title {
    font-size: 16px;
    font-weight: 700;
    margin: 14px 10px 0;
}

/* Part number and title above the tabs (every tab). */
.pd-product-heading {
    margin-bottom: 6px;
}

.pd-product-part {
    font-size: 14px;
    font-weight: 700;
    color: var(--sdc-999);
    letter-spacing: .02em;
}

.pd-overview-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    margin: 0;
    color: var(--sdc-333);
}

/* Product Details grid (supplier and reseller): the thumbnail box of a part with no image, or whose image didn't load. */
.asset-thumb-none {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 16px;
    color: var(--sdc-999);
    border: 1px solid var(--sdc-eee);
    border-radius: 3px;
}

.pd-overview-ids .pd-grid {
    border-bottom: 0;
    padding-top: 6px;
}

.pd-attr-list {
    margin: 8px 0 24px;
}

.pd-attr-list th {
    text-align: right;
    font-weight: 700;
    color: var(--sdc-333);
    padding: 4px 14px 4px 0;
    vertical-align: top;
    width: 45%;
}

.pd-attr-list td {
    padding: 4px 0;
    color: var(--sdc-333);
    overflow-wrap: anywhere;
}

.pd-app-summary .pd-box-title {
    margin-left: 0;
}

.pd-app-summary .pd-pre {
    padding: 8px 0;
}

/* Attributes tab: bold name (PAdb ID in small grey) right-aligned, value beside it */
.pd-attr-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: 16px;
    padding: 12px 10px;
    border-bottom: 1px solid var(--sdc-f2f2f2);
}

.pd-attr-name {
    text-align: right;
    font-weight: 700;
    color: var(--sdc-333);
}

.pd-attr-name small {
    font-weight: 400;
    color: var(--sdc-999);
}

.pd-attr-value {
    color: var(--sdc-333);
    overflow-wrap: anywhere;
}

/* Tables with expandable rows (Market Copy, Digital assets, Packaging, Kits, Interchange) */
.pd-table {
    border: 1px solid var(--sdc-f2f2f2);
    margin-top: 16px;
}

.pd-table > thead > tr > th {
    color: var(--sdc-999);
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid var(--sdc-f2f2f2);
    padding: 12px 10px;
}

.pd-table > tbody > tr > td {
    vertical-align: middle;
    padding: 12px 10px;
    border-bottom: 1px solid var(--sdc-f2f2f2);
}

.pd-expand-row {
    cursor: pointer;
}

.pd-expand-row:hover > td {
    background-color: var(--sdc-f9f9f9);
}

.pd-expanded > td {
    background-color: var(--sdc-fff);
    box-shadow: inset 0 3px 6px -4px rgba(0, 0, 0, .15);
}

.pd-expanded .pd-grid {
    padding-left: 0;
    padding-right: 0;
}

.pd-expanded .pd-field + .pd-field {
    margin-top: 10px;
}

.pd-chevron {
    width: 40px;
    text-align: center;
}

.pd-photo-cell {
    width: 110px;
}

.pd-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border: 1px solid var(--sdc-ddd);
    border-radius: 3px;
    font-weight: 700;
    font-size: 13px;
    color: var(--sdc-555);
}

.pd-asset-url {
    padding: 10px 0;
}

.pd-mc-assets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 6px 0 14px;
}

.pd-mc-assets a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 70px;
    height: 70px;
    padding: 4px;
    border: 1px solid var(--sdc-eee);
    border-radius: 3px;
}

.pd-mc-assets img {
    max-width: 62px;
    max-height: 62px;
    object-fit: contain;
}

.pd-view-more {
    display: block;
    width: 100%;
    margin-top: 12px;
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
    background: transparent;
}

.pd-view-more:hover {
    background: var(--bs-primary);
    color: #fff;
}

/* Pricing: a currency picker beside the title, a price sheet picker above each sheet's columns */
.pd-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pd-section-head .pd-segment-title {
    flex: 1;
}

.pd-head-select {
    width: auto;
    min-width: 110px;
}

.pd-price-table .pd-price-sheets th {
    border-bottom: 0;
}

.pd-price-table .pd-price-sheets select {
    max-width: 240px;
}

.pd-price-split {
    border-left: 1px solid var(--sdc-f2f2f2);
}

.pd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 36px 10px;
    color: var(--sdc-999);
}

.pd-empty .fa {
    font-size: 30px;
    color: var(--bs-primary);
    opacity: .6;
}

.pd-fitment-toolbar {
    overflow: hidden;
    padding: 12px 0 6px;
}

/* "Showing 1 to 25 of ..." under the Fitments grid */
.pd-fitment-footer {
    padding: 8px 0 0;
}

#fitment-table th,
#fitment-table td {
    white-space: nowrap;
    padding-left: 0px;
}

#fitment-table {
    table-layout: fixed;
}

.fitment-table-wrapper .dataTable {
    width: 100% !important;
}

/* ---------------------------------------------------------------------------------------------------------------
   Layout (AdminLTE 4). Legacy look: dark two-tone header, light sidebar with dark section headings, SEMA red accents;
   GCommerce (external administrator skin "skin-blue-light") gets the blue header.
   --------------------------------------------------------------------------------------------------------------- */
.skin-red-light {
    --sdc-header-bg: linear-gradient(#222 0 40%, #333 40% 100%);
    --sdc-accent: #D2242E;
}

.skin-blue-light {
    --sdc-header-bg: #3c8dbc;
    --sdc-accent: #3c8dbc;
}

.app-header,
.app-sidebar .sidebar-brand {
    background: var(--sdc-header-bg);
    border-bottom: 0;
}

.app-header .nav-link {
    color: #fff;
}

.app-sidebar {
    background-color: #f9fafc;
}

.sidebar-brand .brand-logo {
    max-height: 40px;
}

/* Collapsed (icons only): the small logo; expanded: the full logo. */
body:not(.sidebar-collapse) .sidebar-brand .brand-image,
body.sidebar-collapse .app-sidebar:hover .sidebar-brand .brand-image {
    display: none;
}

.sidebar-menu .nav-header {
    color: #fff;
    font-size: 14px;
    text-align: center;
    padding: .35rem .5rem;
    border-top: 1px solid var(--sdc-accent);
    border-bottom: 1px solid var(--sdc-accent);
    background: linear-gradient(0deg, rgba(80,80,80,1) 0%, rgba(105,105,105,1) 100%);
}

.skin-blue-light .sidebar-menu .nav-header {
    color: #848484;
    background: #f4f4f5;
    border: 0;
}

.sidebar-menu .nav-link:hover {
    color: var(--sdc-accent);
}

.sidebar-collapse .sidebar-search {
    display: none;
}

/* Links inside a sidebar group (Imports, My Data, Account Maintenance...) sit indented under the group's link. Not in
   the collapsed icon rail, where every icon stays in one column; the indent comes back when hovering widens the rail. */
.sidebar-menu .nav-treeview > .nav-item {
    padding-left: 1rem;
}

.sidebar-mini.sidebar-collapse .app-sidebar:not(:hover) .sidebar-menu .nav-treeview > .nav-item {
    padding-left: 0;
}

/* The Supplier and Receiver sections of the menu (Views/Shared/_MainNav.cshtml, 2026-11-25, from the Receiver mockup):
   small upper-case group headings with no icon that fold their group (the chevron turns), links with icons, a thin line
   between groups, the page that's open highlighted (app.MarkActiveNav), and the Receiver's My Account block. Only the
   li.sdc-snav / li.sdc-account items: the "-- Supplier --" / "-- Receiver --" bars and the other sections keep their
   look. Theme colours, so dark mode follows. */
.sidebar-menu > .nav-item.sdc-snav + .nav-item.sdc-snav,
.sidebar-menu > .nav-item.sdc-snav + .nav-item.sdc-account {
    margin-top: .25rem;
    padding-top: .25rem;
    background: linear-gradient(var(--bs-border-color), var(--bs-border-color)) no-repeat top center / calc(100% - 1.5rem) 1px;
}

.sidebar-wrapper .sidebar-menu > .nav-item.sdc-snav > .nav-link {
    padding: .45rem 1rem .3rem;
    margin-bottom: 0;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    background-color: transparent;
}

    .sidebar-wrapper .sidebar-menu > .nav-item.sdc-snav > .nav-link:hover,
    .sidebar-wrapper .sidebar-menu > .nav-item.sdc-snav > .nav-link:focus-visible {
        color: var(--bs-emphasis-color);
        background-color: transparent;
    }

    .sidebar-menu .sdc-snav > .nav-link p {
        padding-left: 0;
    }

    .sidebar-menu .sdc-snav > .nav-link .nav-arrow {
        font-size: .85rem;
        opacity: .7;
    }

.sidebar-menu .sdc-snav.menu-open > .nav-link .nav-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.sidebar-wrapper .sidebar-menu > .sdc-snav > .nav-treeview {
    margin: 0 0 .15rem;
    background-color: transparent;
}

.sidebar-menu .sdc-snav > .nav-treeview > .nav-item {
    padding-left: 0;
}

.sidebar-wrapper .sidebar-menu .sdc-snav > .nav-treeview > .nav-item > .nav-link {
    padding: .35rem 1rem;
    margin-bottom: .1rem;
    border-radius: 0 .375rem .375rem 0;
}

    .sidebar-wrapper .sidebar-menu .sdc-snav > .nav-treeview > .nav-item > .nav-link p {
        padding-left: .6rem;
    }

/* My Account (Receiver): a round icon, then "My Account" over its Profile / Subscription links. */
.sidebar-menu > .nav-item.sdc-account {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .35rem;
    padding: .55rem 1rem .5rem .6rem;
}

.sidebar-wrapper .sdc-account .sdc-account-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    color: var(--bs-body-color);
    background-color: var(--bs-secondary-bg);
}

    .sidebar-wrapper .sdc-account .sdc-account-icon:hover {
        color: var(--sdc-accent);
    }

.sdc-account .sdc-account-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-left: .65rem;
    line-height: 1.3;
    border-left: 1px solid var(--bs-border-color);
}

.sdc-account .sdc-account-title {
    font-weight: 600;
    color: var(--bs-emphasis-color);
}

.sdc-account .sdc-account-links {
    font-size: .85rem;
    color: var(--bs-secondary-color);
    white-space: nowrap;
}

    .sidebar-wrapper .sdc-account .sdc-account-links a {
        color: var(--bs-secondary-color);
        text-decoration: none;
    }

        .sidebar-wrapper .sdc-account .sdc-account-links a:hover {
            color: var(--sdc-accent);
            text-decoration: underline;
        }

        .sidebar-wrapper .sdc-account .sdc-account-links a.active {
            color: var(--bs-link-color);
            font-weight: 600;
        }

.sidebar-wrapper .sidebar-menu .nav-item.sdc-snav .nav-link.active {
    color: var(--bs-link-color);
    background-color: var(--bs-primary-bg-subtle);
    box-shadow: inset 3px 0 0 var(--bs-primary);
    font-weight: 600;
}

.sidebar-menu .sdc-snav .sdc-snav-badge {
    color: var(--bs-primary-text-emphasis);
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 10rem;
    font-weight: 600;
}

/* Collapsed icon rail: the headings have no icon, so they go and every group's links show, folded or not; My Account
   keeps just its round icon. !important: folding a group (and the sidebar search) leaves an inline display on its list. */
.sidebar-mini.sidebar-collapse .app-sidebar:not(:hover) .sidebar-menu .sdc-snav > .nav-link,
.sidebar-mini.sidebar-collapse .app-sidebar:not(:hover) .sidebar-menu .sdc-account .sdc-account-text {
    display: none;
}

.sidebar-mini.sidebar-collapse .app-sidebar:not(:hover) .sidebar-menu .sdc-snav > .nav-treeview {
    display: block !important;
}

/* Breadcrumb bar under the header. Legacy kept it fixed; AdminLTE 4's .app-main is its own overflow container, so a
   sticky bar would not stick while the page scrolls - it scrolls with the content instead. */
.app-main .app-content-header {
    padding: .35rem .5rem;
    background: #ecf0f5;
    box-shadow: 0 2px 3px #d4d4d4;
}

    .app-main .app-content-header .breadcrumb {
        line-height: 1.5;
    }

.app-content {
    padding-top: 15px;
}

.app-header .user-menu .user-header {
    color: #fff;
    background-color: #333;
}

.skin-blue-light .app-header .user-menu .user-header {
    background-color: #3c8dbc;
}

/* ---------------------------------------------------------------------------------------------------------------
   Dark mode (Home.js LocalSettings.DarkMode sets data-bs-theme="dark" on <html>). Plain grey swaps use the --sdc-*
   colours at the top; these are the rules that need more than a swap. Scoped to <html> (:root) so they never reach the
   always-dark header in light mode. Light mode never matches these.
   --------------------------------------------------------------------------------------------------------------- */

/* The layout's light backgrounds follow Bootstrap's dark surfaces - page and breadcrumb bar on the tertiary background,
   cards and sidebar on the body background, as in AdminLTE 4's own dark mode. */
:root[data-bs-theme="dark"] .app-main,
:root[data-bs-theme="dark"] .app-main .app-content-header {
    background-color: var(--bs-tertiary-bg);
}

:root[data-bs-theme="dark"] .app-main .app-content-header {
    box-shadow: 0 2px 3px rgba(0, 0, 0, .5);
}

:root[data-bs-theme="dark"] .app-sidebar {
    background-color: var(--bs-body-bg);
}

/* GCommerce's light sidebar headings. */
:root[data-bs-theme="dark"] .skin-blue-light .sidebar-menu .nav-header {
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
}

/* Loading overlay: a veil of the page colour, as legacy's was white. */
:root[data-bs-theme="dark"] .info-overlay {
    background: rgba(var(--bs-body-bg-rgb), .7);
}

/* Spinners: the dark arcs turn light (the red ones stay). */
:root[data-bs-theme="dark"] .loader-sdc {
    border-color: var(--bs-secondary-color) var(--bs-secondary-color) transparent transparent;
}

    :root[data-bs-theme="dark"] .loader-sdc::before {
        border-color: var(--bs-emphasis-color) var(--bs-emphasis-color) transparent transparent;
    }

:root[data-bs-theme="dark"] .spinner-circle:before {
    border-color: var(--bs-emphasis-color) transparent var(--bs-emphasis-color) transparent;
}

/* Divider gradients that faded to or from white fade to or from the card colour. */
:root[data-bs-theme="dark"] .dh-gradient {
    background: linear-gradient(to right, var(--bs-body-bg) 0%, var(--bs-border-color) 50%);
}

:root[data-bs-theme="dark"] :is(.edit-product-gradient, .sc-category-gradient) {
    background: linear-gradient(to right, var(--bs-secondary) 0%, var(--bs-body-bg) 100%);
}

/* Impersonation watermark: as faint on the dark page as lightgrey was on the light one. */
:root[data-bs-theme="dark"] .ip-text {
    color: var(--bs-secondary-bg);
}

:root[data-bs-theme="dark"] .pd-assets-filename {
    color: var(--bs-emphasis-color);
}

/* Logos and asset thumbnails (brand grids, Locations' logo, dashboards): uploaded logos are often transparent with dark
   lettering, drawn for legacy's white page, so they keep a white backing. */
:root[data-bs-theme="dark"] img.asset-thumb {
    background-color: #fff;
    border-radius: 3px;
}

/* Brand status tiles (Brand Data, Supplier Requests) other than the selected filter's (bg-blue, white text): legacy's
   dark text on the pale tile, which would otherwise turn light with the page text. */
:root[data-bs-theme="dark"] :is(.bg-brand-request, .bg-brand-approved, .bg-brand-updated, .bg-brand-expiring, .bg-brand-expired, .bg-brand-scheduled):not(.bg-blue) {
    color: #333;
}

/* Contextual table rows (Reseller Registrations' audit, Import Monitor, Import File Detail's log, Import Errors' open
   row): Bootstrap 5.3 keeps table-danger / -warning / -light etc. pale with black text in dark mode, so the light-grey
   muted text in them was unreadable. In dark mode they're a tint of their colour over the card, with the page's text
   colours, borders and hover / striped / active shading. */
:root[data-bs-theme="dark"] :is(.table-primary, .table-secondary, .table-success, .table-info, .table-warning, .table-danger, .table-light) {
    --bs-table-color: var(--bs-body-color);
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), .05);
    --bs-table-active-color: var(--bs-body-color);
    --bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), .1);
    --bs-table-hover-color: var(--bs-body-color);
    --bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), .075);
}

:root[data-bs-theme="dark"] .table-primary { --bs-table-bg: rgba(var(--bs-primary-rgb), .25); }
:root[data-bs-theme="dark"] .table-secondary { --bs-table-bg: rgba(var(--bs-secondary-rgb), .25); }
:root[data-bs-theme="dark"] .table-success { --bs-table-bg: rgba(var(--bs-success-rgb), .25); }
:root[data-bs-theme="dark"] .table-info { --bs-table-bg: rgba(var(--bs-info-rgb), .25); }
:root[data-bs-theme="dark"] .table-warning { --bs-table-bg: rgba(var(--bs-warning-rgb), .25); }
:root[data-bs-theme="dark"] .table-danger { --bs-table-bg: rgba(var(--bs-danger-rgb), .25); }
:root[data-bs-theme="dark"] .table-light { --bs-table-bg: var(--bs-tertiary-bg); }

/* Date range picker (daterangepicker has no dark theme): white panel, calendars and arrows to the card colours. */
:root[data-bs-theme="dark"] .daterangepicker,
:root[data-bs-theme="dark"] .daterangepicker .calendar-table,
:root[data-bs-theme="dark"] .daterangepicker td.off,
:root[data-bs-theme="dark"] .daterangepicker td.off.in-range,
:root[data-bs-theme="dark"] .daterangepicker td.off.start-date,
:root[data-bs-theme="dark"] .daterangepicker td.off.end-date {
    background-color: var(--bs-body-bg);
}

:root[data-bs-theme="dark"] .daterangepicker {
    border-color: var(--bs-border-color);
}

:root[data-bs-theme="dark"] .daterangepicker .calendar-table {
    border-color: var(--bs-body-bg);
}

:root[data-bs-theme="dark"] .daterangepicker:before {
    border-bottom-color: var(--bs-border-color);
}

:root[data-bs-theme="dark"] .daterangepicker:after {
    border-bottom-color: var(--bs-body-bg);
}

:root[data-bs-theme="dark"] .daterangepicker.drop-up:before {
    border-top-color: var(--bs-border-color);
}

:root[data-bs-theme="dark"] .daterangepicker.drop-up:after {
    border-top-color: var(--bs-body-bg);
}

:root[data-bs-theme="dark"] .daterangepicker .calendar-table :is(.next, .prev) span {
    border-color: var(--bs-emphasis-color);
}

/* Not the selected dates (td.active, also in-range / available), which keep the picker's blue. */
:root[data-bs-theme="dark"] .daterangepicker :is(td.available:not(.active):hover, th.available:hover, .ranges li:not(.active):hover) {
    background-color: var(--bs-secondary-bg);
}

:root[data-bs-theme="dark"] .daterangepicker td.in-range:not(.active) {
    color: var(--bs-emphasis-color);
    background-color: rgba(var(--bs-primary-rgb), .25);
}

:root[data-bs-theme="dark"] .daterangepicker :is(.drp-buttons, .drp-calendar.left, .drp-calendar.right) {
    border-color: var(--bs-border-color);
}

:root[data-bs-theme="dark"] .daterangepicker :is(select.hourselect, select.minuteselect, select.secondselect, select.ampmselect) {
    background: var(--bs-secondary-bg);
    border-color: var(--bs-secondary-bg);
}

.impersonate-menu {
    min-width: 360px;
    max-height: 70vh;
    overflow-y: auto;
}

    .impersonate-menu .dropdown-item h4 {
        font-size: 15px;
    }

        .impersonate-menu .dropdown-item h4 small {
            color: #999;
            font-size: 12px;
        }

.settings-menu {
    min-width: 280px;
}

/* AdminLTE 2's .box-pane-right (coloured panel on the left of the supplier status report). */
.box-pane-right {
    border-right: 1px solid var(--sdc-f4f4f4);
}

/* ASP.NET validation helpers (jquery.validate.unobtrusive / tag helpers), styled like Bootstrap 5's invalid state. */
.input-validation-error {
    border-color: var(--bs-form-invalid-border-color) !important;
}

.field-validation-error,
.validation-summary-errors {
    color: var(--bs-form-invalid-color);
    font-size: .875em;
}

    .validation-summary-errors ul {
        padding-left: 1rem;
    }

.login-logo img {
    max-width: 320px;
}

/* AdminLTE 2 coloured modals (modal-primary / -info / -success / -warning / -danger) and their white .btn-outline
   buttons. AdminLTE 4 dropped them; the alert/confirm/info dialogs and several pages use them. */
.modal-primary { --sdc-modal-bg: #3c8dbc; --sdc-modal-border: #307095; }
.modal-info { --sdc-modal-bg: #00c0ef; --sdc-modal-border: #0097bc; }
.modal-success { --sdc-modal-bg: #00a65a; --sdc-modal-border: #00733e; }
.modal-warning { --sdc-modal-bg: #f39c12; --sdc-modal-border: #c87f0a; }
.modal-danger { --sdc-modal-bg: #dd4b39; --sdc-modal-border: #c23321; }

:is(.modal-primary, .modal-info, .modal-success, .modal-warning, .modal-danger) .modal-content {
    color: #fff;
    background-color: var(--sdc-modal-bg);
}

:is(.modal-primary, .modal-info, .modal-success, .modal-warning, .modal-danger) :is(.modal-header, .modal-footer) {
    border-color: var(--sdc-modal-border);
}

:is(.modal-primary, .modal-info, .modal-success, .modal-warning, .modal-danger) .btn-close {
    filter: var(--bs-btn-close-white-filter);
}

:is(.modal-primary, .modal-info, .modal-success, .modal-warning, .modal-danger) p {
    color: inherit;
}

/* The profile dialog (Shared/Modals.cshtml #profile-modal): AdminLTE's bg-gray with dark text, as PIMS has it since the
   reseller dashboard rework (Dylan's pick over the red modal-danger). */
.modal-gray .modal-content {
    color: #333;
    background-color: #d2d6de;
}

.modal-gray :is(.modal-header, .modal-footer) {
    background-color: #b5bbc8;
    border-color: #a7aebd;
}

.modal-gray .btn-outline {
    color: #333;
    border-color: #666;
}

    .modal-gray .btn-outline:hover, .modal-gray .btn-outline:focus, .modal-gray .btn-outline:active {
        color: #000;
        border-color: #333;
    }

.btn-outline {
    color: #fff;
    background: transparent;
    border: 1px solid #fff;
}

    .btn-outline:hover, .btn-outline:focus, .btn-outline:active {
        color: rgba(255, 255, 255, .7);
        border-color: rgba(255, 255, 255, .7);
    }

/* Legacy dialogs size themselves with an inline width (style="width: 75%"); Bootstrap 5 caps .modal-dialog with
   max-width, so let the inline width win as it did in Bootstrap 3. */
.modal-dialog[style*="width"] {
    max-width: none;
}

/* What's New (Shared/_WhatsNewModal.cshtml): the header in the site header's colours with the accent underline (SEMA red,
   GCommerce blue), then a section per account with the features as icon + text cards, two to a row from tablet width. */
#whats-new-modal .modal-header {
    align-items: flex-start;
    color: #fff;
    background: var(--sdc-header-bg);
    border-bottom: 3px solid var(--sdc-accent);
}

/* The site header's two-tone band is sized for one line; this header has two, so a smooth blend of the same greys. */
.skin-red-light #whats-new-modal .modal-header {
    background: linear-gradient(#222, #333);
}

/* The header's icon: a lighter SEMA red that reads on the dark header (white on GCommerce's blue one). */
.skin-red-light #whats-new-modal .modal-title .fa {
    color: #f26b72;
}

.whats-new-intro {
    margin: .35rem 0 0;
    color: rgba(255, 255, 255, .75);
}

.whats-new-group + .whats-new-group {
    margin-top: 1.5rem;
}

.whats-new-section {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    margin: 0 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--bs-border-color);
    font-size: 16px;
    font-weight: 600;
}

.whats-new-account {
    min-width: 0;
    margin-left: .25rem;
    overflow: hidden;
    color: var(--bs-secondary-color);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.whats-new-item {
    display: flex;
    gap: .75rem;
    height: 100%;
    padding: .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.whats-new-icon {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 50%;
    color: var(--sdc-accent);
    background-color: color-mix(in srgb, var(--sdc-accent) 12%, transparent);
    font-size: 18px;
}

:root[data-bs-theme="dark"] .skin-red-light .whats-new-icon {
    color: #f26b72;
}

.whats-new-item h6 {
    margin: .1rem 0 .3rem;
    font-size: 14px;
    font-weight: 700;
}

.whats-new-item p {
    margin-bottom: .4rem;
    font-size: 13px;
}

.whats-new-link {
    display: inline-block;
    margin-right: .9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Dark Mode's switch, in place of a link. */
.whats-new-switch {
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 600;
}

#whats-new-modal .modal-footer {
    justify-content: space-between;
}

    #whats-new-modal .modal-footer .btn {
        margin-left: auto;
    }

.whats-new-again {
    color: var(--bs-secondary-color);
    font-size: 13px;
}

/* Alert / info / confirm / error / login dialogs built from an info-box (Shared/Modals.cshtml): legacy showed a white
   dialog with the coloured square icon at the left, the text beside it and the buttons underneath (AdminLTE 2's
   info-box floated the icon). AdminLTE 4's info-box is a flex row, which put the icon, the text and the button row side
   by side at full height, and the coloured-modal rule above painted the whole dialog. */
:is(.modal-primary, .modal-info, .modal-success, .modal-warning, .modal-danger) .modal-content:has(.info-box) {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
}

.modal .info-box {
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 0;
    box-shadow: none;
}

.modal .info-box > .info-box-icon {
    height: 70px;
}

/* The icons carry an inline height: 100% (meant for AdminLTE 2's line-height centring); centre the glyph instead. */
.modal .info-box > .info-box-icon > .fa {
    height: auto !important;
}

.modal .info-box > .info-box-content {
    flex: 1 1 0;
}

.modal .info-box-content h4 {
    font-size: 18px;
}

/* The buttons are float-end: in Bootstrap 3 the first one ended up rightmost (Yes to the right of No). */
.modal .info-box > .row {
    flex: 0 0 100%;
    flex-direction: row-reverse;
    margin: 0;
}

.modal .info-box > .row > * {
    flex: 0 0 auto;
    width: auto;
}

/* AdminLTE 2's colour classes as legacy drew them: white text (black on gray) in AdminLTE 2's shades. adminlte-colors-v3
   only sets the background, in AdminLTE 3's shades, so text and icons on bg-blue / bg-green / ... came out near-black.
   bg-cyan / bg-lightblue are the codemod's names for bg-aqua / bg-light-blue. The brand status tiles above still win. */
.bg-red, .bg-yellow, .bg-cyan, .bg-blue, .bg-lightblue, .bg-green, .bg-navy, .bg-teal, .bg-olive, .bg-lime, .bg-orange,
.bg-fuchsia, .bg-purple, .bg-maroon, .bg-black {
    color: #fff !important;
}

.bg-red { background-color: #dd4b39 !important; }
.bg-yellow { background-color: #f39c12 !important; }
.bg-cyan { background-color: #00c0ef !important; }
.bg-blue { background-color: #0073b7 !important; }
.bg-lightblue { background-color: #3c8dbc !important; }
.bg-green { background-color: #00a65a !important; }
.bg-navy { background-color: #001f3f !important; }
.bg-teal { background-color: #39cccc !important; }
.bg-olive { background-color: #3d9970 !important; }
.bg-lime { background-color: #01ff70 !important; }
.bg-orange { background-color: #ff851b !important; }
.bg-fuchsia { background-color: #f012be !important; }
.bg-purple { background-color: #605ca8 !important; }
.bg-maroon { background-color: #d81b60 !important; }
.bg-black { background-color: #111 !important; }

.bg-gray {
    color: #000 !important;
    background-color: #d2d6de !important;
}

/* Dashboard info boxes, small boxes and description blocks in AdminLTE 2's size and type (square 90px icon, uppercase
   14px label, 18px number, 38px small-box figure). Scoped to the page content: the dialogs in Shared/Modals.cshtml
   are info-boxes too and have their own rules above. */
.app-main .info-box {
    min-height: 90px;
    padding: 0;
    margin-bottom: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
}

    .app-main .info-box .info-box-icon {
        align-self: flex-start;
        width: 90px;
        height: 90px;
        font-size: 45px;
        border-radius: 2px 0 0 2px;
        background-color: rgba(0, 0, 0, .2);
    }

    .app-main .info-box .info-box-content {
        display: block;
        padding: 5px 10px;
        line-height: 1.42857143;
    }

    .app-main .info-box .info-box-text,
    .app-main .info-box .progress-description {
        font-size: 14px;
    }

    .app-main .info-box .info-box-text {
        text-transform: uppercase;
    }

    .app-main .info-box .info-box-number {
        margin-top: 0;
        font-size: 18px;
    }

    .app-main .info-box .progress {
        height: 2px;
        margin: 5px -10px;
        border-radius: 0;
        background-color: rgba(0, 0, 0, .2);
    }

        .app-main .info-box .progress .progress-bar {
            background-color: #fff;
        }

.app-main .small-box {
    margin-bottom: 20px;
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
}

    /* Bootstrap 3's heading line-height and paragraph margin (Bootstrap 5's are larger, so the boxes grew taller). */
    .app-main .small-box h3 {
        font-size: 38px;
        line-height: 1.1;
    }

    .app-main .small-box p {
        margin-bottom: 10px;
        font-size: 15px;
        line-height: 1.42857143;
    }

    .app-main .small-box .small-box-icon {
        top: -10px;
        right: 10px;
        height: auto;
        font-size: 90px;
    }

    .app-main .small-box > .small-box-footer {
        color: rgba(255, 255, 255, .8);
        background-color: rgba(0, 0, 0, .1);
    }

        .app-main .small-box > .small-box-footer:hover {
            color: #fff;
            background-color: rgba(0, 0, 0, .15);
        }

.description-block .description-header {
    font-size: 16px;
    font-weight: 600;
}

/* AdminLTE 4 greys this out; legacy's inherited the panel's colour (white on the supplier Status Report's green). */
.description-block .description-text {
    font-size: 14px;
    color: inherit;
}

/* Legacy's AdminLTE 2 boxes had a 20px bottom margin; AdminLTE 4's cards have none, so stacked panels sat flush on each
   other. (The scorecard level panels set an inline 5px, as in legacy, which still wins.) */
.card {
    margin-bottom: 20px;
}

/* AdminLTE 4's card title floats left; legacy's box title didn't, so a text-center header (the supplier dashboard's
   "Fuel your catalog" banner) centred it. */
.card-header.text-center > .card-title {
    float: none;
}

/* Info boxes: keep the icon square (AdminLTE 4 lets it shrink when the text is long) and let the text wrap. */
.info-box .info-box-icon {
    flex-shrink: 0;
}

.info-box .info-box-content {
    min-width: 0;
}

/* AdminLTE 2's .products-list (expandable rule lists on Data Quality / Scorecard / Data Health); AdminLTE 4 dropped it. */
.products-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .products-list > .item {
        padding: 10px 0;
        background: var(--bs-body-bg);
    }

.product-list-in-box > .item {
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

    .product-list-in-box > .item:last-of-type {
        border-bottom-width: 0;
    }

.products-list .product-title {
    font-weight: 600;
}

.products-list .product-description {
    display: block;
    color: var(--bs-secondary-color);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* "Date Range:" label and picker on the history pages sat inline in Bootstrap 3's .form-inline (removed in BS5). They
   float beside the grid, whose DataTables 3 wrapper (.dt-container, position: relative) comes later and painted over
   them: its full-width top pager row took the clicks, so the date range picker never opened. Lifted above it. */
.inline-hist {
    display: inline-flex;
    width: auto;
    vertical-align: middle;
    margin-bottom: .5rem;
    position: relative;
    z-index: 1;
}

/* Legacy `dom` strings with an unwrapped "p" (e.g. Export History's top pager) put the pager next to floated controls.
   Bootstrap 5's .pagination is a block-level flexbox, so it shrank beside the floats and wrapped into a stack of
   buttons; Bootstrap 3's was inline-block, right-aligned on one line. */
div.dt-container > div.dt-paging {
    text-align: right;
}

div.dt-container > div.dt-paging .pagination {
    display: inline-flex;
    flex-wrap: nowrap;
}

/* Legacy `dom` strings float the buttons / page length / search above the table. DataTables 1.x's .dataTables_scroll
   cleared those floats (as table.dataTable still does); DataTables 3's .dt-scroll doesn't, so on scrolling grids it
   started level with the floated controls and, being position: relative, covered them (Datasets' New / Edit couldn't
   be clicked). */
div.dt-container > div.dt-scroll {
    clear: both;
}

/* Sort arrows always to the right of the column title. DataTables 3 puts them on the left of right-aligned (number /
   date) columns, where they sat next to the previous column's title (Product Details' Fitments, Jobber, Modified).
   The title stays right-aligned over the numbers. */
table.dataTable thead th.dt-type-numeric div.dt-column-header,
table.dataTable thead th.dt-type-date div.dt-column-header,
table.dataTable thead th.dt-right div.dt-column-header,
table.dataTable thead th.dt-head-right div.dt-column-header {
    flex-direction: row;
}

/* Grid buttons (DataTables Buttons): legacy's were AdminLTE 2's blue btn-primary; DataTables 3's Bootstrap 5 default is a
   grey btn-secondary. They're blue again and Delete is red; Edit / Delete before a row is selected keep Bootstrap's
   faded disabled look. Buttons with a colour of their own keep it (Supplier Requests' Approve btn-success / Decline
   btn-warning; recoverButton's green background, e.g. Datasets' View Product Counts). */
.dt-buttons > .btn:is(.btn-secondary, .btn-primary):not(.btn-success, .btn-info, .btn-warning, .btn-danger, .btn-light, .btn-dark) {
    --bs-btn-color: #fff;
    --bs-btn-bg: #3c8dbc;
    --bs-btn-border-color: #367fa9;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #367fa9;
    --bs-btn-hover-border-color: #204d74;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #367fa9;
    --bs-btn-active-border-color: #204d74;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #3c8dbc;
    --bs-btn-disabled-border-color: #367fa9;
    --bs-btn-focus-shadow-rgb: 60, 141, 188;
}

.dt-buttons > .btn.buttons-remove:is(.btn-secondary, .btn-primary):not(.btn-success, .btn-info, .btn-warning, .btn-danger, .btn-light, .btn-dark) {
    --bs-btn-bg: #dd4b39;
    --bs-btn-border-color: #d73925;
    --bs-btn-hover-bg: #d73925;
    --bs-btn-hover-border-color: #ac2925;
    --bs-btn-active-bg: #d73925;
    --bs-btn-active-border-color: #ac2925;
    --bs-btn-disabled-bg: #dd4b39;
    --bs-btn-disabled-border-color: #d73925;
    --bs-btn-focus-shadow-rgb: 221, 75, 57;
}

/* Coloured table rows (Ad-Hoc Exports' global profiles, legacy tr.bg-aqua, now text-bg-cyan): Bootstrap 5 paints every
   cell with the table background and colour, hiding the row's; Bootstrap 3 cells were transparent. */
.table > :not(caption) > tr[class*="bg-"] > * {
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    color: inherit;
}
