﻿

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: "Poppins", Arial, sans-serif;
    background: #f7f8fc;
    color: #333;
}

a {
    text-decoration: none;
}


/* =====================================================
           SIDEBAR
        ===================================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 245px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #eeeeee;
    z-index: 1050;
    overflow-y: auto;
    transition: all .3s ease;
}


/* LOGO */

.sidebar-logo {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient( 135deg, #d4145a, #f472b6 );
}

.sidebar-logo-image {
    width: 80px;
    height: auto;
    display: block;
}


/* MENU */

.sidebar-menu {
    padding: 15px 10px;
}

.menu-title {
    padding: 12px 15px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #a0a0a0;
    text-transform: uppercase;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 15px;
    margin-bottom: 3px;
    color: #606770;
    font-size: 13px;
    border-radius: 5px;
    transition: all .2s ease;
}

    .sidebar-menu a i {
        width: 18px;
        font-size: 14px;
        text-align: center;
    }

    .sidebar-menu a:hover {
        background: #fff0f7;
        color: #d4145a;
    }

    .sidebar-menu a.active {
        color: #d4145a;
        background: #fff3f8;
        border-left: 3px solid #d4145a;
        border-radius: 0 5px 5px 0;
    }


/* =====================================================
           MAIN
        ===================================================== */

.main-wrapper {
    margin-left: 245px;
    min-height: 100vh;
    transition: all .3s ease;
}


/* =====================================================
           TOP NAVBAR
        ===================================================== */

.top-navbar {
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-toggle {
    border: 0;
    background: transparent;
    font-size: 24px;
    color: #333;
    padding: 0;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    position: relative;
}

    .top-icon .badge {
        position: absolute;
        top: -2px;
        right: -4px;
        font-size: 8px;
        padding: 3px 5px;
    }

.profile-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}


/* =====================================================
           CONTENT
        ===================================================== */

.dashboard-content {
    padding: 25px;
}


/* =====================================================
           COMMON CARD
        ===================================================== */

.dashboard-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eeeeee;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    height: 100%;
}

.card-body-custom {
    padding: 20px;
}


/* =====================================================
           DASHBOARD HEADER
        ===================================================== */

.dashboard-title {
    font-size: 20px;
    font-weight: 700;
    color: #252525;
    margin: 0;
}

.dashboard-subtitle {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}


/* =====================================================
           TABS
        ===================================================== */

.chart-tabs {
    display: flex;
    gap: 22px;
    justify-content: flex-end;
}

    .chart-tabs button {
        border: 0;
        background: transparent;
        padding: 5px 0;
        font-size: 11px;
        color: #777;
    }

        .chart-tabs button.active {
            color: #333;
            border-bottom: 2px solid #d4145a;
        }


/* =====================================================
           EARNING BOX
        ===================================================== */

.earning-amount {
    font-size: 24px;
    font-weight: 700;
    color: #252525;
    margin-top: 15px;
}

.earning-label {
    font-size: 11px;
    color: #999;
}

.earning-number {
    font-size: 23px;
    font-weight: 700;
    margin-top: 12px;
}

