
/* Inter — the chrome typeface, as loaded by the Limitless template in Gendata.
   Only the four weights the topbar and sidebar actually use are shipped. */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter/Inter-Regular.woff2") format("woff2"),
         url("../fonts/inter/Inter-Regular.woff") format("woff");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/inter/Inter-Medium.woff2") format("woff2"),
         url("../fonts/inter/Inter-Medium.woff") format("woff");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/inter/Inter-SemiBold.woff2") format("woff2"),
         url("../fonts/inter/Inter-SemiBold.woff") format("woff");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/inter/Inter-Bold.woff2") format("woff2"),
         url("../fonts/inter/Inter-Bold.woff") format("woff");
}

:root {
    --dh-body-bg: #eef3f8;
    --dh-surface-bg: #ffffff;
    --dh-surface-alt: #f7f9fc;
    --dh-border-color: #dbe3ef;
    --dh-border-strong: #cbd5e1;
    --dh-text-color: #223047;
    --dh-text-muted: #66758c;
    --dh-sidebar-width: 18.75rem;
    --dh-sidebar-collapsed-width: 3.75rem;
    --dh-topbar-height: 52px;

    /* Chrome (topbar + sidebar) — values lifted from the Limitless template
       that Gendata still loads, so the three apps read the same. Resolved to
       literals on purpose: nothing here needs the template to be present. */
    --dh-chrome-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --dh-chrome-font-size: 0.875rem;
    --dh-chrome-font-size-sm: 0.75rem;
    --dh-chrome-line-height: 1.5715;
    --dh-chrome-line-height-computed: 1.375rem;
    --dh-chrome-icon-size: 1.25rem;

    /* Phosphor's own stylesheet sizes every glyph from this, the way the Limitless template
       does. Kept equal to the chrome icon size so both icon sets measure the same. */
    --icon-font-size: 1.25rem;
    --dh-chrome-bg: #252b36;
    --dh-chrome-hover-bg: rgba(255, 255, 255, 0.1);
    --dh-chrome-active-bg: rgba(255, 255, 255, 0.15);
    --dh-chrome-nav-padding-y: 0.625rem;
    --dh-chrome-nav-padding-x: 1.25rem;
    --dh-primary: #2f7df6;
    --dh-primary-hover: #1967de;
    --dh-danger: #ef5350;
    --dh-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html,
body {
    height: 100%;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: var(--dh-chrome-font);
    font-size: var(--dh-chrome-font-size);
    line-height: var(--dh-chrome-line-height);
    color: var(--dh-text-color);
    background-color: var(--dh-body-bg);
}

/* The template's heading scale. Bootstrap's runs from 2.5rem down and at weight 500,
   which is what made every card title and page header shout next to Gendata's. */
.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.9375rem;
    font-weight: 600;
    line-height: var(--dh-chrome-line-height);
}

.h1, h1 { font-size: calc(1.2875rem + 0.45vw); }
.h2, h2 { font-size: calc(1.275rem + 0.3vw); }
.h3, h3 { font-size: calc(1.2625rem + 0.15vw); }
.h4, h4 { font-size: 1.25rem; }
.h5, h5 { font-size: 1.125rem; }
.h6, h6 { font-size: 1rem; }

a {
    color: #3d7ef0;
    text-decoration: none;
}

a:hover {
    color: #2f68cc;
}

.no-transitions *,
.no-transitions *::before,
.no-transitions *::after {
    transition: none !important;
}

