:root {
    --panel-ink: #172033;
    --panel-muted: #6f7b91;
    --panel-bg: #f4f7fb;
    --panel-surface: #ffffff;
    --panel-border: #e5eaf2;
    --panel-brand: #5b5ce2;
    --panel-brand-dark: #38399d;
    --panel-cyan: #16b8a6;
    --panel-sidebar: #111827;
    --panel-sidebar-soft: #1d2941;
    --panel-shadow: 0 12px 34px rgba(23, 32, 51, 0.08);
    --panel-shadow-hover: 0 18px 42px rgba(23, 32, 51, 0.14);
    --panel-radius: 18px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #c6cfdd transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--panel-bg);
    color: var(--panel-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--panel-brand);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--panel-brand-dark);
}

.bg-gradient-primary {
    background:
        radial-gradient(circle at 10% 10%, rgba(98, 111, 255, 0.55), transparent 34%),
        radial-gradient(circle at 90% 90%, rgba(22, 184, 166, 0.28), transparent 32%),
        linear-gradient(135deg, #10152b 0%, #252c70 54%, #1c766f 100%);
}

.text-gray-800,
.text-gray-900 {
    color: var(--panel-ink) !important;
}

.text-gray-600 {
    color: #4f5c71 !important;
}

.text-gray-300 {
    color: #b8c1d0 !important;
}

.text-xs {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
}

.font-weight-bold {
    font-weight: 700 !important;
}

#wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: relative;
    z-index: 1041;
    flex: 0 0 268px;
    width: 268px;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 0%, rgba(91, 92, 226, 0.28), transparent 34%),
        linear-gradient(180deg, var(--panel-sidebar) 0%, #17243c 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 14px 0 32px rgba(16, 24, 40, 0.08);
    transition: width 0.25s ease, transform 0.25s ease;
}

.sidebar::after {
    position: absolute;
    right: -80px;
    bottom: 10%;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(22, 184, 166, 0.08);
    content: "";
    filter: blur(2px);
    pointer-events: none;
}

.sidebar-brand {
    position: relative;
    z-index: 1;
    justify-content: flex-start !important;
    height: 5rem;
    padding: 0 1.25rem;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.sidebar-brand-icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #7374ff 0%, #16b8a6 100%);
    box-shadow: 0 8px 18px rgba(91, 92, 226, 0.28);
}

.sidebar-brand-icon img,
.sidebar-logo {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-radius: 13px !important;
    object-fit: cover;
}

.sidebar-brand-icon.rotate-n-15 {
    transform: none;
}

.sidebar-brand-text {
    max-width: 165px;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-divider {
    margin: 1rem 1.15rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
}

.sidebar-heading {
    position: relative;
    z-index: 1;
    padding: 0.65rem 1.35rem 0.45rem;
    color: #8996ae;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.sidebar .nav-item {
    position: relative;
    z-index: 1;
    margin: 0.2rem 0.8rem;
}

.sidebar .nav-item .nav-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    width: 100%;
    padding: 0.72rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #aeb9cc !important;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar .nav-item .nav-link i {
    width: 1.45rem;
    margin-right: 0.62rem;
    color: #8594ae;
    font-size: 0.94rem;
    text-align: center;
    transition: color 0.2s ease;
}

.sidebar .nav-item .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.sidebar .nav-item .nav-link:hover i,
.sidebar .nav-item.active .nav-link i {
    color: #ffffff;
}

.sidebar .nav-item.active .nav-link {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(91, 92, 226, 0.96), rgba(67, 156, 186, 0.92));
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 9px 20px rgba(41, 49, 126, 0.26);
}

#content-wrapper {
    display: flex;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 100vh;
    margin-left: 0;
    overflow-x: hidden;
    transition: width 0.25s ease;
}

#content {
    flex: 1 1 auto;
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 5rem;
    padding: 0 1.75rem;
    background: rgba(255, 255, 255, 0.86) !important;
    border-bottom: 1px solid rgba(229, 234, 242, 0.9);
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.045) !important;
    backdrop-filter: blur(18px);
}

.topbar .nav-link {
    color: #65728a;
}

