* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Sora", sans-serif;
}

/* Corpo da página */
body {
    height: 100vh;
    background-color: transparent;
    margin: 0;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;  /* Permite que o conteúdo se expanda na tela */
    justify-content: flex-start;
}

/* Ajuste do container para preencher a tela */
.container {
    width: 100%;
    height: calc(100vh - 60px);  /* Subtrai a altura do menu inferior */
    background-color: #fff;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;  /* Torna o conteúdo rolável */
}

/* Menu de navegação inferior */
.navegacao {
  position: relative; /* Remove a flutuação */
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  box-shadow: none; /* Remover a sombra */
  margin-top: auto;  /* Garante que o menu esteja na parte inferior */
}

.navegacao ul {
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.navegacao .lista {
  flex: 1;
  text-align: center;
}

.navegacao .lista a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: black;
  text-decoration: none;
  padding: 10px 0;
}

.navegacao .lista.ativo {
  /* Nenhum estilo de bola ou destaque visual */
}

/* Logo centralizada */
.header-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.header-logo img {
  max-width: 30%;  /* Ajuste a largura conforme necessário */
  margin: 0 auto;
}

/* Ajustes para permitir rolagem do conteúdo */
#reviews {
    max-height: 80vh; /* Ajusta para permitir rolagem no conteúdo */
    overflow-y: auto;
}

#reviews li:last-child {
    margin-bottom: 300px; /* Ajuste conforme necessário */
}

#orderServices {
    max-height: 150px;
    overflow-y: auto; /* Rolagem vertical */
    padding: 10px;
}


.header-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.header-logo img {
  max-width: 30%; /* Você pode ajustar a porcentagem conforme necessário */
  margin: 0 auto;
}



:root {
    --primary-color: #00bfae; /* Verde (Exemplo) */
    --secondary-color: #333;  /* Cinza escuro (Exemplo) */
    --background-color: #f1f1f1; /* Cor de fundo neutra */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--secondary-color);
}

.btn {
    background-color: var(--primary-color);
    color: white;
}

.header-logo img {
    max-width: 150px;
    margin-bottom: 20px;
}

.navegacao .lista a {
    color: var(--secondary-color);
}

.navegacao .lista.ativo a {
    color: var(--primary-color);
}


#reviews {
  max-height: calc(100vh - 200px); /* ou o tamanho que fizer sentido */
  overflow-y: auto;
}

/* ============================================================
   MIMUS PET — AJUSTE VISUAL EXCLUSIVO PARA DESKTOP
   Abaixo de 1024px, o layout original permanece sem alterações.
   Esta camada altera somente apresentação; não muda HTML ou JS.
   ============================================================ */
