/* Dashboard layout adjustments shared by the admin and center workspaces. */
.main-content,
.page-content,
.page-content .container-fluid,
.page-content .row > [class*="col-"],
.card,
.card-body {
    min-width: 0;
}

.table-responsive {
    max-width: 100%;
}

.form-control,
.form-select,
.select2-container {
    max-width: 100%;
}

.dash-category-list {
    display: grid;
    gap: 0.65rem;
}

.dash-category-item {
    display: grid;
    grid-template-columns: 0.5rem minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.55rem;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.dash-category-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-top: 0.32rem;
}

.dash-category-label {
    overflow-wrap: anywhere;
}

.dash-category-item strong {
    text-align: end;
    font-variant-numeric: tabular-nums;
}

#saleing-categories {
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
}

#overview {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .page-content {
        padding-inline: 0.75rem;
    }

    .page-content .container-fluid {
        max-width: 100%;
        padding-inline: 0;
    }

    .page-content .card-body {
        padding: 1rem;
    }

    .dash-filter .btn-period {
        white-space: normal;
    }

    .dash-stat h4 {
        overflow-wrap: anywhere;
    }

    .page-content .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 575.98px) {
    .navbar-header {
        max-width: 100%;
        padding-inline: 0.4rem;
    }

    .navbar-header > .d-flex {
        min-width: 0;
    }

    .navbar-header .page-title-box {
        min-width: 0;
    }

    .navbar-header .page-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-header .header-item {
        padding-inline: 0.45rem;
    }

    .navbar-header .header-profile-user {
        width: 34px;
        height: 34px;
    }

    .page-title-box .breadcrumb {
        flex-wrap: wrap;
    }

    .dash-filter .btn-period {
        flex: 1 1 auto;
    }

    .dash-stat .card-body {
        padding: 1rem;
    }
}
