.mapa-area .mapa-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.mapa-area .impl-status-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.mapa-area .impl-status-backlog { background: #e5e7eb; color: #374151; }
.mapa-area .impl-status-andamento { background: #dcfce7; color: #166534; }
.mapa-area .impl-status-postergado { background: #ffedd5; color: #c2410c; }
.mapa-area .impl-status-atrasado { background: #fee2e2; color: #b91c1c; }
.mapa-area .impl-status-concluido { background: #dbeafe; color: #1d4ed8; }
.mapa-area .impl-status-tbd { background: #fef9c3; color: #a16207; }
.mapa-area .impl-status-cancelado { background: #d1d5db; color: #374151; }

.mapa-area .mapa-cell {
    display: flex;
    flex-direction: column;
    min-height: 120px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mapa-area .mapa-cell:hover {
    border-color: #94a3b8;
}

.mapa-area .mapa-cell-warning {
    border-color: #fca5a5;
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.15);
}

.mapa-area .mapa-cell-overload {
    border-color: #f97316;
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.2);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 48px);
}

.mapa-area .mapa-cell-code {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0;
}

.mapa-area .mapa-cell-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.mapa-area .mapa-cell-meta {
    font-size: 10px;
    color: #9ca3af;
    margin: 4px 0 0;
}

.mapa-area .mapa-cell-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 8px 0;
}

.mapa-area .mapa-count-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.mapa-area .mapa-cell-link {
    font-size: 10px;
    font-weight: 700;
    color: #0369a1;
    text-decoration: none;
    margin-bottom: 8px;
}

.mapa-area .mapa-cell-link:hover {
    text-decoration: underline;
}

.mapa-area .mapa-cell-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 192px;
    overflow-y: auto;
    flex: 1;
}

.mapa-area .mapa-cell-empty {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    padding: 16px 0;
    margin: 0;
}

.mapa-area .kanban-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.15s ease;
}

.mapa-area .kanban-card:hover {
    box-shadow: 0 8px 16px -8px rgba(15, 23, 42, 0.2);
}

.mapa-area .kanban-card-body {
    cursor: pointer;
}

.mapa-area .kanban-card-title {
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
}

.mapa-area .kanban-card-meta {
    color: #6b7280;
    font-size: 11px;
    margin: 4px 0 0;
}

.mapa-area .kanban-card-phase {
    color: #047857;
    font-size: 10px;
    margin: 8px 0 0;
}

.mapa-area .resumo-skel {
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: mapa-skel-shine 1.2s ease-in-out infinite;
}

@keyframes mapa-skel-shine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
