/* Certificados360 — utilitários mobile */
.nav-link { transition: background .15s, color .15s; }
.nav-link:hover { background: rgba(30, 58, 138, 0.08); color: #1e3a8a; }
.nav-link.active { background: rgba(30, 58, 138, 0.12); color: #1e3a8a; font-weight: 600; }
.card-elevated { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08); }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    -webkit-tap-highlight-color: rgba(30, 58, 138, 0.12);
}

body.sidebar-open {
    overflow: hidden;
}

#sidebar-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

body.sidebar-open #sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
}

#app-sidebar {
    transition: transform 0.25s ease;
}

@media (max-width: 1023px) {
    #app-sidebar {
        transform: translateX(-100%);
    }
    body.sidebar-open #app-sidebar {
        transform: translateX(0);
    }
}

.fab-safe {
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 1024px) {
    .fab-safe {
        bottom: max(2rem, env(safe-area-inset-bottom, 0px));
        right: max(2rem, env(safe-area-inset-right, 0px));
    }
}

.table-scroll-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 24px;
    pointer-events: none;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
}

@media (min-width: 1024px) {
    .table-scroll-wrap::after {
        display: none;
    }
}

/* Filtros multi-seleção (relatório robô) */
.filter-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .filter-checkbox-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.filter-checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.filter-checkbox-grid label:has(input:checked) {
    border-color: #1e3a8a;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 600;
}

.filter-checkbox-grid input {
    flex-shrink: 0;
}

.filter-imob-list {
    max-height: 12rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .filter-imob-list {
        max-height: 10rem;
    }
}
