/* =========================================================================
   Painel de Relatorios Solares — Cognitalk APP
   Paleta de graficos validada (dataviz): series 1 azul / series 2 laranja.
   ========================================================================= */

:root {
    color-scheme: light;

    --surface-1: #fcfcfb;
    --surface-2: #ffffff;
    --page: #f9f9f7;
    --page-alt: #f1f1ed;

    --text-primary: #0b0b0b;
    --text-secondary: #52514e;
    --text-muted: #898781;

    --grid: #e1e0d9;
    --axis: #c3c2b7;
    --border: rgba(11, 11, 11, 0.10);
    --border-strong: rgba(11, 11, 11, 0.18);

    --accent: #2a78d6;
    --accent-ink: #ffffff;
    --accent-wash: rgba(42, 120, 214, 0.10);

    --series-1: #2a78d6;
    --series-2: #eb6834;

    --good: #0ca30c;
    --warning: #fab219;
    --serious: #ec835a;
    --critical: #d03b3b;
    --good-text: #006300;

    --shadow-sm: 0 1px 2px rgba(11, 11, 11, .06), 0 1px 3px rgba(11, 11, 11, .04);
    --shadow-md: 0 4px 12px rgba(11, 11, 11, .08), 0 2px 4px rgba(11, 11, 11, .04);
    --shadow-lg: 0 24px 48px rgba(11, 11, 11, .18), 0 8px 16px rgba(11, 11, 11, .08);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;

    --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root:where(:not([data-theme="light"])) {
        color-scheme: dark;
        --surface-1: #1a1a19;
        --surface-2: #222220;
        --page: #0d0d0d;
        --page-alt: #161615;
        --text-primary: #ffffff;
        --text-secondary: #c3c2b7;
        --text-muted: #898781;
        --grid: #2c2c2a;
        --axis: #383835;
        --border: rgba(255, 255, 255, 0.10);
        --border-strong: rgba(255, 255, 255, 0.20);
        --accent: #3987e5;
        --accent-wash: rgba(57, 135, 229, 0.16);
        --series-1: #3987e5;
        --series-2: #d95926;
        --good-text: #0ca30c;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, .55);
        --shadow-lg: 0 24px 48px rgba(0, 0, 0, .7);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --surface-1: #1a1a19;
    --surface-2: #222220;
    --page: #0d0d0d;
    --page-alt: #161615;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted: #898781;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.20);
    --accent: #3987e5;
    --accent-wash: rgba(57, 135, 229, 0.16);
    --series-1: #3987e5;
    --series-2: #d95926;
    --good-text: #0ca30c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .55);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, .7);
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: var(--page);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ------------------------------------------------------------------ login */

.login-plane {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(1200px 600px at 15% -10%, var(--accent-wash), transparent 60%),
        radial-gradient(900px 500px at 100% 110%, rgba(235, 104, 52, .10), transparent 55%),
        var(--page);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 36px 32px 32px;
}

.login-mark {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, var(--series-2), var(--warning));
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------- logo do cliente

   TRAVA DE SEGURANCA: qualquer <img> dentro de um container de marca fica
   presa ao tamanho do container, mesmo que a classe .com-logo nao esteja
   aplicada. Sem isto, um HTML novo com um CSS velho em cache faz a logo
   renderizar no tamanho natural e estourar a tela. */

.login-mark,
.marca-icone,
.folha-topo .selo {
    overflow: hidden;
}

.login-mark img,
.marca-icone img,
.folha-topo .selo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Os containers de marca sao quadrados com gradiente quando nao ha logo.
   Com logo, viram uma caixa de altura fixa e largura livre — logo de site
   quase sempre e retangular e ficaria esmagada num quadrado. */

.login-mark.com-logo,
.marca-icone.com-logo,
.folha-topo .selo.com-logo {
    background: none;
    box-shadow: none;
    border-radius: 0;
    width: auto;
    display: inline-flex;
    align-items: center;
}

.login-mark.com-logo {
    height: 46px;
    max-width: 220px;
    margin-bottom: 22px;
}

.marca-icone.com-logo {
    height: 32px;
    max-width: 160px;
}

.folha-topo .selo.com-logo {
    height: 44px;
    max-width: 190px;
}

.login-mark.com-logo img,
.marca-icone.com-logo img,
.folha-topo .selo.com-logo img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.login-card h1 {
    font-size: 21px;
    margin: 0 0 6px;
    letter-spacing: -.01em;
}

.login-card p.sub {
    margin: 0 0 26px;
    color: var(--text-secondary);
    font-size: 14px;
}

.campo {
    margin-bottom: 16px;
}

.campo label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.campo input {
    width: 100%;
    padding: 11px 13px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}

.campo input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-wash);
}

