/* ===== Relacionamento da empresa (rodada 5): bloco da ficha e painel sobreposto =====
   Mockup: C:\src\clientes\dashboard\mockups_perfil_relacionamento.html (tema 2). Destaque por selo, cor do texto ou fundo
   suave do cartão inteiro; nunca barra lateral colorida. */

.rp-cap { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: #7A6F65; font-weight: 800; }
.rp-mut { color: #7A6F65; }
.rp-sm { font-size: 12.5px; }
.rp-xs { font-size: 11.5px; }
.rp-b { font-weight: 700; }

.rp-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; border: 1px solid transparent; white-space: nowrap; line-height: 18px; }
.rp-tag.tg { background: #E3F1DA; color: #2E6B1A; border-color: #B5D89F; }
.rp-tag.ty { background: #FFF3C4; color: #6E5A00; border-color: #E6CF5C; }
.rp-tag.to { background: #FDE6D2; color: #8A4300; border-color: #F0B27A; }
.rp-tag.tb { background: #E1EEFA; color: #1F4E79; border-color: #A9CBEA; }
.rp-tag.tr { background: #FBE9E6; color: #A12A1C; border-color: #E8A79E; }
.rp-tag.tm { background: #F2EFEB; color: #6B6258; border-color: #E4DED6; }

.rp-btn { border: 1px solid #E3D6C5; background: #fff; border-radius: 10px; padding: 7px 13px; font-weight: 650; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; font-size: 13px; color: #1A1A1A; font-family: inherit; }
.rp-btn:hover { background: #FDFAF7; }
.rp-btn.pri { background: #D94030; border-color: #D94030; color: #fff; }
.rp-btn.pri:hover { background: #B8331F; }
.rp-btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.rp-btn.lnk { border: 0; background: none; color: #D94030; padding: 2px 4px; font-weight: 650; }

/* ── bloco da coluna esquerda ── */
.rp-box { border: 1px solid #EDE3D7; border-radius: 14px; overflow: hidden; background: #fff; }
.rp-hd { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(180deg, #FFFDFB, #FAF3EA); border-bottom: 1px solid #EDE3D7; }
.rp-health { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; color: #fff; flex: none; }
.rp-m3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #EDE3D7; border-bottom: 1px solid #EDE3D7; }
.rp-m3 > div { padding: 10px 12px; background: #fff; }
.rp-m3 b { display: block; font-size: 16px; font-weight: 850; }
.rp-m3 span { font-size: 11px; color: #7A6F65; line-height: 1.25; display: block; }
.rp-nba { padding: 12px 14px; background: #FFFBF0; }
.rp-nba ul { margin: 0; padding-left: 18px; }
.rp-nba li { margin: 4px 0; }

/* ── painel sobreposto ── */
.rp-ov { position: fixed; inset: 0; background: rgba(26, 20, 14, .45); z-index: 1400; display: flex; justify-content: center; align-items: flex-start; padding: 28px 18px; overflow: auto; }
.rp-ovc { background: #FAF5EF; border-radius: 20px; width: min(1260px, 100%); box-shadow: 0 24px 70px rgba(0, 0, 0, .28); }
.rp-ovh { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid #EDE3D7; background: #fff; border-radius: 20px 20px 0 0; flex-wrap: wrap; position: sticky; top: 0; z-index: 2; }
.rp-ovb { padding: 20px 22px 26px; }
.rp-sp { flex: 1; }
.rp-tabs { display: inline-flex; gap: 1px; border: 1px solid #E3D6C5; border-radius: 11px; overflow: hidden; background: #E3D6C5; }
.rp-tabs button { border: 0; background: #fff; padding: 8px 15px; font-weight: 650; cursor: pointer; font-family: inherit; font-size: 13.5px; }
.rp-tabs button.on { background: #1F2A37; color: #fff; }
.rp-card { background: #fff; border: 1px solid #EDE3D7; border-radius: 16px; box-shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 6px 20px rgba(60, 40, 20, .06); }
.rp-pad { padding: 16px 18px; }
.rp-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; }
.rp-col { display: flex; flex-direction: column; gap: 14px; }
.rp-row { display: flex; align-items: center; gap: 10px; }
.rp-sig { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid #EDE3D7; background: #fff; margin-bottom: 8px; }
.rp-ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 900; flex: none; }
.rp-prod { display: grid; grid-template-columns: 160px 130px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid #EDE3D7; }
.rp-prod:last-child { border-bottom: 0; }
.rp-prod > .rp-tag { justify-self: start; }
.rp-stack { height: 12px; border-radius: 6px; background: #F1E8DC; overflow: hidden; display: flex; flex: 1; }
.rp-stack i { display: block; height: 100%; }
.rp-lane { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid #EDE3D7; }
.rp-lane:last-child { border-bottom: 0; }
.rp-lane .ln { font-weight: 750; font-size: 13px; }
.rp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 10px; }
.rp-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #E3D6C5; background: #fff; border-radius: 999px; padding: 5px 11px; cursor: pointer; font-weight: 650; font-size: 13px; user-select: none; font-family: inherit; color: #1A1A1A; }
.rp-chip.on { background: #1F2A37; color: #fff; border-color: #1F2A37; }
.rp-chip .pt { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.rp-ev { display: grid; grid-template-columns: 70px 18px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #EDE3D7; align-items: start; }
.rp-ev .d { color: #7A6F65; font-size: 12.5px; text-align: right; padding-top: 1px; }
.rp-ev .dot { width: 12px; height: 12px; border-radius: 50%; margin: 4px auto 0; }
.rp-yr { font-weight: 900; font-size: 15px; margin: 16px 0 4px; }
.rp-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.rp-kpi { padding: 14px 16px; }
.rp-kpi .l { color: #7A6F65; font-size: 12.5px; font-weight: 600; }
.rp-kpi b { display: block; font-size: 26px; font-weight: 850; margin: 2px 0; }
.rp-kpi .s { color: #7A6F65; font-size: 12px; }
.rp-heat { width: 100%; border-collapse: separate; border-spacing: 0 2px; font-size: 13px; }
.rp-heat th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #7A6F65; text-align: left; background: #F6F0E8; padding: 9px 12px; font-weight: 800; }
.rp-heat td { padding: 8px 12px; vertical-align: middle; }
.rp-heat td.h { text-align: center; font-weight: 700; font-size: 12px; border-radius: 6px; }
.rp-heat .h0 { background: #FAF7F2; color: #C2B8AC; }
.rp-heat .h1 { background: #F3E4D2; color: #6B5A48; }
.rp-heat .h2 { background: #EFC4A5; color: #5A2F12; }
.rp-heat .h3 { background: #E58A6A; color: #fff; }
.rp-heat .h4 { background: #D94030; color: #fff; }
.rp-av { width: 30px; height: 30px; border-radius: 50%; background: #F4ECDF; color: #5A4630; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.rp-naocontato { margin-top: 10px; background: #F6F0E8; border-radius: 10px; padding: 8px 12px; font-size: .85rem; }

@media (max-width: 1100px) {
    .rp-split, .rp-g3 { grid-template-columns: 1fr; }
    .rp-prod { grid-template-columns: 1fr 1fr; }
}