.summary-btn {
    border: 0;
    color: #ffffff;
    background: linear-gradient( 135deg, #d4145a, #f05b9d );
    padding: 10px 18px;
    font-size: 11px;
    border-radius: 3px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(212,20,90,.25);
}


/* =====================================================
           TRAFFIC
        ===================================================== */

.traffic-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.traffic-chart {
    position: relative;
    height: 220px;
}


/* =====================================================
           SMALL STAT BAR
        ===================================================== */

.stat-row {
    border-top: 1px solid #eeeeee;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.stat-box {
    padding: 13px;
    border-right: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    gap: 9px;
}

    .stat-box:last-child {
        border-right: 0;
    }

.stat-icon {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
}

.icon-purple {
    background: #6f2dbd;
}

.icon-pink {
    background: #d4145a;
}

.icon-blue {
    background: #119cc8;
}

.icon-yellow {
    background: #e5b52f;
}

.stat-label {
    display: block;
    font-size: 9px;
    color: #888;
}

.stat-value {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #333;
}


/* =====================================================
           BOTTOM SUMMARY CARDS
        ===================================================== */

.summary-card {
    position: relative;
    min-height: 95px;
    padding: 18px;
    border-radius: 7px;
    color: #ffffff;
    overflow: hidden;
}

    .summary-card::after {
        content: "";
        position: absolute;
        width: 150px;
        height: 50px;
        bottom: -15px;
        left: 10px;
        border-radius: 50%;
        border-top: 2px solid rgba(255,255,255,.35);
        transform: rotate(-8deg);
    }

.summary-icon {
    font-size: 20px;
    margin-bottom: 3px;
}

.summary-number {
    font-size: 17px;
    font-weight: 700;
}

.summary-name {
    font-size: 12px;
}

.card-pink {
    background: linear-gradient( 135deg, #d4145a, #9b2bbf );
}

.card-purple {
    background: linear-gradient( 135deg, #6727d9, #9b39db );
}

.card-blue {
    background: linear-gradient( 135deg, #009db8, #148bd1 );
}

.card-orange {
    background: linear-gradient( 135deg, #e7a817, #e89c18 );
}


/* =====================================================
           OFFCANVAS MOBILE
        ===================================================== */

.offcanvas {
    width: 245px !important;
}

    .offcanvas .sidebar {
        position: static;
        width: 100%;
        height: 100%;
    }


/* =====================================================
           RESPONSIVE
        ===================================================== */

@media (max-width: 991.98px) {

    .sidebar {
        display: none;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .top-navbar {
        padding: 0 15px;
    }

    .dashboard-content {
        padding: 18px;
    }

    .stat-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-box:nth-child(2) {
        border-right: 0;
    }

    .stat-box:nth-child(1),
    .stat-box:nth-child(2) {
        border-bottom: 1px solid #eeeeee;
    }
}


@media (max-width: 767.98px) {

    .dashboard-content {
        padding: 12px;
    }

    .top-navbar {
        height: 60px;
    }

    .top-actions {
        gap: 10px;
    }

    .top-icon {
        width: 28px;
    }

    .chart-tabs {
        justify-content: flex-start;
        margin-top: 15px;
        gap: 18px;
    }

    .earning-amount {
        font-size: 22px;
    }

    .traffic-chart {
        height: 210px;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .stat-box {
        border-right: 0 !important;
        border-bottom: 1px solid #eeeeee;
    }

        .stat-box:last-child {
            border-bottom: 0;
        }
}


@media (max-width: 575.98px) {

    .top-navbar {
        padding: 0 12px;
    }

    .dashboard-title {
        font-size: 18px;
    }

    .dashboard-card .card-body-custom {
        padding: 15px;
    }

    .summary-card {
        min-height: 90px;
    }

    .profile-img {
        width: 32px;
        height: 32px;
    }

    .top-icon:nth-child(1) {
        display: none;
    }
}
/* =====================================================
   SIDEBAR FIX
===================================================== */

.desktop-sidebar {
    width: 245px;
    transition: width .3s ease;
}

.logo-text {
    transition: opacity .2s ease;
}


/* Desktop collapsed */

body.sidebar-collapsed .desktop-sidebar {
    width: 70px;
}

    body.sidebar-collapsed .desktop-sidebar .sidebar-logo {
        padding-left: 0;
        padding-right: 0;
        justify-content: center;
    }

    body.sidebar-collapsed .desktop-sidebar .sidebar-logo-image {
        display: none;
    }

    body.sidebar-collapsed .desktop-sidebar .sidebar-menu a {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

        body.sidebar-collapsed .desktop-sidebar .sidebar-menu a span {
            display: none;
        }

        body.sidebar-collapsed .desktop-sidebar .sidebar-menu a i {
            margin: 0;
        }

body.sidebar-collapsed .main-wrapper {
    margin-left: 70px;
}


/* =====================================================
   MOBILE OFFCANVAS
===================================================== */

.mobile-sidebar {
    width: 245px !important;
    background: #fff;
}

    .mobile-sidebar .offcanvas-header {
        height: 72px;
        background: linear-gradient( 135deg, #d4145a, #f472b6 );
        padding: 0 20px;
    }

.mobile-logo {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.mobile-sidebar .btn-close {
    filter: brightness(0) invert(1);
}


/* Mobile menu */

.mobile-sidebar .sidebar-menu {
    padding: 15px 10px;
}

    .mobile-sidebar .sidebar-menu a {
        display: flex !important;
        align-items: center !important;
        gap: 13px;
        padding: 11px 15px;
        margin-bottom: 3px;
        color: #606770;
        font-size: 13px;
        white-space: nowrap;
    }

        .mobile-sidebar .sidebar-menu a span {
            display: inline !important;
        }

        .mobile-sidebar .sidebar-menu a i {
            display: inline-block !important;
        }


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 991.98px) {

    .desktop-sidebar {
        display: none !important;
    }

    .main-wrapper,
    body.sidebar-collapsed .main-wrapper {
        margin-left: 0 !important;
    }
}


/* =====================================================
   DESKTOP
===================================================== */

@media (min-width: 992px) {

    .mobile-sidebar {
        display: none !important;
    }
}
/* =====================================================
   SIDEBAR SCROLL - HIDE SCROLLBAR
===================================================== */

.sidebar,
.mobile-sidebar .offcanvas-body {
    overflow-y: auto;
    overflow-x: hidden;
    /* Firefox */
    scrollbar-width: none;
    /* IE / Edge */
    -ms-overflow-style: none;
}

    /* Chrome, Edge, Safari */
    .sidebar::-webkit-scrollbar,
    .mobile-sidebar .offcanvas-body::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

.form-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.form-title {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

    .form-title h4 {
        font-weight: 600;
        margin-bottom: 15px;
    }

.form-card label {
    font-weight: 500;
    margin-bottom: 6px;
}

.form-card .form-control {
    height: 42px;
    border-radius: 6px;
}

.member-table,
.data-table,
.wide-data-table {
    width: max-content;
    min-width: 100%;
    max-width: none;
    margin-bottom: 0;
    white-space: normal;
    font-size: 13px;
    table-layout: auto;
}

    .member-table thead th,
    .data-table thead th,
    .wide-data-table thead th {
        background: #f8f9fa;
        color: #444;
        font-weight: 600;
        font-size: 12px;
        padding: 12px 10px;
        vertical-align: middle;
    }

    .member-table tbody td,
    .data-table tbody td,
    .wide-data-table tbody td {
        padding: 11px 10px;
        vertical-align: middle;
        color: #555;
    }

    .member-table tbody tr:hover,
    .data-table tbody tr:hover,
    .wide-data-table tbody tr:hover {
        background: #fff5f9;
    }

    .member-table th:nth-child(1),
    .member-table td:nth-child(1),
    .member-table th:nth-child(2),
    .member-table td:nth-child(2),
    .member-table th:nth-child(3),
    .member-table td:nth-child(3),
    .member-table th:nth-child(4),
    .member-table td:nth-child(4),
    .member-table th:nth-child(5),
    .member-table td:nth-child(5),
    .member-table th:nth-child(6),
    .member-table td:nth-child(6),
    .member-table th:nth-child(7),
    .member-table td:nth-child(7),
    .member-table th:nth-child(8),
    .member-table td:nth-child(8),
    .member-table th:nth-child(9),
    .member-table td:nth-child(9),
    .member-table th:nth-child(10),
    .member-table td:nth-child(10),
    .member-table th:nth-child(11),
    .member-table td:nth-child(11),
    .member-table th:nth-child(12),
    .member-table td:nth-child(12) {
        min-width: 0;
    }

    .member-table td:nth-child(1),
    .member-table th:nth-child(1),
    .member-table td:nth-child(2),
    .member-table th:nth-child(2) {
        white-space: nowrap;
    }

    .member-table td:nth-child(3),
    .member-table th:nth-child(3),
    .member-table td:nth-child(6),
    .member-table th:nth-child(6),
    .member-table td:nth-child(9),
    .member-table th:nth-child(9),
    .member-table td:nth-child(10),
    .member-table th:nth-child(10),
    .member-table td:nth-child(11),
    .member-table th:nth-child(11),
    .member-table td:nth-child(12),
    .member-table th:nth-child(12) {
        white-space: nowrap;
    }

    .member-table td:nth-child(3),
    .member-table th:nth-child(3),
    .member-table td:nth-child(6),
    .member-table th:nth-child(6) {
        min-width: 120px;
    }

    .member-table td:nth-child(4),
    .member-table th:nth-child(4),
    .member-table td:nth-child(7),
    .member-table th:nth-child(7) {
        min-width: 170px;
    }

    .member-table td:nth-child(8),
    .member-table th:nth-child(8) {
        min-width: 220px;
    }

    .member-table td:nth-child(9),
    .member-table th:nth-child(9) {
        min-width: 130px;
    }

    .member-table td:nth-child(10),
    .member-table th:nth-child(10) {
        min-width: 170px;
    }

    .member-table td:nth-child(11),
    .member-table th:nth-child(11) {
        min-width: 180px;
    }

    .member-table td:nth-child(12),
    .member-table th:nth-child(12) {
        min-width: 150px;
    }

.table-info {
    font-size: 12px;
    color: #888;
}

.pagination .page-link {
    color: #d4145a;
}

.pagination .page-item.active .page-link {
    background: #d4145a;
    border-color: #d4145a;
    color: #fff;
}

.tree-container {
    margin-top: 20px;
    padding: 25px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: auto;
    min-height: 260px;
}

.genealogy-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.genealogy-toolbar .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.genealogy-zoom-label {
    min-width: 44px;
    color: #888;
    font-size: 12px;
    text-align: center;
}


/* TREE */

.member-tree,
.member-tree ul {
    list-style: none;
    margin: 0;
    padding-left: 28px;
}

.member-tree {
    padding-left: 0;
    min-width: max-content;
    transform: scale(var(--tree-scale, 1));
    transform-origin: top left;
    transition: transform .2s ease;
}


    /* TREE LINE */

    .member-tree ul {
        position: relative;
    }

        .member-tree ul::before {
            content: "";
            position: absolute;
            left: 13px;
            top: 0;
            bottom: 24px;
            border-left: 1px solid #d6d6d6;
        }


        .member-tree li {
        position: relative;
            padding: 7px 0 7px 24px;
    }


        /* HORIZONTAL LINE */

        .member-tree li::before {
            content: "";
            position: absolute;
            left: 13px;
            top: 31px;
            width: 11px;
            border-top: 1px solid #d6d6d6;
        }


    /* REMOVE LINE FROM ROOT */

    .member-tree > li {
        padding-left: 0;
    }

        .member-tree > li::before {
            display: none;
        }


/* MEMBER BOX */

.tree-member {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 7px;
    box-shadow: 0 2px 7px rgba(0,0,0,.05);
    min-width: 240px;
    transition: .2s;
}

    .tree-member:hover {
        border-color: #d4145a;
        background: #fff5f9;
    }

.tree-member.is-active {
    border-left: 3px solid #d4145a;
}

.tree-member.is-inactive {
    border-left: 3px solid #adb5bd;
}

.tree-toggle,
.tree-toggle-spacer {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.tree-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #888;
    cursor: pointer;
}

.tree-toggle:hover {
    color: #d4145a;
}

.tree-member-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff3f8;
    color: #d4145a;
}

.tree-member.is-inactive .tree-member-icon {
    background: #f1f3f5;
    color: #8c959f;
}

.tree-member-content {
    min-width: 120px;
}

.tree-member-meta {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 3px;
    margin-left: auto;
    white-space: nowrap;
}

.tree-status,
.tree-child-count {
    font-size: 10px;
}

.tree-status {
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
}

.status-active {
    background: #eaf8ef;
    color: #218838;
}

.status-inactive {
    background: #f1f3f5;
    color: #6c757d;
}

.tree-child-count {
    color: #999;
}

    .tree-member-icon > i {
        font-size: 17px;
    }

    .tree-member strong {
        display: block;
        font-size: 13px;
        color: #333;
    }

    .tree-member small {
        display: block;
        font-size: 11px;
        color: #999;
        margin-top: 2px;
    }

@media (max-width: 575.98px) {
    .tree-container {
        padding: 15px;
    }

    .genealogy-toolbar .btn span {
        display: none;
    }

    .tree-member {
        min-width: 218px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #d4145a, #f472b6);
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(212, 20, 90, 0.20);
}

.rank-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.rank-summary-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    background: #fffafd;
}

.rank-summary-grid strong {
    color: #333;
    font-size: 14px;
}

.rank-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.rank-detail-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid #eeeeee;
    border-radius: 6px;
}

.rank-detail-grid span {
    color: #888;
    font-size: 11px;
}

.rank-detail-grid strong {
    color: #333;
    font-size: 14px;
}

.rank-roadmap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.rank-roadmap-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #eeeeee;
    border-left: 3px solid #adb5bd;
    border-radius: 6px;
    background: #fff;
}

.rank-roadmap-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: #f1f3f5;
    color: #6c757d;
}

.rank-roadmap-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.rank-roadmap-content strong {
    color: #333;
    font-size: 13px;
}

.rank-roadmap-content span,
.rank-roadmap-state {
    color: #888;
    font-size: 10px;
}

.rank-access-panel {
    padding: 12px;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    background: #fffafd;
}

.rank-level-grid {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rank-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 7px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.level-unlocked {
    background: #eaf8ef;
    color: #218838;
}

.level-locked {
    background: #f1f3f5;
    color: #8c959f;
}

.rank-roadmap-state {
    align-self: flex-start;
    font-weight: 600;
}

.roadmap-achieved,
.roadmap-current {
    border-left-color: #218838;
}

.roadmap-achieved .rank-roadmap-marker {
    background: #eaf8ef;
    color: #218838;
}

.roadmap-current {
    border-left-color: #d4145a;
    background: #fff5f9;
}

.roadmap-current .rank-roadmap-marker,
.roadmap-next .rank-roadmap-marker {
    background: #fff0f7;
    color: #d4145a;
}

.roadmap-current .rank-roadmap-state,
.roadmap-next .rank-roadmap-state {
    color: #d4145a;
}

@media (max-width: 991.98px) {
    .rank-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rank-roadmap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .rank-summary-grid,
    .rank-detail-grid,
    .rank-roadmap {
        grid-template-columns: 1fr;
    }
}

.total-amount-box {
    border-radius: 6px;
    padding: 8px 10px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

    .total-amount-box span {
        font-size: 20px;
        color: #777;
        white-space: nowrap;
    }

    .total-amount-box strong {
        font-size: 20px;
        color: #d4145a;
        white-space: nowrap;
    }

.custom-table {
    width: max-content;
    min-width: 100%;
    margin-bottom: 0;
    background: #fff;
    border-collapse: collapse;
    table-layout: auto;
}

    .custom-table th,
    .custom-table td {
        border: 1px solid #dee2e6 !important;
        padding: 12px;
        white-space: normal;
    }

    .custom-table thead th {
        background: #020d14;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
    }

    .custom-table tbody td {
        font-size: 13px;
        color: #444;
    }

    .custom-table tbody tr:hover {
        background: #f8f9fa;
    }

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    height: auto;
    box-sizing: border-box;
}

    .table-responsive table {
        width: max-content;
        min-width: 100%;
        max-width: none;
        margin-bottom: 0;
        height: auto;
        table-layout: auto;
    }

.table,
.table tbody,
.table thead,
.table tfoot {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
}

.table th,
.table td {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    vertical-align: middle;
    height: auto;
}

.table th {
    font-size: 13px;
    font-weight: 600;
}

.table tbody tr:last-child td {
    border-bottom-width: 1px;
}

.table-responsive .table-empty-state td {
    height: auto;
    min-height: 0;
    padding: 12px 16px;
}

.table td {
    font-size: 13px;
}

    .table td input {
        min-width: 150px;
    }

.sidebar-menu .submenu {
    display: none !important;
    padding: 5px 0 8px 18px;
}

    .sidebar-menu .submenu.open {
        display: block !important;
    }

.sidebar-menu .menu-toggle {
    cursor: pointer;
}

.submenu-arrow {
    margin-left: auto;
    transition: transform 0.25s ease;
}

    .submenu-arrow.rotate {
        transform: rotate(180deg);
    }

.sidebar-menu .submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: 13px;
}

    .sidebar-menu .submenu a:hover {
        color: #fff;
        background: rgba(255,255,255,.08);
    }

@media (max-width: 991.98px) {

    /* ===============================
       SAME DESKTOP SIDEBAR ON MOBILE
    =============================== */

    #desktopSidebar {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 9999 !important;
        transform: translate3d(-100%, 0, 0) !important;
        visibility: visible !important;
        transition: transform 0.3s ease-in-out !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }


        /* ===============================
       OPEN SIDEBAR
    =============================== */

        #desktopSidebar.mobile-sidebar-open {
            transform: translate3d(0, 0, 0) !important;
        }


        /* ===============================
       HIDE SCROLLBAR
    =============================== */

        #desktopSidebar::-webkit-scrollbar {
            width: 0;
            display: none;
        }

    #desktopSidebar {
        scrollbar-width: none;
    }


    /* ===============================
       OVERLAY
    =============================== */

    body.sidebar-mobile-open::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }


    /* ===============================
       SIDEBAR ABOVE OVERLAY
    =============================== */

    #desktopSidebar {
        z-index: 9999 !important;
    }


        /* ===============================
       MENU WIDTH
    =============================== */

        #desktopSidebar .sidebar-menu {
            width: 100%;
        }


            #desktopSidebar .sidebar-menu > a {
                width: 100%;
            }
}