@media screen and (min-width: 1024px) {
    :root {
        --desktop-bg: #eef3f9;
        --desktop-surface: #ffffff;
        --desktop-ink: #17243a;
        --desktop-muted: #728198;
        --desktop-border: #e2eaf3;
        --desktop-blue: #2677e8;
        --desktop-cyan: #37c5d8;
        --desktop-sidebar: #111e33;
    }

    html,
    body {
        min-height: 100%;
        height: 100%;
    }

    body {
        overflow: hidden;
        background: radial-gradient(circle at 85% 8%, #e2f2ff 0, transparent 28%), var(--desktop-bg);
        color: var(--desktop-ink);
    }

    /* Grade geral: cabeçalho no topo, navegação lateral e conteúdo */
    .container {
        display: grid !important;
        grid-template-columns: 224px minmax(0, 1fr);
        grid-template-rows: 86px minmax(0, 1fr);
        gap: 18px;
        width: 100%;
        max-width: none;
        height: 100vh;
        min-height: 0;
        margin: 0;
        padding: 20px 24px 22px;
        overflow: hidden;
        background: transparent;
    }

    .container > header {
        grid-column: 1 / -1;
        grid-row: 1;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 0;
        margin: 0 !important;
        padding: 8px 24px;
        border: 1px solid rgba(255, 255, 255, .85);
        border-radius: 18px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 8px 26px rgba(31, 61, 98, .07);
    }

    .container > header > img {
        max-height: 58px !important;
        width: auto;
        max-width: 180px;
        object-fit: contain;
    }

    .container > header .header-flex {
        min-width: 0;
    }

    #ranking-btn,
    #notificacao-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid var(--desktop-border) !important;
        border-radius: 13px;
        background: #f7faff !important;
        transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    }

    #ranking-btn:hover,
    #notificacao-btn:hover {
        transform: translateY(-2px);
        background: #edf5ff !important;
        box-shadow: 0 5px 14px rgba(38, 119, 232, .12);
    }

    #ranking-btn i {
        font-size: 19px !important;
        color: #e4a72b !important;
    }

    #notificacao-btn i {
        font-size: 19px !important;
        color: #49617f !important;
    }

    #notificacao-dropdown {
        color: var(--desktop-ink);
        border: 1px solid var(--desktop-border) !important;
        border-radius: 13px !important;
        box-shadow: 0 14px 36px rgba(21, 43, 72, .16) !important;
    }

    /* Menu lateral */
    .navegacao {
        grid-column: 1;
        grid-row: 2;
        align-self: stretch;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 18px 12px;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 18px;
        background: linear-gradient(165deg, #172943 0%, var(--desktop-sidebar) 72%);
        box-shadow: 0 12px 30px rgba(18, 35, 59, .16);
        overflow-y: auto;
    }

    .navegacao ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 7px;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .navegacao .lista {
        flex: 0 0 auto;
        width: 100%;
        margin: 0;
        border-radius: 11px;
        text-align: left;
        transition: background .18s ease, transform .18s ease;
    }

    .navegacao .lista a {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 13px;
        min-height: 48px;
        padding: 11px 13px;
        border-radius: 11px;
        color: #b9c8dc;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: .1px;
        text-decoration: none;
        transition: color .18s ease, background .18s ease;
    }

    .navegacao .lista a i {
        width: 20px;
        font-size: 17px;
        text-align: center;
        color: #8fa7c5;
    }

    .navegacao .lista:hover {
        transform: translateX(2px);
        background: rgba(255, 255, 255, .07);
    }

    .navegacao .lista:hover a,
    .navegacao .lista:hover a i {
        color: #ffffff;
    }

    .navegacao .lista.ativo {
        background: linear-gradient(105deg, rgba(38, 119, 232, .30), rgba(55, 197, 216, .13));
        box-shadow: inset 3px 0 0 var(--desktop-cyan);
    }

    .navegacao .lista.ativo a,
    .navegacao .lista.ativo a i {
        color: #ffffff;
    }

    /* Área de trabalho */
    #conteudo {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        min-height: 0;
        height: 100%;
        padding: 22px;
        overflow: auto;
        border: 1px solid rgba(255, 255, 255, .9);
        border-radius: 18px;
        background: rgba(255, 255, 255, .88);
        box-shadow: 0 8px 28px rgba(31, 61, 98, .06);
        scrollbar-color: #c4d2e2 transparent;
        scrollbar-width: thin;
    }

    #conteudo::-webkit-scrollbar,
    .navegacao::-webkit-scrollbar {
        width: 7px;
    }

    #conteudo::-webkit-scrollbar-thumb,
    .navegacao::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: #c4d2e2;
    }

    .content-section {
        min-width: 0;
        color: var(--desktop-ink);
    }

    #inicioContent,
    #despesasContent,
    #pacotesContent,
    #relatoriosContent {
        padding: 18px !important;
        border: 1px solid var(--desktop-border);
        border-radius: 15px;
        background: var(--desktop-surface);
        box-shadow: 0 4px 16px rgba(31, 61, 98, .045);
    }

    #inicioContent h2,
    #despesasContent h4,
    #pacotesContent h4,
    #relatoriosContent h5 {
        color: var(--desktop-ink);
        font-weight: 700;
        letter-spacing: -.25px;
    }

    /* Campos e botões com acabamento consistente */
    #conteudo input:not([type="checkbox"]):not([type="radio"]),
    #conteudo select,
    #conteudo textarea {
        color: var(--desktop-ink);
        border-radius: 9px;
    }

    #conteudo input:focus,
    #conteudo textarea:focus {
        border-bottom: 1px solid var(--desktop-blue) !important;
        box-shadow: 0 1px 0 0 var(--desktop-blue) !important;
    }

    #conteudo .input-field label {
        color: var(--desktop-muted);
    }

    #conteudo .btn:not(.btn-flat) {
        min-height: 38px;
        border-radius: 9px;
        background: linear-gradient(105deg, #236fe0, #258fce);
        box-shadow: 0 5px 12px rgba(38, 119, 232, .16);
        font-weight: 600;
        letter-spacing: .1px;
        text-transform: none;
        transition: transform .18s ease, box-shadow .18s ease;
    }

    #conteudo .btn:not(.btn-flat):hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 17px rgba(38, 119, 232, .22);
    }

    #conteudo button:focus-visible,
    #conteudo a:focus-visible,
    .navegacao a:focus-visible {
        outline: 2px solid var(--desktop-cyan);
        outline-offset: 3px;
    }

    /* Listas, indicadores e seletores de período */
    #reviews,
    #listaDespesas,
    #listaPacotes {
        border-color: var(--desktop-border) !important;
        border-radius: 11px;
        background: #fbfdff !important;
    }

    #reviews {
        max-height: calc(100vh - 270px) !important;
    }

    #listaPacotes {
        max-height: calc(100vh - 360px) !important;
    }

    #relatoriosContent {
        max-height: calc(100vh - 150px) !important;
        font-size: .95em;
    }

    #resumoFinanceiro {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        border-top: 0 !important;
        padding: 14px 0 0 !important;
    }

    #resumoFinanceiro p {
        margin: 0;
        padding: 15px;
        border: 1px solid var(--desktop-border);
        border-radius: 11px;
        background: #f7faff;
        color: var(--desktop-muted);
        font-size: 13px;
    }

    #resumoFinanceiro strong,
    #resumoFinanceiro span {
        color: var(--desktop-ink);
        font-weight: 700;
    }

    /* Modais: apenas acabamento visual, mantendo os tamanhos definidos pelo app */
    .modal {
        border-radius: 16px !important;
        box-shadow: 0 20px 60px rgba(14, 31, 54, .22) !important;
    }

    .modal .modal-content h4,
    .modal .modal-content h5 {
        color: var(--desktop-ink);
        font-weight: 700;
    }

    /* Padronização dos botões de pop-ups e modais no desktop */
    .modal .btn:not(.btn-flat),
    .modal .btn-small,
    #companyInfoModal button,
    #modalDuplicar .btn:not(.btn-flat),
    #confirmModal .btn:not(.btn-flat),
    #popupAcesso button,
    #rankingModal .btn:not(.btn-flat) {
        min-height: 38px;
        border: 1px solid transparent !important;
        border-radius: 9px !important;
        background: linear-gradient(105deg, var(--desktop-blue), #258fce) !important;
        color: #ffffff !important;
        box-shadow: 0 5px 12px rgba(38, 119, 232, .16) !important;
        font-weight: 600;
        letter-spacing: .1px;
        text-transform: none !important;
        transition: transform .18s ease, box-shadow .18s ease;
    }

    .modal .btn:not(.btn-flat):hover,
    .modal .btn-small:hover,
    #companyInfoModal button:hover,
    #modalDuplicar .btn:not(.btn-flat):hover,
    #confirmModal .btn:not(.btn-flat):hover,
    #popupAcesso button:hover,
    #rankingModal .btn:not(.btn-flat):hover {
        background: linear-gradient(105deg, #1d65cc, #197fae) !important;
        box-shadow: 0 8px 17px rgba(38, 119, 232, .22) !important;
        transform: translateY(-1px);
    }

    /* Cancelar, fechar e limpar usam acabamento neutro */
    .modal .btn-flat,
    #modalDuplicar button[onclick*="fecharModalDuplicar"],
    #confirmModal #cancelDeleteBtn,
    #modalLoginRelatorio #cancelarRelatorio,
    #modalAjustarDataHora .modal-footer .modal-close,
    #modalAssinatura #clear,
    #rankingModal .btn.grey {
        min-height: 38px;
        border: 1px solid var(--desktop-border) !important;
        border-radius: 9px !important;
        background: #f1f5fa !important;
        background-image: none !important;
        color: #52647c !important;
        box-shadow: none !important;
        font-weight: 600;
        text-transform: none !important;
    }

    .modal .btn-flat:hover,
    #modalDuplicar button[onclick*="fecharModalDuplicar"]:hover,
    #confirmModal #cancelDeleteBtn:hover,
    #modalLoginRelatorio #cancelarRelatorio:hover,
    #modalAjustarDataHora .modal-footer .modal-close:hover,
    #modalAssinatura #clear:hover,
    #rankingModal .btn.grey:hover {
        background: #e6edf6 !important;
        color: var(--desktop-ink) !important;
        box-shadow: none !important;
    }

    #popupAcesso button,
    #companyInfoModal button {
        cursor: pointer;
    }


    /* Notificações internas: identidade visual Mimus Pet no desktop */
    #toast-container {
        top: auto !important;
        right: 24px !important;
        bottom: 24px !important;
        left: auto !important;
        width: min(420px, calc(100vw - 48px));
        max-width: calc(100vw - 48px);
        z-index: 10050;
    }

    #toast-container .toast,
    #toast-container .toast.red,
    #toast-container .toast.green,
    #toast-container .toast.blue,
    #toast-container .toast.orange,
    #toast-container .toast.yellow {
        display: block;
        width: 100%;
        min-height: 48px;
        height: auto;
        margin: 0 0 10px;
        padding: 14px 18px;
        border: 1px solid rgba(55, 197, 216, .28) !important;
        border-left: 4px solid var(--desktop-cyan) !important;
        border-radius: 12px !important;
        background: linear-gradient(115deg, #14263e, #1c3553) !important;
        color: #f4f8ff !important;
        box-shadow: 0 12px 30px rgba(14, 31, 54, .22) !important;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.5;
        letter-spacing: .1px;
        overflow-wrap: anywhere;
    }

    /* Diferencia sutil por tipo, sem voltar aos blocos verde/vermelho */
    #toast-container .toast.green {
        border-left-color: #37c5d8 !important;
    }

    #toast-container .toast.red {
        border-left-color: #8ca9cc !important;
    }

    #toast-container .toast.blue,
    #toast-container .toast.orange,
    #toast-container .toast.yellow {
        border-left-color: #2677e8 !important;
    }

    #toast-container .toast a,
    #toast-container .toast button {
        color: #7ee3ef !important;
    }

    /* Dropdown do sino e contador de notificações */
    #notificacao-dropdown {
        min-width: 260px !important;
        max-width: 340px;
        padding: 14px 16px !important;
        border: 1px solid var(--desktop-border) !important;
        border-radius: 13px !important;
        background: #ffffff !important;
        color: var(--desktop-ink) !important;
        box-shadow: 0 14px 36px rgba(21, 43, 72, .16) !important;
    }

    #notificacao-dropdown strong {
        display: block;
        margin-bottom: 8px;
        color: var(--desktop-ink);
        font-size: 13px;
        font-weight: 700;
    }

    #lista-datas-sem-assinatura {
        margin: 8px 0 0 !important;
        padding: 0 !important;
        list-style: none;
    }

    #lista-datas-sem-assinatura li {
        margin-top: 6px;
        padding: 8px 10px;
        border: 1px solid var(--desktop-border);
        border-radius: 8px;
        background: #f7faff;
        color: #52647c;
        font-size: 12px;
        line-height: 1.45;
    }

    #notificacao-contador {
        border: 2px solid #ffffff;
        background: linear-gradient(135deg, var(--desktop-blue), var(--desktop-cyan)) !important;
        box-shadow: 0 3px 9px rgba(38, 119, 232, .24);
    }


    /* Fichas concluídas: contorno azul do layout e preço em destaque */
    .order-card[style*="5px solid"],
    #listaPacotes [data-pet-id][style*="3px solid"] {
        border-color: var(--desktop-blue) !important;
    }

    #listaPacotes [data-pet-id] strong[onclick*="abrirModalAlterarPreco"] {
        color: var(--desktop-blue) !important;
        font-weight: 700 !important;
    }


    /* Ajustes pontuais solicitados: cabeçalho do ranking e botão Gerar PDF */
    #rankingModal > div > div:first-child {
        background: linear-gradient(105deg, #14263e, var(--desktop-blue), #258fce) !important;
    }

    #gerarPDFCompleto {
        background: linear-gradient(105deg, var(--desktop-blue), #258fce) !important;
        background-color: var(--desktop-blue) !important;
        color: #ffffff !important;
        border-radius: 9px !important;
        box-shadow: 0 5px 12px rgba(38, 119, 232, .16) !important;
        font-weight: 600 !important;
        text-transform: none !important;
    }

    #gerarPDFCompleto:hover {
        background: linear-gradient(105deg, #1d65cc, #197fae) !important;
        box-shadow: 0 8px 17px rgba(38, 119, 232, .22) !important;
    }

}

