/* Shared small-screen layout; keep dense records inside their table scrollers. */
.content-page .card,
.content-page fieldset,
.content-page .row > * {
    min-width: 0;
}

@media (max-width: 1039.98px) {
    body[data-sidebar="mobile-open"] {
        overflow: hidden;
    }

    .content-page {
        padding: 64px 12px 24px;
        min-height: 100dvh;
    }

    .content-page > .content > .container-fluid {
        padding-right: 0;
        padding-left: 0;
    }

    .content-page .footer {
        position: static;
        padding: 20px 0 0;
    }

    .sidebar-toggle-menu {
        top: 12px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 575.98px) {
    .content-page .card-body,
    .content-page .card-header,
    .content-page .card-footer {
        padding: 16px;
    }

    .content-page .card-header.d-flex,
    .content-page .card-footer.d-flex {
        flex-wrap: wrap;
        gap: 12px;
    }

    .content-page form .card-footer > .btn {
        flex: 1 1 100%;
        white-space: normal;
    }

    .content-page .form-control,
    .content-page .form-select,
    .account-page .form-control,
    .account-page .form-select {
        min-height: 44px;
        font-size: 16px; /* Avoid browser zoom when focusing a phone input. */
    }

    .content-page .btn,
    .account-page .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .content-page .d-flex.gap-2.align-self-start {
        flex-wrap: wrap;
    }

    .content-page h4 {
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .content-page .table-responsive {
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .content-page .table-responsive > .table {
        min-width: 540px;
    }

    .notification-attention-panel__header .d-flex {
        flex-wrap: wrap;
    }
}
