/* =========================================================================
   GIDEÃO SERVIÇOS — LAYOUT DE APLICATIVO
   Base visual das imagens de referência: branco, azul marinho, verde e laranja.
   Regras de usabilidade inspiradas no SISTEMARN: botões grandes, poucos
   caminhos por tela, cartões de duas colunas, abas no topo e barra inferior.
   ========================================================================= */

:root {
    --app-verde: #1e8a44;
    --app-verde-escuro: #166f36;
    --app-verde-claro: #eaf6ee;
    --app-laranja: #f28c1e;
    --app-laranja-escuro: #cf7109;
    --app-laranja-claro: #fff4e6;
    --app-azul: #1b2b4b;
    --app-azul-medio: #2c4a7c;
    --app-azul-claro: #e9eef7;
    --app-fundo: #ffffff;
    --app-fundo-suave: #f6f7f9;
    --app-borda: #e4e8ee;
    --app-borda-forte: #d3dae4;
    --app-texto: #1f2937;
    --app-suave: #6b7789;
    --app-vermelho: #d92d20;
    --app-vermelho-claro: #fdecea;
    --app-raio: 12px;
    --app-raio-pequeno: 8px;
    --app-topo-altura: 58px;
    --app-barra-altura: 66px;
}

/* ------------------------------ Estrutura ------------------------------- */

body.app-gideao {
    background: #e9edf2;
    color: var(--app-texto);
    font-family: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
}

body.app-gideao a {
    color: var(--app-azul);
}

/* Moldura do aplicativo: coluna central também no computador */
.app-moldura {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--app-fundo);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ------------------------------ Topo ------------------------------------ */

.app-topo {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: var(--app-topo-altura);
    padding: 8px 10px;
    background: #ffffff;
    border-bottom: 1px solid var(--app-borda);
}

.app-topo-identidade {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

/* Botão de voltar e área do logo */
.app-topo-voltar,
.app-topo-logo-area {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--app-azul);
    font-size: 20px;
    border-radius: 50%;
}

.app-topo-voltar:hover,
.app-topo-voltar:active {
    background: var(--app-fundo-suave);
}

.app-topo-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.app-topo-nome {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topo-nome strong {
    font-size: 17px;
    line-height: 1.15;
    color: var(--app-azul);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-topo-nome small {
    font-size: 12px;
    line-height: 1.15;
    color: var(--app-suave);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-topo-acoes {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Ícone de ação no topo */
.app-icone {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--app-azul);
    border: 0;
    font-size: 19px;
    position: relative;
    cursor: pointer;
}

.app-icone:hover {
    background: var(--app-fundo-suave);
}

.app-icone-contador {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--app-laranja);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Cabeçalho azul nas telas iniciais */
body.app-tela-inicio .app-topo {
    background: var(--app-azul);
    border-bottom: 0;
}

body.app-tela-inicio .app-topo-nome strong {
    color: #ffffff;
    font-size: 19px;
}

body.app-tela-inicio .app-topo-nome small {
    color: #c7d2e5;
    font-size: 12.5px;
}

.app-cabecalho-claro .app-topo-identidade {
    padding-left: 4px;
}

.app-cabecalho-claro .app-topo-nome strong {
    font-size: 19px;
}

.app-cabecalho-claro .app-topo-nome small {
    font-size: 12.5px;
}

body.app-tela-inicio .app-icone {
    color: #ffffff;
}

body.app-tela-inicio .app-icone:hover {
    background: rgba(255, 255, 255, 0.12);
}

body.app-tela-inicio .app-topo-voltar {
    color: #ffffff;
}

body.app-tela-inicio .app-topo-voltar:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Formulário do seletor de versão do supervisor */
.app-topo-form {
    display: flex;
    margin: 0;
}

/* ------------------------------ Abas do topo ---------------------------- */

.app-abas {
    position: sticky;
    top: var(--app-topo-altura);
    z-index: 35;
    display: flex;
    align-items: stretch;
    gap: 2px;
    overflow-x: auto;
    background: #ffffff;
    border-bottom: 1px solid var(--app-borda);
    padding: 0 6px;
    scrollbar-width: none;
}

.app-abas::-webkit-scrollbar {
    display: none;
}

.app-aba {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--app-suave);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}

.app-aba.ativo {
    color: var(--app-azul);
    border-bottom-color: var(--app-verde);
}

.app-aba:hover {
    color: var(--app-verde-escuro);
}

/* ------------------------------ Conteúdo -------------------------------- */

.app-conteudo {
    flex: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 14px 14px calc(var(--app-barra-altura) + 30px);
    background: #ffffff;
}

/* ------------------------------ Menu em cartões -------------------------- */

.app-modulos {
    margin-bottom: 16px;
}

.app-modulos-titulo {
    font-size: 16px;
    font-weight: 700;
    color: var(--app-azul);
    margin: 0 0 10px;
}

.app-modulos-grade,
.app-menu-grade {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.app-modulo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 76px;
    padding: 12px;
    border: 1px solid var(--app-borda);
    border-radius: var(--app-raio);
    background: #ffffff;
    color: var(--app-azul);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.app-modulo i {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--app-verde-claro);
    color: var(--app-verde);
    font-size: 18px;
}

.app-modulo:hover,
.app-modulo.ativo {
    border-color: #b9dcc5;
    background: #fbfdfc;
}

.app-modulo:active {
    transform: scale(0.99);
}

/* Bloco azul de destaque da tela inicial, colado nas laterais */
.app-hero {
    margin: -14px -14px 16px;
    padding: 16px 16px 18px;
    background: var(--app-azul);
    color: #ffffff;
}

.app-hero h1,
.app-hero h2,
.app-hero h3,
.app-hero strong {
    color: #ffffff;
}

.app-hero p {
    margin: 2px 0 0;
    color: #c7d2e5;
    font-size: 13px;
}

/* Cartão de alerta laranja da referência */
.app-hero-alerta {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--app-raio-pequeno);
    background: var(--app-laranja);
    color: #ffffff;
}

.app-hero-alerta i {
    font-size: 20px;
    margin-top: 1px;
}

.app-hero-alerta strong {
    display: block;
    font-size: 15px;
}

.app-hero-alerta span {
    display: block;
    font-size: 13px;
    color: #fff7ec;
}

.app-hero-alerta > div {
    flex: 1;
    min-width: 0;
}

.app-hero-alerta .app-hero-alerta-link {
    margin-top: 4px;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

/* Faixa azul sem ocorrências */
.app-hero-ok {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 2px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.app-hero-ok i {
    color: #7fd39b;
    font-size: 18px;
}

/* ------------------------------ Cartões --------------------------------- */

body.app-gideao .cartao,
body.app-gideao .cartao-campo,
body.app-gideao .ajuda-cartao {
    background: #ffffff;
    border: 1px solid var(--app-borda);
    border-radius: var(--app-raio);
    padding: 14px;
    box-shadow: none;
    overflow-wrap: anywhere;
}

body.app-gideao .cartao-titulo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

body.app-gideao .cartao-titulo h3 {
    font-size: 16px;
    color: var(--app-azul);
    margin: 0;
}

body.app-gideao .cartao-titulo small {
    font-size: 12px;
    color: var(--app-suave);
    text-align: right;
}

/* ------------------------------ Cabeçalho de tela ----------------------- */

body.app-gideao .cabecalho-modulo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 14px;
}

body.app-gideao .cabecalho-modulo h2 {
    font-size: 21px;
    line-height: 1.2;
    color: var(--app-azul);
    margin: 0;
}

body.app-gideao .cabecalho-modulo p {
    font-size: 13px;
    color: var(--app-suave);
    margin: 3px 0 0;
}

body.app-gideao .cabecalho-modulo > .linha {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    padding: 0;
}

body.app-gideao .cabecalho-modulo > .linha .botao {
    flex: 1 1 auto;
    white-space: nowrap;
}

/* ------------------------------ Botões ---------------------------------- */

body.app-gideao .botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: var(--app-raio-pequeno);
    font-size: 15px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

body.app-gideao .botao:active {
    transform: scale(0.985);
}

body.app-gideao .botao-pequeno {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 14px;
}

body.app-gideao .botao-bloco {
    width: 100%;
}

body.app-gideao .botao-primario {
    background: var(--app-verde);
    color: #ffffff;
    border-color: var(--app-verde);
}

body.app-gideao .botao-primario:hover {
    background: var(--app-verde-escuro);
    border-color: var(--app-verde-escuro);
    color: #ffffff;
}

body.app-gideao .botao-contorno {
    background: #ffffff;
    color: var(--app-azul);
    border-color: var(--app-borda-forte);
}

body.app-gideao .botao-contorno:hover {
    background: var(--app-fundo-suave);
    color: var(--app-azul);
}

body.app-gideao .botao-secundario,
body.app-gideao .botao-claro {
    background: var(--app-azul);
    color: #ffffff;
    border-color: var(--app-azul);
}

body.app-gideao .botao-aviso {
    background: var(--app-laranja);
    color: #ffffff;
    border-color: var(--app-laranja);
}

body.app-gideao .botao-aviso:hover {
    background: var(--app-laranja-escuro);
    border-color: var(--app-laranja-escuro);
    color: #ffffff;
}

body.app-gideao .botao-perigo,
body.app-gideao .botao-vermelho {
    background: var(--app-vermelho);
    color: #ffffff;
    border-color: var(--app-vermelho);
}

body.app-gideao .botao-azul {
    background: var(--app-azul);
    color: #ffffff;
    border-color: var(--app-azul);
}

body.app-gideao .botao-azul:hover {
    background: #12203a;
    border-color: #12203a;
    color: #ffffff;
}

body.app-gideao .botao:disabled {
    opacity: 0.55;
}

/* Botões redondos de ação rápida, como no SISTEMARN */
body.app-gideao .acao-redonda {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 72px;
    border: 0;
    background: transparent;
    color: var(--app-azul);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

body.app-gideao .acao-redonda span {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--app-verde);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* ------------------------------ Formulários ----------------------------- */

body.app-gideao .formulario-compacto,
body.app-gideao .formulario-protegido {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.app-gideao .campo-formulario {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

body.app-gideao .campo-formulario label {
    font-size: 13px;
    font-weight: 700;
    color: var(--app-azul);
}

body.app-gideao input,
body.app-gideao select,
body.app-gideao textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border-radius: var(--app-raio-pequeno);
    border: 1px solid var(--app-borda);
    background: var(--app-fundo-suave);
    color: var(--app-texto);
    font-size: 16px;
    font-weight: 500;
}

body.app-gideao textarea {
    min-height: 100px;
}

body.app-gideao input:focus,
body.app-gideao select:focus,
body.app-gideao textarea:focus {
    outline: 2px solid #b8ddc5;
    border-color: var(--app-verde);
    background: #ffffff;
}

body.app-gideao .texto-ajuda,
body.app-gideao .texto-suave {
    font-size: 13px;
    color: var(--app-suave);
}

/* ------------------------------ Indicadores ----------------------------- */

body.app-gideao .kpi-grade,
body.app-gideao .grade-indicadores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.app-gideao .kpi,
body.app-gideao .indicador {
    border-radius: var(--app-raio);
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--app-borda);
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    box-shadow: none;
}

/* Remove as barras coloridas antigas dos cartões */
body.app-gideao .kpi::before {
    display: none;
}

body.app-gideao .kpi strong,
body.app-gideao .indicador strong {
    font-size: 26px;
    line-height: 1.1;
    color: var(--app-azul);
}

body.app-gideao .kpi small,
body.app-gideao .indicador small {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--app-suave);
}

body.app-gideao .kpi span {
    font-size: 12px;
    color: var(--app-suave);
}

body.app-gideao .kpi.azul,
body.app-gideao .kpi.verde,
body.app-gideao .kpi.vermelho,
body.app-gideao .kpi.amarelo,
body.app-gideao .indicador.azul,
body.app-gideao .indicador.verde,
body.app-gideao .indicador.vermelho,
body.app-gideao .indicador.amarelo,
body.app-gideao .indicador.laranja {
    background: #ffffff;
    border: 1px solid var(--app-borda);
}

/* ------------------------------ Etiquetas ------------------------------- */

body.app-gideao .etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

body.app-gideao .etiqueta-verde {
    background: var(--app-verde-claro);
    color: var(--app-verde-escuro);
}

body.app-gideao .etiqueta-azul {
    background: var(--app-azul-claro);
    color: var(--app-azul);
}

body.app-gideao .etiqueta-amarela,
body.app-gideao .etiqueta-laranja {
    background: var(--app-laranja-claro);
    color: var(--app-laranja-escuro);
}

body.app-gideao .etiqueta-vermelha {
    background: var(--app-vermelho-claro);
    color: var(--app-vermelho);
}

body.app-gideao .etiqueta-cinza {
    background: #eef1f5;
    color: #475467;
}

/* ------------------------------ Tabelas --------------------------------- */

body.app-gideao .tabela-responsiva {
    overflow-x: auto;
    margin: 0 -4px;
    padding: 0 4px;
    -webkit-overflow-scrolling: touch;
}

body.app-gideao .tabela {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    font-size: 13px;
}

body.app-gideao .tabela th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--app-suave);
    padding: 9px 8px;
    border-bottom: 1px solid var(--app-borda);
    white-space: nowrap;
}

