﻿/**
 * gestao_cc.css — Estilos do módulo Gestão CC
 * Versão: 1.0 — 27/02/2026
 */

/* ── Container Principal ─────────────────────────────────────── */
.gcc-container {
    padding: 0 1rem 2rem;
    width: 100%;
}

/* ── Header ──────────────────────────────────────────────────── */
.gcc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.gcc-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #e2e8f0);
}

.gcc-header-left i {
    font-size: 1.3rem;
    opacity: 0.7;
}

.gcc-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Toggle Grid/Card ────────────────────────────────────────── */
.gcc-view-toggle {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.gcc-view-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.04);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.gcc-view-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.gcc-view-btn.active {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    box-shadow: inset 0 -2px 0 #6366f1;
}

.gcc-view-btn i {
    font-size: 1rem;
}

/* ── Dropdowns Filtro (reutiliza padrão leitos) ──────────────── */
.gcc-dropdowns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gcc-multiselect-wrap {
    position: relative;
}

.gcc-multiselect-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary, #e2e8f0);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.gcc-multiselect-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.gcc-multiselect-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.5rem;
    z-index: 1000;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    max-height: 280px;
    overflow-y: auto;
}

.gcc-multiselect-panel.open {
    display: block;
}

.gcc-multiselect-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: background 0.15s;
}

.gcc-multiselect-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.gcc-multiselect-item.selected {
    background: rgba(99, 102, 241, 0.15);
}

.gcc-multiselect-item input {
    accent-color: #6366f1;
    cursor: pointer;
}

.gcc-dropdowns-sep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.25rem;
}

.gcc-caret {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* ── Botão Novo Evento ───────────────────────────────────────── */
.gcc-btn-new {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.85rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.gcc-btn-new:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.gcc-btn-new i {
    font-size: 1rem;
}

/* ── KPI Dashboard ──────────────────────────────────────────── */
.gcc-dashboard {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.85rem;
    padding: 0 0 0.85rem;
    margin-bottom: 0.5rem;
}

.gcc-kpi-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.gcc-kpi-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gcc-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, var(--kpi-accent, #6366f1), transparent);
    opacity: 0.6;
}

.gcc-kpi-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.55;
    line-height: 1.3;
}

.gcc-kpi-value {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary, #e2e8f0);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.gcc-kpi-value small {
    font-size: 0.55em;
    font-weight: 600;
    opacity: 0.5;
}

.gcc-kpi-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

/* Badge de status (Estável, Crítico, etc) */
.gcc-kpi-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.gcc-kpi-badge-ok {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.gcc-kpi-badge-warn {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.gcc-kpi-badge-critical {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

/* Trend indicator */
.gcc-kpi-trend {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    font-weight: 700;
}

.gcc-kpi-trend-up {
    color: #f87171;
}

.gcc-kpi-trend-down {
    color: #4ade80;
}

.gcc-kpi-trend-neutral {
    color: rgba(255, 255, 255, 0.4);
}

/* Gauge (semicírculo visual) */
.gcc-kpi-gauge {
    width: 46px;
    height: 23px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.gcc-kpi-gauge-bg {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-bottom-color: transparent;
    border-left-color: transparent;
    transform: rotate(-90deg);
    box-sizing: border-box;
}

.gcc-kpi-gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--gauge-color, #4ade80);
    border-right-color: var(--gauge-color, #4ade80);
    transform: rotate(calc(-90deg + var(--gauge-deg, 0deg)));
    box-sizing: border-box;
    transition: transform 0.8s ease;
}

/* Progress bar */
.gcc-kpi-progress {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 2px;
}

.gcc-kpi-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #6366f1, #a78bfa);
    transition: width 0.6s ease;
}

/* Sub info line */
.gcc-kpi-sub {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0.55;
}

.gcc-kpi-sub i {
    font-size: 0.85rem;
}

/* Fraction display */
.gcc-kpi-fraction {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary, #e2e8f0);
}

.gcc-kpi-fraction span {
    font-size: 0.55em;
    font-weight: 600;
    opacity: 0.4;
}

/* Icon decorativo no card */
.gcc-kpi-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    opacity: 0.06;
    pointer-events: none;
}

/* ── Responsive KPI ─────────────────────────────────────────── */
@media (max-width: 1200px) {
    .gcc-dashboard {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gcc-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gcc-dashboard {
        grid-template-columns: 1fr;
    }
}

/* ── Light Mode KPI ─────────────────────────────────────────── */
.light-mode .gcc-kpi-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.light-mode .gcc-kpi-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.light-mode .gcc-kpi-value,
.light-mode .gcc-kpi-fraction {
    color: #1e293b;
}

.light-mode .gcc-kpi-gauge-bg {
    border-color: rgba(0, 0, 0, 0.08);
    border-bottom-color: transparent;
    border-left-color: transparent;
}

.light-mode .gcc-kpi-progress {
    background: rgba(0, 0, 0, 0.06);
}

.light-mode .gcc-kpi-trend-neutral {
    color: rgba(0, 0, 0, 0.35);
}

/* ── Botões de Ação ─────────────────────────────────────────── */
.gcc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.35rem 0.7rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    transition: all 0.15s;
}

.gcc-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gcc-action-btn-accept {
    background: #6366f1;
}

.gcc-action-btn-start {
    background: #f59e0b;
}

.gcc-action-btn-finish {
    background: #10b981;
}

/* Botão de Fluxo (avançar cenário) */
.gcc-action-btn-flow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.gcc-action-btn-flow:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.gcc-action-btn-flow:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.gcc-evt-actions {
    display: flex;
    gap: 4px;
    margin-top: 3px;
}

.gcc-stats-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
}

.gcc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    min-width: 70px;
}

.gcc-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary, #e2e8f0);
    line-height: 1;
}