@media (min-width: 0px) {

    /* All submenu hidden initially */
    #desktopSidebar .sidebar-menu .submenu {
        display: none !important;
        height: auto !important;
        overflow: visible !important;
    }


        /* Open submenu */
        #desktopSidebar .sidebar-menu .submenu.submenu-open {
            display: block !important;
            height: auto !important;
            visibility: visible !important;
            opacity: 1 !important;
            overflow: visible !important;
        }


            /* Submenu links */
            #desktopSidebar .sidebar-menu .submenu.submenu-open a {
                display: flex !important;
            }


    /* Arrow */
    .submenu-arrow {
        transition: transform 0.3s ease;
    }

        .submenu-arrow.rotate {
            transform: rotate(180deg);
        }
}

#desktopSidebar .sidebar-menu .submenu a,
#desktopSidebar .sidebar-menu .submenu a span {
    color: black !important;
    -webkit-text-fill-color: black !important;
}

    #desktopSidebar .sidebar-menu .submenu a i {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
    /* =========================================================
   DASHBOARD CONTENT
========================================================= */

.dashboard-content {
    width: 100%;
    max-width: 100%;
    padding: 25px 25px 40px 25px;
    margin: 0;
    box-sizing: border-box;
}


/* =========================================================
   BOOTSTRAP ROW
========================================================= */