body.app-gideao .tabela td {
    padding: 11px 8px;
    border-bottom: 1px solid #eef1f5;
    vertical-align: top;
}

body.app-gideao .tabela tbody tr:last-child td {
    border-bottom: 0;
}

body.app-gideao .celula-principal strong {
    display: block;
    color: var(--app-azul);
}

body.app-gideao .celula-principal small {
    display: block;
    color: var(--app-suave);
    font-size: 12px;
}

/* ------------------------------ Alertas e vazios ------------------------ */

body.app-gideao .alerta {
    border-radius: var(--app-raio-pequeno);
    padding: 11px 13px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid transparent;
    margin-bottom: 12px;
}

body.app-gideao .alerta-sucesso {
    background: var(--app-verde-claro);
    color: var(--app-verde-escuro);
    border-color: #c6e6d1;
}

body.app-gideao .alerta-erro {
    background: var(--app-vermelho-claro);
    color: #b42318;
    border-color: #f5c6c2;
}

body.app-gideao .alerta-aviso {
    background: var(--app-laranja-claro);
    color: #9a4a05;
    border-color: #f7d6ae;
}

body.app-gideao .alerta-fechar {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

body.app-gideao .estado-vazio {
    text-align: center;
    padding: 20px 10px;
    color: var(--app-suave);
    font-size: 13px;
}

body.app-gideao .estado-vazio-icone {
    display: block;
    font-size: 26px;
    margin-bottom: 6px;
    color: var(--app-verde);
}

/* ------------------------------ Listas ---------------------------------- */

body.app-gideao .lista-limpa,
body.app-gideao .lista-simples {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.app-gideao .item-lista {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #eef1f5;
}

body.app-gideao .item-lista:last-child {
    border-bottom: 0;
}

body.app-gideao .item-lista-icone {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--app-verde-claro);
    color: var(--app-verde);
}

body.app-gideao .item-lista-corpo {
    flex: 1;
    min-width: 0;
}

body.app-gideao .item-lista-corpo strong {
    display: block;
    font-size: 14px;
    color: var(--app-azul);
}

body.app-gideao .item-lista-corpo small {
    display: block;
    font-size: 12px;
    color: var(--app-suave);
}

/* Detalhes e resumos viram linhas de cartão */
body.app-gideao .detalhe-linha,
body.app-gideao .resumo-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f5;
}

body.app-gideao .detalhe-linha:last-child,
body.app-gideao .resumo-item:last-child {
    border-bottom: 0;
}

