/*
 * Base structure
 */

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.cover-container {
    flex: 1;
}

.cover-container > nav {
    flex: none;
}
.cover-container > .container {
    flex: 1 0 auto;
}
.cover-container > footer {
    flex: none;
}

/*
 * Navbar
 */
.navbar {
    min-height: 60px;
}

.admin-navbar {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.admin-sidebar-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.admin-avatar-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 1;
}

.admin-avatar {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    font-weight: 700;
    overflow: hidden;
}

.admin-avatar-toggle:focus .admin-avatar,
.admin-avatar-toggle:hover .admin-avatar {
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.2);
}

.admin-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.notification-toggle {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #495057;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
}

.notification-toggle:hover,
.notification-toggle:focus {
    color: #0d6efd;
    border-color: #b6d4fe;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    color: #fff;
    background: #dc3545;
    border: 2px solid #f8f9fa;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.notification-dropdown {
    width: min(380px, calc(100vw - 24px));
    padding: 0;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(33, 37, 41, 0.16);
}

.notification-dropdown-header,
.notification-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #fff;
}

.notification-dropdown-header {
    border-bottom: 1px solid #f1f3f5;
}

.notification-dropdown-footer {
    border-top: 1px solid #f1f3f5;
}

.notification-dropdown-footer a {
    width: 100%;
    color: #0d6efd;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.notification-empty {
    padding: 26px 16px;
    color: #6c757d;
    text-align: center;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    color: #212529;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
}

.notification-item:hover,
.notification-page-item:hover {
    color: #212529;
    background: #f8f9fa;
    text-decoration: none;
}

.notification-unread {
    background: #fff;
}

.notification-read {
    background: #fff;
}

.notification-read .notification-title,
.notification-read .notification-page-title {
    font-weight: 600;
}

.notification-read .notification-icon,
.notification-read .notification-page-icon {
    opacity: 0.72;
}

.notification-icon,
.notification-page-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #eef5ff;
    color: #0d6efd;
}

.notification-danger .notification-icon,
.notification-danger .notification-page-icon {
    color: #dc3545;
    background: #fff1f2;
}

.notification-warning .notification-icon,
.notification-warning .notification-page-icon {
    color: #b58100;
    background: #fff8e1;
}

.notification-info .notification-icon,
.notification-info .notification-page-icon {
    color: #0d6efd;
    background: #eef5ff;
}

.notification-content,
.notification-page-content {
    min-width: 0;
    display: block;
    flex: 1 1 auto;
}

.notification-title,
.notification-page-title {
    display: block;
    font-weight: 700;
}

.notification-message,
.notification-page-message,
.notification-time,
.notification-page-time {
    display: block;
    margin-top: 2px;
    color: #6c757d;
    font-size: 0.82rem;
}

.notification-message {
    white-space: normal;
}

.notification-page-list {
    display: grid;
    gap: 10px;
}

.notification-page-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    color: #212529;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
}

.notification-page-arrow {
    color: #adb5bd;
    flex: 0 0 auto;
}

.localization-icons img {
    width: 21px;
    opacity: 0.3;
}

.localization-icons img:hover,
.localization-icons img.active {
    opacity: 1;
}

/**
 * Sidebar
 */

.admin-sidebar-offcanvas {
    width: 280px;
}

.admin-sidebar-offcanvas .offcanvas-body {
    padding-top: 0;
}

.list-group-borderless .list-group-item {
    border: 0 !important;
}

.list-group-borderless .list-group-item.active {
    color: #007bff;
    background-color: inherit;
    font-weight: bold;
}

.list-group-borderless .list-group-item i {
    color: #666;
    width: 25px;
}

.list-group-borderless .list-group-item.active i {
    color: #007bff;
}

/**
 * Social Buttons
 */
.btn-social:hover {
    opacity: 0.85;
    text-decoration: none;
}

.btn-facebook, .btn-facebook:hover {
    color: #3B5998;
}

.btn-twitter, .btn-twitter:hover {
    color: #55ACEE;
}

.btn-google, .btn-google:hover {
    color: #dd4b39;
}

/**
 * Login Page Form Wrapper
 */
.form-wrapper { display: none; }
.form-wrapper.active { display: block; }

/**
 * Misc
 */

.page-header small {
    font-size: 1rem;
}

.blockquote {
    font-size: 1rem;
}

.table th {
    font-size: 0.85rem;
    color: #666;
}

.dropdown-item i {
    color: #666;
}

label .required {
    color: #a00;
}

.table-responsive {
    min-height: 200px;
}

dt {
    font-weight: 400 !important;
}

dd {
    font-weight: 700;
}