.topbar .nav-item.dropdown .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
}

.topbar .nav-link:hover,
.topbar .nav-link:focus {
    color: var(--panel-brand);
}

.topbar .dropdown-menu {
    min-width: 12rem;
    padding: 0.55rem;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    box-shadow: var(--panel-shadow-hover);
}

.topbar .dropdown-item {
    padding: 0.65rem 0.75rem;
    border-radius: 9px;
    color: #46536a;
    font-size: 0.86rem;
}

.topbar .dropdown-item:hover,
.topbar .dropdown-item.active {
    color: var(--panel-brand-dark);
    background: #f0f1ff;
}

.topbar-user {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 2px solid #e2e6ff;
    border-radius: 12px;
    color: var(--panel-brand-dark);
    font-size: 0.82rem;
    font-weight: 800;
    background: linear-gradient(135deg, #eef0ff, #dcfbf7);
}

.user-summary {
    white-space: nowrap;
}

.user-summary small {
    font-size: 0.7rem;
}

.theme-toggle {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 11px;
    color: #59667c;
    background: #ffffff;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: #c8cbfb;
    color: var(--panel-brand-dark);
    background: #f0f1ff;
    transform: translateY(-1px);
}

.auth-theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1050;
}

.dashboard-container {
    padding: 2rem 2rem 3rem;
}

.dashboard-container > .d-sm-flex:first-child {
    margin-bottom: 1.75rem !important;
}