body.app-gideao .detalhe-linha strong,
body.app-gideao .resumo-item strong {
    color: var(--app-azul);
}

/* ------------------------------ Atalhos em cartões ---------------------- */

body.app-gideao .atalhos-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

body.app-gideao .atalho-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--app-borda);
    border-radius: var(--app-raio-pequeno);
    background: #ffffff;
    color: var(--app-azul);
}

body.app-gideao .atalho-mobile i {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--app-verde-claro);
    color: var(--app-verde);
    font-size: 18px;
}

body.app-gideao .atalho-mobile strong {
    display: block;
    font-size: 14px;
}

body.app-gideao .atalho-mobile small {
    display: block;
    font-size: 12px;
    color: var(--app-suave);
}

body.app-gideao .atalho-mobile:hover {
    border-color: #b9dcc5;
    background: #fbfdfc;
}

/* ------------------------------ Ajustes gerais -------------------------- */

body.app-gideao h1,
body.app-gideao h2,
body.app-gideao h3,
body.app-gideao h4 {
    color: var(--app-azul);
}

body.app-gideao .margem-topo {
    margin-top: 14px;
}

body.app-gideao .painel-duas-colunas {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.app-gideao .grade-duas-colunas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

body.app-gideao .grade-formulario,
body.app-gideao .linha-dupla {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

body.app-gideao .formulario-filtros {
    grid-template-columns: 1fr;
}

/* Esconde restos do layout antigo */
body.app-gideao .menu-lateral,
body.app-gideao .topo-interno,
body.app-gideao .barra-pesquisa {
    display: none !important;
}

/* ------------------------------ Modal ----------------------------------- */

body.app-gideao .modal-caixa {
    border-radius: var(--app-raio);
    border: 1px solid var(--app-borda);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

body.app-gideao .modal-cabecalho h3 {
    font-size: 17px;
}

/* ------------------------------ Barra inferior -------------------------- */

.app-barra {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: end;
    background: #ffffff;
    border-top: 1px solid var(--app-borda);
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px rgba(27, 43, 75, 0.05);
}

.app-barra-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 50px;
    padding: 3px 2px;
    border: 0;
    background: transparent;
    color: var(--app-suave);
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    line-height: 1.1;
    text-decoration: none;
}

.app-barra-item span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-barra-item i {
    font-size: 19px;
}

.app-barra-item.ativo {
    color: var(--app-verde);
}

.app-barra-item:active {
    background: var(--app-fundo-suave);
}

/* Botão central de ação rápida */
.app-barra-acao {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.app-barra-acao span {
    width: 50px;
    height: 50px;
    margin-top: -22px;
    border-radius: 50%;
    background: var(--app-verde);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 14px rgba(30, 138, 68, 0.32);
}

.app-barra-acao:active span {
    background: var(--app-verde-escuro);
}

/* ------------------------------ Folha de ações -------------------------- */

.app-acoes {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
}

.app-acoes.aberto {
    display: block;
}

.app-acoes-fundo {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.app-acoes-painel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px 18px 0 0;
    padding: 8px 14px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
}

.app-acoes-alca {
    width: 42px;
    height: 4px;
    margin: 2px auto 10px;
    border-radius: 2px;
    background: #d9dee6;
}

.app-acoes-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.app-acoes-titulo strong {
    font-size: 17px;
    color: var(--app-azul);
}

.app-acoes-grade {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.app-acao {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid var(--app-borda);
    border-radius: var(--app-raio);
    background: #ffffff;
    color: var(--app-azul);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.app-acao i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--app-verde-claro);
    color: var(--app-verde);
    font-size: 17px;
}

.app-acao:active {
    background: var(--app-fundo-suave);
}

/* ------------------------------ Menu completo --------------------------- */

.app-menu {
    position: fixed;
    inset: 0;
    z-index: 75;
    display: none;
}

.app-menu.aberto {
    display: block;
}

.app-menu-fundo {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.app-menu-painel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
}

.app-menu-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    background: var(--app-azul);
    color: #ffffff;
    border-radius: 18px 18px 0 0;
}

.app-menu-cabecalho strong {
    font-size: 17px;
}

.app-menu-cabecalho small {
    display: block;
    font-size: 12px;
    color: #c7d2e5;
}

.app-menu-cabecalho .app-icone {
    color: #ffffff;
}

.app-menu-corpo {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px calc(24px + env(safe-area-inset-bottom));
}

.app-menu-grupo {
    margin-bottom: 16px;
}

.app-menu-grupo-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--app-suave);
    margin: 4px 0 6px;
}

.app-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--app-texto);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid transparent;
    text-decoration: none;
}

.app-menu-link:hover,
.app-menu-link.ativo {
    background: var(--app-verde-claro);
    color: var(--app-verde-escuro);
}

.app-menu-link i:first-child {
    width: 26px;
    text-align: center;
    font-size: 18px;
    color: var(--app-verde);
}

.app-menu-link .app-menu-seta {
    margin-left: auto;
    font-size: 12px;
    color: var(--app-suave);
}

/* ------------------------------ Login ----------------------------------- */

body.app-login {
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 14px 28px;
}

.app-login-caixa {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 0;
    text-align: center;
}

.app-login-logo {
    display: block;
    width: 170px;
    margin: 6px auto 14px;
}

.app-login-caixa h1 {
    font-size: 22px;
    margin: 0 0 2px;
    color: var(--app-azul);
}

.app-login-subtitulo {
    font-size: 14px;
    color: var(--app-suave);
    margin: 0 0 18px;
}

.app-login-caixa .campo-formulario {
    text-align: left;
    margin-bottom: 10px;
}

.app-login-campo {
    position: relative;
    display: block;
}

.app-login-campo i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--app-suave);
    font-size: 15px;
}

body.app-gideao .app-login-campo input {
    min-height: 48px;
    padding-left: 42px;
    background: var(--app-fundo-suave);
    border-color: #e6e9ee;
    font-size: 15px;
}

.app-login-linha {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 14px;
}

.app-login-esqueci {
    font-size: 13px;
    font-weight: 600;
    color: var(--app-azul);
}

body.app-gideao .botao-grande {
    min-height: 50px;
    font-size: 16px;
}

.app-login-ou {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 12px;
    color: var(--app-suave);
    font-size: 13px;
    font-weight: 600;
}

.app-login-ou::before,
.app-login-ou::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--app-borda);
}

.app-login-perfis-titulo {
    font-size: 14px;
    font-weight: 600;
    color: var(--app-azul);
    margin: 0 0 10px;
}

.app-login-perfis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.app-login-perfil {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 10px 12px;
    border: 1px solid var(--app-borda);
    border-radius: var(--app-raio-pequeno);
    background: #ffffff;
    color: var(--app-texto);
    text-align: left;
    text-decoration: none;
}

.app-login-perfil:hover {
    border-color: #b9dcc5;
    background: #fbfdfc;
}

.app-login-perfil:active {
    transform: scale(0.985);
}

.app-login-perfil i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--app-verde-claro);
    color: var(--app-verde);
    font-size: 16px;
}

/* Cores dos ícones por perfil, iguais à referência */
.app-login-perfil.perfil-laranja i {
    background: var(--app-laranja-claro);
    color: var(--app-laranja);
}

.app-login-perfil.perfil-azul i {
    background: var(--app-azul-claro);
    color: var(--app-azul);
}

.app-login-perfil strong {
    display: block;
    font-size: 13px;
    color: var(--app-azul);
    line-height: 1.15;
}

.app-login-perfil small {
    display: block;
    font-size: 11px;
    color: var(--app-suave);
    line-height: 1.2;
}

.app-login-rodape {
    margin-top: 16px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-login-troca {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--app-borda);
    font-size: 13px;
    color: var(--app-suave);
}

