html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

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

.navbar-brand {
    min-width: 0;
}

.form-control,
.form-select,
.btn {
    max-width: 100%;
}

.history-table,
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.top-strip-inner {
    display: grid !important;
    grid-template-columns: 4fr 6fr 2fr;
    align-items: center;
    justify-items: stretch;
    gap: 16px;
    width: 100%;
    min-height: 104px !important;
    height: auto !important;
}

.top-strip-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.top-strip-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
    max-width: none !important;
}

.top-strip-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-note,
.header-subtext {
    white-space: normal !important;
    margin: 0;
    font-family: "Segoe UI", "Aptos", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: #2f567a;
}

.header-gap {
    height: 0.24rem;
}

.top-strip {
    padding: 14px 22px !important;
    overflow: hidden;
}

.top-strip img[src*="LogoSeekiSFundo"],
body > .container > .d-flex:first-child img[src*="LogoSeekiSFundo"] {
    max-height: 170px !important;
    width: auto;
    display: block;
}

@media (max-width: 991.98px) {
    .top-strip-inner {
        grid-template-columns: 1fr !important;
        height: auto !important;
        min-height: 0;
        text-align: center;
        gap: 14px;
    }

    .top-strip-logo,
    .top-strip-center,
    .top-strip-action {
        justify-content: center !important;
    }

    .top-strip-center {
        max-width: 100% !important;
    }

    .history-table {
        overflow-x: auto;
    }
}

@media (max-width: 767.98px) {
    .container,
    .container-fluid {
        padding-left: 14px;
        padding-right: 14px;
    }

    .top-strip {
        padding: 14px !important;
        border-radius: 18px !important;
    }

    .top-strip .d-flex,
    body > .container > .d-flex:first-child {
        height: auto !important;
        min-height: 0;
        flex-wrap: wrap;
        justify-content: center !important;
        gap: 12px;
        text-align: center;
    }

    .top-strip img[src*="LogoSeekiSFundo"],
    body > .container > .d-flex:first-child img[src*="LogoSeekiSFundo"] {
        max-height: 120px !important;
        width: auto;
    }

    .top-strip .navbar-brand,
    body > .container > .d-flex:first-child .navbar-brand {
        display: inline-flex;
        justify-content: center;
        width: 100%;
    }

    .top-strip .btn,
    body > .container > .d-flex:first-child .btn {
        white-space: normal;
    }

    .header-subtext,
    .header-note {
        white-space: normal !important;
    }

    .hero,
    section[style*="padding:60px 0"] {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }

    .hero h1,
    section h1 {
        overflow-wrap: anywhere;
    }

    .section {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    .intro-card,
    .hero-panel,
    .content-shell,
    .section-card,
    .auth-card,
    .form-box {
        border-radius: 18px !important;
    }

    .intro-body,
    .hero-panel,
    .content-shell,
    .section-card,
    .auth-header,
    .auth-body,
    .form-box {
        padding: 18px !important;
    }

    .form-box {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .row {
        --bs-gutter-x: 1rem;
    }

    .hero-badges,
    .page-actions,
    .coverage-actions {
        flex-wrap: wrap !important;
    }

    .hero-badge,
    .page-actions .btn,
    .coverage-actions .btn {
        flex: 1 1 100%;
    }

    .mini-stat-grid,
    .stat-grid,
    .pedido-grid,
    .coverage-note,
    .form-grid,
    .result-grid {
        grid-template-columns: 1fr !important;
    }

    .history-head,
    .history-line {
        min-width: 780px !important;
    }

    footer .container > div {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .container > div > div {
        margin-left: 0 !important;
        text-align: center !important;
    }

    footer {
        text-align: center;
    }
}

@media (max-width: 420px) {
    .top-strip img[src*="LogoSeekiSFundo"],
    body > .container > .d-flex:first-child img[src*="LogoSeekiSFundo"] {
        max-height: 96px !important;
    }

    .btn {
        width: 100%;
    }

    .btn + .btn,
    .btn.me-2 {
        margin-right: 0 !important;
    }
}
