/* Estilos do site da Mpload que o Tailwind por CDN não cobre (sem @apply: CSS puro). */

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
[x-cloak] { display: none !important; }

/* Símbolo do logo girando devagar (o "load" da Mpload) */
.simbolo-girando { animation: girar 40s linear infinite; transform-origin: 50% 50%; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .simbolo-girando { animation: none; }
    html { scroll-behavior: auto; }
}

/* Botões no padrão do ERP web */
.btn-primario {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.25rem; min-height: 44px; border-radius: .9rem;
    font-weight: 700; font-size: .875rem; color: #fff; white-space: nowrap;
    background-image: linear-gradient(to right, #2f63a3, #3b76bc, #5f90cb);
    box-shadow: 0 10px 20px -8px rgb(59 118 188 / .55);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-primario:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 14px 24px -10px rgb(59 118 188 / .65); }
.btn-primario:active { transform: scale(.98); }
.btn-primario:focus-visible, .btn-secundario:focus-visible { outline: 3px solid rgb(59 118 188 / .35); outline-offset: 2px; }
.btn-secundario {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.25rem; min-height: 44px; border-radius: .9rem;
    font-weight: 700; font-size: .875rem; color: #3a3b3d; white-space: nowrap;
    background: #fff; border: 1px solid #cbd5e1; box-shadow: 0 1px rgb(0 0 0 / .05);
    transition: background-color .15s ease, transform .15s ease;
}
.btn-secundario:hover { background: #f8fafc; }
.btn-secundario:active { transform: scale(.98); }

/* Campos do formulário (mesmo desenho do ERP web) */
.rotulo { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; margin-bottom: .3rem; }
.campo {
    width: 100%; padding: .65rem .85rem; font-size: .875rem; border-radius: .8rem;
    border: 1px solid #cbd5e1; background: #fff; color: #1e293b;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.campo:focus { outline: none; border-color: #3b76bc; box-shadow: 0 0 0 3px rgb(59 118 188 / .2); }
.campo[aria-invalid="true"] { border-color: #e11d48; box-shadow: 0 0 0 3px rgb(225 29 72 / .12); }

/* Telas desenhadas do ERP (classes do padrão visual: erp-th, linha selecionada) */
.erp-tabela { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
.erp-th { background: #f8fafc; border-bottom: 1px solid #e2e8f0; font-size: 9.5px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .05em; padding: .5rem .6rem; white-space: nowrap; }
.erp-td { padding: .5rem .6rem; border-bottom: 1px solid #f1f5f9; color: #334155; white-space: nowrap; }
.erp-linha-selecionada > td { background: #d9e6f5; color: #1f395c; font-weight: 600; }
.erp-linha-selecionada > td:first-child { box-shadow: inset 3px 0 0 #2f63a3; }
.erp-rotulo { display: block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; margin-bottom: .2rem; }
.erp-campo { display: block; width: 100%; padding: .35rem .55rem; font-size: 11px; border-radius: .55rem; border: 1px solid #cbd5e1; background: #fff; color: #1e293b; min-height: 28px; }
.erp-campo-foco { border-color: #3b76bc; box-shadow: 0 0 0 2px rgb(59 118 188 / .2); }

/* Pergunta frequente: seta gira quando aberta */
.faq-seta { transition: transform .2s ease; }
.faq-aberta .faq-seta { transform: rotate(180deg); }