.navbar.navbar-dark.navbar-static {
    min-height: 0;
    padding: 0.625rem;
    font-family: var(--dh-chrome-font);
    font-size: var(--dh-chrome-font-size);
    line-height: var(--dh-chrome-line-height);
    color: #ffffff;
    background: var(--dh-chrome-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none;
}

.navbar.navbar-dark.navbar-static .container-fluid {
    min-height: 0;
    padding-right: 0.625rem;
    padding-left: 0.625rem;
}

/* Limitless sizes the brand block to the sidebar width so the two line up. The font-size
   belongs on the block itself, not only on the link: Bootstrap's 1.25rem sets the line box
   the whole topbar is measured against, which made it ~9px taller than Gendata's. */
.navbar-brand {
    margin-right: 0;
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    font-size: var(--dh-chrome-font-size);

    /* Limitless makes the brand a flex box; as a plain Bootstrap block its line-box leading
       added 6px to the whole topbar. */
    display: inline-flex;
    align-items: center;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-brand {
        width: calc(var(--dh-sidebar-width) - 0.625rem);
    }
}

.navbar-brand a {
    color: #ffffff;
    font-size: var(--dh-chrome-font-size);
    font-weight: 400;
    letter-spacing: normal;
}

.navbar-brand img {
    height: var(--dh-chrome-line-height-computed);
    width: auto;
}

.link-white {
    color: #ffffff;
}

.navbar-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    color: #ffffff;
    font-size: var(--dh-chrome-font-size);
    font-weight: 400;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar-nav-link:hover,
.navbar-nav-link:focus {
    color: #ffffff;
    background-color: var(--dh-chrome-hover-bg);
}

.navbar-nav-link:active,
.navbar-nav-link.active,
.navbar-nav-link.show,
.navbar-nav-link[aria-expanded="true"] {
    color: #ffffff;
    background-color: var(--dh-chrome-active-bg);
}

/* Limitless centres the icon on the text line box. Font Awesome stands in for
   Phosphor here, so it takes the same box at the same size. */
.navbar-nav-link i {
    font-size: var(--dh-chrome-icon-size);
    line-height: 1;
    min-width: 1em;
    text-align: center;
    margin-top: calc((var(--dh-chrome-line-height-computed) - var(--dh-chrome-icon-size)) * 0.5);
    margin-bottom: calc((var(--dh-chrome-line-height-computed) - var(--dh-chrome-icon-size)) * 0.5);
}

.navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    padding: 0.625rem 0.9375rem;
    color: #ffffff;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    box-shadow: none;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    color: #ffffff;
    background-color: var(--dh-chrome-hover-bg);
    border-color: transparent;
    box-shadow: none;
}

.navbar-toggler i {
    font-size: var(--dh-chrome-icon-size);
    line-height: 1;
}

/* Environment marker. Datahub uses the Gendata form (a .badge inside the
   brand link); Portal still uses this label form, so both are supported. */
.navbar-environment-badge {
    display: inline-flex;
    align-items: center;
    font-size: var(--dh-chrome-font-size);
}

@media (min-width: 992px) {
    .navbar-environment-badge {
        margin-left: 0 !important;
        font-size: var(--dh-chrome-font-size);
    }
}

.navbar .badge {
    --bs-badge-padding-x: 0.4375rem;
    --bs-badge-padding-y: 0.3125rem;
    --bs-badge-font-weight: 600;
    --bs-badge-border-radius: 0.25rem;
    min-width: calc(var(--bs-badge-padding-y) * 2 + var(--bs-badge-font-size));
}

.navbar .badge.bg-info {
    background-color: #049aad !important;   /* Limitless --info, not Bootstrap's */
}

.navbar .badge.bg-warning {
    background-color: #f58646 !important;   /* Limitless --warning */
}

.page-content {
    display: flex;
    min-height: calc(100vh - var(--dh-topbar-height));
    background: var(--dh-body-bg);
}

.sidebar {
    position: relative;
    width: var(--dh-sidebar-width);
    min-width: var(--dh-sidebar-width);
    font-family: var(--dh-chrome-font);
    font-size: var(--dh-chrome-font-size);
    line-height: var(--dh-chrome-line-height);
    color: #ffffff;
    background: var(--dh-chrome-bg);
    transition: width 0.2s ease, min-width 0.2s ease, transform 0.2s ease;
    z-index: 1030;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: calc(100vh - var(--dh-topbar-height));
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-section {
    border-bottom: 0;
}

.sidebar-section-body {
    min-height: 0;
    padding: 1.25rem;
    color: #ffffff;
}

.sidebar-section-body h5 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: var(--dh-chrome-line-height);
}