.activity-log-details {
    max-width: 420px;
    max-height: 180px;
    overflow: auto;
    padding: 8px;
    margin-top: 4px;
    font-size: 0.78rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.dashboard-stat-card {
    min-height: 118px;
    color: #212529;
    border: 1px solid #e9ecef;
    border-left: 4px solid #6c757d;
    border-radius: 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-stat-card:hover,
.dashboard-stat-card:focus {
    color: #212529;
    border-color: #ced4da;
    box-shadow: 0 0.25rem 0.75rem rgba(33, 37, 41, 0.08);
}

.dashboard-stat-label {
    font-size: 0.82rem;
    color: #6c757d;
    text-transform: uppercase;
}

.dashboard-stat-value {
    margin-top: 6px;
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
}

.dashboard-stat-note {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #6c757d;
}

.dashboard-stat-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    color: #495057;
    flex: 0 0 auto;
}

.dashboard-stat-blue { border-left-color: #0d6efd; }
.dashboard-stat-green { border-left-color: #198754; }
.dashboard-stat-red { border-left-color: #dc3545; }
.dashboard-stat-amber { border-left-color: #f0ad4e; }
.dashboard-stat-cyan { border-left-color: #0dcaf0; }
.dashboard-stat-purple { border-left-color: #6f42c1; }
.dashboard-stat-teal { border-left-color: #20c997; }
.dashboard-stat-slate { border-left-color: #6c757d; }
.dashboard-stat-indigo { border-left-color: #6610f2; }
.dashboard-stat-orange { border-left-color: #fd7e14; }
.dashboard-stat-pink { border-left-color: #d63384; }
.dashboard-stat-gray { border-left-color: #adb5bd; }

.dashboard-list-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
}

.dashboard-list-row:first-child {
    padding-top: 0;
}

.dashboard-list-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.active-users-panel {
    overflow: hidden;
}

.active-users-panel .active-users-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    background: #6e7e8c;
    border-bottom: 0;
}

.active-users-panel-header a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.active-users-panel-header a:hover,
.active-users-panel-header a:focus {
    color: #fff;
}

.active-users-panel-header a i {
    margin-left: 4px;
    font-size: 0.65rem;
}

.active-users-panel .active-users-panel-body {
    padding: 0;
    background: #fff;
}

.active-user-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 11px 16px;
    color: #26323e;
    border-bottom: 1px solid #edf0f2;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.active-user-row:nth-child(even) {
    background: #f8fafb;
}

.active-user-row:hover,
.active-user-row:focus {
    color: #26323e;
    background: #eaf7f4;
    outline: 0;
}

.active-user-row:last-child {
    border-bottom: 0;
}

.active-user-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    color: #fff;
    background: #3c8d7c;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
}

.active-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.active-user-avatar i {
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 10px;
    height: 10px;
    background: #36c978;
    border: 2px solid #fff;
    border-radius: 50%;
}

.active-user-main,
.active-user-meta {
    min-width: 0;
    display: block;
}

.active-user-name {
    display: block;
    overflow: hidden;
    color: #1f2b35;
    font-size: 0.88rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-user-email {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #82909d;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-user-ip {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #9aa5ae;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-user-ip i {
    width: 11px;
    color: #63ad9b;
    font-size: 0.62rem;
    text-align: center;
}

.active-user-meta {
    color: #6f7d89;
    font-size: 0.68rem;
    text-align: right;
    white-space: nowrap;
}

.active-user-meta small {
    display: block;
    margin-top: 4px;
    color: #3c9b84;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: capitalize;
}

.active-users-empty {
    padding: 28px 18px;
    text-align: center;
}

.recent-activity-panel {
    overflow: hidden;
}

.recent-activity-panel .recent-activity-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    background: #6e7e8c;
    border-bottom: 0;
}

.recent-activity-panel-header a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
    font-weight: 600;
}

.recent-activity-panel-header a:hover,
.recent-activity-panel-header a:focus {
    color: #fff;
}

.recent-activity-panel-header a i {
    margin-left: 4px;
    font-size: 0.65rem;
}

.recent-activity-panel a {
    text-decoration: none;
}

.recent-activity-panel .table {
    background: #fff;
}

.recent-activity-panel .table tbody tr {
    transition: background-color 0.15s ease;
}

.recent-activity-panel .table tbody tr:hover > * {
    background: #eaf7f4;
}

@media (max-width: 575.98px) {
    .active-user-row {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 10px;
        padding-right: 13px;
        padding-left: 13px;
    }

    .active-user-avatar {
        width: 40px;
        height: 40px;
    }
}

.dashboard-table-responsive {
    min-height: 0;
}

.profile-avatar-panel {
    display: flex;
    align-items: center;
    gap: 22px;
}

.profile-avatar-preview {
    width: 112px;
    height: 112px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    color: #fff;
    background: #198754;
    border: 4px solid #f1f3f5;
    border-radius: 50%;
    font-size: 2.4rem;
    font-weight: 700;
}

.profile-avatar-preview-sm {
    width: 72px;
    height: 72px;
    border-width: 3px;
    font-size: 1.5rem;
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-avatar-controls {
    flex: 1 1 auto;
    max-width: 560px;
}

.users-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.user-filter-panel {
    padding: 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.user-filter-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f3f5;
}

.user-filter-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.import-template-fields {
    padding: 12px;
    overflow-x: auto;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.verification-stat {
    min-height: 96px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.verification-stat-label {
    color: #6c757d;
    font-size: 0.86rem;
    font-weight: 600;
}

.verification-stat-value {
    margin-top: 4px;
    color: #212529;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
}

.verification-select-column {
    width: 42px;
}

.verification-resend-status {
    min-width: 150px;
}

.upgrade-stat {
    min-height: 96px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.upgrade-stat-label {
    color: #6c757d;
    font-size: 0.86rem;
    font-weight: 600;
}

.upgrade-stat-value {
    margin-top: 4px;
    color: #212529;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
}

.permission-badge {
    margin-right: 4px;
    margin-bottom: 4px;
}

.role-permissions-dialog {
    max-width: min(1040px, calc(100vw - 32px));
}

#modal-role-permissions .modal-content {
    max-height: calc(100vh - 3rem);
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(33, 37, 41, 0.22);
}

#modal-role-permissions .modal-header,
#modal-role-permissions .modal-footer {
    background: #fff;
    flex: 0 0 auto;
}

#modal-role-permissions .modal-header {
    border-bottom-color: #e9ecef;
}

#modal-role-permissions .modal-footer {
    border-top-color: #e9ecef;
}

.role-permissions-body {
    background: #f6f8fb;
}

.role-permissions-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    margin: -16px -16px 16px;
    background: rgba(246, 248, 251, 0.96);
    border-bottom: 1px solid #e9ecef;
}

.role-permissions-search {
    position: relative;
    flex: 1 1 360px;
    max-width: 520px;
}

.role-permissions-search i {
    position: absolute;
    top: 50%;
    left: 12px;
    color: #6c757d;
    transform: translateY(-50%);
    pointer-events: none;
}

.role-permissions-search .form-control {
    padding-left: 36px;
    border-radius: 6px;
}

.role-permissions-count {
    flex: 0 0 auto;
    color: #495057;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
}

.permission-group {
    padding: 14px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.permission-group:last-child {
    margin-bottom: 0;
}

.permission-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f3f5;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.permission-option {
    min-height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.permission-option:hover {
    border-color: #ced4da;
    background: #fbfcfd;
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.05);
}

.permission-option .form-check-input {
    margin-top: 4px;
    flex: 0 0 auto;
}

.permission-option .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.permission-option:has(.form-check-input:checked),
.permission-option-selected {
    border-color: #9bd5b5;
    background: #f3fbf6;
}

.permission-option-content {
    min-width: 0;
    display: block;
}

.permission-option-title {
    display: block;
    font-weight: 700;
    color: #212529;
}

.permission-option-key {
    display: inline-block;
    padding: 2px 6px;
    margin-top: 5px;
    color: #0d6efd;
    font-family: var(--bs-font-monospace);
    font-size: 0.76rem;
    background: #eef5ff;
    border-radius: 4px;
    word-break: break-word;
}

.permission-option-description,
.permission-option-meta {
    display: block;
    margin-top: 6px;
    color: #6c757d;
    font-size: 0.82rem;
}

.permission-option-meta {
    margin-top: 3px;
}

.permission-option.d-none {
    display: none;
}

.role-permission-checkbox:disabled + span {
    opacity: 0.75;
}

/**
 * Responsive CSS Rules
 */

@media (min-width : 992px) {
    .table-responsive {
        overflow-x: visible;
    }
}

@media (max-width : 767.98px) {
    .admin-navbar {
        position: sticky;
        top: 0;
        z-index: 1020;
    }

    .admin-navbar .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .admin-navbar .navbar-brand {
        font-size: 1.08rem;
        margin-right: 8px;
    }

    .admin-sidebar-column {
        display: none;
    }

    .admin-sidebar-menu {
        margin-bottom: 0;
    }

    .admin-sidebar-menu .list-group-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding-right: 0;
        padding-left: 0;
    }

    .localization-icons {
        display: flex !important;
        gap: 10px;
    }

    .cover-container > .container {
        max-width: 100%;
        padding-top: 16px !important;
        padding-right: 12px;
        padding-left: 12px;
    }

    div.dataTables_wrapper div.dataTables_length,
    div.dataTables_wrapper div.dataTables_filter,
    div.dataTables_wrapper div.dataTables_info,
    div.dataTables_wrapper div.dataTables_paginate {
        text-align: left;
    }

    div.dataTables_wrapper div.dataTables_filter input {
        display: block !important;
        width: 100% !important;
        max-width: 100%;
        margin-top: 4px;
        margin-left: 0 !important;
    }

    div.dataTables_wrapper div.dataTables_filter label,
    div.dataTables_wrapper div.dataTables_length label {
        width: 100%;
        white-space: normal;
    }

    div.dataTables_wrapper div.dataTables_paginate ul.pagination {
        justify-content: flex-start;
    }

    #users-list_wrapper {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .dashboard-stat-card {
        min-height: 106px;
    }

    .dashboard-stat-value {
        font-size: 1.7rem;
    }

    .profile-avatar-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .users-page-actions .btn {
        width: 100%;
    }

    .user-filter-header {
        flex-direction: column;
    }

    .user-filter-actions {
        width: 100%;
        justify-content: stretch;
    }

    .user-filter-actions .btn {
        flex: 1 1 150px;
    }

    #modal-role-permissions .modal-content {
        max-height: 100vh;
        border-radius: 0;
    }

    .role-permissions-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .role-permissions-search {
        max-width: none;
        flex-basis: auto;
    }

    .role-permissions-count {
        white-space: normal;
    }

    .permission-grid {
        grid-template-columns: 1fr;
    }

    .permission-group {
        padding: 12px;
    }
}

/*
 * Shared admin shell controls
 */

.admin-navbar-inner,
.admin-navbar-start,
.admin-navbar-actions,
.admin-avatar-toggle {
    display: flex;
    align-items: center;
}

.admin-navbar-inner {
    justify-content: space-between;
}

.admin-navbar-start,
.admin-navbar-actions {
    gap: 12px;
}

.admin-navbar-start {
    min-width: 0;
}

.admin-navbar-actions {
    flex: 0 0 auto;
}

.admin-avatar-toggle {
    gap: 10px;
    color: #212529;
}

.admin-avatar-meta {
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.admin-avatar-meta strong {
    max-width: 150px;
    overflow: hidden;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-avatar-meta small {
    margin-top: 3px;
    color: #7a828a;
    font-size: 0.72rem;
}

.admin-avatar-chevron {
    color: #8b949e;
    font-size: 0.66rem;
}

.admin-page-context,
.admin-sidebar-brand,
.admin-sidebar-user,
.admin-sidebar-collapse-control,
.admin-desktop-sidebar-toggle,
.admin-sidebar-section-label {
    display: none;
}

.admin-user-dropdown {
    min-width: 230px;
    padding: 8px;
    border-color: #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(23, 31, 42, 0.14);
}

.admin-user-dropdown .dropdown-item {
    min-height: 40px;
    display: flex;
    align-items: center;
    border-radius: 5px;
}

.admin-user-dropdown .admin-layout-option.active {
    color: #1265d6;
    background: #edf5ff;
}

.admin-layout-check {
    visibility: hidden;
}

.admin-sidebar-hover-label {
    position: fixed;
    z-index: 1090;
    display: none;
    padding: 7px 11px;
    color: #eceff1;
    background: #263238;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    pointer-events: none;
    white-space: nowrap;
}

.admin-sidebar-hover-label::before {
    position: absolute;
    top: 50%;
    left: -5px;
    width: 9px;
    height: 9px;
    content: "";
    background: #263238;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(-50%) rotate(45deg);
}

.admin-sidebar-hover-label.show {
    display: block;
}

.admin-layout-option.active .admin-layout-check {
    visibility: visible;
}

.admin-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #212529;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.admin-mobile-brand img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.admin-mobile-brand .admin-brand-logo {
    width: 180px;
    height: auto;
}

.admin-mobile-brand .admin-brand-icon {
    display: none;
}

.admin-setting-section {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #f7f9fb;
    border: 1px solid #e7ebef;
    border-radius: 6px;
}

.admin-setting-section-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #1265d6;
    background: #e8f1ff;
    border-radius: 6px;
}

.admin-setting-section-content {
    width: min(100%, 520px);
}

/*
 * Modern full-width layout
 */

html[data-layout="modern"] {
    --admin-sidebar-width: 250px;
    --admin-sidebar-collapsed-width: 82px;
    --admin-navbar-height: 72px;
    --admin-bg: #f3f5f8;
    --admin-border: #e2e7ec;
    --admin-sidebar-bg: #37474f;
    --admin-sidebar-panel: #202836;
    --admin-sidebar-text: #b9c2ce;
    --admin-sidebar-muted: #727e8d;
    --admin-accent: #2f7ee6;
}

html[data-layout="modern"] body {
    color: #202936;
    background: var(--admin-bg);
}

html[data-layout="modern"] .admin-shell {
    min-height: 100vh;
    padding-left: var(--admin-sidebar-width);
    transition: padding-left 0.2s ease;
}

html[data-layout="modern"] .admin-navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--admin-sidebar-width);
    z-index: 1025;
    min-height: var(--admin-navbar-height);
    padding: 0;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid var(--admin-border);
    box-shadow: 0 1px 4px rgba(22, 29, 39, 0.04);
    transition: left 0.2s ease;
}

html[data-layout="modern"] .admin-navbar .container {
    width: 100%;
    max-width: none;
    min-height: var(--admin-navbar-height);
    padding-right: 26px;
    padding-left: 24px;
}

html[data-layout="modern"] .admin-navbar .navbar-brand {
    display: none;
}

html[data-layout="modern"] .admin-desktop-sidebar-toggle {
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #52606f;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
}

html[data-layout="modern"] .admin-desktop-sidebar-toggle:hover,
html[data-layout="modern"] .admin-desktop-sidebar-toggle:focus {
    color: #1265d6;
    background: #eef4fb;
    border-color: #dfe9f5;
}

html[data-layout="modern"] .admin-page-context {
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
    line-height: 1.15;
}

html[data-layout="modern"] .admin-page-context-label {
    color: #8a949f;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

html[data-layout="modern"] .admin-page-context strong {
    overflow: hidden;
    color: #202936;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-layout="modern"] .notification-toggle {
    width: 40px;
    height: 40px;
    color: #52606f;
    background: #fff;
    border-color: #dfe4e9;
    border-radius: 6px;
}

html[data-layout="modern"] .admin-avatar {
    width: 40px;
    height: 40px;
    background: #17875d;
}

html[data-layout="modern"] .admin-content {
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 126px);
    margin: 0;
    padding: calc(var(--admin-navbar-height) + 26px) 28px 34px !important;
}

html[data-layout="modern"] .admin-content > .row {
    margin-right: 0;
    margin-left: 0;
}

html[data-layout="modern"] .admin-content > .row > .col-md-9,
html[data-layout="modern"] .admin-content > .row > .col-lg-10 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-right: 0;
    padding-left: 0;
}

html[data-layout="modern"] .admin-footer {
    padding: 14px 24px 10px !important;
    background: #fff !important;
    border-top: 1px solid var(--admin-border);
    font-size: 0.82rem;
}

html[data-layout="modern"] .admin-footer .container {
    width: 100%;
    max-width: none;
}

html[data-layout="modern"] .admin-footer p {
    margin-bottom: 0;
}

html[data-layout="modern"] .card,
html[data-layout="modern"] .user-filter-panel,
html[data-layout="modern"] .notification-page-item,
html[data-layout="modern"] .verification-stat,
html[data-layout="modern"] .upgrade-stat {
    border-color: var(--admin-border);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(25, 34, 46, 0.035);
}

html[data-layout="modern"] .card-header {
    padding: 14px 18px;
    background: #fff;
    border-bottom-color: #edf0f3;
    font-weight: 700;
}

html[data-layout="modern"] .card-body {
    padding: 18px;
}

html[data-layout="modern"] h3,
html[data-layout="modern"] .h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

html[data-layout="modern"] .btn,
html[data-layout="modern"] .form-control,
html[data-layout="modern"] .form-select {
    border-radius: 5px;
}

html[data-layout="modern"] .form-control,
html[data-layout="modern"] .form-select {
    border-color: #d9dfe5;
}

html[data-layout="modern"] .form-control:focus,
html[data-layout="modern"] .form-select:focus {
    border-color: #7eadeb;
    box-shadow: 0 0 0 3px rgba(47, 126, 230, 0.12);
}

html[data-layout="modern"] .nav-tabs {
    gap: 4px;
    border-bottom-color: var(--admin-border);
}

html[data-layout="modern"] .nav-tabs .nav-link {
    color: #66717e;
    border-radius: 5px 5px 0 0;
}

html[data-layout="modern"] .nav-tabs .nav-link.active {
    color: #1265d6;
    font-weight: 700;
}

html[data-layout="modern"] .table {
    --bs-table-striped-bg: #f7f9fb;
    color: #283342;
}

html[data-layout="modern"] .table > :not(caption) > * > * {
    padding: 12px 10px;
    border-bottom-color: #e8ecf0;
}

html[data-layout="modern"] .table thead th {
    color: #66717e;
    background: #f7f9fb;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
}

html[data-layout="modern"] div.dataTables_wrapper {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(25, 34, 46, 0.035);
}

html[data-layout="modern"] .dashboard-stat-card {
    min-height: 124px;
    box-shadow: none;
}

html[data-layout="modern"] .dashboard-stat-icon {
    border-radius: 6px;
}

html[data-layout="modern"] .dashboard-stat-label {
    letter-spacing: 0;
}

/* Dashboard layouts for the shared Bootstrap 5.1 stylesheet. */
html[data-layout="modern"] .dashboard-snapshot-grid,
html[data-layout="classic"] .dashboard-snapshot-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 1.5rem;
}

html[data-layout="modern"] .dashboard-snapshot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(124px, auto);
}

