/* ─── Portal Colaborador — CSS específico ────────────────────────────────────
   Cor de destaque: #245A91 (azul)
   Depende de: base.css
────────────────────────────────────────────────────────────────────────────── */
:root {
    --cor-destaque: #245A91;
    --cor-destaque-texto: #ffffff;
    --cor-accent: #F3BD48;
    --login-gradient: linear-gradient(135deg, #000000 0%, #245A91 100%);
}

.portal {
    display: none;
    flex-direction: column;
    min-height: 100vh;
}

/* Barra de título de seção */
.section-title-bar {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E5E7EB;
    color: #0f172a;
    letter-spacing: -0.3px;
}

/* Card */
.card {
    background: white;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border-radius: 10px;
    border: 1px solid #F3F4F6;
}

.card h3 {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #245A91;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

/* Data grid */
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.data-item {
    margin-bottom: 12px;
    position: relative;
}

.data-label {
    font-weight: 600;
    color: #6B7280;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.data-value {
    color: #111827;
    font-size: 14px;
    font-weight: 500;
}

/* Edição inline */
.edit-icon {
    cursor: pointer;
    color: #245A91;
    font-size: 14px;
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.edit-icon:hover { opacity: 1; }

.data-value.editable {
    display: inline-block;
    min-width: 150px;
}

.edit-input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #245A91;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 4px;
    font-family: inherit;
}

.edit-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.edit-actions button {
    padding: 7px 14px;
    font-size: 12px;
}

/* Histórico */
.history-item {
    padding: 14px 16px;
    background: #F9FAFB;
    border-left: 3px solid #245A91;
    border-radius: 0 6px 6px 0;
    margin-bottom: 8px;
}

.history-item .timestamp { font-size: 11px; color: #9CA3AF; margin-bottom: 4px; }
.history-item .field-name { font-weight: 600; color: #6B7280; margin-bottom: 4px; font-size: 13px; }
.history-item .values { font-size: 13px; }
.history-item .old-value { color: #DC2626; text-decoration: line-through; }
.history-item .new-value { color: #16A34A; }

/* Consentimento */
.consent-item {
    padding: 14px 16px;
    background: #F9FAFB;
    border-left: 3px solid #245A91;
    border-radius: 0 6px 6px 0;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consent-item.revoked {
    background: #FFFBEB;
    border-left-color: #F59E0B;
}

/* Modal colaborador */
.modal-content {
    background-color: white;
    margin: 8% auto;
    padding: 32px;
    border-radius: 12px;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.modal-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #245A91;
}

.modal-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: #0f172a; }
.modal-body { margin-bottom: 18px; }

.modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .data-grid { grid-template-columns: 1fr; }
}