.sidebar-control,
.sidebar-mobile-main-toggle,
.sidebar-main-toggle {
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-control:hover,
.sidebar-mobile-main-toggle:hover,
.sidebar-main-toggle:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Limitless pads the first and last item rather than the list, so a leading
   .nav-item-header sits flush against the section above it */
.nav-sidebar {
    padding: 0;
}

.nav-sidebar .nav-item:not(.nav-item-header):first-child {
    padding-top: 0.5rem;
}

.nav-sidebar .nav-item:not(.nav-item-header):last-child {
    padding-bottom: 0.5rem;
}

.nav-sidebar .nav-item:not(.nav-item-divider):not(:last-child) {
    margin-bottom: 1px;
}

.nav-sidebar > .nav-item,
.nav-sidebar > .nav-item-header {
    width: 100%;
}

/* Section labels take their type from the markup's own
   .text-uppercase.fs-sm.lh-sm.opacity-50, exactly as in Gendata */
.nav-sidebar .nav-item-header {
    display: block;
    padding: var(--dh-chrome-nav-padding-y) var(--dh-chrome-nav-padding-x);
    color: #ffffff;
    font-size: var(--dh-chrome-font-size);
    font-weight: 400;
    letter-spacing: normal;
}

.nav-sidebar .nav-item-header > div {
    margin: 0;
}

.nav-sidebar .sidebar-resize-show {
    display: none;
}

.nav-sidebar .nav-link {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-height: 0;
    padding: var(--dh-chrome-nav-padding-y) var(--dh-chrome-nav-padding-x);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--dh-chrome-font-size);
    font-weight: 500;
    background-color: transparent;
    border-radius: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-sidebar .nav-link:hover,
.nav-sidebar .nav-link:focus {
    color: #ffffff;
    background-color: var(--dh-chrome-hover-bg);
}

.nav-sidebar .nav-link:active {
    background-color: var(--dh-chrome-active-bg);
}

/* The icon carries its own trailing gutter instead of a flex gap, so the
   collapsed rail can drop it without touching the layout */
.nav-sidebar .nav-link i {
    width: auto;
    min-width: 1em;
    flex: 0 0 auto;
    text-align: center;
    font-size: var(--dh-chrome-icon-size);
    line-height: 1;
    margin-right: var(--dh-chrome-nav-padding-x);
    margin-top: calc((var(--dh-chrome-line-height-computed) - var(--dh-chrome-icon-size)) * 0.5);
    margin-bottom: calc((var(--dh-chrome-line-height-computed) - var(--dh-chrome-icon-size)) * 0.5);
}

.nav-sidebar .nav-link span {
    flex: 1 1 auto;
}

.chosen-container {
    width: 100% !important;
    font-size: var(--dh-chrome-font-size);
}

.chosen-container .chosen-drop {
    border: 1px solid var(--dh-border-strong);
    border-top: 0;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: var(--dh-shadow-sm);
}

.chosen-container-single .chosen-single {
    display: flex;
    align-items: center;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 2.5rem 0.375rem 0.75rem;
    color: var(--dh-text-color);
    background: #fff;
    border: 1px solid var(--dh-border-strong);
    border-radius: 0.375rem;
    box-shadow: none;
    line-height: 1.5;
}

.chosen-container-single .chosen-single span {
    margin-right: 0;
}

.chosen-container-single .chosen-single div {
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chosen-container-single .chosen-single div b {
    display: none;
}

.chosen-container-single .chosen-single div::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 0.3rem solid transparent;
    border-right: 0.3rem solid transparent;
    border-top: 0.35rem solid #6c757d;
}

.chosen-container-active.chosen-with-drop .chosen-single {
    border-color: #86b7fe;
    border-radius: 0.375rem 0.375rem 0 0;
}

.chosen-container-active .chosen-single,
.chosen-container-active .chosen-choices {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.chosen-container .chosen-results {
    margin: 0;
    padding: 0.25rem 0;
    color: var(--dh-text-color);
}

.chosen-container .chosen-results li {
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
}

.chosen-container .chosen-results li.highlighted {
    background: var(--dh-primary);
    color: #fff;
}

.chosen-container-single .chosen-search {
    padding: 0.5rem;
}

.chosen-container-single .chosen-search input[type="text"] {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--dh-border-strong);
    border-radius: 0.375rem;
    background-image: none !important;
}

/* The caret is Limitless's own Phosphor caret-right glyph */
.nav-sidebar .nav-item-submenu > .nav-link {
    padding-right: calc(var(--dh-chrome-nav-padding-x) + var(--dh-chrome-font-size) * 1.5);
}

.nav-sidebar .nav-item-submenu > .nav-link::after {
    content: "\f31c";
    font-family: "Phosphor";
    font-weight: 400;
    font-size: var(--dh-chrome-font-size);
    position: absolute;
    top: var(--dh-chrome-nav-padding-y);
    right: var(--dh-chrome-nav-padding-x);
    margin-top: calc((var(--dh-chrome-line-height-computed) - var(--dh-chrome-font-size)) * 0.5);
    margin-left: 0;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    opacity: 1;
    transform: rotate(0deg);
    transition: transform 0.15s ease;
}

.nav-sidebar .nav-item-open > .nav-link::after {
    transform: rotate(90deg);
}

.nav-sidebar .nav-item-open > .nav-link:not(.disabled):not(:active),
.nav-sidebar > .nav-item-expanded > .nav-link:not(:active) {
    background-color: var(--dh-chrome-hover-bg);
    color: #ffffff;
}

/* Sub-menus are flat in Limitless: no tint, no inset marker, deeper indent */
.nav-group-sub {
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: transparent;
}

.nav-group-sub .nav-link {
    min-height: 0;
    gap: 0;
    padding-top: var(--dh-chrome-nav-padding-y);
    padding-bottom: var(--dh-chrome-nav-padding-y);
    padding-left: calc(var(--dh-chrome-nav-padding-x) * 2 + var(--dh-chrome-icon-size));
    font-size: var(--dh-chrome-font-size);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

.nav-group-sub .nav-group-sub .nav-link {
    padding-left: calc(var(--dh-chrome-nav-padding-x) * 3 + var(--dh-chrome-icon-size));
}

.nav-group-sub .nav-link i {
    width: auto;
    font-size: var(--dh-chrome-icon-size);
    opacity: 1;
}

.nav-sidebar .nav-link.active,
.nav-group-sub .nav-link.active {
    color: #ffffff;
    background-color: var(--dh-chrome-active-bg);
    box-shadow: none;
}

.nav-item-divider {
    margin: 0.5rem 0;
    height: 1px;
    border-top: 0;
    background-color: rgba(255, 255, 255, 0.125);
}

.sidebar-main.sidebar-main-resized,
.sidebar-main.sidebar-collapsed {
    width: var(--dh-sidebar-collapsed-width);
    min-width: var(--dh-sidebar-collapsed-width);
}

.sidebar-main.sidebar-main-resized:not(.sidebar-main-unfold) .sidebar-resize-hide,
.sidebar-main.sidebar-collapsed:not(.sidebar-main-unfold) .sidebar-resize-hide,
.sidebar-main.sidebar-main-resized:not(.sidebar-main-unfold) .nav-link span,
.sidebar-main.sidebar-collapsed:not(.sidebar-main-unfold) .nav-link span,
.sidebar-main.sidebar-main-resized:not(.sidebar-main-unfold) .nav-item-submenu > .nav-link::after,
.sidebar-main.sidebar-collapsed:not(.sidebar-main-unfold) .nav-item-submenu > .nav-link::after,
.sidebar-main.sidebar-main-resized:not(.sidebar-main-unfold) .nav-group-sub,
.sidebar-main.sidebar-collapsed:not(.sidebar-main-unfold) .nav-group-sub {
    display: none !important;
}

.sidebar-main.sidebar-main-resized:not(.sidebar-main-unfold) .sidebar-section-body,
.sidebar-main.sidebar-collapsed:not(.sidebar-main-unfold) .sidebar-section-body,
.sidebar-main.sidebar-main-resized:not(.sidebar-main-unfold) .nav-sidebar .nav-link,
.sidebar-main.sidebar-collapsed:not(.sidebar-main-unfold) .nav-sidebar .nav-link {
    justify-content: center;
}

.sidebar-main.sidebar-main-resized:not(.sidebar-main-unfold) .nav-sidebar .sidebar-resize-show,
.sidebar-main.sidebar-collapsed:not(.sidebar-main-unfold) .nav-sidebar .sidebar-resize-show {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
}

.sidebar-main.sidebar-main-resized.sidebar-main-unfold,
.sidebar-main.sidebar-collapsed.sidebar-main-unfold {
    width: var(--dh-sidebar-width);
    min-width: var(--dh-sidebar-width);
    box-shadow: 12px 0 24px rgba(15, 23, 42, 0.16);
}

/* Collapsed rail: Limitless drops --nav-link-padding-x to 0 there, so the icon
   loses its trailing gutter and centres. */
.sidebar-main.sidebar-main-resized:not(.sidebar-main-unfold) .nav-sidebar .nav-link,
.sidebar-main.sidebar-collapsed:not(.sidebar-main-unfold) .nav-sidebar .nav-link,
.sidebar-main.sidebar-main-resized:not(.sidebar-main-unfold) .nav-sidebar .nav-item-header,
.sidebar-main.sidebar-collapsed:not(.sidebar-main-unfold) .nav-sidebar .nav-item-header {
    padding-left: 0;
    padding-right: 0;
}

.sidebar-main.sidebar-main-resized:not(.sidebar-main-unfold) .nav-sidebar .nav-link i,
.sidebar-main.sidebar-collapsed:not(.sidebar-main-unfold) .nav-sidebar .nav-link i {
    margin-right: 0;
}

/* Utilities the chrome markup uses that the Limitless template provides and
   stock Bootstrap does not. Bootstrap's .lh-sm is 1.25 where Limitless is
   1.8334, so it is restated too. Scoped to the chrome; nothing else moves. */

.navbar .fs-sm,
.sidebar .fs-sm {
    font-size: var(--dh-chrome-font-size-sm) !important;
}

.navbar .lh-sm,
.sidebar .lh-sm {
    line-height: 1.8334 !important;
}

.navbar .border-transparent,
.sidebar .border-transparent {
    border-color: transparent !important;
}

.navbar.border-bottom-white {
    border-bottom-color: rgba(255, 255, 255, var(--bs-border-opacity, 1)) !important;
}

.navbar .btn-icon,
.sidebar .btn-icon {
    padding-left: var(--bs-btn-padding-y);
    padding-right: var(--bs-btn-padding-y);
}

/* Limitless rebuilds Bootstrap's whole spacing scale on --spacer: 1.25rem where stock
   Bootstrap uses 1rem, so every p-1 / ms-2 / ms-4 / gap-2 in the chrome markup is 25%
   larger there. Copying the look without the scale the markup leans on is what made the
   two topbars measure differently. Scoped to the chrome; the rest of the app keeps
   Bootstrap's scale. */

.navbar .p-1,
.sidebar .p-1 {
    padding: 0.3125rem !important;         /* --spacer-1 */
}

.navbar .mt-1,
.sidebar .mt-1 {
    margin-top: 0.3125rem !important;
}

.navbar .me-2,
.sidebar .me-2 {
    margin-right: 0.625rem !important;     /* --spacer-2 */
}

.navbar .ms-2,
.sidebar .ms-2 {
    margin-left: 0.625rem !important;
}

.navbar .ms-3,
.sidebar .ms-3 {
    margin-left: 1.25rem !important;       /* --spacer */
}

.navbar .ms-4,
.sidebar .ms-4 {
    margin-left: 1.875rem !important;      /* --spacer-4 */
}

@media (min-width: 576px) {
    .navbar .gap-sm-2,
    .sidebar .gap-sm-2 {
        gap: 0.625rem !important;
    }
}

/* Limitless's small button is bigger than Bootstrap's: taller padding, smaller type.
   font-size and line-height are set as properties, not variables, because site.css sets
   font-size directly on .btn and would otherwise win. */
.navbar .btn-sm,
.sidebar .btn-sm {
    --bs-btn-padding-y: 0.375rem;
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-border-radius: 0.25rem;
    font-size: var(--dh-chrome-font-size-sm);
    line-height: 1.8334;
}

/* Phosphor forces its glyphs to --icon-font-size; Font Awesome inherits, so chrome buttons
   would otherwise carry a 15px icon where Gendata carries a 20px one. */
.navbar .btn i,
.sidebar .btn i {
    font-size: var(--dh-chrome-icon-size);
    line-height: 1;
    min-width: 1em;
    text-align: center;
}

.navbar .btn-flat-white,
.sidebar .btn-flat-white {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: rgba(255, 255, 255, 0.1);
    --bs-btn-border-color: #ffffff;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.2);
    --bs-btn-hover-border-color: #ffffff;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: rgba(255, 255, 255, 0.25);
    --bs-btn-active-border-color: #ffffff;
    --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

.content-wrapper {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    background: var(--dh-body-bg);
}

.content-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: calc(100vh - var(--dh-topbar-height));
    overflow: visible;
}

#webAlertContainer {
    position: sticky;
    top: 0;
    z-index: 1040;
}

.page-header {
    margin: 0;
    background: var(--dh-surface-bg);
    border-bottom: 1px solid var(--dh-border-color);
    box-shadow: none !important;
}

.page-header-light {
    background: var(--dh-surface-bg);
}

.page-header-content {
    padding: 0.9rem 1rem;
}

.page-header .page-title {
    margin: 0;
    color: var(--dh-text-color);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: var(--dh-chrome-line-height);
}

.page-header .page-title .fw-normal {
    font-weight: 500 !important;
}

.page-header .text-danger {
    color: var(--dh-danger) !important;
}

.page-header .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    font-size: var(--dh-chrome-font-size);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: #5f8ddf;
}