html[data-layout="classic"] .dashboard-snapshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(118px, auto);
}

html[data-layout="modern"] .dashboard-snapshot-item,
html[data-layout="classic"] .dashboard-snapshot-item {
    min-width: 0;
}

html[data-layout="modern"] .dashboard-snapshot-item-2,
html[data-layout="classic"] .dashboard-snapshot-item-2 {
    grid-column: span 2;
    grid-row: span 2;
}

html[data-layout="modern"] .dashboard-snapshot-item-8,
html[data-layout="classic"] .dashboard-snapshot-item-8,
html[data-layout="modern"] .dashboard-snapshot-item-11,
html[data-layout="classic"] .dashboard-snapshot-item-11 {
    grid-column: span 2;
}

html[data-layout="modern"] .dashboard-stat-card,
html[data-layout="classic"] .dashboard-stat-card {
    height: 100%;
}

html[data-layout="modern"] .dashboard-activity-card,
html[data-layout="classic"] .dashboard-activity-card {
    height: 100%;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #293943, #1e2c34);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
}

html[data-layout="modern"] .dashboard-activity-header,
html[data-layout="classic"] .dashboard-activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 18px 12px;
}

html[data-layout="modern"] .dashboard-activity-header > div,
html[data-layout="classic"] .dashboard-activity-header > div {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

html[data-layout="modern"] .dashboard-activity-eyebrow,
html[data-layout="classic"] .dashboard-activity-eyebrow {
    color: #80e6c1;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

html[data-layout="modern"] .dashboard-activity-live,
html[data-layout="classic"] .dashboard-activity-live {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.68rem;
}

html[data-layout="modern"] .dashboard-activity-live i,
html[data-layout="classic"] .dashboard-activity-live i {
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-right: 4px;
    background: #52d68b;
    border-radius: 50%;
}

html[data-layout="modern"] .dashboard-activity-body,
html[data-layout="classic"] .dashboard-activity-body {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(110px, 0.8fr);
    gap: 16px;
    padding: 0 18px 16px;
}

html[data-layout="modern"] .dashboard-activity-chart svg,
html[data-layout="classic"] .dashboard-activity-chart svg {
    width: 100%;
    height: 128px;
    display: block;
}

html[data-layout="modern"] .dashboard-activity-chart polyline,
html[data-layout="classic"] .dashboard-activity-chart polyline {
    fill: none;
    stroke: #80e6c1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 0.85;
    vector-effect: non-scaling-stroke;
}

html[data-layout="modern"] .dashboard-activity-grid,
html[data-layout="classic"] .dashboard-activity-grid {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 0.5;
    vector-effect: non-scaling-stroke;
}

html[data-layout="modern"] .dashboard-activity-axis,
html[data-layout="classic"] .dashboard-activity-axis {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.62rem;
}

html[data-layout="modern"] .dashboard-activity-metrics,
html[data-layout="classic"] .dashboard-activity-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: center;
}

html[data-layout="modern"] .dashboard-activity-metrics span,
html[data-layout="classic"] .dashboard-activity-metrics span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.65rem;
}