/* ============================================================
   MIMUS PET — EXPERIÊNCIA MOBILE PREMIUM
   Aplicada somente abaixo de 1024px. A área desktop permanece
   integralmente preservada acima desse breakpoint.
   ============================================================ */
@media screen and (max-width: 1023px) {
    :root {
        --mobile-bg: #f2f6fc;
        --mobile-surface: #ffffff;
        --mobile-ink: #172943;
        --mobile-muted: #77879d;
        --mobile-border: #e4ebf4;
        --mobile-blue: #2677e8;
        --mobile-blue-deep: #14263e;
        --mobile-cyan: #37c5d8;
        --mobile-shadow: 0 8px 24px rgba(24, 51, 86, .075);
        --primary-color: #2677e8;
        --secondary-color: #52647c;
        --background-color: #f2f6fc;
    }

    html,
    body {
        width: 100%;
        min-width: 320px;
        height: 100%;
        min-height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
        background: var(--mobile-bg);
        color: var(--mobile-ink);
        -webkit-text-size-adjust: 100%;
    }

    body {
        display: block;
        font-family: "Sora", "Roboto", sans-serif;
        padding: 0;
    }

    *,
    *::before,
    *::after {
        -webkit-tap-highlight-color: transparent;
    }

    button,
    a,
    input,
    select,
    textarea {
        touch-action: manipulation;
    }

    /* Estrutura principal ocupa a tela, sem a caixa estreita do desktop antigo */
    .container {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100% !important;
        max-width: none !important;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
        border-radius: 0;
        background:
            radial-gradient(ellipse at 100% 0%, rgba(55, 197, 216, .09), transparent 38%),
            var(--mobile-bg);
        box-shadow: none;
    }

    /* Cabeçalho compacto: marca central e ações sempre acessíveis */
    .container > header {
        position: relative;
        z-index: 20;
        display: flex;
        flex: 0 0 66px;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 66px;
        min-height: 66px;
        margin: 0 !important;
        padding: 0 12px !important;
        border: 0;
        border-bottom: 1px solid rgba(222, 232, 244, .9);
        border-radius: 0 0 18px 18px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 5px 18px rgba(24, 51, 86, .055);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .container > header > img {
        position: absolute;
        top: 50%;
        left: 50%;
        display: block;
        width: auto;
        max-width: 142px;
        max-height: 45px !important;
        margin: 0 !important;
        object-fit: contain;
        transform: translate(-50%, -50%);
    }

    .container > header > .header-flex {
        position: absolute !important;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .container > header > .header-flex > .header-logo {
        display: none !important;
    }

    .container > header > .header-flex > .header-flex {
        position: absolute !important;
        inset: 0 !important;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .container > header #ranking-btn,
    .container > header #notificacao-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0 !important;
        border: 1px solid var(--mobile-border) !important;
        border-radius: 13px !important;
        background: #f7faff !important;
        box-shadow: 0 3px 10px rgba(29, 66, 112, .055);
        pointer-events: auto;
    }

    .container > header #ranking-btn i {
        color: #2677e8 !important;
        font-size: 17px !important;
    }

    .container > header #notificacao-btn i {
        color: #526984 !important;
        font-size: 17px !important;
    }

    .container > header #notificacao-contador {
        top: -5px !important;
        right: -5px !important;
        min-width: 18px;
        min-height: 18px;
        padding: 1px 5px !important;
        border: 2px solid #fff;
        border-radius: 20px !important;
        background: linear-gradient(135deg, var(--mobile-blue), var(--mobile-cyan)) !important;
        color: #fff !important;
        font-size: 10px !important;
        line-height: 14px;
    }

    #notificacao-dropdown {
        position: fixed !important;
        top: 72px !important;
        right: 12px !important;
        left: auto !important;
        width: min(310px, calc(100vw - 24px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 24px) !important;
        padding: 14px !important;
        border: 1px solid var(--mobile-border) !important;
        border-radius: 16px !important;
        background: #fff !important;
        color: var(--mobile-ink) !important;
        box-shadow: 0 16px 38px rgba(18, 42, 73, .18) !important;
        z-index: 10060 !important;
    }

    #notificacao-dropdown strong {
        color: var(--mobile-ink);
        font-size: 13px;
    }

    #lista-datas-sem-assinatura {
        padding: 0 !important;
        list-style: none;
    }

    #lista-datas-sem-assinatura li {
        margin-top: 7px;
        padding: 9px 10px;
        border: 1px solid var(--mobile-border);
        border-radius: 10px;
        background: #f7faff;
        color: #52647c;
        font-size: 12px;
    }

    /* Conteúdo com rolagem própria; a navegação não cobre os formulários */
    #conteudo {
        position: relative;
        display: block;
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        margin: 0;
        padding: 14px 13px calc(94px + env(safe-area-inset-bottom)) !important;
        overflow-x: hidden;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        scrollbar-width: none;
    }

    #conteudo::-webkit-scrollbar {
        display: none;
    }

    .content-section {
        width: 100%;
        min-width: 0;
        margin: 0 0 12px;
        padding: 17px 15px !important;
        overflow: visible;
        border: 1px solid rgba(225, 234, 245, .95);
        border-radius: 19px;
        background: var(--mobile-surface);
        color: var(--mobile-ink);
        box-shadow: var(--mobile-shadow);
    }

    .content-section h2,
    .content-section h3,
    .content-section h4,
    .content-section h5 {
        color: var(--mobile-ink);
        font-weight: 700;
        letter-spacing: -.25px;
    }

    #inicioContent h2:empty {
        display: none;
    }

    /* Campos: controles altos e legíveis, com foco azul */
    #conteudo input:not([type="checkbox"]):not([type="radio"]),
    #conteudo select,
    #conteudo textarea,
    .modal input:not([type="checkbox"]):not([type="radio"]),
    .modal select,
    .modal textarea {
        max-width: 100%;
        color: var(--mobile-ink);
        font-size: 16px;
        scroll-margin-bottom: 100px;
    }

    #conteudo .input-field input:not([type="checkbox"]):not([type="radio"]),
    #conteudo .input-field textarea,
    #conteudo .input-field select,
    .modal .input-field input,
    .modal .input-field textarea,
    .modal .input-field select {
        border-bottom: 1px solid #cbd7e6 !important;
        box-shadow: none !important;
    }

    #conteudo input:focus,
    #conteudo textarea:focus,
    .modal input:focus,
    .modal textarea:focus {
        border-bottom: 2px solid var(--mobile-blue) !important;
        box-shadow: 0 1px 0 0 var(--mobile-blue) !important;
    }

    #conteudo .input-field label,
    .modal .input-field label {
        color: #7b8ba1;
        font-size: 13px;
    }

    #conteudo .input-field label.active,
    .modal .input-field label.active {
        color: var(--mobile-blue) !important;
    }

    /* Formulário inicial refluído para uma coluna visual clara */
    #reviewForm .row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 12px;
        width: 100%;
        margin: 0 0 6px !important;
    }

    #reviewForm .row > .input-field,
    #reviewForm .input-field.col {
        float: none !important;
        width: auto !important;
        min-width: 0;
        margin: 7px 0 10px !important;
        padding: 0 !important;
    }

    #reviewForm .row:first-of-type > .input-field:nth-child(3) {
        grid-column: 1 / -1;
    }

    #reviewForm .row:nth-of-type(2) > .input-field {
        grid-column: span 1;
    }

    #reviewForm .row:nth-of-type(3) > .input-field:first-child {
        grid-column: 1 / -1;
    }

    #reviewForm .input-field.col.s12 {
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        gap: 5px;
        width: 100% !important;
        margin: 4px 0 0 !important;
        padding: 0 !important;
    }

    #reviewForm .input-field.col.s12 input {
        width: 100%;
        margin: 0;
    }

    #reviewForm .input-field.col.s12 label {
        position: relative;
        order: -1;
        transform: none;
    }

    #reviewForm .input-field.col.s12 button {
        width: 100%;
        margin: 7px 0 0 !important;
    }

    /* Botões: mesmo azul do desktop, agora dimensionados para o toque */
    #conteudo .btn:not(.btn-flat):not(.btn-floating),
    .modal .btn:not(.btn-flat):not(.btn-floating),
    #popupAcesso button,
    #confirmModal .btn,
    #modalDuplicar .btn,
    #gerarPDFCompleto {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0 16px;
        border: 1px solid transparent !important;
        border-radius: 12px !important;
        background: linear-gradient(110deg, #236fe0, #258fce) !important;
        color: #fff !important;
        box-shadow: 0 6px 15px rgba(38, 119, 232, .17) !important;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .05px;
        line-height: 1.2;
        text-transform: none !important;
        white-space: normal;
    }

    #conteudo .btn-flat,
    .modal .btn-flat,
    #confirmModal #cancelDeleteBtn,
    #modalDuplicar button[onclick*="fecharModalDuplicar"] {
        min-height: 42px;
        border: 1px solid var(--mobile-border) !important;
        border-radius: 12px !important;
        background: #f3f6fb !important;
        color: #52647c !important;
        box-shadow: none !important;
        font-weight: 700;
        text-transform: none !important;
    }

    /* Verde/vermelho em classes de botões do Materialize deixam de destoar */
    #conteudo button.btn.green,
    #conteudo a.btn.green,
    #conteudo button.btn.red,
    #conteudo a.btn.red,
    #conteudo button.btn.blue,
    #conteudo a.btn.blue,
    .modal button.btn.green,
    .modal button.btn.red,
    .modal a.btn.green,
    .modal a.btn.red,
    #confirmModal button.btn.red,
    #modalDuplicar button.btn.blue {
        background: linear-gradient(110deg, #236fe0, #258fce) !important;
        color: #fff !important;
    }

    #conteudo button:focus-visible,
    #conteudo a:focus-visible,
    .modal button:focus-visible,
    .navegacao a:focus-visible {
        outline: 2px solid var(--mobile-cyan);
        outline-offset: 3px;
    }

    /* Navegação inferior flutuante, leve e com área de toque confortável */
    .navegacao {
        position: fixed;
        z-index: 1000;
        right: 12px;
        bottom: max(9px, env(safe-area-inset-bottom));
        left: 12px;
        display: block;
        width: auto;
        min-height: 68px;
        margin: 0;
        padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
        border: 1px solid rgba(222, 232, 244, .95);
        border-radius: 20px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 9px 30px rgba(21, 48, 82, .15);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }

    .navegacao ul {
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        width: 100%;
        height: 54px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .navegacao .lista {
        position: relative;
        display: flex;
        flex: 1 1 20%;
        align-items: stretch;
        justify-content: center;
        min-width: 0;
        margin: 0;
        border-radius: 14px;
        text-align: center;
    }

    .navegacao .lista a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        width: 100%;
        min-width: 0;
        min-height: 52px;
        padding: 3px 2px;
        border-radius: 13px;
        color: #8291a5;
        font-size: 9.5px;
        font-weight: 650;
        line-height: 1.15;
        text-decoration: none;
        white-space: nowrap;
        transition: color .18s ease, background .18s ease;
    }

    .navegacao .lista a i {
        display: grid;
        width: 31px;
        height: 29px;
        place-items: center;
        border-radius: 10px;
        color: #7f90a7;
        font-size: 18px;
        line-height: 1;
        transition: color .18s ease, background .18s ease;
    }

    .navegacao .lista.ativo a {
        color: #236fe0;
        background: #f0f6ff;
    }

    .navegacao .lista.ativo a i {
        background: linear-gradient(135deg, #236fe0, #258fce);
        color: #fff;
        box-shadow: 0 4px 10px rgba(38, 119, 232, .2);
    }

    .navegacao .lista:active a {
        transform: scale(.97);
    }

    /* Agendamentos: filtro destacado e fichas transformadas em cards */
    #ordensContent > div:first-child,
    #despesasContent > div:first-child,
    #pacotesContent > div:first-child {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 0 13px !important;
        padding: 0 !important;
    }

    #ordensContent > div:first-child button,
    #despesasContent > div:first-child button,
    #pacotesContent > div:first-child button {
        flex: 0 0 40px;
        width: 40px;
        min-width: 40px;
        height: 42px;
        padding: 0 !important;
        border: 1px solid var(--mobile-border) !important;
        border-radius: 12px !important;
        background: #f5f8fd !important;
        color: #3c6fae !important;
        font-size: 17px !important;
        box-shadow: none !important;
    }

    #ordensContent > div:first-child input,
    #despesasContent > div:first-child input,
    #pacotesContent > div:first-child input {
        flex: 1 1 auto;
        min-width: 0;
        height: 44px;
        margin: 0 !important;
        padding: 0 10px !important;
        border: 1px solid var(--mobile-border) !important;
        border-radius: 12px !important;
        background: #f8faff;
        color: var(--mobile-ink);
        text-align: center;
        font-size: 14px !important;
        box-shadow: none !important;
    }

    #reviews {
        max-height: none !important;
        height: auto;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        list-style: none;
    }

    #reviews > li,
    #reviews > .order-card,
    .order-card {
        position: relative;
        width: 100%;
        margin: 0 0 12px !important;
        padding: 14px !important;
        overflow: hidden;
        border: 1px solid var(--mobile-border) !important;
        border-left: 4px solid #8ba6c7 !important;
        border-radius: 17px !important;
        background: #fff !important;
        box-shadow: 0 5px 17px rgba(24, 51, 86, .065);
    }

    .order-card[style*="5px solid"] {
        border-left-color: var(--mobile-blue) !important;
    }

    .order-card .order-header {
        min-height: 42px;
        margin: 0 !important;
        gap: 10px;
    }

    .order-card .order-header h4 {
        color: var(--mobile-ink);
        font-size: 16px !important;
        font-weight: 750;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .order-card .concluido-order {
        display: inline-flex;
        flex: 0 0 38px;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px !important;
        min-height: 38px;
        margin: 0;
        padding: 3px !important;
        border: 1px solid #e4edf8 !important;
        border-radius: 12px !important;
        background: #f4f8fe !important;
        box-shadow: none !important;
    }

    .order-card .concluido-order img {
        width: 26px !important;
        height: 26px !important;
        object-fit: contain;
    }

    .order-card .order-body {
        margin-top: 12px;
        color: #53667f;
        font-size: 13px;
        line-height: 1.55;
    }

    .order-card .order-body label {
        color: #71829a;
        font-size: 11px;
        font-weight: 750;
        letter-spacing: .25px;
        text-transform: uppercase;
    }

    .order-card .order-body .col.s12 {
        width: 100% !important;
        margin: 10px 0 !important;
        padding: 11px !important;
        border: 1px solid var(--mobile-border) !important;
        border-radius: 12px;
        background: #f8faff;
    }

    .order-card .order-body button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 4px !important;
        border-radius: 12px !important;
        background: #f5f8fd !important;
        box-shadow: none !important;
    }

    .order-card .order-body button img,
    .order-card .order-body a img {
        width: 27px !important;
        height: 27px !important;
        object-fit: contain;
    }

    /* Receitas: formulário em duas colunas e resumo visual em blocos */
    #despesasContent > .row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
        margin: 0 0 12px !important;
    }

    #despesasContent > .row > .input-field {
        float: none !important;
        width: auto !important;
        min-width: 0;
        margin: 6px 0 !important;
        padding: 0 !important;
    }

    #lançarDespesa {
        grid-column: 1 / -1;
        width: 100%;
        margin: 2px 0 0 !important;
    }

    #listaDespesas {
        max-height: none !important;
        margin: 0 !important;
        overflow: visible;
        border: 0 !important;
        background: transparent !important;
    }

    #listaDespesas .collection-item {
        margin: 0 0 8px;
        padding: 12px 13px;
        border: 1px solid var(--mobile-border) !important;
        border-radius: 12px;
        background: #fff;
        color: var(--mobile-ink);
    }

    #resumoFinanceiro {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin-top: 14px !important;
        padding: 13px 0 0 !important;
        border-top: 1px solid var(--mobile-border) !important;
    }

    #resumoFinanceiro p {
        min-width: 0;
        margin: 0;
        padding: 12px;
        border: 1px solid var(--mobile-border);
        border-radius: 13px;
        background: #f8faff;
        color: var(--mobile-muted);
        font-size: 11px;
        line-height: 1.45;
    }

    #resumoFinanceiro p:last-child {
        grid-column: 1 / -1;
        background: linear-gradient(110deg, #edf5ff, #effbff);
    }

    #resumoFinanceiro strong,
    #resumoFinanceiro span {
        color: var(--mobile-ink);
        font-weight: 800;
    }

    /* Pacotes: campo de busca e ações sem apertar o conteúdo */
    #pacotesContent > div[style*="align-items: flex-end"] {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 46px 44px;
        gap: 8px !important;
        align-items: end !important;
        margin: 0 0 13px !important;
    }

    #pacotesContent > div[style*="align-items: flex-end"] .input-field {
        width: auto !important;
        min-width: 0;
    }

    #pacotesContent > div[style*="align-items: flex-end"] .btn {
        width: 100%;
        min-width: 0;
        min-height: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 7px !important;
        font-size: 11px;
    }

    #pacotesContent > div[style*="align-items: flex-end"] > button:last-child {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px !important;
        margin: 0 !important;
        padding: 4px !important;
        border: 1px solid var(--mobile-border) !important;
        border-radius: 12px;
        background: #f6f9fe !important;
    }

    #pacotesContent > div[style*="align-items: flex-end"] > button:last-child img {
        width: 30px !important;
        height: 30px !important;
        object-fit: contain;
    }

    #listaPacotes {
        max-height: none !important;
        min-height: 180px;
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
    }

    #listaPacotes > div {
        margin: 0 0 12px !important;
        padding: 13px !important;
        border: 1px solid var(--mobile-border) !important;
        border-left: 4px solid #8ba6c7 !important;
        border-radius: 17px !important;
        background: #fff;
        box-shadow: 0 5px 17px rgba(24, 51, 86, .065);
    }

    #listaPacotes > div[style*="3px solid"] {
        border-left-color: var(--mobile-blue) !important;
    }

    #listaPacotes > div > div:first-child {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        flex-wrap: nowrap;
    }

    #listaPacotes > div > div:first-child > div:first-child img {
        width: 54px !important;
        height: 54px !important;
        border: 2px solid #e5edf7 !important;
        border-radius: 15px !important;
    }

    #listaPacotes > div > div:first-child > div:last-child {
        display: flex !important;
        flex: 1 1 auto;
        align-items: center;
        justify-content: flex-end;
        gap: 3px !important;
        min-width: 0;
    }

    #listaPacotes > div > div:first-child button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 35px;
        width: 35px;
        height: 38px;
        padding: 3px !important;
        border: 1px solid #edf2f8 !important;
        border-radius: 10px;
        background: #f8faff !important;
    }

    #listaPacotes > div > div:first-child button img {
        width: 25px !important;
        height: 25px !important;
        object-fit: contain;
    }

    #listaPacotes > div > div:nth-child(2) {
        margin: 12px 0 8px !important;
        padding: 10px 11px;
        border-radius: 12px;
        background: #f7faff;
        color: var(--mobile-ink);
        font-size: 13px !important;
        line-height: 1.5;
        text-align: left !important;
        overflow-wrap: anywhere;
    }

    #listaPacotes > div > div:nth-child(2) strong {
        color: var(--mobile-ink);
    }

    #listaPacotes > div > div:nth-child(2) strong[onclick*="abrirModalAlterarPreco"] {
        color: var(--mobile-blue) !important;
        font-weight: 800 !important;
        white-space: nowrap;
    }

    #listaPacotes .obs-pacote {
        min-height: 76px !important;
        padding: 10px !important;
        border: 1px solid var(--mobile-border) !important;
        border-radius: 11px !important;
        background: #fbfdff;
        font-size: 14px !important;
    }

    /* Relatórios: controles claros e ação principal de largura total */
    #relatoriosContent {
        max-height: none !important;
        height: auto;
        overflow: visible !important;
        padding: 18px 15px !important;
        font-size: 14px !important;
    }

    #relatoriosContent h5 {
        margin: 2px 0 16px !important;
        font-size: 18px;
    }

    #relatoriosContent > div[style*="text-align: center"] {
        margin: 10px 0 16px !important;
    }

    #mesRelatorio {
        width: 100% !important;
        height: 46px;
        border: 1px solid var(--mobile-border) !important;
        border-radius: 12px !important;
        background: #f8faff;
        box-shadow: none !important;
    }

    #relatoriosContent > .row {
        margin: 8px 0 !important;
    }

    #relatoriosContent > .row:last-child {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    #relatoriosContent > .row:last-child > .col {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #gerarPDFCompleto {
        width: 100% !important;
        min-height: 48px;
        margin: 4px 0 0 !important;
        border-radius: 13px !important;
        background: linear-gradient(110deg, #236fe0, #258fce) !important;
        color: #fff !important;
        font-size: 14px;
        font-weight: 750 !important;
        letter-spacing: .15px;
    }

    /* Modais Materialize: folha adaptada à tela, com rolagem interna */
    .modal {
        top: auto !important;
        bottom: 0 !important;
        width: calc(100% - 20px) !important;
        max-width: 560px !important;
        max-height: min(88dvh, 760px) !important;
        margin: 0 auto 10px !important;
        overflow: hidden;
        border: 1px solid rgba(224, 234, 246, .95);
        border-radius: 22px !important;
        background: #fff;
        box-shadow: 0 18px 55px rgba(16, 38, 67, .25) !important;
    }

    .modal .modal-content {
        max-height: calc(88dvh - 76px);
        padding: 22px 19px 18px !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal .modal-content h4,
    .modal .modal-content h5 {
        margin: 0 0 18px;
        color: var(--mobile-ink);
        font-size: 19px;
        font-weight: 750;
        line-height: 1.3;
    }

    .modal .modal-footer {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 9px;
        min-height: 68px;
        height: auto;
        padding: 10px 16px !important;
        border-top: 1px solid var(--mobile-border);
        background: #fff;
    }

    .modal .modal-footer .btn,
    .modal .modal-footer .btn-flat {
        flex: 1 1 0;
        min-width: 0;
        margin: 0 !important;
        padding: 0 10px;
    }

    .modal.modal-fixed-footer {
        height: min(82dvh, 690px) !important;
        max-height: 88dvh !important;
        overflow: hidden;
    }

    .modal.modal-fixed-footer .modal-content {
        height: calc(100% - 72px);
        max-height: none;
    }

    .modal.modal-fixed-footer .modal-footer {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
    }

    #modalAssinatura .wrapper,
    #modalAssinatura .signature-pad {
        width: 100% !important;
        max-width: 100%;
    }

    #modalAssinatura .signature-pad {
        height: auto;
        aspect-ratio: 2 / 1;
        border: 1px solid var(--mobile-border);
        border-radius: 12px;
        background: #fbfdff;
    }

    #modalAssinatura #clear,
    #modalAssinatura #save {
        min-width: 0;
        min-height: 44px;
        border-radius: 12px !important;
    }

    /* Pop-ups personalizados sem cortes laterais ou posicionamento alto */
    #confirmModal {
        top: 50% !important;
        left: 50% !important;
        width: calc(100% - 32px) !important;
        max-width: 380px;
        padding: 22px !important;
        border: 1px solid var(--mobile-border);
        border-radius: 19px !important;
        background: #fff;
        transform: translate(-50%, -50%) !important;
        box-shadow: 0 18px 50px rgba(16, 38, 67, .25) !important;
    }

    #confirmModal h5 {
        color: var(--mobile-ink);
        font-weight: 750;
    }

    #confirmModal > div {
        display: flex;
        gap: 9px;
        margin-top: 16px;
    }

    #confirmModal > div button {
        flex: 1;
        min-width: 0;
        margin: 0;
    }

    #modalDuplicar {
        display: none;
        align-items: center;
        justify-content: center;
        padding: 18px;
        background: rgba(12, 27, 47, .52) !important;
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }

    #modalDuplicar > div {
        width: min(100%, 360px) !important;
        max-width: 360px !important;
        margin: 0 auto !important;
        padding: 22px !important;
        border: 1px solid var(--mobile-border);
        border-radius: 20px !important;
        box-shadow: 0 18px 50px rgba(16, 38, 67, .22) !important;
    }

    #modalDuplicar h5 {
        color: var(--mobile-ink);
        font-weight: 750;
    }

    #popupAcesso {
        top: 50% !important;
        left: 50% !important;
        width: calc(100% - 32px) !important;
        max-width: 420px !important;
        padding: 28px 22px !important;
        border: 1px solid var(--mobile-border);
        border-radius: 21px !important;
        transform: translate(-50%, -50%) !important;
        box-shadow: 0 18px 50px rgba(16, 38, 67, .25) !important;
    }

    #popupAcesso h5 {
        color: var(--mobile-ink);
        font-weight: 750;
    }

    #popupAcesso input {
        min-height: 48px;
        border: 1px solid var(--mobile-border) !important;
        border-radius: 12px !important;
    }

    #popupAcesso button {
        min-height: 48px;
        margin-top: 13px !important;
    }

    /* Ranking nativo criado pelo JavaScript: painel inferior azul e responsivo */
    #rankingModal {
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
        background: rgba(11, 25, 44, .55) !important;
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }

    #rankingModal > div {
        width: 100% !important;
        max-width: 620px !important;
        max-height: 89dvh !important;
        margin: 0 !important;
        border-radius: 23px 23px 0 0 !important;
        overflow: hidden !important;
        box-shadow: 0 -12px 44px rgba(12, 31, 56, .24) !important;
    }

    #rankingModal > div > div:first-child {
        min-height: 62px;
        padding: 14px 18px !important;
        background: linear-gradient(110deg, #14263e, #2677e8, #258fce) !important;
    }

    #rankingModal > div > div:first-child h5 {
        color: #fff;
        font-size: 17px !important;
        font-weight: 750;
    }

    #rankingModal > div > div:first-child span {
        font-size: 30px !important;
    }

    #rankingModal > div > div:nth-child(2) {
        display: flex;
        gap: 7px !important;
        padding: 10px 12px !important;
        background: #f7faff !important;
    }

    #rankingModal > div > div:nth-child(2) .btn {
        flex: 1;
        min-width: 0;
        min-height: 40px;
        margin: 0;
        padding: 0 8px;
        border-radius: 11px !important;
        font-size: 12px;
        box-shadow: none !important;
    }

    #rankingModal .btn.grey {
        border: 1px solid var(--mobile-border) !important;
        background: #eef3fa !important;
        color: #596d86 !important;
    }

    #rankingModal #rankingLista {
        max-height: calc(89dvh - 118px) !important;
        padding: 12px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #rankingLista > div {
        display: grid !important;
        grid-template-columns: 38px 50px minmax(0, 1fr) 66px;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 0 9px !important;
        padding: 10px !important;
        border-width: 1px !important;
        border-radius: 15px !important;
        box-shadow: 0 3px 10px rgba(24, 51, 86, .055) !important;
    }

    #rankingLista > div > div:first-child {
        width: auto !important;
        font-size: 19px !important;
    }

    #rankingLista > div > img {
        width: 48px !important;
        height: 48px !important;
    }

    #rankingLista > div > div:nth-child(3) {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    #rankingLista > div > div:nth-child(3) strong {
        font-size: 12px !important;
        line-height: 1.25;
    }

    #rankingLista > div > div:nth-child(3) small {
        font-size: 10px !important;
    }

    #rankingLista > div > div:nth-child(4) {
        min-width: 0 !important;
    }

    #rankingLista > div > div:nth-child(4) > div:first-child {
        font-size: 23px !important;
    }

    #rankingLista > div > div:nth-child(4) small {
        font-size: 9px !important;
    }

    #rankingLista > div > div:nth-child(4) span {
        font-size: 12px !important;
    }

    /* Notificações: aparecem acima do menu inferior, sem cobrir ações */
    #toast-container {
        position: fixed !important;
        top: auto !important;
        right: 12px !important;
        bottom: calc(88px + env(safe-area-inset-bottom)) !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
        z-index: 10070 !important;
    }

    #toast-container .toast,
    #toast-container .toast.green,
    #toast-container .toast.red,
    #toast-container .toast.blue,
    #toast-container .toast.orange,
    #toast-container .toast.yellow {
        display: block;
        width: 100%;
        min-height: 46px;
        height: auto;
        margin: 0 0 8px;
        padding: 12px 15px;
        border: 1px solid rgba(55, 197, 216, .24) !important;
        border-left: 4px solid var(--mobile-cyan) !important;
        border-radius: 13px !important;
        background: linear-gradient(115deg, #14263e, #1c3553) !important;
        color: #f4f8ff !important;
        box-shadow: 0 9px 24px rgba(14, 31, 54, .2) !important;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    /* Ajustes de acessibilidade e scroll em dispositivos de toque */
    .select-wrapper input.select-dropdown {
        height: 44px;
        line-height: 44px;
        border-bottom-color: #cbd7e6 !important;
    }

    .dropdown-content {
        max-width: calc(100vw - 24px) !important;
        border-radius: 12px !important;
        box-shadow: 0 12px 30px rgba(18, 42, 73, .16) !important;
    }

    .flatpickr-calendar {
        max-width: calc(100vw - 24px);
    }
}

