
:root {
    color-scheme: light;
    --app-sidebar-accent: #9fc5ff;
    --app-sidebar-active: rgba(32, 107, 196, 0.2);
}

body {
    min-width: 320px;
}

.page,
.page-wrapper {
    min-width: 0;
}

.page-body {
    padding-block: 1.25rem 2rem;
}

.navbar-vertical[data-bs-theme="dark"] {
    background-color: #182433;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-vertical .container-fluid {
    align-items: stretch;
}

.navbar-vertical .navbar-brand {
    min-height: 4.5rem;
    white-space: normal;
}

.app-sidebar-nav {
    gap: 0.125rem;
    padding-bottom: 1rem;
}

.app-menu-heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 1.15rem 0.8rem 0.35rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.app-menu-number {
    color: var(--app-sidebar-accent);
    font-variant-numeric: tabular-nums;
}

.app-nav-link {
    min-height: 2.55rem;
    border-radius: 0.45rem;
    transition: color 140ms ease, background-color 140ms ease;
}

.app-nav-link:hover:not(.app-nav-coming),
.app-nav-link:focus-visible {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

.app-nav-link:focus-visible,
.app-nav-group-toggle:focus-visible {
    outline: 2px solid var(--app-sidebar-accent);
    outline-offset: 2px;
}

.app-nav-link.active {
    color: #fff;
    background-color: var(--app-sidebar-active);
    font-weight: 600;
}

.app-nav-link .nav-link-icon {
    flex: 0 0 1.5rem;
    width: 1.5rem;
    font-size: 1.05rem;
    text-align: center;
}

.app-nav-group-toggle {
    width: 100%;
    border: 0;
    font: inherit;
    text-align: left;
}

.app-nav-chevron {
    margin-left: auto;
    font-size: 0.85rem;
    transition: transform 160ms ease;
}

.app-nav-group-toggle[aria-expanded="true"] .app-nav-chevron {
    transform: rotate(180deg);
}

.app-nav-submenu {
    gap: 0.1rem;
    margin: 0.1rem 0 0.35rem 1.1rem;
    padding: 0.1rem 0 0.1rem 0.45rem;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.app-nav-sub-link {
    min-height: 2.25rem;
    padding-block: 0.45rem;
    font-size: 0.875rem;
}

.app-nav-coming {
    color: rgba(255, 255, 255, 0.56);
    cursor: not-allowed;
}

.app-nav-badge {
    margin-left: auto;
    padding: 0.2rem 0.35rem;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.035em;
}

.card {
    border-color: var(--tblr-border-color);
    box-shadow: 0 1px 2px rgba(24, 36, 51, 0.035);
}

.form-label {
    font-weight: 600;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline-offset: 2px;
}

@media (min-width: 992px) {
    .navbar-vertical .container-fluid {
        max-height: 100vh;
        overflow-y: auto;
        scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
        scrollbar-width: thin;
    }
}

@media (max-width: 991.98px) {
    .navbar-vertical .navbar-collapse {
        max-height: calc(100vh - 5.25rem);
        overflow-y: auto;
        padding-block: 0.35rem 0.75rem;
    }

    .app-menu-heading {
        padding-top: 0.9rem;
    }

    .page-header .btn-list {
        flex-wrap: wrap;
    }
}

@media print {
    body,
    .page,
    .page-wrapper {
        min-width: 0;
        background: #fff !important;
    }

    .navbar-vertical,
    .page-header,
    .footer,
    .d-print-none {
        display: none !important;
    }

    .page-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-body {
        padding: 0 !important;
    }

    .card {
        border: 0 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .table-responsive {
        overflow: visible !important;
    }

    table {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
