.myrelatorio {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    container-type: inline-size;
}

.myrelatorio *,
.myrelatorio *::before,
.myrelatorio *::after {
    box-sizing: border-box;
}

.myrelatorio .mr-faixa {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    min-height: 42px;
    margin: 0 0 8px;
    padding: 8px 14px;
    border: 1px solid var(--app-line, #e4eaf2);
    border-radius: 12px;
    background: color-mix(in srgb, var(--text-color-strong, #1f2d3d) 4%, transparent);
    font-size: 13px;
    line-height: 1.35;
}

.myrelatorio .mr-faixa > i {
    font-size: 14px;
}

.myrelatorio .mr-faixa-status {
    font-weight: 700;
    color: var(--text-color-strong, #1f2d3d);
}

.myrelatorio .mr-faixa-parte,
.myrelatorio .mr-faixa-sep {
    color: var(--text-color-light, #8a97a8);
}

.myrelatorio .mr-faixa-sep {
    margin-right: 6px;
}

.myrelatorio .mr-faixa.tom-ok > i,
.myrelatorio .mr-faixa.tom-ok .mr-faixa-status {
    color: #1faf62;
}

.myrelatorio .mr-faixa.tom-warn > i,
.myrelatorio .mr-faixa.tom-warn .mr-faixa-status {
    color: #d39a2c;
}

.myrelatorio .mr-faixa.tom-rose > i,
.myrelatorio .mr-faixa.tom-rose .mr-faixa-status {
    color: #e05a5a;
}

.myrelatorio .mr-aviso {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--app-pill, #f1f4f8);
    color: var(--text-color-light, #8a97a8);
    font-size: 13px;
    line-height: 1.4;
}

.myrelatorio .mr-aviso.alerta {
    background: color-mix(in srgb, #d64545 16%, var(--app-surface, var(--panel-background, #fff)));
    color: color-mix(in srgb, #d64545 72%, var(--text-color-strong, #1f2d3d));
}

.myrelatorio .mr-cmds {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 2px 2px 10px;
}

.myrelatorio .mr-cmd {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--main-color, #5eb8e8);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.myrelatorio .mr-cmd i {
    font-size: 10px;
}

.myrelatorio .mr-secao,
.myrelatorio .mr-grupo {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    border: 1px solid var(--app-line, #e4eaf2);
    border-radius: 12px;
    background: color-mix(in srgb, var(--text-color-strong, #1f2d3d) 4%, transparent);
}

.myrelatorio .mr-grupo {
    margin: 8px 0;
}

.myrelatorio .mr-secao.aberta,
.myrelatorio .mr-grupo.aberta {
    border-color: color-mix(in srgb, var(--main-color, #5eb8e8) 55%, var(--app-line, #e4eaf2));
}

.myrelatorio .mr-secao-btn,
.myrelatorio .mr-grupo-btn {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    line-height: 1.3;
}

.myrelatorio .mr-icone {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--text-color-light, #8a97a8) 16%, transparent);
    color: var(--text-color-light, #8a97a8);
    font-size: 14px;
}

.myrelatorio .tom-blue .mr-icone {
    color: #3aa0e0;
    background: color-mix(in srgb, #3aa0e0 18%, transparent);
}

.myrelatorio .tom-violet .mr-icone {
    color: #8b7cf7;
    background: color-mix(in srgb, #8b7cf7 18%, transparent);
}

.myrelatorio .tom-warn .mr-icone {
    color: #e0a045;
    background: color-mix(in srgb, #e0a045 20%, transparent);
}

.myrelatorio .tom-ok .mr-icone {
    color: #2fbe6e;
    background: color-mix(in srgb, #2fbe6e 18%, transparent);
}

.myrelatorio .tom-rose .mr-icone {
    color: #e06a8a;
    background: color-mix(in srgb, #e06a8a 18%, transparent);
}

.myrelatorio .tom-slate .mr-icone {
    color: var(--text-color-light, #8a97a8);
    background: color-mix(in srgb, var(--text-color-light, #8a97a8) 16%, transparent);
}

.myrelatorio .tom-accent .mr-icone {
    color: var(--main-color, #5eb8e8);
    background: color-mix(in srgb, var(--main-color, #5eb8e8) 18%, transparent);
}

.myrelatorio .mr-nome {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color-strong, #1f2d3d);
}

.myrelatorio .mr-grupo .mr-nome {
    flex: 0 1 auto;
    font-size: 14px;
}

.myrelatorio .mr-resumo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
    min-width: 0;
    text-align: right;
}

.myrelatorio .mr-secao.aberta > .mr-secao-btn .mr-resumo {
    display: none;
}

.myrelatorio .mr-prefixo,
.myrelatorio .mr-depois,
.myrelatorio .mr-texto {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color-light, #8a97a8);
}

.myrelatorio .mr-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--app-line, #e4eaf2);
    border-radius: 8px;
    background: color-mix(in srgb, var(--panel-background, #fff) 72%, transparent);
    color: var(--text-color-strong, #1f2d3d);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.myrelatorio .mr-tag {
    flex: none;
    max-width: 100%;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.myrelatorio .mr-tag.tom-warn {
    background: color-mix(in srgb, #f0b455 24%, transparent);
    color: color-mix(in srgb, #e0a045 70%, var(--text-color-strong, #1f2d3d));
}

.myrelatorio .mr-tag.tom-ok {
    background: color-mix(in srgb, #2fcf7a 22%, transparent);
    color: color-mix(in srgb, #1faf62 75%, var(--text-color-strong, #1f2d3d));
}

.myrelatorio .mr-seta-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    border: 1px solid var(--app-line, #e4eaf2);
    border-radius: 50%;
    color: var(--text-color-light, #8a97a8);
}

.myrelatorio .mr-secao.aberta > .mr-secao-btn .mr-seta-wrap,
.myrelatorio .mr-grupo.aberta > .mr-grupo-btn .mr-seta-wrap {
    border-color: transparent;
    background: color-mix(in srgb, var(--main-color, #5eb8e8) 18%, transparent);
    color: var(--main-color, #5eb8e8);
}

.myrelatorio .mr-seta {
    font-size: 11px;
    line-height: 1;
    transition: transform .24s ease;
}

.myrelatorio .mr-secao.aberta > .mr-secao-btn .mr-seta,
.myrelatorio .mr-grupo.aberta > .mr-grupo-btn .mr-seta {
    transform: rotate(180deg);
}

.myrelatorio .mr-miolo {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .24s ease;
}

.myrelatorio .mr-secao.aberta > .mr-miolo,
.myrelatorio .mr-grupo.aberta > .mr-miolo {
    grid-template-rows: 1fr;
}

.myrelatorio .mr-miolo-in {
    overflow: hidden;
    min-height: 0;
}

.myrelatorio .mr-corpo {
    padding: 2px 12px 12px;
}

.myrelatorio .mr-corpo-grupo {
    padding: 0 12px 8px;
}

.myrelatorio .mr-hero {
    margin: 4px 0 10px;
    padding: 14px 16px;
    border: 1px solid var(--app-line, #e4eaf2);
    border-radius: 12px;
}

.myrelatorio .mr-hero-rotulo {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-color-light, #8a97a8);
}

.myrelatorio .mr-hero-valor {
    display: block;
    margin-top: 2px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--main-color, #5eb8e8);
}

.myrelatorio .mr-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 10px;
}

.myrelatorio .mr-tile {
    padding: 12px 14px;
    border: 1px solid var(--app-line, #e4eaf2);
    border-radius: 12px;
}

.myrelatorio .mr-tile > i {
    font-size: 13px;
    color: var(--text-color-light, #8a97a8);
}

.myrelatorio .mr-botao {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 8px 2px 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--main-color, #5eb8e8);
    color: var(--panel-background, #fff);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.myrelatorio .mr-botao:hover,
.myrelatorio .mr-botao:focus {
    color: var(--panel-background, #fff);
    text-decoration: none;
    filter: brightness(1.06);
}

.myrelatorio .mr-botao > i:empty,
.myrelatorio .mr-botao > i:not([class*="fa-"]) {
    display: none;
}

.myrelatorio .mr-tile > i:empty,
.myrelatorio .mr-item-l small:empty,
.myrelatorio .mr-item-valor:empty,
.myrelatorio .mr-item > i:not([class*="fa-"]) {
    display: none;
}

.myrelatorio .mr-tile-rotulo {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-color-light, #8a97a8);
}

.myrelatorio .mr-tile b {
    display: block;
    margin-top: 2px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color-strong, #1f2d3d);
}

.myrelatorio .mr-mix {
    margin: 2px 0 12px;
}

.myrelatorio .mr-mix-bar {
    display: flex;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--app-pill, #eef2f6);
}

.myrelatorio .mr-mix-fatia {
    display: block;
    height: 100%;
}

.myrelatorio .mr-mix-fatia.tom-violet,
.myrelatorio .mr-ponto.tom-violet {
    background: #8b7cf7;
}

.myrelatorio .mr-mix-fatia.tom-accent,
.myrelatorio .mr-ponto.tom-accent {
    background: #38bdf8;
}

.myrelatorio .mr-mix-fatia.tom-blue,
.myrelatorio .mr-ponto.tom-blue {
    background: #3aa0e0;
}

.myrelatorio .mr-mix-fatia.tom-ok,
.myrelatorio .mr-ponto.tom-ok {
    background: #2fbe6e;
}

.myrelatorio .mr-mix-fatia.tom-warn,
.myrelatorio .mr-ponto.tom-warn {
    background: #e0a045;
}

.myrelatorio .mr-mix-fatia.tom-rose,
.myrelatorio .mr-ponto.tom-rose {
    background: #e06a8a;
}

.myrelatorio .mr-mix-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
    color: var(--text-color-light, #8a97a8);
    font-size: 12px;
}

.myrelatorio .mr-ponto {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--text-color-light, #8a97a8);
}

.myrelatorio .mr-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 2px;
    border-bottom: 1px solid color-mix(in srgb, var(--app-line, #e4eaf2) 80%, transparent);
}

.myrelatorio .mr-linha-l {
    min-width: 0;
}

.myrelatorio .mr-linha-rotulo {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color-strong, #1f2d3d);
}

.myrelatorio .mr-linha-l small,
.myrelatorio .mr-item-l small {
    display: block;
    margin-top: 2px;
    color: var(--text-color-light, #8a97a8);
    font-size: 12px;
    font-weight: 400;
}

.myrelatorio .mr-linha-v {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: none;
    gap: 8px;
    max-width: 68%;
    text-align: right;
}

.myrelatorio .mr-valor,
.myrelatorio .mr-item-valor {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color-strong, #1f2d3d);
}

.myrelatorio .mr-marca {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--app-pill, #f1f4f8);
    color: var(--text-color-light, #8a97a8);
    font-size: 11px;
    font-weight: 700;
}

.myrelatorio .mr-linha.tom-plus .mr-valor {
    color: color-mix(in srgb, #1faf62 78%, var(--text-color-strong, #1f2d3d));
}

.myrelatorio .mr-linha.tom-minus .mr-valor {
    color: color-mix(in srgb, #e05a5a 78%, var(--text-color-strong, #1f2d3d));
}

.myrelatorio .mr-linha.tom-soma {
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--app-line, #e4eaf2);
    border-bottom: 0;
}

.myrelatorio .mr-linha.tom-soma .mr-linha-rotulo,
.myrelatorio .mr-linha.tom-soma .mr-valor {
    font-weight: 700;
}

.myrelatorio .mr-linha.tom-total {
    margin-top: 6px;
    padding: 10px 12px;
    border-bottom: 0;
    border-radius: 10px;
    background: color-mix(in srgb, var(--main-color, #5eb8e8) 14%, transparent);
    font-weight: 700;
}

.myrelatorio .mr-rotulo {
    margin: 14px 2px 2px;
    color: var(--text-color-light, #8a97a8);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.myrelatorio .mr-nota {
    margin: 8px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--app-pill, #f1f4f8);
    color: var(--text-color-strong, #1f2d3d);
    font-size: 13.5px;
    line-height: 1.45;
}

.myrelatorio .mr-nota b {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.myrelatorio .mr-nota span {
    white-space: pre-wrap;
    word-break: break-word;
}

.myrelatorio .mr-callout {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px dashed color-mix(in srgb, var(--main-color, #5eb8e8) 45%, var(--app-line, #e4eaf2));
    border-radius: 12px;
}

.myrelatorio .mr-callout i {
    flex: none;
    color: var(--main-color, #5eb8e8);
    font-size: 14px;
}

.myrelatorio .mr-callout-rotulo {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color-strong, #1f2d3d);
}

.myrelatorio .mr-callout b {
    flex: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color-strong, #1f2d3d);
}

.myrelatorio .mr-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 2px;
    border-bottom: 1px solid color-mix(in srgb, var(--app-line, #e4eaf2) 80%, transparent);
}

.myrelatorio .mr-item:last-child {
    border-bottom: 0;
}

.myrelatorio .mr-item-icone {
    width: 16px;
    margin-top: 3px;
    text-align: center;
    color: var(--text-color-light, #8a97a8);
    font-size: 13px;
}

.myrelatorio .mr-item-l {
    min-width: 0;
    flex: 1;
}

.myrelatorio .mr-item-nome {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color-strong, #1f2d3d);
    word-break: break-word;
}

.myrelatorio .mr-item-qtd {
    margin-right: 6px;
    color: var(--text-color-light, #8a97a8);
    font-style: italic;
    font-weight: 400;
}

.myrelatorio .mr-item-qtd:empty {
    display: none;
}

.myrelatorio .mr-item-valor {
    margin-left: auto;
    white-space: nowrap;
}

.myrelatorio .mr-cmd:focus-visible,
.myrelatorio .mr-secao-btn:focus-visible,
.myrelatorio .mr-grupo-btn:focus-visible,
.myrelatorio .mr-botao:focus-visible {
    outline: 2px solid var(--main-color, #5eb8e8);
    outline-offset: 2px;
}

@container (max-width: 520px) {
    .myrelatorio .mr-tiles {
        grid-template-columns: 1fr;
    }

    .myrelatorio .mr-linha {
        align-items: flex-start;
    }

    .myrelatorio .mr-linha-v {
        max-width: 58%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .myrelatorio .mr-miolo,
    .myrelatorio .mr-seta {
        transition: none;
    }
}
