/* CYC RIDE HOTFIX17 additive finance suite. Does not replace FIX16 styles. */
.r38x-finance-suite{display:grid;gap:16px}
.r38x-finance-suite .r38x-finance-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line,#d9e2ec);padding-bottom:10px}
.r38x-finance-suite .r38x-finance-tab{border:1px solid #b7c7d8;background:#fff;color:#17365d;border-radius:999px;padding:9px 15px;font-weight:800;cursor:pointer}
.r38x-finance-suite .r38x-finance-tab.active{background:#17365d;color:#fff;border-color:#17365d}
.r38x-finance-suite .r38x-finance-panel{display:none;gap:14px}
.r38x-finance-suite .r38x-finance-panel.active{display:grid}
.r38x-finance-suite .r38x-finance-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.r38x-finance-suite .r38x-finance-block{border:1px solid #d9e2ec;background:#fff;border-radius:16px;padding:15px;min-width:0}
.r38x-finance-suite .r38x-finance-block h3{margin:0 0 8px}
.r38x-finance-suite .r38x-finance-block .form{display:grid;gap:10px}
.r38x-finance-suite .r38x-finance-search{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.r38x-finance-suite .r38x-finance-search .input{flex:1 1 260px}
.r38x-finance-suite .r38x-finance-results{display:grid;gap:8px;max-height:340px;overflow:auto;margin-top:10px}
.r38x-finance-suite .r38x-finance-person{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #d9e2ec;border-radius:12px;padding:10px;background:#f8fbff}
.r38x-finance-suite .r38x-finance-person.selected{border-color:#5b45c8;background:#f2efff}
.r38x-finance-suite .r38x-finance-summary{border-radius:12px;background:#eef6ff;border:1px solid #bcd7f0;padding:11px;line-height:1.65}
.r38x-finance-suite .r38x-finance-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.r38x-finance-suite .r38x-finance-kpi{border:1px solid #d9e2ec;border-radius:12px;padding:10px;background:#fff}
.r38x-finance-suite .r38x-finance-kpi b{display:block;font-size:1.2rem;margin-top:3px}
.r38x-finance-suite .r38x-finance-community-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.r38x-finance-suite .r38x-finance-community{display:flex;align-items:flex-start;gap:8px;border:1px solid #d9e2ec;border-radius:12px;padding:10px;background:#fafcff}
.r38x-finance-suite .r38x-finance-community input{margin-top:4px}
.r38x-finance-suite .r38x-finance-table{width:100%;border-collapse:collapse}
.r38x-finance-suite .r38x-finance-table th,.r38x-finance-suite .r38x-finance-table td{padding:9px;border-bottom:1px solid #e7edf3;text-align:left;vertical-align:top}
.r38x-finance-suite .r38x-finance-table th{white-space:nowrap;background:#f3f7fb}
.r38x-finance-suite .r38x-finance-pill{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;background:#e7eef7;font-weight:700;font-size:.86rem}
.r38x-finance-suite .r38x-finance-pill.ok{background:#e2f0d9;color:#375623}
.r38x-finance-suite .r38x-finance-pill.warn{background:#fff2cc;color:#9c6500}
.r38x-finance-suite .r38x-finance-pill.danger{background:#fce4d6;color:#c00000}
.r38x-finance-suite .r38x-finance-actions{display:flex;gap:8px;flex-wrap:wrap}
.r38x-finance-suite .r38x-finance-muted{color:#62758a;font-size:.93rem}
.r38x-finance-suite .r38x-finance-empty{padding:16px;text-align:center;color:#62758a;border:1px dashed #b9c8d7;border-radius:12px}
.r38x-finance-suite .r38x-finance-danger{border-color:#e5a6a6;background:#fff7f7}
.r38x-finance-suite .r38x-finance-rule{border:1px solid #d9e2ec;border-radius:12px;padding:12px;display:grid;gap:8px;background:#fff}
.r38x-finance-suite .r38x-finance-rule.disabled{opacity:.72;background:#f5f5f5}
.r38x-finance-suite .r38x-finance-editor[hidden]{display:none!important}
.r38x-finance-suite .r38x-finance-scroll{overflow:auto;max-height:420px}
@media (max-width:900px){
 .r38x-finance-suite .r38x-finance-grid{grid-template-columns:1fr}
 .r38x-finance-suite .r38x-finance-community-list{grid-template-columns:1fr}
 .r38x-finance-suite .r38x-finance-kpis{grid-template-columns:1fr}
}
