/* V1577 — composição do risco organizada em três cards compactos */
.tfh-chart-full{display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-width:0}
.tfh-chart-full>.tdx-card,.tfh-trend-chart{min-width:0;width:100%;box-sizing:border-box}
.tfh-trend-chart svg{display:block;width:100%;height:auto;max-width:100%}
.tfh-risk-composition{margin-top:12px;min-width:0;box-sizing:border-box}
.tfh-risk-composition-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 14px;padding:0 0 12px;border-bottom:1px solid #e7edf5}
.tfh-risk-composition-head h4{margin:0;color:#12315e;font-size:15px;font-weight:800}
.tfh-risk-composition-head>div:first-child p{margin:4px 0 0;color:#6b7f98;font-size:11.5px;line-height:1.4}
.tfh-risk-overall{display:flex;flex-direction:column;gap:3px;max-width:min(100%,430px);padding:8px 12px;border:1px solid var(--rga-border);border-radius:9px;background:var(--rga-bg);color:var(--rga-fg)}
.tfh-risk-overall small{font-size:9px;letter-spacing:.05em;text-transform:uppercase;font-weight:800;opacity:.85}
.tfh-risk-overall strong{font-size:12px;line-height:1.35}
.tfh-risk-overall span{font-size:10px;line-height:1.35}
.tfh-risk-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:12px;min-width:0}
.tfh-risk-group{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid #d9e3ef;border-top:3px solid #8a97a8;border-radius:11px;padding:11px 12px;box-sizing:border-box}
.tfh-risk-group-critical{border-top-color:#c8372d;background:linear-gradient(180deg,#fffafa 0%,#fff 100%)}
.tfh-risk-group-attention{border-top-color:#d99a16;background:linear-gradient(180deg,#fffdf6 0%,#fff 100%)}
.tfh-risk-group-normal{border-top-color:#218653;background:linear-gradient(180deg,#f8fdf9 0%,#fff 100%)}
.tfh-risk-group>header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0 0 8px;padding:0 0 8px;border-bottom:1px solid #e8edf4}
.tfh-risk-group>header h5{margin:0;font-size:13px;line-height:1.3;color:#12315e;font-weight:800}
.tfh-risk-group-critical>header h5{color:#a52620}
.tfh-risk-group-attention>header h5{color:#805500}
.tfh-risk-group-normal>header h5{color:#18764a}
.tfh-risk-group>header p{margin:3px 0 0;color:#6b7f98;font-size:10px;line-height:1.35}
.tfh-risk-group-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 6px;flex-shrink:0;border-radius:14px;background:#eef2f7;color:#12315e;font-size:11px;font-weight:800}
.tfh-risk-group-critical .tfh-risk-group-count{background:#fde9e7;color:#a52620}
.tfh-risk-group-attention .tfh-risk-group-count{background:#fff0c7;color:#805500}
.tfh-risk-group-normal .tfh-risk-group-count{background:#e7f5ec;color:#18764a}
.tfh-risk-breakdown{margin:-2px 0 6px;color:#9b3b32;font-size:10px;font-weight:700}
.tfh-risk-items{list-style:none;display:flex;flex-direction:column;gap:0;margin:0;padding:0;min-width:0}
.tfh-risk-item{display:grid;grid-template-columns:7px minmax(0,1fr) auto;align-items:start;gap:7px;padding:8px 0;border-bottom:1px solid #edf1f6;min-width:0}
.tfh-risk-item:last-child{border-bottom:0}
.tfh-risk-dot{width:7px;height:7px;margin-top:5px;border-radius:50%;background:var(--risk-color,#8a97a8)}
.tfh-risk-item-copy{min-width:0}
.tfh-risk-item-copy strong{display:block;overflow-wrap:anywhere;color:#1b304e;font-size:10.5px;font-weight:750;line-height:1.35}
.tfh-risk-item-copy small{display:block;margin-top:2px;color:#7a8ca3;font-size:9.5px;line-height:1.3}
.tfh-risk-item-copy p{margin:3px 0 0;color:#60748e;font-size:9.5px;line-height:1.35;overflow-wrap:anywhere}
.tfh-risk-item-status{padding-top:1px;white-space:nowrap}
.tfh-risk-item-status .tdx-selo{font-size:9px!important;padding:2px 6px!important}
.tfh-risk-more{margin:6px 0 0;padding:6px 8px;border-radius:7px;background:#f6f9fc;border:1px solid #e6edf5}
.tfh-risk-more summary,.tfh-risk-unclassified summary{cursor:pointer;color:#245fa4;font-size:10.5px;font-weight:800;outline-offset:3px}
.tfh-risk-more[open] summary{margin-bottom:4px}
.tfh-risk-more .tfh-risk-item{padding:7px 0}
.tfh-risk-empty{padding:12px 8px;color:#7a8ca3;font-size:10.5px;line-height:1.4}
.tfh-risk-unclassified{margin-top:10px;padding:9px 11px;border:1px dashed #cbd6e4;border-radius:8px;background:#f8fafc}
.tfh-risk-unclassified[open]>summary{margin-bottom:6px}
.tfh-risk-unclassified .tfh-risk-item{padding:7px 0}
.tfh-risk-footnote{margin:8px 0 0;font-size:10.5px;line-height:1.4}
.tfh-risk-composition .tfh-atu{margin-top:10px;padding:9px 11px;border-radius:8px;background:#f5f8fc;color:#526780;font-size:11px;line-height:1.45}
@media(max-width:1100px){.tfh-risk-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.tfh-risk-group-normal{grid-column:1/-1}.tfh-risk-group-normal .tfh-risk-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}}
@media(max-width:720px){.tfh-risk-groups{grid-template-columns:minmax(0,1fr)}.tfh-risk-group-normal{grid-column:auto}.tfh-risk-group-normal .tfh-risk-items{display:flex}.tfh-risk-composition-head{align-items:stretch}.tfh-risk-overall{max-width:none;width:100%;box-sizing:border-box}.tfh-risk-item{grid-template-columns:7px minmax(0,1fr) auto;gap:6px}.tfh-risk-group{padding:10px}.tfh-chart-full{overflow:hidden}.tfh-trend-chart .tfh-graf-cab{align-items:flex-start}}
