/* Global mobile-first responsive baseline */
html, body {
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

.modal {
    display: none;
}
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}
.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
img {
    max-width: 100%;
    height: auto;
}

canvas {
    max-width: 100% !important;
}

#mobileSidebarOverlay.hidden, #mobileSidebar.hidden {
    display: none;
}
#mobileSidebar {
    z-index: 50;
}
#mobileSidebarOverlay {
    z-index: 40;
}
.tab-link {
    transition: all 0.2s ease-in-out;
}
.file-card.hidden {
    display: none;
}
form input, form textarea, form select {
    width: 100%;
}
table {
    font-size: 0.875rem; /* 14px */
}
@media (max-width: 640px) {
    .max-w-lg, .max-w-2xl, .max-w-md {
        max-width: 100%;
    }
    main {
        padding: 0.75rem !important;
    }
    table {
        font-size: 0.75rem; /* 12px */
    }
    th, td {
        padding: 0.5rem 0.35rem;
    }
}
/* Estilização personalizada para o select */
#clientFilter option {
    background-color: white;
    color: #333;
}

#clientFilter:focus {
    outline: none;
    ring: 2px;
    ring-[#ef509a];
}
@media (max-width: 640px) {
    #clientFilter,
    #openUploadModal {
        min-width: 0;
        flex: 1;
    }
}
/* Caixas de marcar e opções não esticam (a regra acima é para campos de texto) */
form input[type="checkbox"], form input[type="radio"] { width: auto; }