.app-login-demo {
    margin-top: 14px;
    font-size: 11px;
    color: var(--app-suave);
    background: var(--app-fundo-suave);
    border-radius: var(--app-raio-pequeno);
    padding: 8px 10px;
    text-align: left;
}

.app-login-demo summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--app-azul);
}

.app-login-campo .app-login-olho {
    position: absolute;
    right: 8px;
    top: 50%;
    left: auto;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--app-suave);
    font-size: 16px;
    cursor: pointer;
}

.app-login-campo .app-login-olho i {
    position: static;
    left: auto;
    transform: none;
    color: var(--app-suave);
    font-size: 16px;
}

body.app-gideao .app-login-campo input#senha {
    padding-right: 46px;
}

.app-login-perfil-texto {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-login-perfil-texto strong {
    display: block;
    font-size: 13px;
    color: var(--app-azul);
    line-height: 1.15;
}

.app-login-perfil-texto small {
    display: block;
    font-size: 11px;
    color: var(--app-suave);
    line-height: 1.2;
}

/* ------------------------------ Utilitário ------------------------------ */

.oculto {
    display: none !important;
}

/* ------------------------------ Pesquisa do menu ------------------------ */

.app-menu-busca {
    position: relative;
    margin: 0 0 12px;
}

.app-menu-busca > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--app-suave);
    font-size: 15px;
}

body.app-gideao .app-menu-busca input {
    min-height: 46px;
    padding-left: 40px;
    background: var(--app-fundo-suave);
    border: 1px solid var(--app-borda);
    border-radius: 999px;
    font-size: 15px;
}

.app-menu-vazio {
    text-align: center;
    padding: 22px 10px;
    color: var(--app-suave);
    font-size: 14px;
}

.app-menu-vazio i {
    display: block;
    font-size: 22px;
    margin-bottom: 6px;
    color: var(--app-laranja);
}

/* ------------------------------ Painel do dia --------------------------- */

/* Faixa azul do painel: o alerta laranja fica dentro do azul, como na referência */
.app-hero-painel {
    margin: -14px -14px 14px;
    padding: 14px;
    background: var(--app-azul);
}

.app-hero-painel .app-hero-alerta {
    margin: 0;
    border-radius: 12px;
    padding: 12px 14px;
}

.app-hero-painel .app-hero-ok {
    padding: 10px 16px 14px;
}

.app-painel-saudacao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.app-painel-saudacao strong {
    display: block;
    font-size: 18px;
    color: #ffffff;
}

.app-painel-saudacao small {
    display: block;
    font-size: 12px;
    color: #c7d2e5;
}

.app-painel-saudacao .app-icone {
    color: #ffffff;
}

/* Cartões de números do painel, em duas colunas */
.app-painel-grade {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.app-painel-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 84px;
    padding: 14px;
    border: 1px solid var(--app-borda);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.app-painel-card > div {
    order: 2;
    min-width: 0;
}

.app-painel-card > i {
    order: 1;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    color: var(--app-verde);
    font-size: 30px;
}

.app-painel-card.navy > i {
    background: transparent;
    color: var(--app-azul);
}

.app-painel-card.laranja > i {
    background: transparent;
    color: var(--app-laranja);
}

.app-painel-card strong {
    display: block;
    font-size: 26px;
    line-height: 1.05;
    color: var(--app-verde);
}

.app-painel-card.laranja strong {
    color: var(--app-laranja);
}

.app-painel-card.navy strong {
    color: var(--app-azul);
}

.app-painel-card small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.25;
    color: var(--app-suave);
}

/* Atalhos redondos, como no SISTEMARN e na referência */
.app-atalhos-redondos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 16px;
}

.app-atalho-redondo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: var(--app-azul);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.app-atalho-redondo span {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--app-verde-claro);
    color: var(--app-verde);
    font-size: 24px;
}

.app-atalho-redondo.laranja span {
    background: var(--app-laranja-claro);
    color: var(--app-laranja);
}

.app-atalho-redondo.navy span {
    background: var(--app-azul-claro);
    color: var(--app-azul);
}

.app-painel-titulo {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--app-azul);
}

/* Lista de comunicações do painel */
.app-comunicacoes {
    margin-top: 14px;
    padding: 14px 16px;
}

.app-com-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #eef1f5;
    color: inherit;
    text-decoration: none;
}

.app-com-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.app-com-corpo {
    flex: 1;
    min-width: 0;
}

.app-com-corpo strong {
    display: block;
    font-size: 14px;
    color: var(--app-azul);
}

.app-com-corpo small {
    display: block;
    font-size: 12px;
    color: var(--app-suave);
}

.app-com-ponto {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--app-laranja);
}

.app-com-ponto-lido {
    background: #c7ced8;
}

.app-dash-alerta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--app-laranja);
    color: #ffffff;
    text-decoration: none;
}

.app-dash-alerta > i:first-child {
    font-size: 22px;
}

.app-dash-alerta > i:last-child {
    margin-left: auto;
    font-size: 13px;
    color: #ffe4c4;
}

.app-dash-alerta strong {
    display: block;
    font-size: 15px;
    color: #ffffff;
}

.app-dash-alerta small {
    display: block;
    font-size: 12px;
    color: #fff3e4;
}

/* Alerta suave em azul para avisos do turno */
.app-dash-alerta.app-dash-alerta-suave {
    background: var(--app-azul-claro);
    color: var(--app-azul);
}

.app-dash-alerta.app-dash-alerta-suave strong {
    color: var(--app-azul);
}

.app-dash-alerta.app-dash-alerta-suave small {
    color: #44577a;
}

.app-dash-alerta.app-dash-alerta-suave > i:last-child {
    color: #8a9ab8;
}

.app-dash-resumo {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.app-dash-numero {
    text-align: center;
    padding: 12px 6px;
    border: 1px solid var(--app-borda);
    border-radius: 12px;
    background: #ffffff;
}

.app-dash-numero strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    color: var(--app-azul);
}

.app-dash-numero small {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--app-suave);
}

.app-dash-acoes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.app-dash-acao {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    border: 1px solid var(--app-borda);
    border-radius: 14px;
    background: #ffffff;
    color: var(--app-azul);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.app-dash-acao i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--app-verde-claro);
    color: var(--app-verde);
    font-size: 20px;
}

.app-dash-acao.laranja i {
    background: var(--app-laranja-claro);
    color: var(--app-laranja);
}

.app-dash-acao:active {
    transform: scale(0.985);
}

/* Ação larga, em uma linha, para atalhos secundários */
.app-dash-acao.app-dash-acao-larga {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding: 12px;
    margin-bottom: 14px;
}

.app-dash-acao.app-dash-acao-larga i {
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: transparent;
    color: var(--app-laranja);
    font-size: 18px;
}

/* ------------------------------ Escalas e cobertura --------------------- */

.esc-dia {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef1f5;
}