.gcc-stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.5;
    margin-top: 2px;
}

.gcc-stat-critico {
    border-color: rgba(248, 113, 113, 0.3);
}

.gcc-stat-critico .gcc-stat-value {
    color: #f87171;
}

/* ── Status Legend ───────────────────────────────────────────── */
.gcc-status-legend {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.25rem 0;
    margin-bottom: 0.5rem;
}

.gcc-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.7;
}

.gcc-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

/* ══════════════════════════════════════════════════════════════ */
/* ── VISÃO GRID ──────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════ */
.gcc-grid-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gcc-grid {
    display: table;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.gcc-grid-header {
    display: table-header-group;
}

.gcc-grid-header .gcc-grid-cell {
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 0.5rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 5;
}

.gcc-grid-row {
    display: table-row;
    transition: background 0.15s;
}

.gcc-grid-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.gcc-grid-row-clickable {
    cursor: pointer;
}

.gcc-grid-row-clickable:hover {
    background: rgba(99, 102, 241, 0.07);
}

.gcc-grid-cell {
    display: table-cell;
    padding: 0.35rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #e2e8f0);
}

.gcc-grid-cell-leito {
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 80px;
}

/* Célula de evento no grid */
.gcc-evt-cell {
    position: relative;
    min-width: 120px;
    max-width: 180px;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    margin: 2px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.gcc-evt-cell:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gcc-evt-type {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gcc-evt-time {
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    opacity: 0.9;
}

.gcc-evt-sla {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
}

.gcc-evt-sla-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gcc-evt-status-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    color: #fff;
    line-height: 1.3;
}

.gcc-evt-empty {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.78rem;
    text-align: center;
}

/* ── Ações no Grid (botões inline) ──────────────────────────── */
.gcc-evt-actions {
    display: flex;
    gap: 3px;
    margin-top: 3px;
}

.gcc-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    color: #fff;
    transition: all 0.15s;
    padding: 0;
}

.gcc-action-btn:hover {
    transform: scale(1.15);
}

.gcc-action-btn-accept {
    background: #6366f1;
}

.gcc-action-btn-start {
    background: #f59e0b;
}

.gcc-action-btn-finish {
    background: #10b981;
}

/* ══════════════════════════════════════════════════════════════ */
/* ── VISÃO CARD ──────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════ */
.gcc-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
}

.gcc-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

