/**
 * Estilos Personalizados - GISCOLAR
 * Sistema de Gestão de Contatos de Escolas
 * Design System Unificado
 */

 :root {
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #475569;
    --success-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --info-color: #0891b2;
    --accent-color: #059669;
    --bg-soft: rgba(5, 150, 105, 0.08);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.2s ease-in-out;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    padding: 1rem;
}

.login-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-header i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.login-body {
    padding: 2rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    background: white;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background-color: #f8fafc;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Premium Enhancements */
.premium-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: white;
    overflow: hidden;
    transition: var(--transition);
}

.premium-card:hover {
    box-shadow: var(--shadow-lg);
}

.border-start-accent {
    border-left: 5px solid var(--accent-color) !important;
}

.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.avatar-primary {
    background: var(--primary-color);
}

.avatar-success {
    background: var(--success-color);
    color: #fff;
}

.avatar-warning {
    background: var(--warning-color);
    color: #fff;
}

.premium-table thead th {
    background-color: #f8fafc;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    border-bottom: 2px solid #e2e8f0;
    padding: 12px 16px;
}

.premium-table tbody td {
    padding: 16px;
    vertical-align: middle;
}

.premium-table-row:hover {
    background-color: var(--bg-soft) !important;
}

/* Card titles: soft white text shadow for readability */
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.kanban-task-title,
.prazo-card-title {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.65);
}

@media (max-width: 576px) {

    .card h1,
    .card h2,
    .card h3,
    .card h4,
    .card h5,
    .card h6,
    .kanban-task-title,
    .prazo-card-title {
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.60);
    }
}

/* Dashboard Cards */
.dashboard-card {
    border-left: 4px solid var(--primary-color);
}

.dashboard-card.success {
    border-left-color: var(--success-color);
}

.dashboard-card.warning {
    border-left-color: var(--warning-color);
}

.dashboard-card.info {
    border-left-color: var(--info-color);
}

.dashboard-card .card-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.dashboard-card .card-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Tables */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.875rem;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 5px;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.nav-link {
    transition: background-color 0.3s ease;
    border-radius: 5px;
    margin: 0 5px;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

/* Navbar brand logo */
.navbar-brand .brand-logo {
    height: 46px;
    width: auto;
    object-fit: contain;
    display: inline-block;
}

@media (max-width: 576px) {
    .navbar-brand .brand-logo {
        height: 38px;
    }
}

/* Header brand bar */
.brand-bar {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.brand-bar a {
    display: inline-flex;
    width: auto;
}

.brand-logo-full {
    height: 53px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: inline-block;
}

@media (max-width: 576px) {
    .brand-logo-full {
        height: 43px;
        width: auto;
    }
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

.footer-logo {
    height: 53px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 576px) {
    .footer-logo {
        height: 43px;
    }
}

/* DataTables customization */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 5px 10px;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 5px 10px;
}

/* Barra de busca unificada */
.datatable-search-wrapper {
    display: flex;
    justify-content: flex-end;
}

.datatable-search-wrapper .input-group {
    max-width: 320px;
}

@media (max-width: 576px) {
    .datatable-search-wrapper {
        justify-content: flex-start;
    }

    .datatable-search-wrapper .input-group {
        width: 100%;
        max-width: 100%;
    }
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-card .card-number {
        font-size: 2rem;
    }

    .dashboard-card .card-icon {
        font-size: 2rem;
    }

    .table {
        font-size: 0.875rem;
    }
}

/* Print styles */
@media print {

    .navbar,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }

    /* Reset all decorative card styles */
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        border-top: 1px solid #ccc !important;
        transform: none !important;
        overflow: visible !important;
        position: relative !important;
    }

    /* Remove only card accent bars, not Bootstrap Icons */
    .card::before,
    .card::after,
    .kanban-task::before,
    .prazo-card::before {
        display: none !important;
        content: none !important;
    }

    .card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    /* Force each school card to start on a new page */
    .col-12.mb-4 {
        page-break-inside: avoid;
        break-inside: avoid;
        page-break-before: auto;
        margin-top: 10px !important;
    }

    /* First school card should NOT have page break before */
    .row>.col-12.mb-4:first-child {
        page-break-before: avoid;
    }

    .card.h-100 {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .accordion-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Allow tables to flow - individual rows stay together */
    .table {
        page-break-inside: auto;
    }

    thead {
        display: table-header-group;
    }

    tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Remove left border color on rows */
    tbody tr[style] {
        border-left: none !important;
    }

    .card-header {
        border-bottom: 1px solid #dee2e6 !important;
        background-color: #f8f9fa !important;
    }

    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Separator forces a clean break between school cards */
    .school-separator {
        page-break-after: always;
        break-after: always;
        height: 0 !important;
        margin: 0 !important;
        background: none !important;
    }
}

/* Utility classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.professor-badge {
    white-space: normal;
    line-height: 1.15;
    text-align: right;
    max-width: 100%;
}

.cursor-pointer {
    cursor: pointer;
}

.hover-shadow:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Kanban Details */
.section-title {
    font-weight: 700;
    font-size: 1rem;
    color: #343a40;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sticky-card {
    position: sticky;
    top: 1rem;
}

.attachment-list .attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attachment-list .attachment-item:hover {
    background-color: rgba(13, 110, 253, 0.04);
}

.attachment-actions .btn {
    margin-left: 6px;
}

.priority-badge {
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.priority-baixa {
    background: #d1ecf1;
    color: #0c5460;
}

.priority-media {
    background: #fff3cd;
    color: #856404;
}

.priority-alta {
    background: #f8d7da;
    color: #721c24;
}

.priority-urgente {
    background: #dc3545;
    color: white;
}

.comment-item .card-body {
    padding: 16px 18px;
}

/* Kanban Board */
/* Kanban board styles removidos: voltaram a estar inline em kanban.php para restaurar o comportamento original. */

/* Kanban Details: Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.image-gallery .image-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Relatório Fotográfico - Carrossel de Fotos */
.foto-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.foto-carousel .carousel-inner {
    border-radius: 8px;
}

.foto-carousel img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
}

.foto-carousel .carousel-item {
    transition: transform 0.3s ease-in-out;
}

.foto-carousel .carousel-control-prev,
.foto-carousel .carousel-control-next {
    width: 10%;
    opacity: 0.7;
}

.foto-carousel .carousel-control-prev:hover,
.foto-carousel .carousel-control-next:hover {
    opacity: 1;
}

.foto-carousel .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .foto-carousel img {
        height: 140px;
    }
}


