body.fi-body {
    background: #f4f7f8;
    color: #162d36;
}
.fi-sidebar, .fi-topbar { background-color: #fff; }
.fi-main { padding-bottom: 3rem; }
.fi-header-heading { letter-spacing: -.035em; }
.fi-simple-main {
    border-top: 4px solid #087f73;
    box-shadow: 0 18px 65px #20353d12;
}
.rh { --ink: #162d36; --muted: #506771; --border: #dae4e8; --accent: #08796e; --soft: #eaf6f4; color: var(--ink); }
.rh-stack { display: grid; gap: 1.25rem; }
.rh-card { min-width: 0; border: 1px solid var(--border); border-radius: 1rem; background: white; box-shadow: 0 2px 8px #19313a06; }
.rh-pad { padding: clamp(1rem, 2.5vw, 1.5rem); }
.rh-heading { color: var(--ink); font-size: 1.125rem; font-weight: 720; letter-spacing: -.018em; }
.rh-sub { color: var(--muted); font-size: .875rem; margin-top: .3rem; }
.rh-muted { color: var(--muted); }
.rh-small { font-size: .8125rem; }
.rh-link { color: var(--accent); font-weight: 665; }
.rh-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.rh-row { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.rh-between { justify-content: space-between; }
.rh-end { align-self: end; }
.rh-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; width: fit-content; min-height: 2.55rem; padding: .56rem .88rem; border-radius: .55rem; background: var(--accent); color: white; border: 1px solid transparent; font-size: .875rem; font-weight: 650; cursor: pointer; white-space: nowrap; }
.rh-btn:hover { background: #065e56; }
.rh-btn svg { width: 1.1rem; height: 1.1rem; }
.rh-secondary { background: white; color: var(--ink); border-color: var(--border); }
.rh-secondary:hover { background: #f1f7f8; }
.rh-danger { color: #9b262c; }
.rh-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.rh-field { display: grid; gap: .35rem; color: var(--ink); font-size: .875rem; font-weight: 640; align-content: start; min-width: 0; }
.rh-field > small { font-weight: normal; }
.rh-wide { grid-column: 1 / -1; }
.rh-field :is(input, select, textarea) { width: 100%; padding: .6rem .7rem; min-height: 2.55rem; border: 1px solid #c4d3d9; border-radius: .52rem; background: #fff; color: var(--ink); font-weight: 400; }
.rh-field input[type=file] { max-width: 100%; }
.rh-field textarea { resize: vertical; }
.rh :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid #0c8d80; outline-offset: 3px; }
.rh-table-wrap { overflow: auto; }
.rh-table { width: 100%; border-collapse: collapse; font-size: .875rem; text-align: left; }
.rh-table th { background: #f1f6f8; color: #3d5964; font-weight: 665; font-size: .78rem; white-space: nowrap; }
.rh-table :is(th, td) { padding: .82rem 1rem; vertical-align: top; }
.rh-table td { border-top: 1px solid #e8eff1; }
.rh-table tbody tr:hover { background: #f9fcfc; }
.rh-table .rh-empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.rh-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rh-nowrap { white-space: nowrap; }
.rh-description { white-space: pre-wrap; min-width: 11rem; overflow-wrap: anywhere; }
.rh-pill { display: inline-flex; padding: .24rem .55rem; border-radius: 99px; background: #edf2f4; color: #445c65; font-size: .75rem; font-weight: 670; white-space: nowrap; }
.rh-pill.aberta { background: #e4effa; color: #255789; }
.rh-pill.em_andamento, .rh-pill.ativo, .rh-pill.concluida { background: #dff4ed; color: #176553; }
.rh-pill.aguardando_cliente { background: #fff1cf; color: #774e10; }
.rh-pill.cancelada, .rh-pill.inativo { background: #f7ebeb; color: #833b40; }
.rh-feedback { padding: .8rem 1rem; border-radius: .65rem; background: #dcf4e9; color: #17614d; }
.rh-feedback.erro { background: #fce9e9; color: #8b272e; }
.rh-feedback ul { margin: .4rem 0 0 1.2rem; list-style: disc; }
.rh-hero {
    background: radial-gradient(ellipse at 95% 10%, #1d6f70 0%, transparent 55%), linear-gradient(125deg, #112e3c, #144751);
    color: white; border-radius: 1.2rem; padding: clamp(1.5rem, 4vw, 3rem);
    position: relative; overflow: hidden; min-height: 14rem;
}
.rh-hero h2 { font-size: clamp(1.75rem, 3.4vw, 2.65rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.1; }
.rh-hero p { color: #d4e9ed; max-width: 29rem; margin: .65rem 0 1.35rem; }
.rh-hero .rh-btn { background: #c4f2e5; color: #11453c; }
.rh-hero .rh-btn:hover { background: #e1faf3; }
.rh-hero-content { position: relative; z-index: 1; }
.rh-hero-decoration { position: absolute; right: 6%; top: 8%; bottom: -25%; width: 30%; transform: rotate(-18deg); border: 1px solid #9dd9d143; border-radius: 2rem; box-shadow: 0 0 0 20px #96dcd519, 0 0 0 42px #96dcd515, 0 0 0 68px #96dcd510; pointer-events: none; }
.rh-metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35rem .75rem; }
.rh-metric strong { font-size: 2rem; font-weight: 745; letter-spacing: -.05em; line-height: 1; }
.rh-metric-icon { grid-area: 1 / 2 / 3 / 3; width: 2.55rem; height: 2.55rem; display: grid; place-items: center; border-radius: .7rem; background: var(--soft); color: var(--accent); }
.rh-metric-icon svg { width: 1.35rem; height: 1.35rem; }
.rh-detail { padding: .8rem 0; border-top: 1px solid var(--border); }
.rh-detail summary { cursor: pointer; font-weight: 650; }
.rh-detail[open] summary { margin-bottom: .85rem; }
.rh-history { padding: .7rem .15rem; border-top: 1px solid var(--border); }
.rh-history summary { cursor: pointer; font-size: .875rem; }
.rh-history pre { overflow: auto; padding: .7rem; background: #f1f6f8; border-radius: .4rem; font-size: .75rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.rh-history h4 { font-weight: 650; font-size: .8rem; margin: .55rem 0 .25rem; }
.rh-evidence { display: grid; gap: .55rem; margin: .55rem 0; }
.rh-evidence-item { background: #f1f7f8; border-radius: .5rem; padding: .65rem; overflow-wrap: anywhere; }
.rh-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .7rem; }
.rh-meta dt { font-size: .78rem; color: var(--muted); }
.rh-meta dd { margin-top: .15rem; font-weight: 650; }
.rh-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
@media (max-width: 650px) {
    .rh-table :is(th, td) { padding: .7rem; }
    .rh-hero-decoration { opacity: .45; }
}
.rh [hidden] { display: none; }
.rh-expand { cursor: pointer; }
.rh-form-body { margin-top: 1rem; }
.rh-empresas {
    min-width: 0; border: 1px solid var(--border); border-radius: .6rem;
    padding: .65rem .85rem .85rem;
}
.rh-empresas legend { padding: 0 .3rem; font-size: .875rem; font-weight: 650; }
.rh-company-list {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: .4rem .85rem; max-height: 13rem; overflow-y: auto; margin-top: .6rem; padding: .22rem;
}
.rh-company-option {
    display: flex; align-items: flex-start; gap: .5rem; border-radius: .35rem; padding: .35rem .45rem;
    line-height: 1.25; font-size: .875rem; cursor: pointer; overflow-wrap: anywhere;
}
.rh-company-option:hover { background: var(--soft); }
.rh-company-option input { margin-top: .15rem; flex: none; accent-color: var(--accent); }
.rh-company-option small, .rh-pie-legend small { display: block; margin-top: .2rem; font-size: .78rem; }
.rh-table tfoot :is(td, th) {
    border-top: 2px solid var(--border); background: #f1f6f8; color: var(--ink); font-size: .875rem;
}
.rh-pie-layout {
    display: grid; grid-template-columns: minmax(9rem, 17rem) minmax(0, 1fr); align-items: center; gap: 2rem;
}
.rh-pie { width: 100%; max-width: 17rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--border); }
.rh-pie-legend { margin: 0; list-style: none; max-height: 19rem; overflow: auto; }
.rh-pie-legend li {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(3.9rem, auto);
    gap: .55rem; align-items: start; padding: .55rem .25rem; font-size: .875rem; overflow-wrap: anywhere;
}
.rh-pie-legend li + li { border-top: 1px solid var(--border); }
.rh-pie-dot { width: .78rem; height: .78rem; border-radius: .2rem; margin-top: .24rem; }
@media (max-width: 650px) {
    .rh-pie-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .rh-pie { max-width: 12.5rem; justify-self: center; }
}

.rh-situacoes .select2-selection--multiple {
    min-height: 2.55rem;
    border-color: #c4d3d9;
    border-radius: .52rem;
    font-weight: 400;
}
.rh-situacoes .select2-container--focus .select2-selection--multiple {
    border-color: #0c8d80;
}