.campo .dica {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
    min-height: 16px;
}

.campo-codigo {
    text-align: center;
    font-size: 30px !important;
    font-weight: 700;
    letter-spacing: .34em;
    text-indent: .34em;
    font-variant-numeric: tabular-nums;
    padding: 14px 13px !important;
}

.campo-codigo::placeholder {
    color: var(--grid);
    font-weight: 600;
}

.linha-acoes-login {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
}

.linha-acoes-login .btn {
    font-size: 13px;
    padding: 8px 10px;
}

.rodape-login {
    margin: 22px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.aviso-dados {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    background: rgba(250, 178, 25, .12);
    border: 1px solid rgba(250, 178, 25, .40);
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.aviso-dados code {
    font-size: 12px;
    background: var(--page-alt);
    padding: 1px 5px;
    border-radius: 4px;
}

/* ----------------------------------------------------------------- botoes */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .06s;
    white-space: nowrap;
}

.btn:hover:not(:disabled) {
    background: var(--page-alt);
}

.btn:active:not(:disabled) {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn-principal {
    background: var(--accent);
    border-color: transparent;
    color: var(--accent-ink);
}

.btn-principal:hover:not(:disabled) {
    filter: brightness(1.08);
    background: var(--accent);
}

.btn-bloco {
    width: 100%;
}

.btn-fantasma {
    background: transparent;
    border-color: transparent;
    color: var(--text-secondary);
}

.btn-fantasma:hover:not(:disabled) {
    background: var(--page-alt);
}

.btn-icone {
    padding: 8px;
    border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------------- alerta */

.alerta {
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-bottom: 16px;
    display: flex;
    gap: 9px;
    align-items: flex-start;
    border: 1px solid;
}

.alerta-erro {
    background: rgba(208, 59, 59, .10);
    border-color: rgba(208, 59, 59, .35);
    color: var(--critical);
}

.alerta-ok {
    background: rgba(12, 163, 12, .10);
    border-color: rgba(12, 163, 12, .35);
    color: var(--good-text);
}

.alerta-aviso {
    background: rgba(250, 178, 25, .12);
    border-color: rgba(250, 178, 25, .40);
    color: var(--text-primary);
}

[hidden] {
    display: none !important;
}

/* ---------------------------------------------------------------- cabecalho */

.topo {
    position: sticky;
    top: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--surface-1) 88%, transparent);
    backdrop-filter: saturate(1.6) blur(10px);
    border-bottom: 1px solid var(--border);
}

.topo-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.marca {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.marca-icone {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, var(--series-2), var(--warning));
    color: #fff;
    font-size: 17px;
}

.marca small {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0;
}

.topo-espaco {
    flex: 1;
}

.usuario-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.usuario-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
}

/* ------------------------------------------------------------------ layout */

.conteudo {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 140px;
}