/* Blurred background + translucent overlay theme */
body.has-blurred-bg {
    background: transparent;
}

body.has-blurred-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: var(--page-bg-image, url("/db/LOG_GRE1.png"));
    background-size: var(--page-bg-size, cover);
    background-position: center;
    background-repeat: no-repeat;
    filter: var(--page-bg-filter, blur(12px) brightness(0.95));
    transform: scale(var(--page-bg-scale, 1.06));
    opacity: var(--page-bg-opacity, 0.5);
}

body.has-blurred-bg::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.40) 100%);
}

.has-blurred-bg .brand-bar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.translucent-card {
    background: rgba(255, 255, 255, 0.50);
}

.floating {
    transition: transform .2s ease, box-shadow .2s ease;
}

.floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

/* Apply to common components */
.has-blurred-bg .card {
    background: rgba(255, 255, 255, 0.50);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Kanban */
.has-blurred-bg .kanban-column {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    backdrop-filter: blur(6px);
}

.has-blurred-bg .kanban-task {
    background: rgba(255, 255, 255, 0.50);
    border-width: 1.5px;
    border-style: solid;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    border-radius: 14px;
}

/* Prazo */
.has-blurred-bg .prazo-column {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    backdrop-filter: blur(6px);
}

.has-blurred-bg .prazo-card {
    background: rgba(255, 255, 255, 0.50);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    border-radius: 14px;
}

/* Calendário container (cards/modals) */
.has-blurred-bg .modal-content,
.has-blurred-bg .fc-theme-standard .fc-popover,
.has-blurred-bg .fc .fc-toolbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
}

/* Ensure readable text on translucent surfaces */
.has-blurred-bg .card,
.has-blurred-bg .kanban-task,
.has-blurred-bg .prazo-card {
    color: #1f2937;
}

/* Fallback for browsers without backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {

    .has-blurred-bg .card,
    .has-blurred-bg .kanban-column,
    .has-blurred-bg .kanban-task,
    .has-blurred-bg .prazo-column,
    .has-blurred-bg .prazo-card {
        background: rgba(255, 255, 255, 0.70);
    }
}


/* Card accent top color scheme */
.card,
.kanban-task,
.prazo-card {
    position: relative;
}