.esc-dias {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.esc-dias::-webkit-scrollbar {
    display: none;
}

.esc-dia-item {
    flex: 0 0 auto;
    width: 48px;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--app-suave);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.esc-dia-item strong {
    font-size: 17px;
    color: var(--app-azul);
    line-height: 1;
}

.esc-dia-item.ativo {
    background: var(--app-verde);
    color: #eaf6ee;
}

.esc-dia-item.ativo strong {
    color: #ffffff;
}

.esc-filtros {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.esc-filtros::-webkit-scrollbar {
    display: none;
}

.esc-filtro {
    flex: 1 1 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    background: #eef1f5;
    color: var(--app-texto);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.esc-filtro.ativo {
    background: var(--app-azul);
    color: #ffffff;
}

.esc-resumo {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 14px;
    text-align: center;
}

.esc-resumo-item {
    padding: 4px 2px;
    border: 0;
    background: transparent;
}

.esc-resumo-item strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    color: var(--app-azul);
}

.esc-resumo-item strong.verde {
    color: var(--app-verde);
}

.esc-resumo-item strong.laranja {
    color: var(--app-laranja);
}

.esc-resumo-item small {
    font-size: 11px;
    font-weight: 600;
    color: var(--app-suave);
}

.esc-alerta {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--app-laranja);
    color: #ffffff;
}

.esc-alerta-topo {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.esc-alerta-topo > i {
    font-size: 23px;
    margin-top: 1px;
}

.esc-alerta-topo strong {
    display: block;
    font-size: 17px;
    color: #ffffff;
}

.esc-alerta-topo span {
    display: block;
    font-size: 13px;
    color: #fff3e4;
}

.esc-alerta-botao {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 12px;
    border-radius: 9px;
    background: #ffffff;
    color: var(--app-laranja-escuro);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

body.app-gideao a.esc-alerta-botao {
    color: var(--app-laranja-escuro);
}

.esc-alerta-ok {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--app-verde);
}

.esc-alerta-ok > i {
    font-size: 22px;
}

.esc-alerta-ok strong {
    display: block;
    font-size: 15px;
    color: #ffffff;
}

.esc-alerta-ok span {
    display: block;
    font-size: 12px;
    color: #e6f4ea;
}

.esc-lista-titulo {
    margin: 4px 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--app-azul);
}

.esc-lista-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.esc-lista-topo .esc-lista-titulo {
    margin: 4px 0 10px;
}

.esc-lista-acao {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--app-verde);
    border-radius: 9px;
    background: #ffffff;
    color: var(--app-verde-escuro);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

body.app-gideao a.esc-lista-acao {
    color: var(--app-verde-escuro);
}

.esc-cartao {
    padding: 4px 14px;
}

.esc-cartao-sem-borda {
    padding: 0;
}

.esc-linha {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f5;
}

.esc-linha:last-child {
    border-bottom: 0;
}

.esc-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--app-verde-claro);
    color: var(--app-verde-escuro);
    font-size: 16px;
    font-weight: 700;
}

.esc-avatar-aberto {
    background: var(--app-laranja-claro);
    color: var(--app-laranja-escuro);
}

.esc-avatar-foto {
    object-fit: cover;
    background: #eef1f5;
}

/* Selos de cobertura da lista */
.esc-selo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 2px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.esc-selo-ok {
    border-color: #9fd3b0;
    background: #ffffff;
    color: var(--app-verde-escuro);
}

body.app-gideao a.esc-selo-descoberto,
.esc-selo-descoberto {
    border-color: #efb4ae;
    background: #ffffff;
    color: var(--app-vermelho);
}

.esc-selo-cinza {
    border-color: var(--app-borda-forte);
    background: #ffffff;
    color: var(--app-suave);
}

.esc-corpo {
    flex: 1;
    min-width: 0;
}

.esc-corpo strong {
    display: block;
    font-size: 14px;
    color: var(--app-azul);
}

.esc-corpo small {
    display: block;
    font-size: 12px;
    color: var(--app-suave);
}

/* ------------------------------ Explicação da ação ----------------------- */

.app-explicacao {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
}

.app-explicacao.aberto {
    display: block;
}

.app-explicacao-fundo {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}

.app-explicacao-caixa {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    max-width: 420px;
    margin: 0 auto;
    padding: 22px 18px 18px;
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.app-explicacao-icone {
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--app-azul-claro);
    color: var(--app-azul);
    font-size: 26px;
}

.app-explicacao-caixa h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--app-azul);
}

.app-explicacao-caixa p {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--app-suave);
}

.app-explicacao-acoes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ------------------------------ Telas grandes --------------------------- */

/* Botão redondo com rótulo visível em telas maiores */
.app-icone-rotulado {
    width: auto;
    padding: 0 14px;
    gap: 8px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

/* No computador o layout se estende, como no SISTEMARN */
@media (min-width: 700px) {
    .app-topo {
        padding: 10px 22px;
    }

    .app-abas {
        padding: 0 16px;
    }

    .app-conteudo {
        padding: 20px 22px 110px;
    }

    .app-hero {
        margin: -20px -22px 18px;
        padding: 22px;
    }

    .app-modulos-grade,
    .app-menu-grade {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .app-modulo {
        min-height: 84px;
        font-size: 15px;
    }

    body.app-gideao .atalhos-mobile {
        grid-template-columns: 1fr 1fr;
    }

    body.app-gideao .grade-duas-colunas {
        grid-template-columns: 1fr 1fr;
    }

    body.app-gideao .painel-duas-colunas {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    body.app-gideao .linha-dupla,
    body.app-gideao .grade-formulario {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1100px) {
    .app-conteudo {
        padding: 24px 28px 120px;
    }

    .app-hero {
        margin: -24px -28px 20px;
        padding: 26px 28px;
    }

    .app-modulos-grade,
    .app-menu-grade {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.app-gideao .kpi-grade,
    body.app-gideao .grade-indicadores {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .app-barra {
        max-width: 760px;
    }

    .app-menu-painel {
        max-width: 760px;
    }

    .app-acoes-painel {
        max-width: 640px;
    }

    .app-barra-item {
        font-size: 12px;
    }

    .app-barra-item i {
        font-size: 21px;
    }
}

/* Em telas estreitas o seletor de versão mostra apenas o ícone */
@media (max-width: 560px) {
    .app-icone-rotulado {
        width: 40px;
        padding: 0;
    }

    .app-icone-rotulado span {
        display: none;
    }
}

/* ------------------------------ Check-in no posto ----------------------- */

.ck-form {
    margin-bottom: 14px;
}

.ck-cartao {
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid var(--app-borda);
    border-radius: 14px;
    background: #ffffff;
}

.ck-secao-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.ck-secao-topo h3 {
    margin: 0;
    font-size: 15px;
    color: var(--app-azul);
}

.ck-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ck-status-ok {
    background: var(--app-verde-claro);
    color: var(--app-verde-escuro);
}

.ck-status-espera {
    background: #eef1f5;
    color: var(--app-suave);
}

.ck-posto {
    display: block;
    font-size: 16px;
    color: var(--app-azul);
}

.ck-endereco {
    display: block;
    font-size: 13px;
    color: var(--app-suave);
}

.ck-mapa {
    position: relative;
    height: 120px;
    margin: 12px 0;
    border-radius: 12px;
    overflow: hidden;
    background:
        repeating-linear-gradient(0deg, #eef3ec 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, #eef3ec 0 1px, transparent 1px 22px),
        #f6faf5;
}

.ck-mapa-pino {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ck-mapa-pino i {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(30, 138, 68, 0.14);
    color: var(--app-verde);
    font-size: 26px;
}

.ck-qr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ck-qr-texto span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--app-azul);
}

.ck-qr-texto p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--app-suave);
}

.ck-qr-imagem {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--app-borda);
    border-radius: 10px;
    background: #ffffff;
    padding: 4px;
}

.ck-qr-imagem img,
.ck-qr-imagem canvas,
.ck-qr-imagem svg {
    width: 100%;
    height: 100%;
}

.ck-qr-vazio {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--app-borda-forte);
    border-radius: 10px;
    color: var(--app-suave);
    font-size: 34px;
}

.ck-campo {
    margin-bottom: 10px;
}

.ck-campo label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--app-azul);
}

.ck-campo input,
.ck-campo textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--app-borda-forte);
    border-radius: 9px;
    background: #ffffff;
    font-size: 14px;
    color: var(--app-texto);
}

.ck-ajuda {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--app-suave);
}

.ck-detalhe {
    margin-top: 6px;
    border-top: 1px solid #eef1f5;
    padding-top: 8px;
}

.ck-detalhe summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--app-azul);
}

.ck-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 13px;
}

.ck-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f5;
    font-size: 13px;
}

.ck-linha > span {
    color: var(--app-suave);
}

.ck-linha > strong {
    color: var(--app-azul);
    text-align: right;
}