.titulo-secao {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.titulo-secao h1 {
    font-size: 26px;
    margin: 0 0 4px;
    letter-spacing: -.02em;
}

.titulo-secao p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* --------------------------------------------------------------- resumo kpi */

.resumo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.tile {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}

.tile .rotulo {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 7px;
}

.tile .valor {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.tile .valor span.unidade {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 3px;
}

.tile .nota {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* --------------------------------------------------------------- ferramentas */

.ferramentas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}

.busca {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.busca input {
    width: 100%;
    padding: 10px 13px 10px 36px;
    background: var(--surface-1);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
}

.busca input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-wash);
}

.busca svg {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.select-simples {
    padding: 10px 13px;
    background: var(--surface-1);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.pilulas {
    display: flex;
    gap: 6px;
    background: var(--page-alt);
    padding: 4px;
    border-radius: 10px;
}

.pilula {
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.pilula[aria-pressed="true"] {
    background: var(--surface-1);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* -------------------------------------------------------------------- lista */

.lista {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.lista-cabecalho,
.linha {
    display: grid;
    grid-template-columns: 42px minmax(180px, 2fr) minmax(140px, 1.4fr) minmax(110px, 1fr) 96px 116px 104px;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
}

.lista-cabecalho {
    height: 42px;
    background: var(--page-alt);
    border-bottom: 1px solid var(--border);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
}

.linha {
    min-height: 60px;
    border-bottom: 1px solid var(--border);
    transition: background .12s;
}

.linha:last-child {
    border-bottom: none;
}

.linha:hover {
    background: var(--page-alt);
}

.linha.selecionada {
    background: var(--accent-wash);
}

.linha .principal {
    font-weight: 600;
    letter-spacing: -.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.linha .secundario {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.linha .numerico {
    font-variant-numeric: tabular-nums;
    font-size: 13.5px;
    color: var(--text-secondary);
    text-align: right;
}

input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
    cursor: pointer;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border-strong);
    white-space: nowrap;
}

.chip-ponto {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: none;
}

.chip-online .chip-ponto {
    background: var(--good);
}

.chip-alerta .chip-ponto {
    background: var(--warning);
}

.chip-offline .chip-ponto {
    background: var(--critical);
}

.chip-neutro .chip-ponto {
    background: var(--text-muted);
}

.sem-telefone {
    color: var(--text-muted);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vazio {
    padding: 56px 24px;
    text-align: center;
    color: var(--text-secondary);
}

.vazio strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 5px;
}

/* ------------------------------------------------------------- barra acoes */

.barra-acoes {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%) translateY(140%);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 12px 11px 20px;
    background: var(--surface-1);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    max-width: calc(100vw - 32px);
}

.barra-acoes.visivel {
    transform: translateX(-50%) translateY(0);
}

.barra-acoes .contagem {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.barra-acoes .contagem small {
    display: block;
    font-weight: 500;
    font-size: 12px;
    color: var(--text-muted);
}

.interruptor {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

/* --------------------------------------------------------------- painel lateral */

.cortina {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
    z-index: 50;
}

.cortina.aberta {
    opacity: 1;
    pointer-events: auto;
}

.painel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(760px, 100vw);
    background: var(--page);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    z-index: 60;
    display: flex;
    flex-direction: column;
}

.painel.aberto {
    transform: translateX(0);
}

.painel-topo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-1);
    flex: none;
}

.painel-topo h2 {
    font-size: 16px;
    margin: 0;
    flex: 1;
    letter-spacing: -.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.painel-corpo {
    overflow-y: auto;
    padding: 20px;
    flex: 1;
}

.carregando {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.girador {
    width: 26px;
    height: 26px;
    border: 2.5px solid var(--border-strong);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: girar .7s linear infinite;
}

@keyframes girar {
    to {
        transform: rotate(360deg);
    }
}

/* ------------------------------------------------------------------ relatorio */

.folha {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.folha-topo {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--grid);
    margin-bottom: 22px;
}

.folha-topo .selo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, var(--series-2), var(--warning));
    color: #fff;
    font-size: 22px;
    flex: none;
}

.folha-topo h3 {
    margin: 0 0 3px;
    font-size: 19px;
    letter-spacing: -.02em;
}

.folha-topo .meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.folha-topo .periodo {
    margin-left: auto;
    text-align: right;
    flex: none;
}

.folha-topo .periodo .rotulo {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    font-weight: 700;
}

.folha-topo .periodo .valor {
    font-size: 15px;
    font-weight: 700;
}

.grade-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.kpi {
    background: var(--page-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 15px;
}

.kpi .rotulo {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.kpi .valor {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.kpi .valor .unidade {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 2px;
}

.kpi .delta {
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.delta-sobe {
    color: var(--good-text);
}

.delta-desce {
    color: var(--critical);
}

.delta-neutro {
    color: var(--text-muted);
}

.medidor {
    height: 6px;
    background: var(--grid);
    border-radius: 999px;
    margin-top: 9px;
    overflow: hidden;
}

.medidor-preenchido {
    height: 100%;
    border-radius: 999px;
    background: var(--accent);
    transition: width .5s cubic-bezier(.2, .8, .2, 1);
}

.medidor-preenchido.meta-batida {
    background: var(--good);
}

.medidor-preenchido.meta-perto {
    background: var(--warning);
}

.medidor-preenchido.meta-longe {
    background: var(--critical);
}

.bloco-grafico {
    margin-bottom: 22px;
}

.bloco-grafico h4 {
    font-size: 14px;
    margin: 0 0 3px;
    letter-spacing: -.01em;
}

.bloco-grafico .subtitulo {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin: 0 0 14px;
}

.legenda {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.legenda-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legenda-marca {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    flex: none;
}

/* Nao renomeie para ".linha": colide com a classe das linhas da lista. */
.legenda-marca--linha {
    height: 3px;
    border-radius: 2px;
    width: 18px;
}

.tela-grafico {
    position: relative;
    height: 260px;
}

.tabela-dados {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}

.tabela-dados th,
.tabela-dados td {
    padding: 7px 10px;
    text-align: right;
    border-bottom: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
}

.tabela-dados th:first-child,
.tabela-dados td:first-child {
    text-align: left;
    font-variant-numeric: normal;
}

.tabela-dados th {
    color: var(--text-muted);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

details.tabela-alternativa summary {
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    user-select: none;
}

.folha-rodape {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.folha-rodape .empresa {
    font-weight: 700;
    color: var(--text-secondary);
}

/* ------------------------------------------------------------------- toast */

.toasts {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-width: 360px;
}

.toast {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    background: var(--surface-1);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md);
    font-size: 13.5px;
    animation: entrar .25s cubic-bezier(.2, .8, .2, 1);
}

.toast.ok {
    border-left: 3px solid var(--good);
}

.toast.erro {
    border-left: 3px solid var(--critical);
}

@keyframes entrar {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ---------------------------------------------------------------- responsivo */

@media (max-width: 900px) {

    .lista-cabecalho,
    .linha {
        grid-template-columns: 38px 1fr 100px;
    }

    .col-oculta {
        display: none;
    }
}

@media (max-width: 560px) {
    .conteudo {
        padding: 20px 14px 150px;
    }

    .topo-inner {
        padding: 10px 14px;
    }

    .folha {
        padding: 18px;
    }

    .usuario-chip .email {
        display: none;
    }
}

/* -------------------------------------------------------------- impressao */

@media print {

    .topo,
    .ferramentas,
    .barra-acoes,
    .lista,
    .titulo-secao,
    .resumo,
    .painel-topo,
    .cortina,
    .toasts,
    details.tabela-alternativa {
        display: none !important;
    }

    .painel {
        position: static;
        transform: none;
        width: auto;
        height: auto;
        box-shadow: none;
        border: none;
    }

    .painel-corpo {
        overflow: visible;
        padding: 0;
    }

    .folha {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    body {
        background: #fff;
    }

    @page {
        size: A4;
        margin: 14mm;
    }
}