/* Telefones estreitos: maior respiro e menos compressão de controles */
@media screen and (max-width: 390px) {
    .container > header {
        flex-basis: 62px;
        height: 62px;
        min-height: 62px;
    }

    .container > header > img {
        max-width: 124px;
        max-height: 41px !important;
    }

    .container > header #ranking-btn,
    .container > header #notificacao-btn {
        width: 37px;
        height: 37px;
    }

    #conteudo {
        padding: 11px 10px calc(92px + env(safe-area-inset-bottom)) !important;
    }

    .content-section {
        padding: 15px 12px !important;
        border-radius: 17px;
    }

    #reviewForm .row {
        gap: 2px 9px;
    }

    .navegacao {
        right: 8px;
        left: 8px;
        min-height: 65px;
        padding-right: 3px;
        padding-left: 3px;
        border-radius: 18px;
    }

    .navegacao ul {
        height: 51px;
    }

    .navegacao .lista a {
        gap: 2px;
        font-size: 8.5px;
    }

    .navegacao .lista a i {
        width: 29px;
        height: 27px;
        font-size: 17px;
    }

    #listaPacotes > div > div:first-child > div:last-child {
        gap: 1px !important;
    }

    #listaPacotes > div > div:first-child button {
        flex-basis: 32px;
        width: 32px;
        height: 36px;
        padding: 2px !important;
    }

    #listaPacotes > div > div:first-child button img {
        width: 23px !important;
        height: 23px !important;
    }

    #rankingLista > div {
        grid-template-columns: 32px 44px minmax(0, 1fr) 58px;
        gap: 6px !important;
        padding: 8px !important;
    }

    #rankingLista > div > img {
        width: 42px !important;
        height: 42px !important;
    }
}