.gcc-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.gcc-card-header {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gcc-card-bed {
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gcc-card-bed i {
    opacity: 0.6;
}

.gcc-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    opacity: 0.6;
}

.gcc-card-location span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.gcc-card-body {
    padding: 0.5rem 0.75rem;
}

.gcc-card-patient {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gcc-card-patient i {
    opacity: 0.5;
    font-size: 0.9rem;
}

.gcc-card-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gcc-card-evt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    font-size: 0.78rem;
    transition: background 0.15s;
}

.gcc-card-evt:hover {
    background: rgba(255, 255, 255, 0.03);
}

.gcc-card-evt-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.gcc-card-evt-info i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.gcc-card-evt-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gcc-card-evt-time {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.gcc-card-evt-sla {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.gcc-card-evt-actions {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

/* ── Modal Criar Evento ──────────────────────────────────────── */
.gcc-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.gcc-modal-overlay.open {
    display: flex;
}

.gcc-modal {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    width: 420px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: gccModalIn 0.2s ease-out;
}

@keyframes gccModalIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gcc-modal-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gcc-modal-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gcc-modal-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.5;
    padding: 0 4px;
    transition: opacity 0.15s;
}

.gcc-modal-close:hover {
    opacity: 1;
}

.gcc-modal-body {
    padding: 1rem 1.25rem;
}

.gcc-modal-footer {
    padding: 0.75rem 1.25rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gcc-modal-group {
    margin-bottom: 0.85rem;
}

.gcc-modal-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.7;
}

.gcc-modal-input {
    width: 100%;
    padding: 0.5rem 0.7rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary, #e2e8f0);
    font-size: 0.85rem;
}

.gcc-modal-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.gcc-modal-btn {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.gcc-modal-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.gcc-modal-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.gcc-modal-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary, #e2e8f0);
}

.gcc-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ── Detail Modal (reusa do global, mas adaptado) ────────────── */
.gcc-detail-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.gcc-detail-overlay.open {
    display: flex;
}

.gcc-detail-modal {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    width: 480px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: gccModalIn 0.2s ease-out;
}

.gcc-detail-header {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gcc-detail-body {
    padding: 1rem 1.25rem;
}

.gcc-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.gcc-detail-label {
    font-size: 0.78rem;
    opacity: 0.6;
}

.gcc-detail-value {
    font-size: 0.85rem;
    font-weight: 700;
}

.gcc-detail-timeline {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gcc-detail-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.gcc-detail-step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
}

.gcc-detail-actions {
    padding: 0.75rem 1.25rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gcc-detail-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    transition: all 0.15s;
}

.gcc-detail-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .gcc-header {
        flex-direction: column;
        align-items: stretch;
    }

    .gcc-header-actions {
        justify-content: center;
    }

    .gcc-cards-container {
        grid-template-columns: 1fr;
    }

    .gcc-grid-container {
        font-size: 0.75rem;
    }
}

/* ── Light Mode ──────────────────────────────────────────────── */
.light-mode .gcc-header {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .gcc-multiselect-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #334155;
}

.light-mode .gcc-multiselect-panel {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .gcc-multiselect-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.light-mode .gcc-stat {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .gcc-stat-value {
    color: #1e293b;
}

.light-mode .gcc-grid-header .gcc-grid-cell {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .gcc-grid-row:hover {
    background: rgba(0, 0, 0, 0.02);
}

.light-mode .gcc-grid-cell {
    border-color: rgba(0, 0, 0, 0.06);
    color: #334155;
}

.light-mode .gcc-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .gcc-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.light-mode .gcc-modal,
.light-mode .gcc-detail-modal {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .gcc-modal-input {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #334155;
}

.light-mode .gcc-evt-empty {
    color: rgba(0, 0, 0, 0.2);
}

.light-mode .gcc-view-btn {
    color: rgba(0, 0, 0, 0.45);
    background: rgba(0, 0, 0, 0.03);
}

.light-mode .gcc-view-btn.active {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

/* ══════════════════════════════════════════════════════════════ */
/* ── KANBAN VIEW (Card Mode — Etapas do Cenário) ─────────────── */
/* ══════════════════════════════════════════════════════════════ */
.gcc-kanban-col {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.gcc-kanban-col-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-bottom: 2px solid;
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gcc-kanban-col-header i {
    font-size: 1rem;
    flex-shrink: 0;
}

.gcc-kanban-badge {
    margin-left: auto;
    flex-shrink: 0;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 800;
}

.gcc-kanban-col-body {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow-y: auto;
    max-height: 60vh;
}

/* Mini-card de leito no Kanban */
.gcc-kcard {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    cursor: pointer;
    transition: all 0.18s;
}

.gcc-kcard:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Scrollbar do body da coluna */
.gcc-kanban-col-body::-webkit-scrollbar {
    width: 4px;
}

.gcc-kanban-col-body::-webkit-scrollbar-track {
    background: transparent;
}

.gcc-kanban-col-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Light mode Kanban */
.light-mode .gcc-kanban-col {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .gcc-kanban-col-header {
    background: rgba(0, 0, 0, 0.03);
}

.light-mode .gcc-kcard {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.07);
}

.light-mode .gcc-kcard:hover {
    background: #f1f5f9;
}

/* ── Drag & Drop (Card View) ─────────────────────────────────── */
.gcc-kcard-draggable {
    cursor: grab;
}

.gcc-kcard-draggable:active {
    cursor: grabbing;
}

.gcc-kcard-dragging {
    opacity: 0.45;
    transform: scale(0.97);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    outline: 2px dashed rgba(255, 255, 255, 0.3);
}

.gcc-kanban-col-body {
    min-height: 80px;
    transition: background 0.15s, outline 0.15s;
    border-radius: 0 0 10px 10px;
}

.gcc-kanban-col-body.gcc-drop-active {
    background: rgba(99, 102, 241, 0.12);
    outline: 2px dashed #6366f1;
    outline-offset: -4px;
}

.gcc-kanban-col-body.gcc-drop-reject {
    background: rgba(248, 113, 113, 0.06);
    outline: 2px dashed rgba(248, 113, 113, 0.3);
    outline-offset: -4px;
}