/* Hub — ajustes mobile. Desktop inalterado. */

@media (max-width: 640.98px) {
    .hub-page {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .hub-header {
        padding-top: calc(1rem + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: 1rem !important;
    }

    .hub-header .container > .d-flex {
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .hub-header .d-flex.flex-column.align-items-end {
        align-items: stretch !important;
        width: 100%;
    }

    .hub-logo {
        height: 2.25rem;
        align-self: flex-end;
    }

    .hub-title {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .hub-subtitle {
        max-width: none;
        font-size: 0.9rem;
    }

    .hub-header .d-flex.flex-wrap.gap-2 {
        width: 100%;
        justify-content: flex-start !important;
    }

    .hub-header .btn,
    .hub-header .hub-client-btn {
        flex: 1 1 calc(50% - 0.35rem);
        justify-content: center;
        min-height: 2.75rem;
    }

    .hub-client-btn {
        max-width: none;
    }

    .hub-client-name {
        max-width: 8rem;
    }

    .hub-client-menu {
        left: 0;
        right: 0;
        max-width: none;
        min-width: 0;
        z-index: 1050;
    }

    .hub-client-overlay {
        z-index: 1040;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    main.container {
        padding-top: 1rem !important;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .hub-card {
        border-radius: 0.85rem;
    }

    .hub-card:hover {
        transform: none;
    }

    .hub-card-icon {
        padding: 1rem 1.15rem;
        font-size: 1.5rem;
    }

    .hub-card-body {
        padding: 1rem 1.15rem 1.25rem;
    }

    .hub-card h2 {
        font-size: 1.15rem;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        border-radius: 0.5rem;
    }

    .table-fixed {
        min-width: 36rem;
    }

    .form-control,
    .form-select {
        font-size: 16px;
        min-height: 2.75rem;
    }

    .form-control[style*="max-width"],
    input.form-control[style*="max-width"] {
        max-width: 100% !important;
        width: 100% !important;
    }

    .btn {
        min-height: 2.5rem;
    }

    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-footer {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    .modal-footer .btn {
        flex: 1 1 auto;
        min-height: 2.75rem;
    }

    .hub-footer {
        padding: 0.75rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        font-size: 0.75rem;
        text-align: center;
    }

    h1, .h1 { font-size: 1.5rem; }
    h2, .h2 { font-size: 1.25rem; }
}