html[data-layout="modern"] .dashboard-activity-metrics strong,
html[data-layout="classic"] .dashboard-activity-metrics strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 1.25rem;
}

@media (max-width: 991.98px) {
    html[data-layout="modern"] .dashboard-snapshot-grid,
    html[data-layout="classic"] .dashboard-snapshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    html[data-layout="modern"] .dashboard-snapshot-item-2,
    html[data-layout="classic"] .dashboard-snapshot-item-2,
    html[data-layout="modern"] .dashboard-snapshot-item-8,
    html[data-layout="classic"] .dashboard-snapshot-item-8,
    html[data-layout="modern"] .dashboard-snapshot-item-11,
    html[data-layout="classic"] .dashboard-snapshot-item-11 {
        grid-column: 1 / -1;
    }

    html[data-layout="modern"] .dashboard-activity-body,
    html[data-layout="classic"] .dashboard-activity-body {
        grid-template-columns: minmax(0, 1.5fr) minmax(100px, 0.75fr);
        gap: 10px;
        padding-right: 13px;
        padding-left: 13px;
    }

    html[data-layout="modern"] .dashboard-activity-header,
    html[data-layout="classic"] .dashboard-activity-header {
        padding-right: 13px;
        padding-left: 13px;
    }
}

html[data-layout="modern"] #settings-form,
html[data-layout="modern"] #smtp-settings-form,
html[data-layout="modern"] #email-templates-form {
    max-width: 1040px;
}

