#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: 0.65rem 1.25rem;
    background: #f4ead0;
    color: #2c261f;
    box-shadow: 0 -1px 0 #ece7dd;
}

#blazor-error-ui.show {
    display: block;
}

#blazor-error-ui .reload {
    margin-left: 0.75rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.toasts {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1100;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.7rem;
    width: min(34rem, calc(100vw - 2rem));
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    border: 0;
    border-radius: 0.45rem;
    color: #fff;
    box-shadow: 0 12px 28px rgba(44, 38, 31, 0.18);
}

.toast-icone {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
}

.toast-corpo strong {
    display: block;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.2;
}

.toast-corpo p {
    margin: 0.2rem 0 0;
    font-size: 0.98rem;
    line-height: 1.4;
    opacity: 0.95;
}

.toast-sucesso {
    background: #4caf67;
}

.toast-erro {
    background: #e0544f;
}

.toast-info {
    background: #4fb3d4;
}

.toast-fechar {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 1.4rem;
    line-height: 1;
    width: 1.75rem;
    height: 1.75rem;
    cursor: pointer;
    opacity: 0.8;
}

.carregando {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 38, 31, 0.18);
    backdrop-filter: blur(3px);
}

.carregando-caixa {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 1.4rem 1.6rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(236, 231, 221, 0.9);
    border-radius: 0.7rem;
    box-shadow: 0 16px 40px rgba(44, 38, 31, 0.12);
}

.carregando-logo {
    height: 42px;
    width: auto;
    display: block;
}

.carregando-caixa p {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8d734b;
}

.carregando-anel {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(141, 115, 75, 0.2);
    border-top-color: #8d734b;
    border-radius: 50%;
    animation: carregando-giro 0.7s linear infinite;
}

@keyframes carregando-giro {
    to {
        transform: rotate(360deg);
    }
}

.toast-fechar:hover {
    opacity: 1;
}

.plataforma {
    display: grid;
    grid-template-columns: 232px 1fr;
    min-height: 100vh;
    background: #f7f6f2;
    color: #2c261f;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 0.925rem;
}

.plataforma a {
    color: inherit;
    text-decoration: none;
}

.lateral {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.1rem 0.75rem;
    background: #211e1a;
    color: #e9e2d6;
    border-right: 1px solid #2c2823;
}

.lateral-marca {
    display: flex;
    justify-content: center;
    padding: 0.4rem 0.5rem 1rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgba(233, 226, 214, 0.08);
}

.lateral-marca img {
    height: 56px;
    width: auto;
    padding: 0.35rem 0.6rem;
    border-radius: 0.4rem;
    background: #f7f3ec;
}

.lateral-menu {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.lateral-grupo {
    margin: 1.2rem 0.8rem 0.4rem;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9a8a70;
}

.lateral-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.35rem;
    border-left: 2px solid transparent;
    font-weight: 400;
    color: #d9d1c3;
    transition: background 120ms ease, color 120ms ease;
}

.lateral-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.lateral-item.active {
    background: rgba(183, 164, 138, 0.14);
    border-left-color: #b7a48a;
    color: #f7f3ec;
    font-weight: 500;
}

.lateral-icone {
    width: 1.4rem;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.85;
}

.lateral-rotulo {
    flex: 1;
    min-width: 0;
}

.lateral-badge {
    margin-left: auto;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.32rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #e0544f;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px #1f1a16;
}

.convite-caixa .convite-link {
    margin: 0;
    word-break: break-all;
    font-size: 0.92rem;
}

.convite-caixa .convite-link a {
    color: #2c261f;
}