/* Tablets em orientação estreita usam a mesma linguagem, com área central mais ampla */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 860px !important;
        margin: 0 auto !important;
        border-right: 1px solid #e5edf7;
        border-left: 1px solid #e5edf7;
    }

    #conteudo {
        padding: 20px 22px calc(100px + env(safe-area-inset-bottom)) !important;
    }

    .content-section {
        padding: 22px !important;
    }

    #reviewForm .row:first-of-type > .input-field:nth-child(3) {
        grid-column: auto;
    }

    .navegacao {
        right: max(22px, calc((100vw - 700px) / 2));
        left: max(22px, calc((100vw - 700px) / 2));
    }
}

@media screen and (max-width: 1023px) {
    .container > header > .header-flex > .header-flex > div,
    .container > header #ranking-btn,
    .container > header #notificacao-container,
    .container > header #notificacao-btn {
        pointer-events: auto !important;
    }

    #rankingModal .btn.green,
    #rankingModal .btn.blue,
    #rankingModal .btn:not(.grey) {
        background: linear-gradient(110deg, #236fe0, #258fce) !important;
        color: #fff !important;
        box-shadow: 0 4px 11px rgba(38, 119, 232, .16) !important;
    }
}

@media screen and (max-width: 1023px) {
    /* Títulos de contexto para as áreas que antes começavam direto nos controles */
    #inicioContent::before,
    #ordensContent::before,
    #despesasContent::before,
    #pacotesContent::before {
        display: block;
        margin: 0 0 16px;
        color: var(--mobile-ink);
        font-size: 19px;
        font-weight: 800;
        letter-spacing: -.45px;
        line-height: 1.25;
    }

    #inicioContent::before { content: "Novo agendamento"; }
    #ordensContent::before { content: "Agendamentos"; }
    #despesasContent::before { content: "Receitas e despesas"; }
    #pacotesContent::before { content: "Pacotes mensais"; }

    #reviewForm .row:nth-of-type(3) > .input-field:first-child {
        grid-column: auto;
    }

    .container > header > .header-flex > .header-flex > div:first-child {
        right: 58px !important;
    }

    #notificacao-container {
        right: 8px !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    #reviewForm .row:first-of-type {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 390px) {
    .container > header > img {
        max-width: 112px;
    }
}

@media screen and (max-width: 1023px) {
    /* Ações secundárias continuam neutras, sem verde ou vermelho */
    #modalAssinatura #clear,
    #modalAjustarDataHora .modal-footer .modal-close.btn,
    #modalDuplicar button[onclick*="fecharModalDuplicar"] {
        border: 1px solid var(--mobile-border) !important;
        background: #f1f5fa !important;
        color: #52647c !important;
        box-shadow: none !important;
    }
}