.dashboard-content > .row {
    width: auto;
    margin-left: -8px;
    margin-right: -8px;
    box-sizing: border-box;
}

.dashboard-content .row {
    box-sizing: border-box;
}

.dashboard-content [class*="col-"] {
    box-sizing: border-box;
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
}


/* =========================================================
   DASHBOARD CARD
========================================================= */

.dashboard-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;

    background: #ffffff;
    border: 1px solid #eeeeee;

    overflow: hidden;

    box-sizing: border-box;

    height: 100%;
}


/* =========================================================
   CARD BODY
========================================================= */

.card-body-custom {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}


/* =========================================================
   DASHBOARD TITLE
========================================================= */

.dashboard-title {
    margin: 0 0 3px 0;
    padding: 0;

    font-size: 21px;
    line-height: 28px;
    font-weight: 600;

    color: #222222;

    font-family: Arial, sans-serif;
}


.dashboard-subtitle {
    font-size: 11px;
    color: #999999;

    margin-bottom: 20px;

    font-family: Arial, sans-serif;
}


/* =========================================================
   EARNING
========================================================= */

.earning-amount {
    font-size: 23px;
    font-weight: 700;

    color: #111111;

    line-height: 30px;

    margin-bottom: 2px;
}


.earning-number {
    font-size: 23px;
    font-weight: 700;

    color: #111111;

    line-height: 30px;

    margin-top: 18px;
    margin-bottom: 2px;
}


