/* ===== TOOLTIPS ESTILIZADOS ===== */
[data-tooltip] {
    position: relative;
    cursor: help;
}
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    max-width: 300px;
    white-space: normal;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 999;
    font-weight: 400;
    pointer-events: none;
    text-align: center;
    line-height: 1.4;
}
[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a2e;
    z-index: 999;
}
[data-tooltip].btn { cursor: help; }

.page-help {
    background: #e3f2fd;
    border-left: 4px solid var(--primary);
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #0d47a1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.page-help .help-icon { font-size: 1.5rem; line-height: 1; }
.page-help .help-text { flex: 1; }
.page-help .help-text strong { display: block; margin-bottom: 2px; }

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 10px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85rem;
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-item .badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 4px;
}
.legend-item .badge.rascunho { background: #e0e0e0; }
.legend-item .badge.registado { background: #bbdefb; }
.legend-item .badge.em_tramitacao { background: #fff3cd; }
.legend-item .badge.deferido { background: #c8e6c9; }
.legend-item .badge.indeferido { background: #ffcdd2; }
.legend-item .badge.arquivado { background: #d1c4e9; }
.field-help { display: block; font-size: 0.8rem; color: #6c757d; margin-top: 3px; }

/* ===== TOOLTIPS - NÃO APLICAR EM BOTÕES ===== */
.btn[data-tooltip]::after,
.btn[data-tooltip]::before {
    display: none !important;
}