.page-header .breadcrumb-item.active {
    color: var(--dh-text-muted);
}

.page-header .border-top {
    border-top: 1px solid var(--dh-border-color) !important;
}

.content {
    flex: 1 1 auto;
    padding: 0.9rem;
}

.card {
    border: 1px solid var(--dh-border-color);
    border-radius: 0.375rem;
    box-shadow: var(--dh-shadow-sm);
}

.card-header {
    padding: 0.9375rem 1.25rem;
    background: var(--dh-surface-bg);
    border-bottom: 1px solid var(--dh-border-color);
}

.card-header h5,
.card-header .h5 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dh-text-color);
}

.card-body {
    padding: 1.25rem;
}

.form-control,
.form-select {
    min-height: 40px;
    border-color: var(--dh-border-strong);
    font-size: var(--dh-chrome-font-size);
    color: var(--dh-text-color);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: #8db4ff;
    box-shadow: 0 0 0 0.15rem rgba(47, 125, 246, 0.12);
}

.col-form-label {
    color: var(--dh-text-color);
    font-size: var(--dh-chrome-font-size);
    font-weight: 500;
}

.btn {
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-padding-x: 0.875rem;
    --bs-btn-font-size: var(--dh-chrome-font-size);
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: var(--dh-chrome-line-height);
}