.dashboard-container > .d-sm-flex:first-child h1,
.dashboard-container > .d-sm-flex:first-child .h3 {
    margin-bottom: 0.35rem !important;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.dashboard-container > .d-sm-flex:first-child h1 i,
.dashboard-container > .d-sm-flex:first-child .h3 i {
    color: var(--panel-brand);
}

.dashboard-container > .d-sm-flex:first-child p,
.dashboard-container > .d-sm-flex:first-child small {
    color: var(--panel-muted) !important;
}

.dashboard-heading-kicker {
    margin-bottom: 0.55rem;
    color: var(--panel-brand);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.dashboard-container > .d-sm-flex:first-child .dashboard-welcome-title {
    margin-bottom: 0.45rem !important;
    color: var(--panel-ink) !important;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 850;
    letter-spacing: -0.065em;
    line-height: 1.05;
}

.dashboard-welcome-subtitle {
    color: var(--panel-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.dashboard-business-context {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    max-width: min(100%, 460px);
    margin-top: 1rem;
    padding: 0.62rem 0.8rem;
    border: 1px solid #dfe3ff;
    border-radius: 15px;
    color: var(--panel-ink);
    background: linear-gradient(135deg, #f7f7ff 0%, #effcf9 100%);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-business-context:hover {
    border-color: #aeb1ff;
    color: var(--panel-ink);
    box-shadow: 0 9px 20px rgba(91, 92, 226, 0.12);
    transform: translateY(-2px);
}

.dashboard-business-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--panel-brand), var(--panel-cyan));
    box-shadow: 0 7px 14px rgba(91, 92, 226, 0.2);
}

.dashboard-business-context span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
    text-align: left;
}

.dashboard-business-context small {
    color: var(--panel-muted);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-business-context strong {
    overflow: hidden;
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-business-arrow {
    margin-left: 0.35rem;
    color: var(--panel-brand);
    font-size: 0.75rem;
}

.card {
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    background: var(--panel-surface);
    box-shadow: var(--panel-shadow) !important;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.card:hover {
    border-color: #d9dff0;
}

.card-header {
    padding: 1.05rem 1.25rem;
    color: var(--panel-ink);
    background: transparent;
    border-bottom: 1px solid var(--panel-border);
}

.card-header h5,
.card-header h6 {
    color: var(--panel-ink) !important;
    font-weight: 750 !important;
    letter-spacing: -0.01em;
}

.card-body {
    padding: 1.35rem;
}

.shadow,
.shadow-sm,
.shadow-lg {
    box-shadow: var(--panel-shadow) !important;
}

.info-box:hover,
.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--panel-shadow-hover) !important;
}

.border-left-primary,
.border-left-success,
.border-left-info,
.border-left-warning,
.border-left-danger {
    border-left-width: 4px !important;
    border-radius: 16px;
}

.border-left-primary { border-left-color: var(--panel-brand) !important; }
.border-left-success { border-left-color: var(--panel-cyan) !important; }
.border-left-info { border-left-color: #4c9eea !important; }
.border-left-warning { border-left-color: #f2b84b !important; }
.border-left-danger { border-left-color: #ed6a7a !important; }

.btn {
    border-radius: 10px;
    font-weight: 650;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, var(--panel-brand) 0%, #7475f5 100%);
    box-shadow: 0 8px 16px rgba(91, 92, 226, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, var(--panel-brand-dark) 0%, var(--panel-brand) 100%);
    box-shadow: 0 11px 22px rgba(91, 92, 226, 0.28);
}

.btn-outline-primary {
    border-color: #c8cbfb;
    color: var(--panel-brand-dark);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    border-color: var(--panel-brand);
    color: #ffffff;
    background: var(--panel-brand);
}

.btn-success {
    border-color: transparent;
    background: linear-gradient(135deg, #16b8a6, #2acb9c);
    box-shadow: 0 8px 16px rgba(22, 184, 166, 0.18);
}

.btn-warning {
    color: #5c4310;
}

.table {
    margin-bottom: 0;
    color: #3c4960;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    padding: 0.92rem 0.85rem;
    border-bottom-color: var(--panel-border);
}

.table thead th {
    color: #7a869b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    background: #f8faff;
}

.table-hover > tbody > tr:hover > * {
    color: inherit;
    background: #fafbff;
}

.table-responsive {
    border-radius: 12px;
}

.async-table-wrapper {
    position: relative;
    overflow-x: auto;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: #ffffff;
}

.async-table-wrapper .table {
    min-width: 680px;
}

.async-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.async-table-toolbar .table-filter {
    max-width: 310px;
}

.async-table-toolbar .table-filter .input-group-text {
    min-width: 42px;
    justify-content: center;
    border-right: 0;
}

.async-table-toolbar .table-filter .form-control {
    border-left: 0;
}

.async-table-status {
    color: var(--panel-muted);
    font-size: 0.76rem;
    font-weight: 650;
    white-space: nowrap;
}

.async-table-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    backdrop-filter: blur(2px);
}

.async-table-wrapper.is-loading .async-table-loading {
    opacity: 1;
}

.async-table-loading .spinner-border {
    width: 1.35rem;
    height: 1.35rem;
    color: var(--panel-brand);
}

.async-table-empty {
    display: none;
    padding: 2.2rem 1rem;
    color: var(--panel-muted);
    text-align: center;
}

.async-table-wrapper.is-empty .async-table-empty {
    display: block;
}

.async-table thead th[data-sortable="true"] {
    position: relative;
    padding-right: 2rem;
    cursor: pointer;
    user-select: none;
}

.async-table thead th[data-sortable="true"]::after {
    position: absolute;
    right: 0.8rem;
    color: #a5afbf;
    content: "\f0dc";
    font-family: "Font Awesome 6 Free";
    font-size: 0.67rem;
    font-weight: 900;
}

.async-table thead th[data-sortable="true"].is-sorted-asc::after {
    color: var(--panel-brand);
    content: "\f0de";
}

.async-table thead th[data-sortable="true"].is-sorted-desc::after {
    color: var(--panel-brand);
    content: "\f0dd";
}

.async-table tbody tr {
    transition: background 0.18s ease;
}

.async-table tbody tr:hover {
    background: #fafbff;
}

.form-label {
    margin-bottom: 0.45rem;
    color: #4b5870;
    font-size: 0.8rem;
    font-weight: 700;
}

.form-control,
.form-select,
.input-group-text {
    min-height: 44px;
    border-color: #dfe5ef;
    border-radius: 10px;
    color: var(--panel-ink);
    background-color: #fbfcfe;
}

.form-control:focus,
.form-select:focus {
    border-color: #9899f5;
    background: #ffffff;
    box-shadow: 0 0 0 0.22rem rgba(91, 92, 226, 0.13);
}

.panel-search {
    max-width: 420px;
}

.panel-search .input-group-text {
    min-width: 44px;
    justify-content: center;
    border-right: 0;
}

.panel-search .form-control {
    border-left: 0;
}

.panel-search .form-control:focus {
    border-left: 0;
}

.input-group > .input-group-text {
    border-right: 0;
    background: #f5f7fb;
}

.input-group > .form-control:not(:last-child) {
    border-right: 0;
}

.alert {
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(23, 32, 51, 0.04);
}

.badge {
    padding: 0.45em 0.7em;
    border-radius: 7px;
    font-weight: 700;
}

.pagination {
    gap: 0.35rem;
}

.page-link {
    min-width: 38px;
    border: 1px solid var(--panel-border);
    border-radius: 9px !important;
    color: #526078;
    text-align: center;
    background: #ffffff;
}

.page-link:hover,
.page-item.active .page-link {
    border-color: var(--panel-brand);
    color: #ffffff;
    background: var(--panel-brand);
}

.breadcrumb {
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #aab3c2;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(12, 18, 32, 0.55);
    backdrop-filter: blur(3px);
}

.mobile-overlay.show {
    display: block;
}

.sidebar-close {
    position: absolute;
    top: 1.1rem;
    right: 1rem;
    z-index: 2;
    display: none;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #b9c3d5;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar.toggled {
    flex-basis: 88px;
    width: 88px;
}

.sidebar.toggled .sidebar-brand {
    justify-content: center !important;
    padding: 0;
}

.sidebar.toggled .sidebar-brand-text,
.sidebar.toggled .nav-link span,
.sidebar.toggled .sidebar-heading {
    display: none;
}

.sidebar.toggled .sidebar-divider {
    margin-right: 1.1rem !important;
    margin-left: 1.1rem !important;
}

.sidebar.toggled .nav-item {
    margin-right: 0.65rem;
    margin-left: 0.65rem;
}

.sidebar.toggled .nav-item .nav-link {
    justify-content: center;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.sidebar.toggled .nav-item .nav-link i {
    margin-right: 0;
}

.sidebar-toggled .sidebar .nav-link {
    justify-content: center;
}

.mobile-menu-btn {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--panel-border) !important;
    border-radius: 11px;
    color: var(--panel-ink) !important;
    background: #ffffff !important;
}

#sidebarToggle {
    position: relative;
    z-index: 1;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #c7d0df;
    background: rgba(255, 255, 255, 0.07);
}

#sidebarToggle:hover,
.sidebar-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.scroll-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 999;
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px !important;
    color: #ffffff;
    line-height: 42px;
    text-align: center;
    background: var(--panel-ink);
    box-shadow: var(--panel-shadow);
}

.scroll-to-top:hover {
    color: #ffffff;
    background: var(--panel-brand);
}

.sticky-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--panel-border);
    color: #8994a8;
    background: #ffffff !important;
    font-size: 0.76rem;
}

.floating-support-buttons {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.support-btn {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    color: #ffffff;
    font-size: 1.2rem;
    text-decoration: none;
    animation: none;
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-btn:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 28px rgba(23, 32, 51, 0.24);
}

.whatsapp-btn { background: #16b67a; }
.email-btn { background: var(--panel-brand); }

.dashboard-hero {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.22), transparent 25%),
        linear-gradient(125deg, #292c7d 0%, #5b5ce2 56%, #159f97 100%);
    box-shadow: 0 18px 40px rgba(50, 57, 145, 0.2) !important;
}

.dashboard-hero::before,
.dashboard-hero::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 50%;
    content: "";
}

.dashboard-hero::before {
    top: -100px;
    right: -60px;
    width: 300px;
    height: 300px;
}

.dashboard-hero::after {
    right: 120px;
    bottom: -100px;
    width: 220px;
    height: 220px;
}

.dashboard-hero .card-body {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.dashboard-hero .eyebrow {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-hero h2 {
    max-width: 620px;
    margin-bottom: 0.6rem;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.dashboard-hero p {
    max-width: 590px;
    margin-bottom: 1.35rem;
    color: rgba(255, 255, 255, 0.78);
}

.hero-orbit {
    position: absolute;
    right: 8%;
    bottom: 8%;
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    font-size: 2.2rem;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.04);
}

.stat-card {
    position: relative;
    min-height: 132px;
}

.stat-card .stat-label {
    margin-bottom: 0.4rem;
    color: var(--panel-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.stat-card .stat-value {
    color: var(--panel-ink);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.stat-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    font-size: 1.05rem;
}

.stat-icon.primary { color: #5759d9; background: #eff0ff; }
.stat-icon.success { color: #108e7e; background: #e5faf5; }
.stat-icon.info { color: #2b83cf; background: #e8f4ff; }
.stat-icon.warning { color: #aa7419; background: #fff5df; }

.quick-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.78rem 0.85rem;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    color: #46536a;
    background: #fbfcfe;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.quick-action:hover {
    border-color: #cfd2fb;
    color: var(--panel-brand-dark);
    background: #f5f5ff;
    transform: translateX(3px);
}

.quick-action i:first-child {
    width: 1.3rem;
    color: var(--panel-brand);
    text-align: center;
}

.quick-action .arrow {
    color: #a3adbd;
    font-size: 0.72rem;
}

.business-logo,
.customer-avatar {
    width: 52px;
    height: 52px;
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 6px 14px rgba(23, 32, 51, 0.08);
}

.business-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 16px;
    color: var(--panel-brand);
    font-size: 1.25rem;
    background: #eff0ff;
}

.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.login-shell {
    min-height: 100vh;
    padding: 2rem 0;
}

.login-layout {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 30px 70px rgba(10, 16, 44, 0.28);
}

.login-showcase {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    padding: 2.5rem;
    color: #ffffff;
    background: linear-gradient(150deg, #20245e 0%, #38399d 55%, #13998f 100%);
}

.login-showcase::before,
.login-showcase::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    content: "";
}

.login-showcase::before {
    top: -110px;
    right: -70px;
    width: 300px;
    height: 300px;
}

.login-showcase::after {
    bottom: -150px;
    left: -90px;
    width: 330px;
    height: 330px;
}

.login-showcase-content {
    position: relative;
    z-index: 1;
}

.login-kicker {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-showcase h1 {
    max-width: 420px;
    margin: 4rem 0 1rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.04;
}

.login-showcase p {
    max-width: 390px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
}

.login-benefits {
    display: grid;
    gap: 0.85rem;
    margin-top: 3rem;
}

.login-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.84rem;
}

.login-benefit i {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 9px;
    color: #ffffff;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.16);
}

.login-form-panel {
    display: flex;
    min-height: 620px;
    align-items: center;
    padding: 3rem;
    background: #ffffff;
}

.login-form-inner {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
}

.login-form-inner .form-control-user {
    min-height: 50px;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.login-form-inner .input-group-text {
    min-height: 50px;
    border-radius: 12px 0 0 12px;
}

.login-form-inner .input-group .form-control {
    border-radius: 0;
}

.login-form-inner .password-toggle {
    border-radius: 0 12px 12px 0;
}

.btn-user {
    min-height: 50px;
    border-radius: 12px;
    font-size: 0.88rem;
    letter-spacing: 0;
}

.empty-state-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    place-items: center;
    border-radius: 22px;
    color: var(--panel-brand);
    font-size: 1.75rem;
    background: #f0f1ff;
}

@media (min-width: 992px) {
    .sidebar.toggled + #content-wrapper {
        width: auto;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-104%);
    }

    .sidebar.toggled {
        flex-basis: 268px;
        width: 268px;
    }

    .sidebar.toggled .sidebar-brand {
        justify-content: flex-start !important;
        padding: 0 1.25rem;
    }

    .sidebar.toggled .sidebar-brand-text,
    .sidebar.toggled .nav-link span,
    .sidebar.toggled .sidebar-heading {
        display: block;
    }

    .sidebar.toggled .nav-item .nav-link {
        justify-content: flex-start;
        padding-right: 0.85rem;
        padding-left: 0.85rem;
    }

    .sidebar.toggled .nav-item .nav-link i {
        margin-right: 0.62rem;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .topbar {
        height: 4.5rem;
        padding: 0 1rem;
    }

    .dashboard-container {
        padding: 1.35rem 1rem 2.2rem;
    }

    .dashboard-hero .card-body {
        padding: 1.5rem;
    }

    .hero-orbit {
        right: 4%;
        width: 76px;
        height: 76px;
        font-size: 1.55rem;
    }

    .login-showcase {
        min-height: auto;
        padding: 2rem;
    }

    .login-showcase h1 {
        margin-top: 2.5rem;
    }

    .login-benefits {
        margin-top: 1.8rem;
    }

    .login-form-panel {
        min-height: auto;
        padding: 2.2rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .topbar {
        padding: 0 0.75rem;
    }

    .dashboard-container {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .dashboard-container > .d-sm-flex:first-child {
        align-items: flex-start !important;
        gap: 0.9rem;
    }

    .dashboard-container > .d-sm-flex:first-child .btn {
        width: 100%;
    }

    .dashboard-container > .d-sm-flex:first-child .dashboard-welcome-title {
        font-size: 2rem;
    }

    .panel-search {
        max-width: none;
    }

    .async-table-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 0.65rem;
    }

    .async-table-toolbar .table-filter {
        max-width: none;
    }

    .card-body {
        padding: 1.05rem;
    }

    .dashboard-hero h2 {
        max-width: 85%;
        font-size: 1.7rem;
    }

    .hero-orbit {
        right: -8px;
        bottom: 16px;
        opacity: 0.7;
    }

    .sticky-footer {
        padding: 1rem;
    }

    .floating-support-buttons {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .support-btn {
        width: 43px;
        height: 43px;
        border-radius: 13px;
        font-size: 1rem;
    }

    .login-shell {
        padding: 0;
    }

    .login-layout {
        border: 0;
        border-radius: 0;
    }

    .login-showcase {
        padding: 1.75rem 1.35rem;
    }

    .login-showcase h1 {
        margin-top: 2rem;
        font-size: 2.25rem;
    }

    .login-form-panel {
        padding: 2rem 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .async-table-wrapper {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .async-table-wrapper .table {
        min-width: 0;
    }

    .async-table thead {
        display: none;
    }

    .async-table tbody {
        display: grid;
        gap: 0.8rem;
    }

    .async-table tbody tr {
        display: block;
        overflow: hidden;
        border: 1px solid var(--panel-border);
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 6px 16px rgba(23, 32, 51, 0.05);
    }

    .async-table tbody tr:hover {
        background: #ffffff;
    }

    .async-table tbody td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        min-height: 48px;
        padding: 0.75rem 0.9rem;
        border: 0;
        border-bottom: 1px solid #eef1f6;
        text-align: right;
    }

    .async-table tbody td::before {
        flex: 0 0 38%;
        color: #7a869b;
        content: attr(data-label);
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-align: left;
        text-transform: uppercase;
    }

    .async-table tbody td:last-child {
        border-bottom: 0;
    }

    .async-table tbody td > * {
        max-width: 62%;
    }

    .async-table tbody td .btn-group,
    .async-table tbody td form,
    .async-table tbody td .d-flex {
        max-width: 100%;
    }

    .async-table tbody td .btn-group {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

html[data-theme="dark"] {
    color-scheme: dark;
    --panel-ink: #e8eef8;
    --panel-muted: #9aa8be;
    --panel-bg: #0d1424;
    --panel-surface: #151e31;
    --panel-border: #2a3852;
    --panel-brand: #8586ff;
    --panel-brand-dark: #aeb0ff;
    --panel-cyan: #36d4c1;
    --panel-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    --panel-shadow-hover: 0 18px 42px rgba(0, 0, 0, 0.34);
    --bs-body-color: #e8eef8;
    --bs-body-bg: #0d1424;
    --bs-emphasis-color: #ffffff;
    --bs-secondary-color: #9aa8be;
    --bs-secondary-bg: #151e31;
    --bs-tertiary-bg: #1b2941;
    --bs-heading-color: #e8eef8;
    --bs-border-color: #2a3852;
    --bs-card-color: #e8eef8;
    --bs-card-bg: #151e31;
    --bs-card-border-color: #2a3852;
    --bs-card-cap-color: #e8eef8;
    --bs-card-cap-bg: #151e31;
}

html[data-theme="dark"] body {
    background: var(--panel-bg);
    color: var(--panel-ink);
}

html[data-theme="dark"] .topbar {
    background: rgba(17, 24, 39, 0.88) !important;
    border-bottom-color: #26344e;
}

html[data-theme="dark"] .topbar .nav-link,
html[data-theme="dark"] .topbar .nav-link:hover,
html[data-theme="dark"] .topbar .nav-link:focus {
    color: #c6d0e0;
}

html[data-theme="dark"] .topbar .dropdown-menu {
    border-color: var(--panel-border);
    background: #182338;
}

html[data-theme="dark"] .topbar .dropdown-item {
    color: #cbd5e3;
}

html[data-theme="dark"] .topbar .dropdown-item:hover,
html[data-theme="dark"] .topbar .dropdown-item.active {
    color: #ffffff;
    background: #28375a;
}

html[data-theme="dark"] .theme-toggle {
    border-color: #344664;
    color: #f7ca6a;
    background: #1a263d;
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus-visible {
    border-color: #5963a6;
    color: #ffe2a2;
    background: #26365a;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .login-layout {
    border-color: var(--panel-border);
    color: var(--panel-ink);
    background: var(--panel-surface);
}

html[data-theme="dark"] .card-body,
html[data-theme="dark"] .card-body strong,
html[data-theme="dark"] .card-body .row > div {
    color: var(--panel-ink);
}

html[data-theme="dark"] .card-header {
    border-bottom-color: var(--panel-border);
}

html[data-theme="dark"] .card-header h5,
html[data-theme="dark"] .card-header h6,
html[data-theme="dark"] .card-body h1,
html[data-theme="dark"] .card-body h2,
html[data-theme="dark"] .card-body h3,
html[data-theme="dark"] .card-body h4,
html[data-theme="dark"] .card-body h5,
html[data-theme="dark"] .card-body h6 {
    color: var(--panel-ink) !important;
}

html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .small.text-muted,
html[data-theme="dark"] small.text-muted {
    color: var(--panel-muted) !important;
}

html[data-theme="dark"] .text-gray-600 {
    color: #c0cada !important;
}

html[data-theme="dark"] .text-gray-300 {
    color: #8392aa !important;
}

html[data-theme="dark"] .table {
    color: #d9e2ef;
    --bs-table-border-color: var(--panel-border);
}

html[data-theme="dark"] .table thead th,
html[data-theme="dark"] .table-light > * {
    color: #aebbd0;
    background: #1b2941 !important;
}

html[data-theme="dark"] .table-hover > tbody > tr:hover > *,
html[data-theme="dark"] .async-table tbody tr:hover {
    color: #eef4fb;
    background: #1a2942;
}

html[data-theme="dark"] .async-table-wrapper {
    border-color: var(--panel-border);
    background: var(--panel-surface);
}

html[data-theme="dark"] .table {
    --bs-table-bg: #151e31;
    --bs-table-color: #dce6f3;
    --bs-table-border-color: #2a3852;
    --bs-table-hover-bg: #263754;
    --bs-table-hover-color: #ffffff;
}

html[data-theme="dark"] .table > :not(caption) > * > *,
html[data-theme="dark"] .table-bordered > :not(caption) > * > * {
    background-color: #151e31;
    border-color: #2a3852;
}

html[data-theme="dark"] .table tbody tr:nth-child(even) > *,
html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(even) > * {
    background-color: #19263d;
}

html[data-theme="dark"] .table tbody tr:hover > *,
html[data-theme="dark"] .table-hover > tbody > tr:hover > * {
    background-color: #263754;
}

html[data-theme="dark"] .async-table tbody td::before {
    color: #9eacc1;
}

html[data-theme="dark"] .async-table thead th[data-sortable="true"]::after {
    color: #8e9db5;
}

html[data-theme="dark"] .async-table thead th[data-sortable="true"].is-sorted-asc::after,
html[data-theme="dark"] .async-table thead th[data-sortable="true"].is-sorted-desc::after {
    color: #aeb0ff;
}

html[data-theme="dark"] .async-table-loading {
    background: rgba(21, 30, 49, 0.82);
}

html[data-theme="dark"] .async-table-empty {
    color: #9aa8be;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .input-group-text {
    border-color: #34445f;
    color: #e8eef8;
    background-color: #111b2d;
}

html[data-theme="dark"] .form-label,
html[data-theme="dark"] .col-form-label {
    color: #c7d2e2;
}

html[data-theme="dark"] .form-text {
    color: var(--panel-muted) !important;
}

html[data-theme="dark"] .input-group-text {
    background-color: #111b2d !important;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
    border-color: #8586ff;
    color: #ffffff;
    background: #142039;
}

html[data-theme="dark"] .form-control::placeholder {
    color: #8190a7;
}

html[data-theme="dark"] select option {
    color: #e8eef8;
    background: #151e31;
}

html[data-theme="dark"] .quick-action,
html[data-theme="dark"] .panel-search .form-control {
    border-color: #34445f;
    color: #dce5f2;
    background: #111b2d;
}

html[data-theme="dark"] .quick-action:hover {
    border-color: #5963a6;
    color: #ffffff;
    background: #243453;
}

html[data-theme="dark"] .page-link {
    border-color: #34445f;
    color: #c8d3e3;
    background: #151e31;
}

html[data-theme="dark"] .page-link:hover,
html[data-theme="dark"] .page-item.active .page-link {
    border-color: var(--panel-brand);
    color: #111827;
    background: var(--panel-brand);
}

html[data-theme="dark"] .breadcrumb-item.active,
html[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: #9aa8be;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light {
    color: var(--panel-ink) !important;
    background-color: var(--panel-surface) !important;
}

html[data-theme="dark"] .alert-info {
    color: #b7ddff;
    border-color: #24577d;
    background: #102c45;
}

html[data-theme="dark"] .alert-success {
    color: #a9efda;
    border-color: #1d685a;
    background: #103d38;
}

html[data-theme="dark"] .alert-warning {
    color: #ffe0a1;
    border-color: #765b27;
    background: #403319;
}

html[data-theme="dark"] .alert-secondary {
    color: #d3dce9;
    border-color: #3a4b66;
    background: #202d43;
}

html[data-theme="dark"] .modal-content {
    color: var(--panel-ink);
    border-color: var(--panel-border);
    background: var(--panel-surface);
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
    border-color: var(--panel-border);
}

html[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(1) brightness(1.8);
}

html[data-theme="dark"] .nav-tabs {
    border-bottom-color: var(--panel-border);
}

html[data-theme="dark"] .nav-tabs .nav-link {
    color: #aebbd0;
}

html[data-theme="dark"] .nav-tabs .nav-link.active {
    color: #ffffff;
    border-color: var(--panel-border) var(--panel-border) var(--panel-surface);
    background: var(--panel-surface);
}

html[data-theme="dark"] .login-form-panel {
    color: var(--panel-ink);
    background: var(--panel-surface);
}

html[data-theme="dark"] .auth-theme-toggle {
    border-color: rgba(255, 255, 255, 0.22);
    color: #f7ca6a;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(10px);
}

html[data-theme="dark"] .login-form-inner .password-toggle {
    border-color: #34445f;
    color: #b8c6d8;
    background: #111b2d;
}

html[data-theme="dark"] .login-form-inner .password-toggle:hover {
    background: #243453;
}

html[data-theme="dark"] .login-form-inner .border-top {
    border-color: var(--panel-border) !important;
}

html[data-theme="dark"] .topbar-user {
    border-color: #47548a;
    color: #e5e7ff;
    background: linear-gradient(135deg, #303b76, #1d645f);
}

html[data-theme="dark"] .dashboard-business-context {
    border-color: #3b4a72;
    color: #e8eef8;
    background: linear-gradient(135deg, #202b49 0%, #173e42 100%);
}

html[data-theme="dark"] .dashboard-business-context:hover {
    border-color: #7276d8;
    color: #ffffff;
}

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