.card::before,
.kanban-task::before,
.prazo-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 6px;
    background: var(--card-accent-color, var(--primary-color));
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    pointer-events: none;
    opacity: .95;
}

/* Accent utility classes */
.accent-primary {
    --card-accent-color: var(--primary-color);
}

.accent-success {
    --card-accent-color: var(--success-color);
}

.accent-warning {
    --card-accent-color: var(--warning-color);
}

.accent-info {
    --card-accent-color: var(--info-color);
}

.accent-danger {
    --card-accent-color: var(--danger-color);
}

.accent-secondary {
    --card-accent-color: var(--secondary-color);
}

/* Automatic accent by priority badges (modern browsers) */
.card:has(.priority-urgente)::before,
.kanban-task:has(.priority-urgente)::before,
.prazo-card:has(.priority-urgente)::before {
    --card-accent-color: var(--danger-color);
}

.card:has(.priority-alta)::before,
.kanban-task:has(.priority-alta)::before,
.prazo-card:has(.priority-alta)::before {
    --card-accent-color: var(--warning-color);
}

.card:has(.priority-media)::before,
.kanban-task:has(.priority-media)::before,
.prazo-card:has(.priority-media)::before {
    --card-accent-color: var(--info-color);
}

.card:has(.priority-baixa)::before,
.kanban-task:has(.priority-baixa)::before,
.prazo-card:has(.priority-baixa)::before {
    --card-accent-color: var(--success-color);
}

/* Responsive adjustment for accent thickness */
@media (max-width: 576px) {

    .card::before,
    .kanban-task::before,
    .prazo-card::before {
        height: 4px;
    }
}


/* Sticky notes board */
.sticky-board {
    position: fixed;
    top: 120px;
    right: 20px;
    width: 400px;
    min-height: 60vh;
    max-height: 70vh;
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 12px;
    overflow: auto;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.sticky-board-header {
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: rgba(108, 117, 125, 0.9);
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
    font-size: 0.85rem;
    font-weight: 500;
    user-select: none;
}

.sticky-board.dragging {
    cursor: grabbing;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.sticky-note {
    position: absolute;
    inset: auto auto 0 0;
    /* default origin */
    width: 280px;
    min-width: 200px;
    height: 180px;
    min-height: 140px;
    background: var(--sticky-color, #fff9c4);
    /* default amarelo claro */
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    resize: both;
    transition: box-shadow .2s ease, transform .2s ease;
}

.sticky-note.dragging {
    cursor: grabbing;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.sticky-note-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    user-select: none;
    cursor: grab;
    background: rgba(255, 255, 255, 0.30);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sticky-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    cursor: pointer;
    opacity: .9;
    flex: 0 0 auto;
}

.sticky-delete-btn {
    margin-left: auto;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.60);
    color: #d9534f;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
}

.sticky-text {
    width: 100%;
    height: calc(100% - 32px);
    border: 0;
    padding: 8px 10px;
    background: transparent;
    outline: none;
    resize: none;
    font-size: .95rem;
    line-height: 1.25rem;
}

.sticky-note:focus-within {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
}

@media (max-width: 768px) {
    .sticky-board {
        min-height: 50vh;
    }

    .sticky-note {
        width: 200px;
        height: 140px;
    }

    .sticky-color-dot {
        width: 10px;
        height: 10px;
    }
}


/* Kanban Details: Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.image-gallery .image-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}


/* Ícone de escola (Leaflet DivIcon) */
.school-marker {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #2a81cb;
    /* azul Leaflet padrão */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 18px;
    /* tamanho do emoji 🏫 */
    line-height: 1;
    color: #2a81cb;
}

/* Ajuste para foco/hover em desktops */
.school-marker:hover {
    transform: scale(1.08);
}

body.page-relatorio_etec_gre1 {
    --bs-primary: #0057d9;
    --bs-primary-rgb: 0, 87, 217;
    --bs-success: #0f8a3b;
    --bs-success-rgb: 15, 138, 59;
    --bs-danger: #c1121f;
    --bs-danger-rgb: 193, 18, 31;
    --bs-warning: #ff8c00;
    --bs-warning-rgb: 255, 140, 0;
    --bs-info: #0096ff;
    --bs-info-rgb: 0, 150, 255;
    --primary-color: #0057d9;
    --success-color: #0f8a3b;
    --danger-color: #c1121f;
    --warning-color: #ff8c00;
    --info-color: #0096ff;
    --accent-color: #0f8a3b;
    --bg-soft: rgba(15, 138, 59, 0.10);
    --filter-etec: #7c3aed;
    --filter-etec-rgb: 124, 58, 237;
}

body.page-relatorio_etec_gre1 .badge.bg-violet,
body.page-relatorio_etec_gre1 .bg-violet {
    background-color: var(--filter-etec) !important;
}

body.page-relatorio_etec_gre1 .nav-tabs .nav-link {
    color: #0b1220;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.22);
    background: rgba(var(--bs-primary-rgb), 0.08);
}

body.page-relatorio_etec_gre1 .nav-tabs .nav-link:hover {
    background: rgba(var(--bs-primary-rgb), 0.14);
    border-color: rgba(var(--bs-primary-rgb), 0.32);
}

body.page-relatorio_etec_gre1 .nav-tabs .nav-link.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

body.page-relatorio_etec_gre1 .nav-pills .nav-link {
    border-color: rgba(var(--bs-primary-rgb), 0.22) !important;
    color: #0b1220;
    background: rgba(var(--bs-primary-rgb), 0.06);
}

body.page-relatorio_etec_gre1 .nav-pills .nav-link.active {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

body.page-relatorio_etec_gre1 .accordion-button {
    background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.92) 0%, rgba(var(--bs-info-rgb), 0.92) 100%);
    color: #fff;
}

body.page-relatorio_etec_gre1 .accordion-button.collapsed {
    background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.82) 0%, rgba(var(--bs-info-rgb), 0.82) 100%);
}