.earning-label {
    font-size: 11px;
    color: #999999;

    line-height: 18px;
}


/* =========================================================
   SUMMARY BUTTON
========================================================= */

.summary-btn {
    border: 0;
    outline: none;

    background: linear-gradient(
        135deg,
        #e91e63,
        #ec4899
    );

    color: #ffffff;

    font-size: 11px;
    font-weight: 600;

    padding: 12px 18px;

    border-radius: 4px;

    margin-top: 20px;

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(233, 30, 99, 0.20);

    transition: all 0.3s ease;
}


.summary-btn:hover {
    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(233, 30, 99, 0.28);
}


/* =========================================================
   CHART TABS
========================================================= */

.chart-tabs {
    width: 100%;

    display: flex;

    justify-content: flex-end;
    align-items: center;

    gap: 22px;

    margin-bottom: 5px;

    box-sizing: border-box;
}


.chart-tabs button {
    position: relative;

    border: none;
    outline: none;

    background: transparent;

    padding: 5px 0 9px 0;

    font-size: 11px;

    color: #777777;

    cursor: pointer;
}


.chart-tabs button.active {
    color: #e91e63;
}


.chart-tabs button.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background: #e91e63;
}


/* =========================================================
   EARNING CHART
========================================================= */

.earning-chart-wrapper {
    width: 100%;
    height: 220px;

    position: relative;

    box-sizing: border-box;
}