@media (min-width: 768px) {
    html[data-layout="modern"] .admin-desktop-sidebar-toggle,
    html[data-layout="modern"] .admin-page-context,
    html[data-layout="modern"] .admin-sidebar-brand,
    html[data-layout="modern"] .admin-sidebar-user,
    html[data-layout="modern"] .admin-sidebar-collapse-control,
    html[data-layout="modern"] .admin-sidebar-section-label {
        display: flex;
    }

    html[data-layout="modern"] .admin-sidebar-column {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1030;
        width: var(--admin-sidebar-width);
        max-width: none;
        display: flex;
        padding: 0;
        overflow: hidden;
        color: var(--admin-sidebar-text);
        background: var(--admin-sidebar-bg);
        flex-direction: column;
        transition: width 0.2s ease;
    }

    html[data-layout="modern"] .admin-sidebar-brand {
        height: var(--admin-navbar-height);
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        padding: 0 1px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    html[data-layout="modern"] .admin-sidebar-brand a {
        width: 100%;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: #fff;
        font-size: 1rem;
        font-weight: 700;
        text-decoration: none;
    }

    html[data-layout="modern"] .admin-sidebar-brand img {
        width: auto;
        height: 41px;
        flex: 0 0 auto;
        object-fit: contain;
    }

    html[data-layout="modern"] .admin-sidebar-brand .admin-brand-logo {
        width: 210px;
        height: auto;
    }

    html[data-layout="modern"] .admin-sidebar-brand .admin-brand-icon {
        display: none;
    }

    html[data-layout="modern"] .admin-sidebar-brand span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html[data-layout="modern"] .admin-sidebar-user {
        align-items: center;
        gap: 11px;
        margin: 16px 14px 8px;
        padding: 12px;
        background: var(--admin-sidebar-panel);
        border: 1px solid rgba(255, 255, 255, 0.055);
        border-radius: 6px;
    }

    html[data-layout="modern"] .admin-sidebar-user .admin-avatar {
        width: 38px;
        height: 38px;
        flex: 0 0 auto;
    }

    html[data-layout="modern"] .admin-sidebar-user-meta {
        min-width: 0;
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    html[data-layout="modern"] .admin-sidebar-user-meta strong {
        overflow: hidden;
        color: #f4f7fa;
        font-size: 0.86rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html[data-layout="modern"] .admin-sidebar-user-meta small {
        margin-top: 3px;
        color: #8e9aaa;
        font-size: 0.72rem;
    }

    html[data-layout="modern"] .admin-sidebar-scroll {
        min-height: 0;
        flex: 1 1 auto;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-color: #3b4656 transparent;
        scrollbar-width: thin;
    }

    html[data-layout="modern"] .admin-sidebar-menu {
        padding: 6px 12px 16px;
    }

    html[data-layout="modern"] .admin-sidebar-section-label {
        min-height: 30px;
        align-items: flex-end;
        padding: 0 10px 7px;
        margin-top: 12px;
        color: var(--admin-sidebar-muted);
        font-size: 0.66rem;
        font-weight: 700;
        text-transform: uppercase;
        white-space: nowrap;
    }

    html[data-layout="modern"] .admin-sidebar-menu .list-group-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 9px 11px;
        margin-bottom: 3px;
        overflow: hidden;
        color: var(--admin-sidebar-text);
        background: transparent;
        border-radius: 5px;
        font-size: 0.86rem;
        white-space: nowrap;
    }

    html[data-layout="modern"] .admin-sidebar-menu .list-group-item:hover,
    html[data-layout="modern"] .admin-sidebar-menu .list-group-item:focus {
        color: #fff;
        background: rgba(255, 255, 255, 0.07);
    }

    html[data-layout="modern"] .admin-sidebar-menu .list-group-item.active {
        color: #fff;
        background: #2b3544;
        box-shadow: inset 3px 0 0 var(--admin-accent);
        font-weight: 700;
    }

    html[data-layout="modern"] .admin-sidebar-menu .list-group-item i,
    html[data-layout="modern"] .admin-sidebar-menu .list-group-item.active i {
        width: auto;
        color: inherit;
    }

    html[data-layout="modern"] .admin-sidebar-item-icon {
        width: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 22px;
        color: #8f9bab;
        font-size: 0.9rem;
    }

    html[data-layout="modern"] .admin-sidebar-menu .active .admin-sidebar-item-icon {
        color: #72aaf2;
    }

    html[data-layout="modern"] .admin-sidebar-collapse-control {
        min-height: 50px;
        align-items: center;
        gap: 12px;
        padding: 0 22px;
        color: #8e9aaa;
        background: #131923;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 0.8rem;
        text-align: left;
    }

    html[data-layout="modern"] .admin-sidebar-collapse-control:hover,
    html[data-layout="modern"] .admin-sidebar-collapse-control:focus {
        color: #fff;
    }

    html.admin-sidebar-collapsed[data-layout="modern"] .admin-shell {
        padding-left: var(--admin-sidebar-collapsed-width);
    }

    html.admin-sidebar-collapsed[data-layout="modern"] .admin-navbar {
        left: var(--admin-sidebar-collapsed-width);
    }

    html.admin-sidebar-collapsed[data-layout="modern"] .admin-sidebar-column {
        width: var(--admin-sidebar-collapsed-width);
    }

    html.admin-sidebar-collapsed[data-layout="modern"] .admin-sidebar-brand {
        justify-content: center;
        padding-right: 0;
        padding-left: 0;
    }

    html.admin-sidebar-collapsed[data-layout="modern"] .admin-sidebar-brand .admin-brand-icon {
        display: block;
    }

    html.admin-sidebar-collapsed[data-layout="modern"] .admin-sidebar-brand span,
    html.admin-sidebar-collapsed[data-layout="modern"] .admin-sidebar-brand .admin-brand-logo,
    html.admin-sidebar-collapsed[data-layout="modern"] .admin-sidebar-user-meta,
    html.admin-sidebar-collapsed[data-layout="modern"] .admin-sidebar-item-label,
    html.admin-sidebar-collapsed[data-layout="modern"] .admin-sidebar-collapse-control span,
    html.admin-sidebar-collapsed[data-layout="modern"] .admin-sidebar-section-label span {
        display: none;
    }

    html.admin-sidebar-collapsed[data-layout="modern"] .admin-sidebar-user {
        justify-content: center;
        margin-right: 10px;
        margin-left: 10px;
        padding: 10px 0;
    }

    html.admin-sidebar-collapsed[data-layout="modern"] .admin-sidebar-menu {
        padding-right: 10px;
        padding-left: 10px;
    }

    html.admin-sidebar-collapsed[data-layout="modern"] .admin-sidebar-section-label {
        min-height: 18px;
        padding: 0;
        margin: 10px 8px 5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    html.admin-sidebar-collapsed[data-layout="modern"] .admin-sidebar-menu .list-group-item {
        justify-content: center;
        gap: 0;
        padding-right: 0;
        padding-left: 0;
    }

    html.admin-sidebar-collapsed[data-layout="modern"] .admin-sidebar-collapse-control {
        justify-content: center;
        padding: 0;
    }

    html.admin-sidebar-collapsed[data-layout="modern"] .admin-sidebar-collapse-control i {
        transform: rotate(180deg);
    }
}

@media (max-width: 767.98px) {
    html[data-layout="modern"] .admin-shell {
        padding-left: 0;
    }

    html[data-layout="modern"] .admin-navbar {
        right: 0;
        left: 0;
    }

    html[data-layout="modern"] .admin-navbar .container {
        padding-right: 14px;
        padding-left: 14px;
    }

    html[data-layout="modern"] .admin-navbar .navbar-brand {
        display: inline-block;
        overflow: hidden;
        font-size: 1rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html[data-layout="modern"] .admin-content {
        min-height: calc(100vh - 120px);
        padding: calc(var(--admin-navbar-height) + 18px) 14px 26px !important;
    }

    html[data-layout="modern"] .admin-sidebar-toggle {
        margin-right: 0;
        color: #52606f;
        background: #fff;
        border: 1px solid #dfe4e9;
        border-radius: 6px;
    }

    html[data-layout="modern"] .admin-sidebar-offcanvas {
        width: min(292px, calc(100vw - 42px));
        color: var(--admin-sidebar-text);
        background: var(--admin-sidebar-bg);
    }

    html[data-layout="modern"] .admin-sidebar-offcanvas .offcanvas-header {
        min-height: 68px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    html[data-layout="modern"] .admin-sidebar-offcanvas .admin-mobile-brand {
        color: #fff;
    }

    html[data-layout="modern"] .admin-sidebar-offcanvas .btn-close {
        filter: invert(1) grayscale(1);
    }

    html[data-layout="modern"] .admin-sidebar-offcanvas .offcanvas-body {
        padding: 8px 12px 18px;
    }

    html[data-layout="modern"] .admin-sidebar-offcanvas .admin-sidebar-section-label {
        display: flex;
        padding: 17px 10px 7px;
        color: var(--admin-sidebar-muted);
        font-size: 0.66rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    html[data-layout="modern"] .admin-sidebar-offcanvas .list-group-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 9px 11px;
        margin-bottom: 3px;
        color: var(--admin-sidebar-text);
        background: transparent;
        border-radius: 5px;
    }

    html[data-layout="modern"] .admin-sidebar-offcanvas .list-group-item.active {
        color: #fff;
        background: #2b3544;
        box-shadow: inset 3px 0 0 var(--admin-accent);
    }

    html[data-layout="modern"] .admin-sidebar-offcanvas .list-group-item i,
    html[data-layout="modern"] .admin-sidebar-offcanvas .list-group-item.active i {
        color: inherit;
    }

    html[data-layout="modern"] .admin-sidebar-item-icon {
        width: 22px;
        display: inline-flex;
        justify-content: center;
        flex: 0 0 22px;
    }

    html[data-layout="modern"] div.dataTables_wrapper {
        padding: 12px;
    }

    html[data-layout="modern"] .card-body {
        padding: 15px;
    }

    .admin-setting-section {
        padding: 14px;
    }
}

/* Classic keeps the established compact shell. */
html[data-layout="classic"] .admin-desktop-sidebar-toggle,
html[data-layout="classic"] .admin-avatar-meta,
html[data-layout="classic"] .admin-avatar-chevron {
    display: none !important;
}

html[data-layout="classic"] .admin-sidebar-scroll {
    width: 100%;
}