/* Restated after .btn on purpose: same specificity, so source order decides and the size
   variants would otherwise inherit the base metrics above. */
.btn-sm,
.btn-group-sm > .btn {
    --bs-btn-padding-y: 0.375rem;
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-font-size: var(--dh-chrome-font-size-sm);
    --bs-btn-line-height: 1.8334;
    --bs-btn-border-radius: 0.25rem;
}

.btn-lg,
.btn-group-lg > .btn {
    --bs-btn-padding-y: 0.625rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-size: 1rem;
    --bs-btn-border-radius: 0.5rem;
}

.btn-primary {
    color: #ffffff;
    background-color: var(--dh-primary);
    border-color: var(--dh-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #ffffff;
    background-color: var(--dh-primary-hover);
    border-color: var(--dh-primary-hover);
}

.btn-light {
    color: #41536d;
    background-color: #f8fafc;
    border-color: var(--dh-border-color);
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
    color: #2f3e52;
    background-color: #eef3f8;
    border-color: var(--dh-border-strong);
}

.text-danger,
.validation-summary-errors,
.field-validation-error {
    color: var(--dh-danger) !important;
}

.navbar-footer {
    margin-top: auto;
    min-height: 34px;
    padding: 0;
    color: var(--dh-text-muted);
    background: rgba(255, 255, 255, 0.45);
    border-top: 1px solid var(--dh-border-color) !important;
}

.navbar-footer .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
}

.pull-left,
.pull-right {
    float: none;
}

.btn-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.btn-to-top-visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991.98px) {
    body {
        overflow: auto;
    }

    .page-content {
        min-height: auto;
    }

    .sidebar {
        position: fixed;
        top: var(--dh-topbar-height);
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
    }

    .sidebar.sidebar-mobile-expanded {
        transform: translateX(0);
    }

    .sidebar.sidebar-mobile-expanded + .content-wrapper::before {
        content: "";
        position: fixed;
        inset: var(--dh-topbar-height) 0 0 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1020;
    }

    .content-inner {
        min-height: auto;
    }

    .page-header-content,
    .content {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .navbar-footer .container-fluid {
        gap: 0.75rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .navbar-footer .pull-left,
    .navbar-footer .pull-right {
        white-space: nowrap;
    }

    .navbar-footer .pull-right {
        margin-left: auto;
        text-align: right;
    }
}
