﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

body {
    padding-bottom: 100px;
    background: #f5f7fb;
}

.app-shell {
    min-height: calc(100vh - 58px);
}

.main-shell {
    background: #f3f6fb;
    min-width: 0;
}

.mobile-shell-bar {
    align-items: center;
    background: #172033;
    color: #fff;
    display: flex;
    gap: 12px;
    min-height: 56px;
    padding: 10px 14px;
}

.mobile-shell-bar .navbar-toggler-icon {
    filter: invert(1);
}

.mobile-brand {
    font-weight: 700;
}

.sidebar {
    --bs-offcanvas-bg: #07111f;
    --bs-offcanvas-color: #ffffff;
    background: #07111f !important;
    color: #ffffff !important;
    width: 280px;
}

.sidebar-header {
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    min-height: 72px;
    padding: 18px 18px 14px;
}

.sidebar-brand {
    color: #fff;
    display: block;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-brand:hover,
.sidebar-brand:focus {
    color: #fff;
}

.sidebar-region {
    color: #ffb3b3;
    font-size: 0.85rem;
    margin-top: 3px;
}

.sidebar-nav {
    padding: 12px;
}

.sidebar-section {
    margin-bottom: 18px;
}

.sidebar-section-title,
.sidebar-section-toggle {
    color: #c6d3e8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 8px 6px;
    text-transform: uppercase;
}

.sidebar-section-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    margin-left: 0;
    margin-right: 0;
    padding: 8px 10px;
    text-align: left;
    width: 100%;
}

.sidebar-section-toggle:hover,
.sidebar-section-toggle:focus {
    background: #1b2a40;
    color: #ffffff;
}

.sidebar-section-toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.sidebar-section-toggle.active {
    color: #ffffff;
}

.sidebar-toggle-icon::before {
    content: "▾";
    display: inline-block;
    font-size: 0.8rem;
    transition: transform 0.16s ease;
}

.sidebar-section-toggle.collapsed .sidebar-toggle-icon::before {
    transform: rotate(-90deg);
}

.sidebar-collapse {
    padding-top: 2px;
}

.sidebar-collapse .sidebar-link {
    margin-left: 8px;
}

.sidebar-link {
    border-radius: 6px;
    color: #f5f8ff;
    display: block;
    font-size: 0.94rem;
    line-height: 1.25;
    margin: 2px 0;
    padding: 9px 10px;
    text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link:focus {
    background: #263852;
    color: #fff;
}

.sidebar-link.active {
    background: #ffffff;
    color: #101827;
    font-weight: 700;
}

.sidebar-link.active:hover,
.sidebar-link.active:focus {
    background: #ffffff;
    color: #101827;
}

.sidebar-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.sidebar-brand,
.sidebar-user {
    color: #ffffff;
}

.sidebar-account .btn-outline-light {
    border-color: #ffffff;
    color: #fff;
}

.sidebar-account {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: auto;
    padding: 14px;
}

.sidebar-user {
    color: #d8e1f2;
    font-size: 0.9rem;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.page-intro {
    margin-bottom: 18px;
}

@media (min-width: 992px) {
    .app-shell {
        display: flex;
    }

    .sidebar {
        background: #07111f !important;
        border-right: 1px solid #1e2d44;
        bottom: 0;
        display: flex !important;
        flex-direction: column;
        left: 0;
        overflow-y: auto;
        position: fixed;
        top: 0;
        transform: none !important;
        visibility: visible !important;
        z-index: 1020;
    }

    .main-shell {
        flex: 1;
        margin-left: 280px;
        min-height: 100vh;
    }

    .body-content {
        background: #ffffff;
        border-left: 1px solid #e2e8f0;
        color: #172033;
        min-height: calc(100vh - 58px);
        padding-top: 18px;
    }
}

@media print {
    .main-shell {
        margin-left: 0 !important;
    }
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
/*input,
select,
textarea {
    max-width: 280px;
}*/

.dt-length {
    margin-bottom: 10px;
}

    .dt-length label {
        margin-left: 10px;
    }

.card-loader {
    position: absolute;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
@media print {
    canvas {
        max-width: 100% !important;
    }
}