.ck-horario {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ck-linha-foto {
    align-items: center;
}

.ck-foto-botao {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--app-borda-forte);
    border-radius: 9px;
    color: var(--app-azul);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ck-arquivo {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.ck-botao {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.ck-botao-verde {
    background: var(--app-verde);
    color: #ffffff;
}

body.app-gideao a.ck-botao-verde,
body.app-gideao a.ck-botao-contorno,
body.app-gideao a.vis-botao {
    color: #ffffff;
}

body.app-gideao a.ck-botao-contorno {
    color: var(--app-azul);
}

.ck-botao-contorno {
    border: 1px solid var(--app-borda-forte);
    background: #ffffff;
    color: var(--app-azul);
}

/* ------------------------------ Nova ocorrência ------------------------- */

.oc-criticidade {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.oc-criticidade-item {
    position: relative;
    display: flex;
}

.oc-criticidade-item input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.oc-criticidade-item span {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--app-borda-forte);
    border-radius: 9px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    color: var(--app-suave);
    cursor: pointer;
}

.oc-criticidade-item.baixa input:checked + span {
    border-color: var(--app-verde);
    background: var(--app-verde-claro);
    color: var(--app-verde-escuro);
}

.oc-criticidade-item.media input:checked + span {
    border-color: #e0a800;
    background: #fff8e1;
    color: #8a6a00;
}

.oc-criticidade-item.alta input:checked + span {
    border-color: var(--app-vermelho);
    background: var(--app-vermelho);
    color: #ffffff;
}

.oc-topo {
    margin-bottom: 10px;
}

.oc-topo h2 {
    margin: 0 0 4px;
    font-size: 18px;
    color: var(--app-azul);
}

.oc-topo p {
    margin: 0 0 6px;
    font-size: 12.5px;
    color: var(--app-suave);
}

.oc-link-livro {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--app-azul);
    text-decoration: none;
}

body.app-gideao a.oc-link-livro {
    color: var(--app-azul);
}

.oc-form {
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid var(--app-borda);
    border-radius: 14px;
    background: #ffffff;
}

.oc-grupo {
    margin-bottom: 14px;
}

.oc-grupo > label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--app-azul);
}

.oc-grupo select,
.oc-grupo textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--app-borda-forte);
    border-radius: 9px;
    background: #ffffff;
    color: var(--app-texto);
    font-family: inherit;
    font-size: 13.5px;
}

.oc-grupo textarea {
    resize: vertical;
}

.oc-fotos {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.oc-foto {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 68px;
    border: 1px solid var(--app-borda);
    border-radius: 8px;
    overflow: hidden;
    background: var(--app-fundo-suave);
}

.oc-foto-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oc-foto-add {
    border-style: dashed;
    border-color: #c4ccd6;
    background: #ffffff;
    color: var(--app-suave);
    font-size: 18px;
    cursor: pointer;
}

.oc-status {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--app-suave);
}

.oc-rotulo-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.oc-rotulo-linha label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--app-azul);
}

.oc-tempo {
    font-size: 11px;
    font-weight: 700;
    color: var(--app-vermelho);
}

.oc-audio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--app-borda);
    border-radius: 9px;
    background: var(--app-fundo-suave);
}

.oc-onda {
    flex: 1;
    min-width: 0;
    height: 30px;
    border-radius: 4px;
    background: repeating-linear-gradient(90deg, #cfd8e3 0 2px, transparent 2px 6px);
}

.oc-audio-botao {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--app-azul);
    color: #ffffff;
    font-size: 15px;
}

.oc-preview-audio audio {
    width: 100%;
    margin-top: 8px;
}

.oc-enviar {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--app-laranja);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

/* ------------------------------ Checklist do posto ---------------------- */

.chk-progresso-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--app-azul);
}

.chk-progresso {
    height: 8px;
    border-radius: 999px;
    background: #e9edf2;
    overflow: hidden;
}

.chk-progresso span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--app-verde);
}

/* ------------------------------ Rota de visitas ------------------------- */

.vis-topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.vis-topo h2 {
    margin: 0;
    font-size: 19px;
    color: var(--app-azul);
}

.vis-topo p {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--app-suave);
}

.vis-botao {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 9px;
    background: var(--app-verde);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.vis-resumo {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    text-align: center;
}

.vis-resumo strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    color: var(--app-azul);
}

.vis-resumo strong.verde {
    color: var(--app-verde);
}

.vis-resumo strong.laranja {
    color: var(--app-laranja);
}

.vis-resumo small {
    font-size: 11px;
    font-weight: 600;
    color: var(--app-suave);
}

.vis-titulo {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--app-azul);
}

.vis-cartao {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--app-borda);
    border-radius: 14px;
    background: #ffffff;
}

.vis-cabecalho {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vis-ponto {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
    background: var(--app-verde);
}

.vis-ponto.vermelho {
    background: var(--app-vermelho);
}

.vis-ponto.laranja {
    background: var(--app-laranja);
}

.vis-corpo {
    flex: 1;
    min-width: 0;
}

.vis-corpo strong {
    display: block;
    font-size: 14px;
    color: var(--app-azul);
}

.vis-corpo small {
    display: block;
    font-size: 12px;
    color: var(--app-suave);
}

.vis-obs {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--app-texto);
}

.vis-itens {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.vis-itens li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: var(--app-texto);
}

.vis-itens li i {
    margin-top: 3px;
    color: var(--app-verde);
}

.vis-itens li.pendente i {
    color: var(--app-vermelho);
}

/* Abas da supervisão */
.vis-abas {
    display: flex;
    margin-bottom: 14px;
    border: 1px solid var(--app-borda);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.vis-abas a {
    flex: 1;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    color: var(--app-suave);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

body.app-gideao .vis-abas a {
    color: var(--app-suave);
}

.vis-abas a.ativo {
    border-bottom-color: var(--app-azul);
    color: var(--app-azul);
    font-weight: 700;
}

body.app-gideao .vis-abas a.ativo {
    color: var(--app-azul);
}

.vis-data {
    margin: -4px 0 12px;
    font-size: 12px;
    color: var(--app-suave);
}

/* Linha do tempo da rota de visitas */
.vis-timeline {
    position: relative;
    margin-bottom: 16px;
}

.vis-tl-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 18px;
}

.vis-tl-item::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 14px;
    bottom: 0;
    width: 2px;
    background: #dfe6ee;
}

.vis-tl-item:last-child::before {
    display: none;
}

.vis-tl-marca {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    margin-top: 4px;
    border: 2px solid var(--app-verde);
    border-radius: 50%;
    background: #ffffff;
}

.vis-tl-item.concluida .vis-tl-marca {
    background: var(--app-verde);
}

.vis-tl-item.andamento .vis-tl-marca {
    border-color: var(--app-laranja);
}

.vis-tl-item.pendente .vis-tl-marca {
    border-color: #c2cbd6;
}

.vis-tl-corpo {
    flex: 1;
    min-width: 0;
}

.vis-tl-corpo strong {
    display: block;
    font-size: 13.5px;
    color: var(--app-azul);
}

.vis-tl-corpo small {
    display: block;
    font-size: 11.5px;
    color: var(--app-suave);
}

.vis-tl-status {
    flex: 0 0 auto;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--app-verde);
}

.vis-tl-item.andamento .vis-tl-status {
    color: var(--app-laranja);
}

.vis-tl-item.pendente .vis-tl-status {
    color: var(--app-suave);
}

/* Checklist de inspeção */
.vis-check {
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid var(--app-borda);
    border-radius: 14px;
    background: #ffffff;
}

.vis-check-topo {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.vis-check-topo strong {
    font-size: 14px;
    color: var(--app-azul);
}

.vis-check-topo small {
    font-size: 12px;
    color: var(--app-suave);
}

.vis-check-progresso {
    height: 8px;
    border-radius: 999px;
    background: #e7ede8;
    overflow: hidden;
}

.vis-check-progresso span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--app-verde);
}

.vis-check-contador {
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--app-suave);
}

