/* Cadastro reutilizável de categoria de produto. */
#modalCategoria .modal-dialog { max-height: 90vh; }
#modalCategoria .modal-body { max-height: calc(90vh - 200px); overflow-y: auto; }

.icon-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 6px;
    padding: 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

html[data-bs-theme="dark"] .icon-grid-wrapper { background: #2a2a2a; border-color: #444; }
.icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 6px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: all .15s ease;
    font-size: 0;
}
html[data-bs-theme="dark"] .icon-item { background: #333; border-color: #555; }
.icon-item i { font-size: 18px; color: #333; }
html[data-bs-theme="dark"] .icon-item i { color: #ccc; }
.icon-item:hover { border-color: #0d6efd; background: #f0f6ff; box-shadow: 0 2px 8px rgba(13, 110, 253, .15); }
html[data-bs-theme="dark"] .icon-item:hover { background: #3d3d4d; border-color: #0d6efd; box-shadow: 0 2px 8px rgba(13, 110, 253, .3); }
.icon-item.selected { background: #0d6efd; border-color: #0d6efd; box-shadow: 0 3px 10px rgba(13, 110, 253, .3); }
.icon-item.selected i { color: #fff; }
