/* Explain: Base reset and typography defaults for the CRM portal. - */
* {
    box-sizing: border-box;
}

[x-cloak] {
    display: none !important;
}

html {
    background: var(--background-color);
    color: var(--text-color);
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(163, 177, 138, 0.25), transparent 26rem),
        radial-gradient(circle at 88% 8%, rgba(88, 129, 87, 0.15), transparent 24rem),
        var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    text-rendering: optimizeLegibility;
}

button,
a,
select {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--accent-color);
    color: #ffffff;
}

/* Formatação Especial para Geração de Relatórios em PDF e Impressão */
@media print {
    .drawer-side, .site-header, .mobile-book-bar, .no-print, button:not(.print-btn) {
        display: none !important;
    }
    .drawer-content {
        height: auto !important;
        overflow: visible !important;
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .drawer {
        display: block !important;
    }
    body, html {
        background: white !important;
        color: black !important;
    }
    .shadow-sm, .shadow-md, .shadow-xl {
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
    .table {
        font-size: 11px !important;
    }
    .table th, .table td {
        padding: 0.5rem !important;
    }
    .modal {
        display: none !important;
    }
    /* Força quebra de página se necessário nos gráficos */
    canvas {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}