#earningChart {
    display: block;

    width: 100% !important;
    height: 220px !important;
}


/* =========================================================
   STAT ROW
========================================================= */

.stat-row {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    border-top: 1px solid #eeeeee;

    background: #ffffff;

    box-sizing: border-box;
}


/* =========================================================
   STAT BOX
========================================================= */

.stat-box {
    min-width: 0;
    min-height: 58px;

    display: flex;

    align-items: center;

    padding: 10px 12px;

    border-right: 1px solid #eeeeee;

    gap: 10px;

    box-sizing: border-box;
}


.stat-box:last-child {
    border-right: none;
}


/* =========================================================
   STAT ICON
========================================================= */

.stat-icon {
    width: 28px;
    height: 28px;

    min-width: 28px;

    border-radius: 50%;

    display: flex;

    justify-content: center;
    align-items: center;

    color: #ffffff;

    font-size: 14px;
}


.icon-pink {
    background: #d81b60;
}


.icon-purple {
    background: #673ab7;
}


.icon-blue {
    background: #159cc2;
}


.icon-yellow {
    background: #e9ad1b;
}


/* =========================================================
   STAT TEXT
========================================================= */

.stat-box > div:last-child {
    min-width: 0;

    display: flex;

    flex-direction: column;
}


.stat-label {
    font-size: 9px;

    line-height: 13px;

    color: #999999;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.stat-value {
    font-size: 10px;

    line-height: 15px;

    font-weight: 600;

    color: #333333;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   TRAFFIC
========================================================= */

.traffic-card {
    min-height: 100%;
}


.traffic-title {
    margin: 0;

    font-size: 16px;

    font-weight: 600;

    color: #333333;

    font-family: Arial, sans-serif;
}


.traffic-chart {
    width: 100%;

    height: 300px;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 5px 20px 15px 20px;

    box-sizing: border-box;
}


#trafficChart {
    display: block;

    width: 100% !important;
    height: 270px !important;
}


