.client-dashboard {
    width: min(1220px, 100%);
    margin-inline: auto;
    padding-inline: clamp(0.2rem, 1.3vw, 0.95rem);
    overflow-x: clip;
}

.client-page-hero,
.client-page-panel {
    border-radius: 16px;
}

.client-dashboard .mud-paper-root,
.client-dashboard .mud-grid-item,
.client-dashboard .mud-stack-root,
.client-dashboard .mud-alert-root {
    min-width: 0;
}

.client-dashboard .mud-chip-root {
    max-width: 100%;
}

.client-dashboard .mud-chip-content,
.client-dashboard .mud-link-root,
.client-dashboard .mud-typography-root {
    overflow-wrap: anywhere;
}

.client-page-panel .mud-table-container {
    overflow-x: auto;
    scrollbar-gutter: stable;
}

.client-kpi-card .mud-typography-h5 {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.client-dashboard .mud-table-root .mud-table-cell {
    vertical-align: top;
}

.client-dashboard .mud-table-root .mud-button-root {
    white-space: normal;
}

.client-page-hero > .mud-stack-root {
    gap: 1rem;
}

.client-page-hero > .mud-stack-root > .mud-stack-root:last-child,
.client-page-panel > .mud-stack-root[style*="justify-content: space-between"] > .mud-stack-root:last-child {
    min-width: 0;
}

@media (max-width: 1199px) {
    .client-main-container {
        padding-inline: 1rem;
    }

    .client-page-hero {
        padding: 1.15rem !important;
    }

    .client-page-panel {
        padding: 1rem !important;
    }
}

@media (max-width: 900px) {
    .client-dashboard {
        padding-inline: 0.5rem;
    }

    .client-main-container {
        padding: 5.05rem 0.85rem 1.25rem;
    }

    .client-page-hero .mud-typography-h4 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .client-page-hero > .mud-stack-root,
    .client-page-panel > .mud-stack-root[style*="justify-content: space-between"] {
        align-items: flex-start !important;
    }

    .client-page-hero > .mud-stack-root > .mud-stack-root:last-child,
    .client-page-panel > .mud-stack-root[style*="justify-content: space-between"] > .mud-stack-root:last-child {
        width: 100%;
        justify-content: flex-start !important;
    }

    .client-page-hero > .mud-stack-root > .mud-stack-root:last-child .mud-button-root,
    .client-page-panel > .mud-stack-root[style*="justify-content: space-between"] > .mud-stack-root:last-child .mud-button-root {
        flex: 1 1 14rem;
    }

    .client-page-panel .mud-table-cell {
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .client-dashboard {
        padding-inline: 0.25rem;
    }

    .client-main-container {
        padding: 4.8rem 0.45rem 0.95rem;
    }

    .client-page-hero {
        padding: 0.95rem !important;
    }

    .client-page-panel {
        padding: 0.85rem !important;
    }

    .client-page-hero .mud-button-root,
    .client-page-panel .mud-button-root {
        min-height: 40px;
    }

    .client-page-hero > .mud-stack-root > .mud-stack-root:last-child,
    .client-page-panel > .mud-stack-root[style*="justify-content: space-between"] > .mud-stack-root:last-child,
    .client-page-panel .mud-stack-root[style*="row"] {
        width: 100%;
    }

    .client-dashboard .mud-chip-root {
        max-width: 100%;
    }

    .client-page-hero .mud-button-root {
        width: 100%;
    }

    .client-page-panel .mud-stack-root[style*="row"] .mud-button-root {
        width: 100%;
        justify-content: flex-start;
    }

    .client-dashboard .mud-table-cell {
        font-size: 0.82rem;
        vertical-align: top;
    }

    .client-dashboard .mud-table-cell .mud-chip-root {
        max-width: 100%;
        white-space: normal;
    }

    .client-dashboard .mud-table-cell .mud-stack-root {
        min-width: 0;
    }

    .client-dashboard .mud-table-cell .mud-link-root {
        word-break: break-word;
    }

    .client-dashboard .mud-table-root .mud-table-cell .mud-button-root,
    .client-dashboard .mud-table-root .mud-table-cell .mud-chip-root {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (min-width: 768px) and (max-width: 1366px) {
    .client-dashboard {
        width: min(1120px, 100%);
        padding-inline: 0.75rem;
    }

    .client-page-hero .mud-typography-h4 {
        font-size: 1.75rem;
    }

    .client-page-hero,
    .client-page-panel {
        border-radius: 18px;
    }

    .client-page-panel .mud-typography-h6 {
        font-size: 1.04rem;
    }

    .client-page-panel .mud-button-root {
        min-height: 42px;
    }
}