.vis-botao-verde {
    display: block;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: var(--app-verde);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

body.app-gideao a.vis-botao-verde {
    color: #ffffff;
}

/* ------------------------------ Listagens simples ----------------------- */

.lis-cabecalho {
    align-items: flex-start;
}

.lis-acoes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 2px 0 10px;
}

.lis-texto-ajuda {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--app-suave);
}

.lis-busca {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    padding: 4px 4px 4px 12px;
    border: 1px solid var(--app-borda);
    border-radius: 12px;
    background: #ffffff;
}

.lis-busca > i {
    color: var(--app-suave);
}

.lis-busca input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 8px 0;
    font-size: 14px;
    color: var(--app-texto);
}

.lis-busca input:focus {
    outline: none;
}

.lis-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--app-azul);
}

.lis-titulo small {
    font-size: 12px;
    font-weight: 600;
    color: var(--app-suave);
}

.lis-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lis-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--app-borda);
    border-radius: 14px;
    background: #ffffff;
}

.lis-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--app-azul-claro);
    color: var(--app-azul);
    font-size: 18px;
}

.lis-corpo {
    flex: 1;
    min-width: 0;
}

.lis-corpo strong {
    display: block;
    font-size: 14px;
    color: var(--app-azul);
}

.lis-corpo small {
    display: block;
    font-size: 12px;
    color: var(--app-suave);
}

.lis-corpo small.lis-meta {
    margin-top: 2px;
    font-weight: 600;
    color: var(--app-azul-medio);
}

/* ------------------------------ Painel do colaborador ------------------- */

.col-jornada,
.col-proximo,
.col-tarefas,
.col-checkin,
.col-alerta {
    margin-bottom: 12px;
}

.col-jornada h3,
.col-proximo h3,
.col-tarefas h3,
.col-checkin h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--app-azul);
}

.col-jornada-linha {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #eef1f5;
    font-size: 13px;
    color: var(--app-texto);
}

.col-jornada-linha:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.col-jornada-linha > i {
    width: 18px;
    text-align: center;
    color: var(--app-azul);
    font-size: 15px;
}

.col-jornada-linha > span {
    flex: 1;
    min-width: 0;
}

.col-jornada-linha > strong {
    font-size: 15px;
    color: var(--app-azul);
}

.col-proximo-corpo {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.col-proximo-texto {
    flex: 1;
    min-width: 0;
}

.col-proximo-texto strong {
    display: block;
    font-size: 14px;
    color: var(--app-azul);
}

.col-proximo-texto small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--app-suave);
}

.col-botao-contorno {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #9fd3b0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--app-verde-escuro);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

body.app-gideao a.col-botao-contorno {
    color: var(--app-verde-escuro);
}

.col-cartao-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.col-cartao-topo h3 {
    margin: 0;
}

.col-link-laranja {
    font-size: 12px;
    font-weight: 700;
    color: var(--app-laranja);
    text-decoration: none;
}

body.app-gideao a.col-link-laranja {
    color: var(--app-laranja);
}

.col-tarefa-linha {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--app-texto);
}

.col-tarefa-linha > i {
    margin-top: 2px;
    color: var(--app-suave);
    font-size: 14px;
}

.col-tarefa-linha > i.concluida {
    color: var(--app-verde);
}

.col-texto-vazio,
.col-checkin p {
    margin: 0;
    font-size: 13px;
    color: var(--app-suave);
}

.col-checkin p {
    color: var(--app-texto);
}

.col-alerta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--app-laranja);
    color: #ffffff;
    text-decoration: none;
}

body.app-gideao a.col-alerta {
    color: #ffffff;
}

.col-alerta strong {
    display: block;
    font-size: 14px;
    color: #ffffff;
}

.col-alerta small {
    display: block;
    font-size: 12px;
    color: #fff3e4;
}

.col-alerta > i {
    font-size: 16px;
}

/* ------------------------------ Checklist do turno ---------------------- */

.ckl-cartao {
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid var(--app-borda);
    border-radius: 14px;
    background: #ffffff;
}

.ckl-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ckl-topo strong {
    font-size: 16px;
    color: var(--app-azul);
}

.ckl-topo span {
    font-size: 13px;
    font-weight: 700;
    color: var(--app-verde-escuro);
}

.ckl-progresso {
    height: 8px;
    margin-top: 8px;
    border-radius: 999px;
    background: #e7ede8;
    overflow: hidden;
}

.ckl-progresso span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--app-verde);
}

.ckl-subtitulo {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--app-suave);
}

.ckl-secao {
    margin-top: 16px;
    padding-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--app-azul);
}

.ckl-itens {
    border-top: 1px solid #eef1f5;
}

.ckl-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #eef1f5;
    color: var(--app-texto);
    font-size: 13.5px;
    text-decoration: none;
}

body.app-gideao a.ckl-item {
    color: var(--app-texto);
}

.ckl-item > span {
    min-width: 0;
}

.ckl-item > i {
    flex: 0 0 auto;
    color: #9aa6b5;
    font-size: 18px;
}

.ckl-item > i.concluido {
    color: var(--app-verde);
}

.ckl-evidencias {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding-top: 6px;
}

.ckl-foto-bloco {
    flex: 0 0 auto;
}

.ckl-foto-bloco small {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--app-suave);
}

.ckl-foto {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 68px;
    border: 1px solid var(--app-borda);
    border-radius: 8px;
    overflow: hidden;
    background: var(--app-fundo-suave);
}

.ckl-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ckl-foto-vazia {
    border-style: dashed;
    color: #a9b3c0;
    font-size: 22px;
}

.ckl-mais {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border: 1px dashed #c4ccd6;
    border-radius: 8px;
    color: var(--app-suave);
    font-size: 20px;
    text-decoration: none;
}

body.app-gideao a.ckl-mais {
    color: var(--app-suave);
}

.ckl-info {
    padding: 12px 0;
}

.ckl-info > span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--app-azul);
}

.ckl-info > small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--app-suave);
}

.ckl-pendencia {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #eef1f5;
    text-decoration: none;
}

body.app-gideao a.ckl-pendencia {
    color: var(--app-texto);
}

.ckl-pendencia > span {
    font-size: 13px;
    font-weight: 700;
    color: var(--app-azul);
}

.ckl-pendencia > strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--app-laranja);
}

.ckl-pendencia > strong i {
    margin-left: 4px;
    font-size: 11px;
}

.ckl-finalizar {
    display: block;
    margin-top: 4px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--app-verde);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

body.app-gideao a.ckl-finalizar {
    color: #ffffff;
}

/* ------------------------------ Frota do gestor -------------------------- */

.fr-abas {
    display: flex;
    margin-bottom: 14px;
    border: 1px solid var(--app-borda);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.fr-abas a {
    flex: 1;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    color: var(--app-suave);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

body.app-gideao .fr-abas a {
    color: var(--app-suave);
}

.fr-abas a.ativo {
    border-bottom-color: var(--app-azul);
    color: var(--app-azul);
    font-weight: 700;
}

body.app-gideao .fr-abas a.ativo {
    color: var(--app-azul);
}

.fr-cartao {
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--app-borda);
    border-radius: 14px;
    background: #ffffff;
}

.fr-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fr-topo small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--app-suave);
}

.fr-topo strong {
    display: block;
    margin-top: 2px;
    font-size: 20px;
    color: var(--app-azul);
}

.fr-topo span {
    display: block;
    font-size: 12.5px;
    color: var(--app-suave);
}

.fr-topo > i {
    color: var(--app-azul);
    font-size: 34px;
}

.fr-status {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--app-verde-claro);
    color: var(--app-verde-escuro);
    font-size: 11px;
    font-weight: 700;
}

.fr-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.fr-linha > span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--app-azul);
}

.fr-linha > strong {
    font-size: 13.5px;
    color: var(--app-texto);
}

.fr-ajuda {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--app-suave);
}

.fr-valor {
    display: block;
    margin-top: 4px;
    font-size: 14.5px;
    color: var(--app-texto);
}

