/* AdminPanel shared responsive utilities — breakpoints: 480 / 768 / 960 / 1024 */
:root {
    --qlq-space-page: 1.25rem;
    --qlq-font-page-title: 1.5rem;
    --qlq-touch-min: 2.75rem; /* ~44px */
}

@media (max-width: 768px) {
    :root {
        --qlq-space-page: 0.75rem;
        --qlq-font-page-title: 1.25rem;
    }
}

@media (max-width: 480px) {
    :root {
        --qlq-space-page: 0.5rem;
        --qlq-font-page-title: 1.125rem;
    }
}

html,
body {
    overflow-x: clip;
    max-width: 100%;
}

.table-responsive-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.page-toolbar-responsive {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .page-toolbar-responsive {
        flex-direction: column;
        align-items: stretch;
    }

    .mud-dialog {
        max-width: calc(100vw - 1rem) !important;
        margin: 0.5rem;
    }

    .mud-dialog .mud-dialog-content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .mud-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .mud-button-root.mud-icon-button {
        min-width: var(--qlq-touch-min);
        min-height: var(--qlq-touch-min);
    }
}
