:root {
    --brand-primary: #135e96;
    --brand-secondary: #0a8894;
    --sidebar-width: 270px;
}

.app-shell {
    min-height: 100vh;
    background: #f5f7fb;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, var(--brand-primary), #0d355a);
    color: #fff;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 1.35rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.sidebar-brand small {
    display: block;
    color: rgba(255, 255, 255, .7);
    font-size: .75rem;
}

.brand-mark {
    height: 40px;
    width: 40px;
    background: #fff;
    color: var(--brand-primary);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    overflow: hidden;
}

.brand-mark img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, .76);
    padding: .75rem .9rem;
    border-radius: .55rem;
}

.sidebar .nav-link i {
    width: 1.4rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .15);
}

.sidebar-footer {
    padding: 1rem 1.35rem;
    margin-top: auto;
    text-transform: capitalize;
    color: rgba(255, 255, 255, .62);
    font-size: .8rem;
}

.content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.topbar {
    height: 74px;
    background: #fff;
    padding: 0 2rem;
    border-bottom: 1px solid #e8edf4;
}

.card {
    border: 0;
    box-shadow: 0 3px 14px rgba(29, 47, 70, .06);
    border-radius: .8rem;
}

.metric-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(19, 94, 150, .12);
    color: var(--brand-primary);
    font-size: 1.35rem;
}

.chart-wrap {
    position: relative;
    width: 100%;
}

.chart-wrap--fixed {
    height: 280px;
}

.chart-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
    .chart-wrap--fixed {
        height: 220px;
    }
}

.page-title {
    font-weight: 700;
    color: #17324d;
}

.form-label {
    font-weight: 600;
    font-size: .88rem;
}

.btn-primary {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-primary:hover {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
}

.table > thead th {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c7c8c;
    background: #f7f9fc;
}

.badge-soft {
    background: #e8f3fb;
    color: #135e96;
}

.detail-label {
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #748190;
}

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.auth-card {
    width: min(440px, 100%);
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .18);
}

.offcanvas-lg.sidebar {
    width: var(--sidebar-width) !important;
}

@media (max-width: 991.98px) {
    .sidebar {
        /* Keep the Bootstrap offcanvas out of the page flow while closed. */
        max-height: 100dvh;
        overflow-y: auto;
    }

    .content {
        margin-left: 0;
    }

    .topbar {
        padding: 0 1rem;
    }
}