.fr-botao-contorno {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #9fd3b0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--app-verde-escuro);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

body.app-gideao a.fr-botao-contorno {
    color: var(--app-verde-escuro);
}

.fr-check-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--app-azul);
}

.fr-progresso {
    height: 8px;
    margin-top: 6px;
    border-radius: 999px;
    background: #e7ede8;
    overflow: hidden;
}

.fr-progresso span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--app-verde);
}

.fr-botao-verde {
    display: block;
    padding: 14px 16px;
    margin: 4px 0 18px;
    border-radius: 10px;
    background: var(--app-verde);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

body.app-gideao a.fr-botao-verde {
    color: #ffffff;
}

.fr-titulo {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--app-azul);
}

.fr-lista {
    border: 1px solid var(--app-borda);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.fr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f5;
    color: var(--app-texto);
    text-decoration: none;
}

body.app-gideao a.fr-item {
    color: var(--app-texto);
}

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

.fr-item > div {
    flex: 1;
    min-width: 0;
}

.fr-item strong {
    display: block;
    font-size: 13.5px;
    color: var(--app-azul);
}

.fr-item small {
    display: block;
    font-size: 11.5px;
    color: var(--app-suave);
}

.fr-item > i {
    color: var(--app-suave);
    font-size: 12px;
}

/* ------------------------------ Compras do gestor ------------------------ */

.cp-abas {
    display: flex;
    margin-bottom: 14px;
    border: 1px solid var(--app-borda);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.cp-abas a {
    flex: 1;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    color: var(--app-suave);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

body.app-gideao .cp-abas a {
    color: var(--app-suave);
}

.cp-abas a.ativo {
    border-bottom-color: var(--app-azul);
    color: var(--app-azul);
    font-weight: 700;
}

body.app-gideao .cp-abas a.ativo {
    color: var(--app-azul);
}

.cp-resumo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.cp-card {
    padding: 12px;
    border: 1px solid var(--app-borda);
    border-radius: 12px;
    background: #ffffff;
    color: var(--app-texto);
    text-decoration: none;
}

body.app-gideao a.cp-card {
    color: var(--app-texto);
}

.cp-card small {
    display: block;
    font-size: 11px;
    color: var(--app-suave);
}

.cp-card strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: var(--app-azul);
}

.cp-bloco {
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid var(--app-borda);
    border-radius: 12px;
    background: #ffffff;
}

.cp-bloco-titulo {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--app-azul);
}

.cp-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #eef1f5;
    font-size: 12.5px;
    color: var(--app-texto);
}

.cp-status-item:last-child {
    border-bottom: 0;
}

.cp-status-item strong {
    margin-left: auto;
    color: var(--app-azul);
}

.cp-ponto {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--app-suave);
}

.cp-ponto.aguardando {
    background: #c2cbd6;
}

.cp-ponto.cotacao {
    background: var(--app-laranja);
}

.cp-ponto.aprovado {
    background: var(--app-verde);
}

.cp-ponto.andamento {
    background: var(--app-azul);
}

.cp-ponto.entregue {
    background: var(--app-verde);
}

.cp-avatares {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cp-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--app-borda-forte);
    border-radius: 50%;
    background: var(--app-fundo-suave);
    color: var(--app-azul);
    font-size: 11px;
    font-weight: 700;
}

.cp-sem-aprovacao {
    font-size: 12px;
    color: var(--app-suave);
}

/* ------------------------------ EPIs e materiais ------------------------- */

.ep-abas {
    display: flex;
    margin-bottom: 14px;
    border: 1px solid var(--app-borda);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.ep-abas a {
    flex: 1;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    color: var(--app-suave);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

body.app-gideao .ep-abas a {
    color: var(--app-suave);
}

.ep-abas a.ativo {
    border-bottom-color: var(--app-azul);
    color: var(--app-azul);
    font-weight: 700;
}

body.app-gideao .ep-abas a.ativo {
    color: var(--app-azul);
}

.ep-resumo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.ep-card {
    padding: 12px;
    border: 1px solid var(--app-borda);
    border-radius: 12px;
    background: #ffffff;
}

.ep-card small {
    display: block;
    font-size: 11px;
    color: var(--app-suave);
}

.ep-card strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    color: var(--app-azul);
}

.ep-lista {
    border-top: 1px solid #eef1f5;
}

.ep-item {
    padding: 12px 0;
    border-bottom: 1px solid #eef1f5;
}

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

.ep-item-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ep-item-topo strong {
    font-size: 13.5px;
    color: var(--app-azul);
}

.ep-item > small {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--app-suave);
}

.ep-item-acoes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.ep-botao-contorno {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--app-borda-forte);
    border-radius: 8px;
    background: #ffffff;
    color: var(--app-azul);
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
}

body.app-gideao a.ep-botao-contorno {
    color: var(--app-azul);
}

.ep-botao-laranja {
    display: block;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: var(--app-laranja);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

body.app-gideao a.ep-botao-laranja {
    color: #ffffff;
}

/* ------------------------------ Portal do cliente ------------------------ */

.pc-alerta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid #f3cfa6;
    border-radius: 12px;
    background: var(--app-laranja-claro);
    color: var(--app-texto);
    text-decoration: none;
}

body.app-gideao a.pc-alerta {
    color: var(--app-texto);
}

.pc-alerta > i:first-child {
    color: var(--app-laranja);
    font-size: 18px;
}

.pc-alerta > div {
    flex: 1;
    min-width: 0;
}

.pc-alerta strong {
    display: block;
    font-size: 13px;
    color: var(--app-texto);
}

.pc-alerta small {
    display: block;
    font-size: 11.5px;
    color: var(--app-suave);
}

.pc-alerta > i:last-child {
    color: var(--app-suave);
    font-size: 11px;
}

.pc-topo-secao {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 8px;
}

.pc-topo-secao strong {
    font-size: 14px;
    color: var(--app-azul);
}

.pc-topo-secao small {
    font-size: 11.5px;
    color: var(--app-suave);
}

.pc-metricas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid var(--app-borda);
    border-radius: 14px;
    background: #ffffff;
}

.pc-metrica {
    min-width: 0;
}

.pc-metrica span {
    display: block;
    font-size: 11px;
    color: var(--app-suave);
    line-height: 1.2;
}

.pc-metrica strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    color: var(--app-verde);
}

.pc-lista {
    border: 1px solid var(--app-borda);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 14px;
}

.pc-linha {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f5;
    color: var(--app-texto);
    text-decoration: none;
}

body.app-gideao a.pc-linha {
    color: var(--app-texto);
}

.pc-linha:last-child {
    border-bottom: 0;
}

.pc-linha-texto {
    flex: 1;
    min-width: 0;
}

.pc-linha-texto strong {
    display: block;
    font-size: 13.5px;
    color: var(--app-azul);
}

.pc-linha-texto small {
    display: block;
    font-size: 11.5px;
    color: var(--app-suave);
}

.pc-botao-contorno {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #9fd3b0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--app-verde-escuro);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.pc-sla {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid var(--app-borda);
    border-radius: 14px;
    background: #ffffff;
}

.pc-sla-texto strong {
    display: block;
    font-size: 14px;
    color: var(--app-azul);
}

.pc-sla-texto small {
    display: block;
    font-size: 11.5px;
    color: var(--app-suave);
}

.pc-sla-circulo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border: 4px solid var(--app-verde);
    border-radius: 50%;
    color: var(--app-verde-escuro);
    font-size: 16px;
    font-weight: 700;
}

.pc-botao-azul {
    display: block;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: var(--app-azul);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

body.app-gideao a.pc-botao-azul {
    color: #ffffff;
}

/* ------------------------------ Impressão ------------------------------- */

@media print {
    .app-topo,
    .app-abas,
    .app-barra,
    .app-menu,
    .app-acoes {
        display: none !important;
    }

    .app-conteudo {
        padding: 0;
    }

    body.app-gideao {
        background: #ffffff;
    }
}