.plataforma-corpo {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.barra {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 2rem;
    background: #f7f6f2;
    border-bottom: 1px solid #ece7dd;
}

.barra-titulo {
    margin: 0;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.barra-usuario {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.barra-pessoa {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
    color: inherit;
    text-decoration: none;
}

a.barra-pessoa:hover strong {
    text-decoration: underline;
}

.barra-pessoa strong {
    font-weight: 500;
}

.barra-pessoa span {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8d734b;
}

.barra-sair,
.plataforma .botao {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid #2c261f;
    border-radius: 0.35rem;
    background: #2c261f;
    color: #f7f3ec;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease;
}

.barra-sair {
    background: transparent;
    color: #2c261f;
}

.botao:hover,
.barra-sair:hover {
    background: #3a332b;
}

.plataforma .botao:disabled,
.plataforma .botao:disabled:hover {
    background: #d8d2c6;
    border-color: #d8d2c6;
    color: #8a7f72;
    cursor: not-allowed;
}

.plataforma .botao.discreto {
    background: transparent;
    color: #2c261f;
    border-color: #cfc5b3;
}

.plataforma .botao.discreto:hover {
    background: #f0ece4;
    color: #2c261f;
}

.plataforma .botao.perigo {
    background: transparent;
    color: #9b2c2c;
    border-color: #e0b4b4;
}

.plataforma .botao.perigo:hover {
    background: #f8e4e1;
}

.plataforma-conteudo {
    padding: 1.5rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pagina-cabeca {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.pagina-cabeca h1,
.vazio h2 {
    margin: 0;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.pagina-cabeca .olho {
    margin: 0 0 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #8d734b;
}

.pagina-sub {
    margin: 0.6rem 0 0;
    color: #6b6156;
}

.indicadores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.indicador,
.cartao {
    background: #fff;
    border: 1px solid #ece7dd;
    border-radius: 0.45rem;
    box-shadow: none;
}

.indicador {
    padding: 1.3rem 1.4rem;
}

.indicador-alocados {
    background: rgba(90, 148, 168, 0.12);
    border-color: rgba(90, 148, 168, 0.28);
}

.indicador-mao {
    background: rgba(90, 156, 110, 0.12);
    border-color: rgba(90, 156, 110, 0.28);
}

.indicador-recebido {
    background: rgba(196, 150, 60, 0.14);
    border-color: rgba(196, 150, 60, 0.3);
}

.indicador-despesa {
    background: rgba(184, 108, 74, 0.12);
    border-color: rgba(184, 108, 74, 0.28);
}

.indicador-rotulo {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8d734b;
}

.indicador-valor {
    margin: 0.5rem 0 0.2rem;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1;
}

.indicador-nota {
    margin: 0;
    font-size: 0.78rem;
    color: #9a8f82;
}

a.indicador-nota {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.indicador-nota:hover {
    text-decoration: underline;
}

.cartao {
    padding: 1.25rem 1.35rem;
}

.cartao-cabeca {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.2rem;
}

.cartao-cabeca h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.cartao-cabeca p {
    margin: 0;
    color: #6b6156;
    font-size: 0.88rem;
}

.atalhos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.8rem;
}

.atalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border: 1px solid #ece7dd;
    border-radius: 0.4rem;
    background: #fff;
    transition: border-color 120ms ease;
}

.atalho:hover {
    border-color: #b7a48a;
}

.atalho-nome {
    font-weight: 500;
}

.atalho-seta {
    color: #8d734b;
}

.tabela {
    width: 100%;
    border-collapse: collapse;
}

.tabela th {
    padding: 0.6rem 0.9rem;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8d734b;
    border-bottom: 1px solid #e8e1d3;
}

.tabela td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid #efe9de;
    vertical-align: middle;
}

.tabela tbody tr:hover {
    background: #faf7f1;
}

.tabela-obra {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.tabela-obra img,
.tabela-sem-capa {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.5rem;
    background: #e8e1d3;
    flex: none;
}

.tabela-obra span {
    display: flex;
    flex-direction: column;
}

.tabela-obra small {
    color: #8a7f72;
    font-size: 0.8rem;
}

.tabela-acoes {
    text-align: right;
    white-space: nowrap;
}

.tabela-acoes .botao + .botao {
    margin-left: 0.4rem;
}

.campo-select {
    min-width: 8rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid #ddd6c8;
    border-radius: 0.35rem;
    background: #fff;
    font: inherit;
}

.linha-acoes {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.5rem;
}

.linha-acoes .campo {
    margin: 0;
}

.etiqueta {
    display: inline-flex;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.etiqueta.publicada {
    background: #e2efe3;
    color: #2e6b3a;
}

.etiqueta.rascunho {
    background: #f0e8d8;
    color: #8d734b;
}

.vazio {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #6b6156;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.campos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1.4rem;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.campo-largo {
    grid-column: 1 / -1;
}

.campo > span {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6156;
}

.campo small {
    color: #9a8f82;
    font-size: 0.78rem;
}

.campo input,
.campo textarea,
.campo select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #ddd6c8;
    border-radius: 0.35rem;
    background: #fff;
    font: inherit;
    color: inherit;
    transition: border-color 120ms ease;
}

.campo input:focus,
.campo textarea:focus,
.campo select:focus {
    outline: none;
    border-color: #b7a48a;
    box-shadow: none;
}

.soltar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1.8rem;
    border: 1.5px dashed #cfc5b3;
    border-radius: 0.9rem;
    background: #faf7f1;
    text-align: center;
    cursor: pointer;
}

.soltar input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.soltar span {
    font-weight: 500;
}

.soltar small {
    color: #8d734b;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.9rem;
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}

.galeria li {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.galeria img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.7rem;
    border: 1px solid #e8e1d3;
}

.acoes {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

.acoes-inicio {
    justify-content: flex-start;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #ece7dd;
}

.erro {
    margin: 0;
    padding: 0.6rem 0.85rem;
    border-radius: 0.35rem;
    background: #f8e4e1;
    color: #9b2c2c;
    font-size: 0.88rem;
}

.validation-message {
    color: #9b2c2c;
    font-size: 0.78rem;
}

.campo .invalid {
    border-color: #c96d6d;
}

.filtro {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #6b6156;
}

.etiqueta.ativo,
.etiqueta.concluida {
    background: #e2efe3;
    color: #2e6b3a;
}

.etiqueta.inativo,
.etiqueta.pendente {
    background: #ece7dd;
    color: #6b6156;
}

.etiqueta.emandamento {
    background: #f0e8d8;
    color: #8d734b;
}

.blocos {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.politica-grade {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.politica-grade h3 {
    margin: 0 0 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8d734b;
}

.politica-grade label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.politica-grade select {
    padding: 0.5rem 0.7rem;
    border: 1px solid #d9d0bf;
    border-radius: 0.6rem;
    background: #fff;
    font: inherit;
}

.politica-grade dd {
    margin: 0 0 0.5rem;
    color: #6b6156;
}

.total {
    display: flex;
    justify-content: space-between;
    padding: 0.9rem;
    border-top: 1px solid #e8e1d3;
    font-weight: 500;
}

.recusados {
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.recusados li {
    font-size: 0.84rem;
    color: #9b2c2c;
}

.recusados li span {
    color: #6b6156;
}

.lista-acoes {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.lista-checagem {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.lista-checagem label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #ece7dd;
    border-radius: 0.35rem;
    background: #fff;
    cursor: pointer;
}

.lista-checagem input {
    width: auto;
    margin-top: 0.2rem;
}

.lista-checagem span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.lista-checagem small {
    color: #8a7f72;
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
}

.acoes-operacao {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.acao-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.05rem 1.15rem;
    background: #fff;
    border: 1px solid #ece7dd;
    border-radius: 0.45rem;
    text-decoration: none;
    color: inherit;
}

.acao-card:hover {
    border-color: #b7a48a;
}

.acao-presenca {
    background: rgba(90, 156, 110, 0.14);
    border-color: rgba(90, 156, 110, 0.28);
}

.acao-presenca .acao-icone {
    background: rgba(90, 156, 110, 0.22);
    color: #3d7a4d;
}

.acao-vale {
    background: rgba(72, 128, 168, 0.12);
    border-color: rgba(72, 128, 168, 0.28);
}

.acao-vale .acao-icone {
    background: rgba(72, 128, 168, 0.2);
    color: #2d6280;
}

.acao-bonus {
    background: rgba(196, 150, 60, 0.16);
    border-color: rgba(196, 150, 60, 0.32);
}

.acao-bonus .acao-icone {
    background: rgba(196, 150, 60, 0.24);
    color: #8a6a22;
}

.acao-despesa {
    background: rgba(184, 108, 74, 0.14);
    border-color: rgba(184, 108, 74, 0.3);
}

.acao-despesa .acao-icone {
    background: rgba(184, 108, 74, 0.22);
    color: #8a4a2e;
}

.acao-fechamento {
    background: rgba(120, 108, 168, 0.12);
    border-color: rgba(120, 108, 168, 0.28);
}

.acao-fechamento .acao-icone {
    background: rgba(120, 108, 168, 0.2);
    color: #5b4e8a;
}

.acao-icone {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
    border-radius: 999px;
    background: #f4ead0;
    color: #8d734b;
    font-size: 0.95rem;
}

.acao-card strong {
    font-weight: 600;
}

.acao-card small {
    color: #6b6156;
    font-size: 0.82rem;
    line-height: 1.35;
}

.marca-contagem {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.marca-contagem:hover {
    color: #8d734b;
    text-decoration: underline;
}

.pagamento-sit {
    color: #6b6156;
    white-space: nowrap;
}

.tabela-rolagem {
    overflow-x: auto;
}

.demonstrativo .tabela th,
.demonstrativo .tabela td {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.resumo-grade {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 1.2rem;
}

.resumo-grade dt {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8d734b;
}

.resumo-grade dd {
    margin: 0.35rem 0 0;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.resumo-grade > div {
    padding: 0.85rem 0.95rem;
    border-radius: 0.4rem;
}

.resumo-presenca {
    background: rgba(90, 156, 110, 0.12);
}

.resumo-vale {
    background: rgba(72, 128, 168, 0.12);
}

.resumo-bonus {
    background: rgba(196, 150, 60, 0.14);
}

.resumo-liquido {
    background: rgba(141, 115, 75, 0.12);
}

.resumo-fechamento .acoes {
    justify-content: flex-start;
    padding-top: 1rem;
    border-top: 1px solid #ece7dd;
}

.graficos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.grafico-barra {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.grafico-linha {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.grafico-cabeca {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
}

.grafico-cabeca span {
    color: #6b6156;
}

.grafico-cabeca strong {
    font-weight: 600;
}

.grafico-faixa {
    height: 0.55rem;
    background: #ece7dd;
    border-radius: 99px;
    overflow: hidden;
}

.grafico-faixa span {
    display: block;
    height: 100%;
    background: #8d734b;
}

@media (max-width: 900px) {
    .politica-grade {
        grid-template-columns: 1fr;
    }

    .plataforma {
        grid-template-columns: 1fr;
    }

    .lateral {
        position: static;
        height: auto;
    }

    .campos {
        grid-template-columns: 1fr;
    }

    .pagina-cabeca {
        flex-direction: column;
        align-items: flex-start;
    }

    .acoes-operacao,
    .resumo-grade {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .acoes-operacao,
    .resumo-grade {
        grid-template-columns: 1fr;
    }
}