/* =========================================================
   SUMMARY CARDS
========================================================= */

.summary-card {
    position: relative;

    width: 100%;

    min-height: 112px;

    padding: 18px;

    border-radius: 7px;

    overflow: hidden;

    color: #ffffff;

    box-sizing: border-box;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.summary-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   SUMMARY COLORS
========================================================= */

.card-pink {
    background:
        linear-gradient(
            135deg,
            #d41473,
            #a91fae
        );
}


.card-purple {
    background:
        linear-gradient(
            135deg,
            #6d25d9,
            #9334dc
        );
}


.card-blue {
    background:
        linear-gradient(
            135deg,
            #0797c2,
            #159fc7
        );
}


.card-orange {
    background:
        linear-gradient(
            135deg,
            #eaa300,
            #f0a900
        );
}


/* =========================================================
   SUMMARY ICON
========================================================= */

.summary-icon {
    font-size: 19px;

    margin-bottom: 7px;

    line-height: 20px;

    color: #ffffff;
}


/* =========================================================
   SUMMARY NUMBER
========================================================= */

.summary-number {
    font-size: 17px;

    line-height: 21px;

    font-weight: 700;

    color: #ffffff;
}


/* =========================================================
   SUMMARY NAME
========================================================= */

.summary-name {
    font-size: 12px;

    line-height: 18px;

    color: #ffffff;

    font-weight: 400;
}


/* =========================================================
   DECORATIVE CURVE
========================================================= */

.summary-card::after {
    content: "";

    position: absolute;

    width: 150px;
    height: 55px;

    right: 15px;
    bottom: -28px;

    border-top:
        1px solid rgba(255,255,255,0.45);

    border-radius: 50%;

    transform: rotate(-5deg);
}


/* =========================================================
   SIDEBAR COLLAPSED
   IMPORTANT:
   Your actual body class is:
   cbp-spmenu-push-sidebar-collapsed
========================================================= */

@media (min-width: 992px) {

    body.cbp-spmenu-push-sidebar-collapsed
    #page-wrapper {

        width: 100%;

        margin-left: 0;

        padding-left: 0;

        box-sizing: border-box;
    }


    body.cbp-spmenu-push-sidebar-collapsed
    .dashboard-content {

        width: 100%;
        max-width: 100%;

        padding-left: 25px;
        padding-right: 25px;

        box-sizing: border-box;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1199px) {

    .dashboard-content {
        padding: 20px;
    }


    .card-body-custom {
        padding: 18px;
    }


    .dashboard-title {
        font-size: 19px;
    }


    .stat-box {
        padding: 8px;

        gap: 7px;
    }


    .stat-label {
        font-size: 8px;
    }


    .stat-value {
        font-size: 9px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .dashboard-content {
        padding: 15px 12px 30px 12px;
    }


    .dashboard-content > .row {
        margin-left: -6px;
        margin-right: -6px;
    }


    .dashboard-content [class*="col-"] {
        padding-left: 6px;
        padding-right: 6px;

        margin-bottom: 12px;
    }


    .dashboard-card {
        border-radius: 7px;
    }


    .card-body-custom {
        padding: 15px;
    }


    .dashboard-title {
        font-size: 19px;
    }


    .earning-amount {
        font-size: 21px;
    }


    .chart-tabs {
        justify-content: flex-start;

        margin-top: 25px;

        gap: 18px;
    }


    .earning-chart-wrapper {
        height: 200px;
    }


    #earningChart {
        height: 200px !important;
    }


    .stat-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .stat-box {
        border-bottom:
            1px solid #eeeeee;
    }


    .stat-box:nth-child(2) {
        border-right: none;
    }


    .stat-box:nth-child(3) {
        border-right:
            1px solid #eeeeee;
    }


    .traffic-chart {
        height: 270px;
    }


    #trafficChart {
        height: 240px !important;
    }


    .summary-card {
        min-height: 105px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .dashboard-content {
        padding: 12px 10px 25px 10px;
    }


    .stat-row {
        grid-template-columns: 1fr;
    }


    .stat-box {
        border-right: none !important;
    }


    .chart-tabs {
        gap: 16px;
    }
}
