:root {
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --sop-page: #f6f8fb;
    --sop-line: #e5eaf1;
}

body {
    color: #1f2937;
}

.sop-auth-body {
    background: var(--sop-page);
    min-height: 100vh;
}

.sop-panel-body {
    background: var(--sop-page);
    min-height: 100vh;
}

.sop-shell {
    display: flex;
    min-height: 100vh;
}

.sop-sidebar {
    background-color: #fff !important;
    border-right: 1px solid var(--sop-line);
    display: flex;
    flex: 0 0 16rem;
    flex-direction: column;
    min-height: 100vh;
    transition: flex-basis .2s ease, width .2s ease;
    width: 16rem;
    z-index: 1045;
}

.sop-sidebar-header {
    align-items: center;
    border-bottom: 1px solid var(--sop-line);
    display: flex;
    gap: .5rem;
    justify-content: space-between;
    min-height: 4.25rem;
    padding: .75rem;
}

.sop-brand,
.sop-profile-link {
    align-items: center;
    color: inherit;
    display: flex;
    gap: .75rem;
    min-width: 0;
    text-decoration: none;
}

.sop-brand-mark,
.sop-avatar {
    align-items: center;
    background: #eaf1ff;
    border-radius: .5rem;
    color: var(--bs-primary);
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.sop-brand-copy,
.sop-profile-copy {
    display: grid;
    min-width: 0;
}

.sop-brand-copy strong {
    font-size: 1.1rem;
}

.sop-brand-copy small,
.sop-profile-copy small {
    color: #6b7280;
    font-size: .75rem;
    white-space: nowrap;
}

.sop-sidebar-body {
    padding: 1rem .75rem;
}

.sop-sidebar .nav-link {
    align-items: center;
    border-radius: .375rem;
    color: #4b5563;
    display: flex;
    gap: .75rem;
    min-height: 2.75rem;
    padding: .625rem .75rem;
}

.sop-sidebar .nav-link i {
    font-size: 1.1rem;
    text-align: center;
    width: 1.25rem;
}

.sop-sidebar .nav-link:hover {
    background: #f1f5f9;
    color: #1f2937;
}

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

.sop-sidebar-footer {
    border-top: 1px solid var(--sop-line);
    margin-top: auto;
    padding: .75rem;
}

.sop-profile-link:hover {
    color: inherit;
}

.sop-avatar {
    background: var(--bs-primary);
    border-radius: 50%;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
}

.small-avatar {
    height: 1.75rem;
    width: 1.75rem;
}

.sop-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.sop-topbar {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--sop-line);
    display: flex;
    min-height: 4.25rem;
    padding: .75rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.sop-topbar-title {
    color: var(--bs-primary);
    margin-left: .75rem;
}

.sop-main {
    max-width: 1600px;
}

@media (min-width: 768px) {
    html.sop-sidebar-collapsed .sop-sidebar {
        flex-basis: 4.75rem;
        width: 4.75rem;
    }

    html.sop-sidebar-collapsed .sop-sidebar-header {
        justify-content: center;
    }

    html.sop-sidebar-collapsed .sop-brand-copy,
    html.sop-sidebar-collapsed .sop-sidebar .nav-link span,
    html.sop-sidebar-collapsed .sop-profile-copy {
        display: none;
    }

    html.sop-sidebar-collapsed .sop-sidebar .nav-link,
    html.sop-sidebar-collapsed .sop-profile-link {
        justify-content: center;
    }
}

.card {
    border-color: var(--sop-line);
    border-radius: .5rem;
    box-shadow: 0 .25rem .75rem rgba(15, 23, 42, .04);
}

.card .card-body {
    min-height: 100%;
}

.sop-auth-mark {
    align-items: center;
    background: #eff6ff;
    border-radius: .5rem;
    color: var(--bs-primary);
    display: inline-flex;
    font-size: 1.4rem;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.form-control,
.form-select {
    border-color: #cfd8e5;
}

.form-control:focus,
.form-select:focus {
    border-color: #93b4f9;
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
}

.sop-enhanced-select-native {
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 1px !important;
}

.sop-enhanced-select {
    min-width: 0;
    position: relative;
}

.sop-enhanced-select-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #cfd8e5;
    border-radius: .375rem;
    color: #1f2937;
    display: flex;
    font-size: 1rem;
    gap: .75rem;
    justify-content: space-between;
    line-height: 1.5;
    min-height: 38px;
    padding: .45rem .75rem;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
}

.sop-enhanced-select-toggle:hover {
    border-color: #93b4f9;
}

.sop-enhanced-select-toggle:focus {
    border-color: #93b4f9;
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
    outline: 0;
}

.sop-enhanced-select-toggle.is-placeholder,
.sop-enhanced-select-toggle > i {
    color: #6b7280;
}

.sop-enhanced-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sop-enhanced-select.is-open .sop-enhanced-select-toggle > i {
    transform: rotate(180deg);
}

.sop-enhanced-select-toggle > i {
    transition: transform .15s ease;
}

.sop-enhanced-select-menu {
    background: #fff;
    border: 1px solid #cfd8e5;
    border-radius: .5rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .16);
    display: none;
    overflow: hidden;
    z-index: 1080;
}

.sop-enhanced-select.is-open .sop-enhanced-select-menu {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.sop-enhanced-select-search {
    background: #f8fafc;
    border-bottom: 1px solid var(--sop-line);
    padding: .65rem;
}

.sop-enhanced-select-list {
    max-height: 280px;
    overflow-y: auto;
    padding: .35rem;
}

.sop-enhanced-select-option {
    background: transparent;
    border: 0;
    border-radius: .375rem;
    color: #1f2937;
    display: block;
    padding: .55rem .65rem;
    text-align: left;
    width: 100%;
}

.sop-enhanced-select-option:hover,
.sop-enhanced-select-option:focus,
.sop-enhanced-select-option.is-selected {
    background: #eff6ff;
    color: var(--bs-primary);
    outline: 0;
}

.sop-enhanced-select-option.is-selected {
    font-weight: 600;
}

.sop-enhanced-select-empty {
    border-top: 1px solid var(--sop-line);
    color: #6b7280;
    padding: .8rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .sop-sidebar {
        width: 16rem;
    }
}

@media (max-width: 767.98px) {
    .sop-topbar {
        padding-inline: 1rem;
    }

    .sop-main {
        padding-inline: 1rem;
    }
}
