/* Repository-wide responsive safeguards for legacy Blade UI. */
html {
    max-width: 100%;
}

body {
    min-width: 0;
}

img,
svg,
canvas,
video,
iframe {
    max-width: 100%;
}

img,
video {
    height: auto;
}

.content-wrapper,
.content,
.panel,
.panel-body,
.panel-heading,
.card,
.modal-content,
.luma-card,
.luma-widget,
.luma-page-shell,
.luma-page,
.serene-shell,
.serene-main {
    min-width: 0;
    max-width: 100%;
}

.panel-heading,
.panel-body,
.luma-card__header,
.luma-card__footer,
.luma-page-hero,
.luma-page-toolbar,
.luma-actions,
.icons-list,
.btn-toolbar,
.form-actions,
.luma-form-actions,
.luma-filter-actions,
.luma-table-toolbar,
.serene-header,
.serene-header__start,
.serene-header__end,
.serene-header__actions {
    min-width: 0;
}

.table-responsive,
.luma-table-wrap,
.pg-table-wrap,
.pm-table-wrap,
.banks-table-wrap,
.invoice-table-wrap,
.luma-api-client-keys-table,
.luma-api-keys-table-responsive {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.table,
.luma-table,
.pg-table {
    overflow-wrap: normal;
}

.dropdown-menu,
.select2-container,
.select2-dropdown {
    max-width: min(92vw, 420px);
}

.select2-container {
    box-sizing: border-box;
    min-width: 0;
    position: relative;
    vertical-align: middle;
}

.select2-dropdown {
    box-sizing: border-box;
    display: block;
    position: absolute;
    left: -100000px;
    width: 100%;
    background: #fff;
}

.select2-container--open .select2-dropdown {
    left: 0;
}

.select2-results {
    display: block;
}

.select2-results__options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.select2-results__option {
    cursor: pointer;
    user-select: none;
}

.select2-search--dropdown {
    display: block;
    padding: 8px;
}

.select2-search--dropdown .select2-search__field {
    box-sizing: border-box;
    width: 100%;
}

.select2-search--hide {
    display: none;
}

.select2-selection--single .select2-selection__rendered {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu {
    max-height: min(60vh, 420px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 1050;
}

.dropdown-menu > li > a,
.dropdown-menu > li > button,
.dropdown-menu > li > label,
.select2-results__option {
    overflow-wrap: anywhere;
    white-space: normal;
}

.select2-results__options {
    max-height: min(60vh, 420px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body.serene-provider .select2-results__options {
    max-height: 240px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.serene-provider .serene-dropdown__panel {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 88px);
    z-index: 1050;
}

.services-edit-page .services-form-container {
    width: 100%;
    max-width: min(1120px, 100%);
}

.services-edit-page .services-select-field {
    min-width: 0;
    overflow: visible;
    position: relative;
}

.services-edit-page .services-select-field.services-select-field--open {
    z-index: 1070;
}

.services-edit-page .services-select-field > .select2-container,
.services-edit-page .services-select-field > .select2-container--open {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
}

.services-edit-page .services-select-field > .services-select2-popup {
    background: #fff !important;
    inset-inline: 0 !important;
    left: 0 !important;
    opacity: 1 !important;
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 6px) !important;
    transform: none !important;
    width: 100% !important;
    z-index: 1060;
}

.services-edit-page .services-select-field > .services-select2-popup .select2-dropdown {
    left: 0 !important;
    margin-top: 0 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    position: relative;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
}

.services-edit-page .services-select2-dropdown {
    max-width: 100% !important;
}

body.serene-provider .serene-dropdown__list {
    max-height: min(60vh, 420px);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body.serene-provider:not(.serene-sidebar-open) {
    overflow-x: hidden;
    overflow-y: auto;
}

body.serene-provider .serene-app,
body.serene-provider .serene-shell {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
}

body.serene-provider .serene-shell,
body.serene-provider .serene-main {
    min-width: 0;
}

body.serene-provider .serene-main {
    flex: 1 0 auto;
    overflow: visible;
}

.form-control,
.input-group,
.select2-container,
.bootstrap-select,
.tokenfield,
.tagsinput,
textarea,
select {
    max-width: 100%;
}

.btn,
.luma-btn,
.pg-btn,
.invoice-btn {
    max-width: 100%;
    white-space: normal;
}

.btn-group,
.input-group,
.luma-actions,
.pg-actions,
.users-status-tabs,
.luma-order-tabs {
    min-width: 0;
}

.modal-dialog {
    max-width: calc(100vw - 24px);
}

.modal-content {
    max-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
}

.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    body.luma-auth--portal-login-page {
        overflow-x: hidden;
    }

    body.luma-auth--portal-login-page .luma-auth-shell,
    body.luma-auth--portal-login-page .luma-brand,
    body.luma-auth--portal-login-page .luma-brand-inner,
    body.luma-auth--portal-login-page .luma-logo {
        min-width: 0;
        max-width: 100%;
    }

    body.luma-auth--portal-login-page .luma-auth-shell {
        width: 100%;
        overflow-x: hidden;
    }

    body.luma-auth--portal-login-page .luma-brand {
        width: 100%;
        min-height: auto;
        overflow: hidden;
        isolation: isolate;
        transform: none;
    }

    body.luma-auth--portal-login-page .luma-brand::before {
        inset: 0;
        background-position: center;
        transform: none;
        animation: none;
    }

    body.luma-auth--portal-login-page .luma-brand-inner {
        width: min(360px, 100%);
    }

    body.luma-auth--portal-login-page .luma-logo {
        width: min(260px, 82vw);
        margin-inline: auto;
        transform: none;
        animation: none;
    }

    body.luma-auth--portal-login-page .luma-logo img {
        width: 100%;
        max-height: 124px;
        object-fit: contain;
    }
}

@media (max-width: 540px) {
    body.luma-auth--portal-login-page .luma-brand {
        padding: 72px 18px 28px;
    }

    body.luma-auth--portal-login-page .luma-logo {
        width: min(232px, 74vw);
        margin-bottom: 18px;
    }

    body.luma-auth--portal-login-page .luma-logo img {
        max-height: 108px;
    }

    body.luma-auth--portal-login-page .luma-brand h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    body.luma-auth--portal-login-page .luma-brand p {
        margin-bottom: 20px;
        font-size: 13px;
        line-height: 1.75;
    }
}

@media (min-width: 769px) {
    body.luma-admin-dashboard .page-content {
        display: flex;
        align-items: stretch;
        min-width: 0;
    }

    body.luma-admin-dashboard .content-wrapper {
        flex: 1 1 auto;
    }
}

@media (max-width: 1024px) {
    body.serene-provider .select2-results__options {
        max-height: 200px !important;
    }

    body.luma-admin-dashboard .content,
    body.luma-admin-dashboard .content-wrapper > .content,
    body.luma-admin-dashboard .luma-page-shell,
    body.luma-admin-dashboard .pg-artists,
    body.serene-provider .serene-main {
        padding: 20px;
    }

    body.luma-admin-dashboard .luma-page-hero,
    body.luma-admin-dashboard .panel-heading,
    body.luma-admin-dashboard .luma-card__header,
    body.serene-provider .luma-page__head {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    body.luma-admin-dashboard .luma-page-toolbar,
    body.luma-admin-dashboard .pg-artists__hero-actions,
    body.serene-provider .luma-page__actions {
        justify-content: flex-start;
    }

    body.luma-admin-dashboard .luma-filter-grid,
    body.luma-admin-dashboard .pg-filter-grid,
    body.serene-provider .luma-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.luma-admin-dashboard .navbar-header {
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
        padding-inline: 12px;
    }

    body.luma-admin-dashboard .navbar-brand {
        min-width: 0;
        max-width: calc(100vw - 140px);
        margin-block: 6px;
    }

    body.luma-admin-dashboard .navbar-brand > img {
        max-width: 100%;
    }

    body.luma-admin-dashboard .navbar-header > ul:not(.nav) {
        margin: 0;
        padding: 0;
    }

    body.luma-admin-dashboard #mySelect {
        max-width: 116px;
    }

    body.luma-admin-dashboard .content,
    body.luma-admin-dashboard .content-wrapper > .content,
    body.luma-admin-dashboard .luma-page-shell,
    body.luma-admin-dashboard .pg-artists,
    body.serene-provider .serene-main {
        padding: 16px;
    }

    body.serene-provider .serene-shell {
        width: 100%;
    }

    body.serene-provider .serene-sidebar {
        max-height: 100vh;
        max-height: 100dvh;
        overflow: hidden;
    }

    body.serene-provider .serene-nav {
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.luma-admin-dashboard .panel,
    body.luma-admin-dashboard .luma-card,
    body.serene-provider .luma-widget {
        border-radius: 12px;
    }

    body.luma-admin-dashboard .panel-heading,
    body.luma-admin-dashboard .panel-body,
    body.luma-admin-dashboard .luma-card__header,
    body.luma-admin-dashboard .luma-card__body,
    body.luma-admin-dashboard .luma-card__footer,
    body.serene-provider .luma-widget {
        padding: 14px;
    }

    body.luma-admin-dashboard .row,
    body.serene-provider .row {
        margin-inline: -8px;
    }

    body.luma-admin-dashboard [class*="col-"],
    body.serene-provider [class*="col-"] {
        padding-inline: 8px;
        min-width: 0;
    }

    body.luma-admin-dashboard .form-horizontal .control-label {
        padding-top: 0;
        margin-bottom: 6px;
        text-align: start;
    }

    body.luma-admin-dashboard .form-group,
    body.serene-provider .form-group {
        margin-bottom: 14px;
    }

    body.luma-admin-dashboard .form-actions,
    body.luma-admin-dashboard .luma-form-actions,
    body.serene-provider .luma-form-actions {
        align-items: stretch;
        flex-direction: column;
        justify-content: stretch;
    }

    body.luma-admin-dashboard .form-actions .btn,
    body.luma-admin-dashboard .luma-form-actions .btn,
    body.luma-admin-dashboard .luma-form-actions .luma-btn,
    body.serene-provider .luma-form-actions .luma-btn {
        width: 100%;
    }

    body.luma-admin-dashboard .luma-filter-actions,
    body.serene-provider .luma-filter-actions {
        align-items: stretch;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    body.luma-admin-dashboard .luma-filter-actions > .luma-btn,
    body.serene-provider .luma-filter-actions > .luma-btn {
        flex: 1 1 128px;
        min-width: 0;
        width: auto;
    }

    body.luma-admin-dashboard .btn-toolbar,
    body.luma-admin-dashboard .luma-actions,
    body.luma-admin-dashboard .pg-actions,
    body.serene-provider .luma-actions,
    body.serene-provider .pg-actions {
        flex-wrap: wrap;
    }

    body.serene-provider .luma-page,
    body.serene-provider .luma-page__head,
    body.serene-provider .luma-page__title-wrap,
    body.serene-provider .luma-widget--table {
        min-width: 0;
        max-width: 100%;
    }

    body.serene-provider .luma-page,
    body.serene-provider .luma-widget--table {
        overflow-x: hidden;
    }

    body.serene-provider .luma-widget--table {
        width: 100%;
        padding: 0;
    }

    body.serene-provider .luma-order-tabs-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.luma-admin-dashboard .table-responsive,
    body.luma-admin-dashboard .luma-table-wrap,
    body.luma-admin-dashboard .pg-table-wrap,
    body.luma-admin-dashboard .pm-table-wrap,
    body.luma-admin-dashboard .banks-table-wrap,
    body.serene-provider .table-responsive,
    body.serene-provider .luma-table-wrap,
    body.serene-provider .pg-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.luma-admin-dashboard .table:not(.table-condensed),
    body.luma-admin-dashboard .luma-table,
    body.serene-provider .table,
    body.serene-provider .luma-table {
        min-width: 680px;
    }

    body.luma-admin-dashboard .table th,
    body.luma-admin-dashboard .table td,
    body.luma-admin-dashboard .luma-table th,
    body.luma-admin-dashboard .luma-table td,
    body.serene-provider .table th,
    body.serene-provider .table td,
    body.serene-provider .luma-table th,
    body.serene-provider .luma-table td {
        max-width: 420px;
        padding: 10px 12px;
        font-size: 12px;
    }

    body.luma-admin-dashboard .table td,
    body.luma-admin-dashboard .luma-table td,
    body.serene-provider .table td,
    body.serene-provider .luma-table td {
        overflow-wrap: anywhere;
    }

    body.luma-admin-dashboard .table th:first-child,
    body.luma-admin-dashboard .table td:first-child,
    body.luma-admin-dashboard .luma-table th:first-child,
    body.luma-admin-dashboard .luma-table td:first-child,
    body.serene-provider .table th:first-child,
    body.serene-provider .table td:first-child,
    body.serene-provider .luma-table th:first-child,
    body.serene-provider .luma-table td:first-child {
        min-width: 88px;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: keep-all !important;
    }

    body.luma-admin-dashboard .luma-table__id,
    body.serene-provider .luma-table__id,
    body.serene-provider .table td:first-child .text-semibold {
        display: inline-flex;
        align-items: center;
        min-width: max-content;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: keep-all !important;
        direction: ltr;
        unicode-bidi: isolate;
    }

    body.serene-provider .table th:nth-last-child(2),
    body.serene-provider .table td:nth-last-child(2) {
        min-width: 116px;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: keep-all !important;
    }

    body.luma-admin-dashboard .table td:has(.luma-status),
    body.luma-admin-dashboard .table td:has(.label),
    body.luma-admin-dashboard .table td:has(.badge),
    body.luma-admin-dashboard .luma-table td:has(.luma-status),
    body.luma-admin-dashboard .luma-table td:has(.label),
    body.luma-admin-dashboard .luma-table td:has(.badge),
    body.serene-provider .table td:has(.luma-status),
    body.serene-provider .table td:has(.label),
    body.serene-provider .table td:has(.badge),
    body.serene-provider .luma-table td:has(.luma-status),
    body.serene-provider .luma-table td:has(.label),
    body.serene-provider .luma-table td:has(.badge) {
        min-width: 136px;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: keep-all !important;
    }

    body.luma-admin-dashboard .luma-status,
    body.luma-admin-dashboard .label,
    body.luma-admin-dashboard .badge,
    body.serene-provider .luma-status,
    body.serene-provider .label,
    body.serene-provider .badge {
        max-width: none !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: keep-all !important;
    }

    body.luma-admin-dashboard .pagination,
    body.serene-provider .pagination {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    body.luma-admin-dashboard .pagination > li > a,
    body.luma-admin-dashboard .pagination > li > span,
    body.serene-provider .pagination > li > a,
    body.serene-provider .pagination > li > span {
        margin: 0;
        min-width: 36px;
        text-align: center;
    }

    body.luma-admin-dashboard .dropdown-menu,
    body.serene-provider .dropdown-menu {
        max-width: calc(100vw - 32px);
        white-space: normal;
    }

    body.luma-admin-dashboard .modal-dialog,
    body.serene-provider .modal-dialog {
        width: auto;
        margin: 10px;
    }

    .services-edit-page .services-form-container .panel-heading,
    .services-edit-page .services-form-container .panel-body,
    .services-edit-page .services-form-container fieldset {
        padding-inline: 14px;
    }

    .services-edit-page .services-form-container .form-group {
        display: block;
    }

    .services-edit-page .services-form-container .form-group > [class*="col-"] {
        float: none;
        min-width: 0;
        padding-inline: 0;
        width: 100%;
    }

    .services-edit-page .service-radio-group {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .services-edit-page .service-radio-pill {
        justify-content: center;
        width: 100%;
    }

    .services-edit-page .services-select-field > .services-select2-popup {
        inset-inline: auto !important;
        left: auto !important;
        margin-top: 6px;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        z-index: 1;
    }
}

@media (max-width: 1024px) {
    body.serene-provider .serene-app {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    body.serene-provider .serene-shell {
        width: 100% !important;
        max-width: 100vw !important;
        margin-inline: 0 !important;
        overflow-x: hidden;
    }

    body.serene-provider .serene-main {
        width: 100%;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    body.serene-provider .serene-backdrop:not([hidden]) {
        position: fixed !important;
        inset: 0 !important;
        z-index: 3000 !important;
        display: block !important;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
    }

    body.serene-provider .serene-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        z-index: 3001 !important;
        width: min(82vw, var(--s-sidebar)) !important;
        max-width: min(82vw, var(--s-sidebar)) !important;
        max-height: 100vh;
        max-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    html[dir="rtl"] body.serene-provider .serene-sidebar {
        inset-inline-start: 0 !important;
        inset-inline-end: auto !important;
        right: 0 !important;
        left: auto !important;
        transform: translateX(100%) !important;
    }

    html[dir="ltr"] body.serene-provider .serene-sidebar {
        inset-inline-start: 0 !important;
        inset-inline-end: auto !important;
        left: 0 !important;
        right: auto !important;
        transform: translateX(-100%) !important;
    }

    body.serene-provider:not(.serene-sidebar-open) .serene-sidebar:not(.is-open) {
        visibility: hidden;
        pointer-events: none;
    }

    html[dir="rtl"] body.serene-provider:not(.serene-sidebar-open) .serene-sidebar:not(.is-open) {
        transform: translateX(100%) !important;
    }

    body.serene-provider.serene-sidebar-open .serene-sidebar,
    body.serene-provider .serene-sidebar.is-open {
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0) !important;
    }

    html[dir="rtl"] body.serene-provider.serene-sidebar-open .serene-sidebar,
    html[dir="rtl"] body.serene-provider .serene-sidebar.is-open,
    html[dir="ltr"] body.serene-provider.serene-sidebar-open .serene-sidebar,
    html[dir="ltr"] body.serene-provider .serene-sidebar.is-open {
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0) !important;
    }

    body.serene-provider.serene-sidebar-open .serene-header,
    body.serene-provider.serene-sidebar-open .serene-main {
        z-index: auto !important;
    }

    body.serene-provider .serene-backdrop[hidden] {
        display: none !important;
    }

    body.serene-provider .luma-page--orders,
    body.serene-provider .luma-page--orders .luma-page__head,
    body.serene-provider .luma-page--orders .luma-widget--table {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.serene-provider .luma-page--orders {
        overflow-x: hidden;
        gap: 16px;
    }

    body.serene-provider .luma-page--orders .luma-widget--table {
        overflow: hidden;
        padding: 0 !important;
    }

    body.serene-provider .luma-page--orders .luma-order-filters,
    body.serene-provider .luma-page--orders .luma-order-tabs-wrap,
    body.serene-provider .luma-page--orders .luma-order-active,
    body.serene-provider .luma-page--orders .luma-pagination {
        margin-inline: 12px;
        max-width: calc(100% - 24px);
    }

    body.serene-provider .luma-page--orders .luma-order-filters {
        width: auto;
    }

    body.serene-provider .luma-page--orders .luma-order-filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.serene-provider .luma-page--orders .luma-order-filters__field--customer,
    body.serene-provider .luma-page--orders .luma-order-filters__actions {
        grid-column: 1 / -1;
    }

    body.serene-provider .luma-page--orders .luma-order-filters__actions {
        justify-content: flex-start;
        width: 100%;
    }

    body.serene-provider .luma-page--orders .luma-order-filters__actions .btn {
        flex: 0 0 auto;
        width: 110px;
        height: 48px;
        min-height: 48px;
    }

    body.serene-provider .luma-page--orders .luma-order-tabs-wrap {
        padding: 10px 0 8px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.serene-provider .luma-page--orders .luma-order-tabs {
        width: max-content;
        min-width: max-content;
        max-width: none;
        gap: 6px;
    }

    body.serene-provider .luma-page--orders .luma-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: visible;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.serene-provider .luma-page--orders .luma-table-wrap > .luma-table {
        width: max-content !important;
        min-width: 720px !important;
        table-layout: auto !important;
    }

    html[dir="rtl"] body.serene-provider,
    html[dir="rtl"] body.serene-provider .serene-app,
    html[dir="rtl"] body.serene-provider .serene-shell,
    html[dir="rtl"] body.serene-provider .serene-main {
        width: 100%;
        max-width: 100vw !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        overflow-x: hidden !important;
    }

    html[dir="rtl"] body.serene-provider .luma-page--orders .luma-order-tabs-wrap,
    html[dir="rtl"] body.serene-provider .luma-page--orders .luma-table-wrap {
        direction: ltr;
    }

    html[dir="rtl"] body.serene-provider .luma-page--orders .luma-order-tabs,
    html[dir="rtl"] body.serene-provider .luma-page--orders .luma-table {
        direction: rtl;
    }

    html[dir="rtl"] body.serene-provider .luma-page--orders .luma-order-filters,
    html[dir="rtl"] body.serene-provider .luma-page--orders .luma-order-active,
    html[dir="rtl"] body.serene-provider .luma-page--orders .luma-pagination {
        direction: rtl;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    html[dir="rtl"] body.serene-provider .luma-page--orders .luma-order-filters__grid {
        grid-template-columns: 1fr;
    }

    html[dir="rtl"] body.serene-provider .luma-page--orders .luma-order-filters__actions {
        align-items: stretch;
        flex-direction: row;
    }

    html[dir="rtl"] body.serene-provider .luma-page--orders .luma-order-filters__actions .btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
    }
}

@media (max-width: 640px) {
    body.serene-provider .luma-page--orders .luma-order-filters,
    body.serene-provider .luma-page--orders .luma-order-tabs-wrap,
    body.serene-provider .luma-page--orders .luma-order-active,
    body.serene-provider .luma-page--orders .luma-pagination {
        margin-inline: 8px;
        max-width: calc(100% - 16px);
    }

    body.serene-provider .luma-page--orders .luma-order-filters__grid {
        grid-template-columns: 1fr;
    }

    body.serene-provider .luma-page--orders .luma-order-filters__toggle {
        padding: 12px;
    }

    body.serene-provider .luma-page--orders .luma-order-filters__body {
        padding-inline: 12px;
    }

    body.serene-provider .luma-page--orders .luma-order-filters__actions {
        align-items: stretch;
        flex-direction: column;
    }

    body.serene-provider .luma-page--orders .luma-order-filters__actions .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    body.luma-admin-dashboard .content,
    body.luma-admin-dashboard .content-wrapper > .content,
    body.luma-admin-dashboard .luma-page-shell,
    body.luma-admin-dashboard .pg-artists,
    body.serene-provider .serene-main {
        padding: 12px;
    }

    body.serene-provider .serene-main {
        min-height: calc(100vh - 64px);
        min-height: calc(100dvh - 64px);
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    body.luma-admin-dashboard .luma-page-title,
    body.luma-admin-dashboard .pg-artists__hero-title,
    body.serene-provider .luma-page__title {
        font-size: 20px;
        line-height: 1.35;
    }

    body.luma-admin-dashboard .luma-page-toolbar,
    body.luma-admin-dashboard .pg-artists__hero-actions,
    body.luma-admin-dashboard .users-status-tabs,
    body.serene-provider .luma-page__actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    body.luma-admin-dashboard .luma-page-toolbar .btn,
    body.luma-admin-dashboard .luma-page-toolbar .luma-btn,
    body.luma-admin-dashboard .pg-artists__hero-actions .pg-btn,
    body.luma-admin-dashboard .users-status-tabs .luma-btn,
    body.serene-provider .luma-page__actions .luma-btn {
        width: 100%;
    }

    body.luma-admin-dashboard .luma-filter-grid,
    body.luma-admin-dashboard .pg-filter-grid,
    body.serene-provider .luma-filter-grid {
        grid-template-columns: 1fr;
    }

    body.luma-admin-dashboard .modal-footer,
    body.serene-provider .modal-footer {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    body.luma-admin-dashboard .modal-footer .btn,
    body.serene-provider .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 430px) {
    body.serene-provider .select2-results__options {
        max-height: 170px !important;
    }

    body.luma-admin-dashboard .table:not(.table-condensed),
    body.luma-admin-dashboard .luma-table,
    body.serene-provider .table,
    body.serene-provider .luma-table {
        min-width: 620px;
    }

    body.luma-admin-dashboard .btn,
    body.luma-admin-dashboard .luma-btn,
    body.luma-admin-dashboard .pg-btn,
    body.serene-provider .btn,
    body.serene-provider .luma-btn {
        min-height: 40px;
        padding-inline: 11px;
    }
}

@media print {
    .table,
    .luma-table,
    .pg-table {
        min-width: 0;
    }
}
