html {
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

input,
select,
textarea,
button {
    font-size: 16px;
}

@media (max-width: 900px) {
    body {
        display: block !important;
        min-width: 0 !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .logo {
        padding: 14px !important;
    }

    .logo img {
        width: min(180px, 70vw) !important;
        max-width: 100%;
    }

    .menu {
        display: flex !important;
        gap: 8px;
        overflow-x: auto;
        padding: 10px !important;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .menu a {
        flex: 0 0 auto;
        padding: 11px 13px !important;
        border-radius: 8px;
        background: #1f2937;
        font-size: 14px;
    }

    .content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 16px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .card,
    .box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px !important;
        border-radius: 10px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }

    h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        word-break: break-word;
    }

    h2 {
        font-size: 22px !important;
        line-height: 1.25 !important;
    }

    h3 {
        font-size: 18px !important;
    }

    .grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .indicador {
        padding: 16px !important;
    }

    .indicador h2 {
        font-size: 28px !important;
    }

    table {
        display: table;
        width: max-content;
        min-width: 1040px;
        max-width: none;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        table-layout: auto;
    }

    table th:last-child,
    table td:last-child {
        min-width: 280px;
    }

    table td.acoes,
    table .acoes {
        min-width: 330px;
        white-space: nowrap;
    }

    table td .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        margin: 4px 4px 4px 0;
    }

    .indicador,
    .pergunta,
    .comentario,
    .note {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .link,
    code,
    pre {
        display: inline-block;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }

    p[style*="word-break"],
    td[style*="word-break"],
    div[style*="word-break"] {
        word-break: normal !important;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }

    th,
    td {
        padding: 10px !important;
        font-size: 14px !important;
    }

    input,
    select,
    textarea {
        width: 100% !important;
        max-width: 100% !important;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    select {
        overflow-x: auto;
        white-space: nowrap;
        text-overflow: clip;
        touch-action: pan-x pan-y;
    }

    textarea {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    button,
    .btn {
        min-height: 44px;
        line-height: 1.2;
    }

    .acoes a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 38px;
        min-height: 38px;
        margin: 4px;
    }

    .header {
        padding: 16px !important;
    }

    .header img {
        max-width: 170px !important;
    }
}

@media (max-width: 620px) {
    body {
        background: #f5f7fa;
    }

    .content {
        padding: 12px !important;
    }

    .card,
    .box {
        padding: 15px !important;
        margin-bottom: 14px !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh;
        margin: 0 !important;
        padding: 18px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .pergunta {
        padding: 16px !important;
        margin-bottom: 16px !important;
        border-radius: 10px !important;
    }

    .pergunta label.titulo {
        font-size: 16px !important;
        line-height: 1.35;
    }

    .opcao {
        padding: 8px 0;
        line-height: 1.4;
    }

    body.login-page {
        display: flex !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0;
        background: #fff;
        overflow: hidden;
    }

    body.login-page .login {
        width: 100% !important;
        max-width: none !important;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 28px 22px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    body.login-page .login img {
        max-width: 260px !important;
    }

    body.login-page input {
        min-height: 52px;
        font-size: 16px !important;
        padding: 14px !important;
    }

    body.login-page button {
        min-height: 52px;
        font-size: 16px !important;
        padding: 14px !important;
    }

    .btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        margin-top: 6px;
    }
}