body.page-relatorio_etec_gre1 .accordion-button::after {
    filter: brightness(0) invert(1);
}

body.page-relatorio_etec_gre1 .accordion-body.bg-light {
    background: rgba(var(--bs-primary-rgb), 0.06) !important;
}

body.page-relatorio_etec_gre1 .filter-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.75);
}

body.page-relatorio_etec_gre1 .filter-switch .form-check-input {
    margin-left: 0;
    float: none;
}

body.page-relatorio_etec_gre1 .filter-switch.filter-mediacao {
    border-color: rgba(var(--bs-warning-rgb), 0.45);
    background: rgba(var(--bs-warning-rgb), 0.10);
}

body.page-relatorio_etec_gre1 .filter-switch.filter-fgb {
    border-color: rgba(var(--bs-success-rgb), 0.45);
    background: rgba(var(--bs-success-rgb), 0.10);
}

body.page-relatorio_etec_gre1 .filter-switch.filter-etec {
    border-color: rgba(var(--filter-etec-rgb), 0.55);
    background: rgba(var(--filter-etec-rgb), 0.12);
}

body.page-relatorio_etec_gre1 .filter-switch.filter-mediacao .form-check-input,
body.page-relatorio_etec_gre1 .filter-switch.filter-mediacao .form-check-label {
    border-color: var(--bs-warning);
    color: var(--bs-warning) !important;
}

body.page-relatorio_etec_gre1 .filter-switch.filter-fgb .form-check-input,
body.page-relatorio_etec_gre1 .filter-switch.filter-fgb .form-check-label {
    border-color: var(--bs-success);
    color: var(--bs-success) !important;
}

body.page-relatorio_etec_gre1 .filter-switch.filter-etec .form-check-input,
body.page-relatorio_etec_gre1 .filter-switch.filter-etec .form-check-label {
    border-color: var(--filter-etec);
    color: var(--filter-etec) !important;
}

body.page-relatorio_etec_gre1 .filter-switch.filter-mediacao .form-check-input:checked {
    background-color: var(--bs-warning) !important;
    border-color: var(--bs-warning) !important;
}

body.page-relatorio_etec_gre1 .filter-switch.filter-fgb .form-check-input:checked {
    background-color: var(--bs-success) !important;
    border-color: var(--bs-success) !important;
}

body.page-relatorio_etec_gre1 .filter-switch.filter-etec .form-check-input:checked {
    background-color: var(--filter-etec) !important;
    border-color: var(--filter-etec) !important;
}
