:root {
    --navy: #0e3a5f;
    --navy-2: #12324d;
    --green: #2eae4a;
    --green-2: #24963e;
    --orange: #f5a623;
    --sky: #2e8bc9;
    --bg: #f3f6f8;
    --card: #ffffff;
    --line: #dce5ec;
    --ink: #14324a;
    --muted: #5d7384;
    --ok: #2eae4a;
    --err: #d64545;
    --shadow: 0 12px 32px rgba(14, 58, 95, .08);
    --radius: 16px;
    --font: "Plus Jakarta Sans", system-ui, sans-serif;
    --status-h: 36px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    padding-bottom: var(--status-h);
}
a { color: var(--sky); text-decoration: none; }
code { font-size: .92em; background: #e8eef2; padding: .1em .4em; border-radius: 6px; }

.app {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: calc(100vh - var(--status-h));
}
.sidebar {
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}
.brand img { width: min(210px, 100%); height: auto; display: block; }
.brand.compact img { width: 140px; }
.brand.compact { color: var(--ink); }
.brand.compact strong { display: block; font-size: .95rem; }
.brand.compact small { color: var(--muted); font-size: .75rem; }
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav a {
    color: var(--muted);
    padding: 11px 12px;
    border-radius: 12px;
    font-weight: 600;
}
.nav a.ativo, .nav a:hover {
    background: rgba(46, 174, 74, .12);
    color: var(--navy);
}
.nav-grupo {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nav-label {
    padding: 0 12px 4px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.sidebar-user {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.sidebar-user small { display: block; color: var(--muted); font-size: .78rem; }
.linkish, .btn {
    appearance: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 12px;
    padding: 10px 14px;
    font: inherit;
    cursor: pointer;
}
.linkish { border: 0; color: var(--sky); padding: 0; background: none; }
.btn.primary {
    background: var(--green);
    color: #fff;
    border: 0;
    font-weight: 700;
}
.btn.primary:hover { background: var(--green-2); }
.btn.secundario {
    background: var(--navy);
    color: #fff;
    border: 0;
    font-weight: 700;
}
.btn.secundario:hover { background: var(--navy-2); }
.btn.sm {
    padding: 6px 10px;
    font-size: .78rem;
    font-weight: 700;
    width: fit-content;
}
.btn.perigo {
    background: var(--err);
    color: #fff;
    border: 0;
    font-weight: 700;
}
.btn.perigo:hover { background: #b83636; }
.btn.sm { padding: 7px 10px; font-size: .86rem; }
.btn.xl { width: 100%; padding: 18px; font-size: 1.1rem; border-radius: 16px; }
.main { min-width: 0; }
.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px 8px;
}
.topbar-titles {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.topbar-casa {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.topbar-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
}
.topbar-casa-txt {
    min-width: 0;
    display: grid;
    gap: 1px;
}
.topbar-empresa {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topbar-cnpj {
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .01em;
}
.topbar h1 {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    color: var(--muted);
}
.topbar-titles:not(:has(.topbar-empresa)) h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
}
.topbar-meta { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}
.content { padding: 8px 24px 40px; }
.pill, .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .78rem;
    border: 1px solid var(--line);
    color: var(--muted);
    text-transform: capitalize;
    background: #fff;
}
.pill.ok { color: var(--green); border-color: #b7e4c1; background: #f0faf2; }
.badge.in, .badge.full { color: var(--green); border-color: #b7e4c1; background: #f0faf2; }
.badge.out, .badge.aberta { color: var(--orange); border-color: #f8d9a0; background: #fff8eb; }
.badge.extra { color: var(--sky); border-color: #b7d8ee; background: #f1f8fc; }
.card, .hero-panel, .login-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.hero-panel {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fff, #eef8f1);
}
.eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: var(--green); margin: 0 0 6px; font-weight: 800; }
.hero-panel h2 { margin: 0 0 8px; font-size: 1.7rem; color: var(--navy); }
.hero-panel p, .lead { color: var(--muted); margin: 0 0 12px; }
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.stats article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}
.stats small { color: var(--muted); display: block; }
.stats strong { font-size: 1.6rem; color: var(--navy); }
.card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-h h3 { margin: 0; font-size: 1rem; }
.periodo-filtro {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.periodo-legenda { margin: 4px 0 0; }
.relatorio-filtros {
    display: grid;
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
}
.filtro-periodo {
    display: grid;
    gap: 8px;
}
.filtro-datas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}
.filtro-datas label {
    min-width: 150px;
    flex: 0 1 180px;
}
.btn-buscar {
    appearance: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin: 0 0 1px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--sky);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.btn-buscar:hover { background: #2478b0; }
.btn-buscar svg { width: 20px; height: 20px; }
.faixas-periodo {
    display: flex;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.faixas-periodo a {
    padding: 8px 11px;
    border-right: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 650;
    white-space: nowrap;
    line-height: 1.2;
}
.faixas-periodo a:last-child { border-right: 0; }
.faixas-periodo a:hover { background: #f3f6f8; }
.faixas-periodo a.is-on {
    background: #dce5ec;
    color: var(--navy);
}
.filtro-mais {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}
.filtro-mais label {
    min-width: 140px;
    flex: 1 1 160px;
}
.col-editar {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}
.col-editar .btn { display: inline-flex; }
.acoes-ponto {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.modal-excluir-caixa.modal-editar-caixa {
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100dvh - 36px);
    overflow: auto;
    box-sizing: border-box;
    position: relative;
}
.editar-ponto-nome {
    margin: 0 !important;
    font-weight: 800;
    color: var(--navy);
}
#editar-ponto-cpf { margin: 0 0 12px !important; }
.editar-ponto-fotos {
    display: flex;
    gap: 10px;
    margin: 0 0 14px;
    flex-wrap: wrap;
}
.editar-ponto-fotos figure {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 72px;
}
.editar-ponto-fotos img,
.editar-ponto-fotos .avatar {
    width: 72px;
    height: 90px;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    background: #e8eef2;
    display: block;
}
.editar-ponto-fotos figcaption {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.editar-ponto-resumo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7fafc;
}
.editar-ponto-resumo div { min-width: 0; }
.editar-ponto-resumo dt {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.editar-ponto-resumo dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); }
.editar-ponto-hist {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.editar-ponto-hist h4 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: .95rem;
}
.hist-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.hist-lista li {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: .85rem;
    line-height: 1.4;
}
.hist-lista strong { color: var(--navy); }
.hist-lista small { display: block; color: var(--muted); margin-bottom: 2px; }
.form-editar-ponto {
    display: grid;
    gap: 14px;
    min-width: 0;
}
.form-editar-ponto label,
.form-editar-ponto .grid-2 { min-width: 0; }
.form-editar-ponto .grid-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.form-editar-ponto input,
.form-editar-ponto select,
.form-editar-ponto textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.form-editar-ponto input[type="datetime-local"] {
    font-size: 1rem;
    padding: 10px 8px;
    min-width: 0;
}
.form-editar-ponto .hint {
    margin: 0;
    line-height: 1.4;
}
.form-editar-ponto .actions {
    margin: 4px 0 0;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.editar-ponto-acoes-fim {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}
.editar-ponto-confirma {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(14, 58, 95, .55);
}
.editar-ponto-confirma[hidden] { display: none; }
.editar-ponto-confirma-caixa {
    width: min(400px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 20px 18px 16px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
}
.editar-ponto-confirma-caixa h4 {
    margin: 0;
    color: var(--navy);
    font-size: 1.12rem;
}
.editar-ponto-confirma-caixa p { margin: 0; }
.editar-ponto-captcha-codigo {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: .28em;
    text-align: center;
    color: var(--navy);
    background: #e8eef2;
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 12px 8px;
    user-select: none;
}
.editar-ponto-confirma-caixa .actions {
    margin: 4px 0 0;
    justify-content: flex-end;
}
.flag-pago { margin: 0; }
.flag-pago label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: .82rem;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    cursor: pointer;
}
.flag-pago input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    accent-color: var(--green);
    cursor: pointer;
}
.flag-pago.is-on label { color: var(--green-2); }
.flag-pago.is-busy { opacity: .55; pointer-events: none; }
.estrelas {
    display: inline-flex;
    gap: 1px;
    color: #d5dee6;
    line-height: 1;
    margin: 4px 0 0;
}
.estrelas .estrela {
    appearance: none;
    border: 0;
    background: none;
    padding: 0 1px;
    margin: 0;
    color: inherit;
    font-size: 1.2rem;
    line-height: 1;
    font-family: inherit;
}
.estrelas.is-edit .estrela { cursor: pointer; }
.estrelas .estrela.is-ativa,
.estrelas.is-edit .estrela.is-hover { color: var(--orange); }
.col-nota { white-space: nowrap; vertical-align: middle; }
.col-pix { white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-nota .estrelas { margin: 0; }
.bloco-avaliacao {
    display: grid;
    gap: 6px;
}
.bloco-avaliacao h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.05rem;
}
.lista-pessoas {
    display: grid;
    gap: 12px;
}
.pessoa-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    display: grid;
    gap: 12px;
}
.pessoa-topo {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}
.pessoa-id {
    min-width: 0;
    display: grid;
    gap: 2px;
}
.pessoa-id strong {
    font-size: 1.02rem;
    line-height: 1.25;
    word-break: break-word;
}
.pessoa-id .pill {
    justify-self: start;
    margin-top: 4px;
}
.pessoa-dados {
    margin: 0;
    display: grid;
    gap: 8px;
}
.pessoa-dados > div {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 8px;
    align-items: baseline;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.pessoa-dados dt {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.pessoa-dados dd {
    margin: 0;
    font-weight: 600;
    word-break: break-word;
}
.pessoa-acoes {
    display: flex;
    gap: 8px;
    align-items: center;
}
.pessoa-acoes .btn { flex: 1; text-align: center; }
@media (min-width: 860px) {
    .lista-pessoas { grid-template-columns: 1fr 1fr; }
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .82rem; }
th.grid-col { vertical-align: top; min-width: 140px; }
th.grid-col-sm { vertical-align: bottom; min-width: 0; width: 1%; white-space: nowrap; text-align: center; }
.grid-sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}
th.grid-col-sm .grid-sort { justify-content: center; text-align: center; }
.grid-sort:hover { color: var(--navy); }
.grid-seta { font-size: .68rem; opacity: .45; }
.grid-sort.is-asc .grid-seta,
.grid-sort.is-desc .grid-seta { opacity: 1; color: var(--green); }
.grid-filtro {
    width: 100%;
    min-width: 0;
    padding: 7px 8px;
    font-size: .78rem;
    font-weight: 500;
    border-radius: 8px;
}
tr.grid-oculto { display: none; }
.grid-vazio { display: none; margin: 10px 0 0; }
.grid-vazio.is-on { display: block; }
.muted { color: var(--muted); font-size: .85rem; }
.right { text-align: right; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: nowrap; align-items: center; }
.col-acoes { width: 1%; min-width: 250px; white-space: nowrap; }
.col-cnpj, .col-num, .col-status { width: 1%; white-space: nowrap; text-align: center; }
.casas-linha { white-space: nowrap; }
.lista-casas {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 2px;
}
.lista-casas li { line-height: 1.3; white-space: nowrap; }
.nome-casa { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-casa {
    height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
}
.logo-casa.sm { height: 32px; max-width: 56px; }
.logo-casa.lg { height: 72px; max-width: 140px; }
.bloco-logo {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: #f7fafc;
}
.logo-atual {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.brand.compact.has-casa .logo-marca { width: 96px; }
.brand.compact .logo-casa { height: 56px; max-width: 130px; }
.form-excluir { display: inline-flex; margin: 0; }
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid #f0c9c9;
    background: #fff;
    color: var(--err);
    cursor: pointer;
}
.btn-icon.perigo:hover { background: #fdecec; }
.btn-icon svg { width: 17px; height: 17px; }
.excluir-linha { align-items: center; margin-top: 4px; }
.modal-excluir {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(14, 58, 95, .45);
}
.modal-excluir[hidden] { display: none; }
.modal-excluir-caixa {
    width: min(440px, 100%);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 22px 18px;
}
.modal-excluir-caixa h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.15rem; }
.modal-excluir-caixa p { margin: 0 0 18px; color: var(--ink); line-height: 1.45; }
.modal-excluir-caixa .actions { margin: 0; justify-content: flex-end; }
.empty { color: var(--muted); padding: 12px 0; }
.toolbar, .filters, .import-row, .cnpj-row, .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 14px;
}
.filters.relatorio-filtros {
    display: grid;
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
}
.search, .grow { flex: 1; min-width: 200px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: .88rem; font-weight: 600; }
input, select, textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 12px;
    padding: 12px;
    font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(46, 174, 74, .35); }
textarea { min-height: 84px; resize: vertical; }
input.campo-invalido, select.campo-invalido {
    border-color: var(--err);
    outline-color: rgba(214, 69, 69, .35);
}
.hint.err, .campo-aviso.err { color: var(--err); }
.jornada-opcoes.campo-invalido {
    outline: 2px solid var(--err);
    border-radius: 14px;
}
input:disabled, input[readonly], select:disabled {
    background: #eef2f5;
    color: var(--muted);
    cursor: not-allowed;
}
.stack { display: grid; gap: 14px; }
.grid-2, .grid-3 { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.pix-linha { grid-template-columns: minmax(140px, 210px) 1fr; align-items: end; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-split { display: grid; grid-template-columns: 340px 1fr; gap: 16px; }
.hint { color: var(--muted); font-size: .85rem; }
.bloco-titulo { margin: 8px 0 6px; font-size: 1rem; color: var(--navy); }
.bloco-jornada {
    margin-top: 6px;
    padding: 18px 16px 16px;
    border: 2px solid #8fd49a;
    border-radius: 16px;
    background: linear-gradient(180deg, #f3fbf5, #e7f6eb);
    box-shadow: 0 0 0 4px rgba(46, 174, 74, .08);
}
.bloco-jornada h3 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 1.05rem;
}
.bloco-jornada .hint { margin: 0 0 14px; }
.bloco-jornada label { color: var(--navy); font-size: .92rem; }
.bloco-jornada input {
    border-color: #9ad4a6;
    background: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}
.bloco-jornada .btn { font-weight: 700; width: fit-content; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.jornada-lista { display: grid; gap: 12px; margin-bottom: 12px; }
.jornada-item {
    display: grid;
    gap: 10px;
    background: #fff;
    border: 1px solid #9ad4a6;
    border-radius: 14px;
    padding: 12px;
}
.jornada-item-topo {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
}
.jornada-item-valores {
    display: grid;
    grid-template-columns: 88px 1fr 1fr;
    gap: 8px;
}
.jornada-item .btn-jornada-excluir { margin-bottom: 2px; }
.jornada-acoes {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    position: sticky;
    bottom: calc(var(--status-h) + 8px);
    z-index: 5;
    padding: 10px 0 4px;
    background: linear-gradient(180deg, transparent, var(--bg) 28%);
}
.jornada-acoes .btn { min-height: 48px; min-width: 160px; }
.jornada-page .lead { margin-bottom: 10px; }
.jornada-explica {
    margin: 0 0 18px;
    padding: 0 0 0 1.15em;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.45;
    display: grid;
    gap: 6px;
}
.jornada-page { padding-bottom: 8px; }
.jornada-opcoes { display: grid; gap: 8px; }
.jornada-opcao {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}
.jornada-opcao strong { display: block; color: var(--navy); }
.jornada-opcao small { display: block; color: var(--muted); font-weight: 600; margin-top: 2px; }
.jornada-opcao:has(input:checked) {
    border-color: var(--green);
    background: #f3fbf5;
    box-shadow: 0 0 0 3px rgba(46, 174, 74, .12);
}
.jornada-opcao input { width: auto; accent-color: var(--green); }
.kiosk-jornada-box {
    display: grid;
    gap: 8px;
    font-weight: 700;
    color: var(--navy);
}
.kiosk-jornada-box select {
    font-size: 1.05rem;
    font-weight: 700;
}
.bloco-valores h3 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 1.05rem;
}
.bloco-fotos, .bloco-foto {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: #f7fafc;
}
.bloco-fotos h3, .bloco-foto h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.05rem;
}
.bloco-fotos .hint, .bloco-foto .hint { margin: 0; }
.bloco-fotos .mapa-row { margin-bottom: 0; }
.mapa-row .btn { white-space: nowrap; }
.modal-mapa-caixa { width: min(840px, 100%); }
.mapa-canvas {
    height: min(420px, 58vh);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #e8eef2;
}
.mapa-canvas .leaflet-container {
    height: 100%;
    width: 100%;
    font-family: inherit;
}
.check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: .92rem;
}
.check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    accent-color: var(--green);
    cursor: pointer;
}
.foto-palco {
    display: flex;
    align-items: center;
    gap: 12px;
}
.avatar.xl { width: 120px; height: 120px; border-radius: 18px; }
.modal-foto {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(14, 58, 95, .5);
}
.modal-foto[hidden] { display: none; }
.modal-foto-caixa {
    width: min(520px, 100%);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 22px 18px;
    display: grid;
    gap: 10px;
}
.modal-foto-caixa h3 { margin: 0; color: var(--navy); }
.foto-regras {
    margin: 0;
    padding-left: 18px;
    color: var(--ink);
    display: grid;
    gap: 4px;
    font-size: .92rem;
    line-height: 1.4;
}
#foto-cam {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 16px;
    background: #0e3a5f;
}
#foto-cam.is-frontal,
.kiosk-foto-palco video.is-frontal {
    transform: scaleX(-1);
}
.foto-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.foto-acoes label.btn {
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
    color: var(--ink);
    font-size: .9rem;
}
.import-discreto {
    margin-top: 16px;
    color: var(--muted);
    font-size: .9rem;
}
.import-discreto summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--muted);
    width: fit-content;
}
.import-discreto summary:hover { color: var(--navy); }
.import-discreto .card { margin-top: 10px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.face-dado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    line-height: 1.3;
}
.face-dado.is-ok {
    color: var(--green-2);
    background: #e9f8ed;
    border-color: #b7e4c1;
}
.face-dado.is-medio {
    color: #9a6b12;
    background: #fff8eb;
    border-color: #f8d9a0;
}
.face-dado.is-ruim,
.face-dado.is-alerta {
    color: var(--err);
    background: #fdecec;
    border-color: #f0c9c9;
}
.col-face { white-space: nowrap; }
.col-face .face-dado { display: flex; margin: 3px auto; }
.fotos-face {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: nowrap;
}
.fotos-face-item {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 64px;
}
.fotos-face-pic,
.fotos-face-pic img,
.fotos-face-pic .avatar {
    width: 64px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center top;
    background: #e8eef2;
    display: block;
}
.fotos-face-pic a { display: block; }
.fotos-face-pic .avatar {
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--navy);
}
.fotos-face-item figcaption {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.na-casa { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.na-casa li {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.na-casa li:last-child { border-bottom: 0; }
.na-casa-dados { flex: 1; min-width: 140px; }
.na-casa-dados small { display: block; color: var(--muted); }
.troca-jornada { display: grid; gap: 4px; min-width: 160px; }
.troca-jornada select { margin: 0; }
.troca-jornada-hist { color: var(--muted); font-size: .75rem; }
.campo-moeda {
    display: flex;
    align-items: stretch;
    border: 1px solid #9ad4a6;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.campo-moeda > span {
    display: grid;
    place-items: center;
    padding: 0 10px;
    background: #dff3e3;
    color: var(--navy);
    font-weight: 800;
    font-size: .85rem;
}
.campo-moeda input {
    border: 0;
    border-radius: 0;
    outline: none;
}
.campo-hora { font-variant-numeric: tabular-nums; }
.lista-casas { margin: 0; padding: 0; list-style: none; }
.senha-campo { position: relative; display: block; }
.senha-campo input { padding-right: 46px; }
.senha-olho {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.senha-olho:hover, .senha-olho.is-on { color: var(--navy); }
.senha-olho svg { width: 20px; height: 20px; }
.troca-casa { margin: 0; }
.troca-casa select {
    min-width: 220px;
    padding: 8px 10px;
    font-size: .82rem;
    font-weight: 600;
}
.sidebar-casa { margin: 0; }
.sidebar-casa select {
    width: 100%;
    font-weight: 700;
    color: var(--navy);
}
.vinculos { display: grid; gap: 8px; }
.vinculo {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7fafc;
}
.vinculo-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--ink);
    font-size: 0.95rem;
}
.vinculo-check input { width: auto; }
.vinculo-check small { display: block; font-weight: 500; }
.toast { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.toast.ok { background: #e9f8ed; color: var(--green-2); }
.toast.err { background: #fdecec; color: var(--err); }
.login-erro {
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.4;
    border: 1px solid #f0c9c9;
}
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 0; }
.timeline li > div { flex: 1; min-width: 160px; }
.timeline li small { display: block; color: var(--muted); }
.timeline .fotos-face { margin-left: auto; }
.avatar {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    background: #e8eef2; display: inline-grid; place-items: center;
}
.avatar.lg { width: 72px; height: 72px; }
.avatar.fallback { color: var(--navy); font-weight: 800; }

.guest-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
    padding-bottom: calc(24px + var(--status-h));
    background: linear-gradient(180deg, #f7fbf8, #eef3f7);
}
.guest {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card { width: min(440px, 100%); margin: 0 auto; }
.login-brand { margin-bottom: 22px; text-align: center; }
.login-brand img { width: min(280px, 100%); margin: 0 auto 12px; display: block; }
.login-brand p { color: var(--muted); }

.status-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: var(--status-h);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    background: var(--navy);
    color: #c5d5e2;
    font-size: .75rem;
    z-index: 290;
    overflow: auto;
    white-space: nowrap;
}
.status-bar b { color: #fff; font-weight: 700; }
.sb-sep { opacity: .4; }
.sb-dot { width: 8px; height: 8px; border-radius: 50%; background: #6b8496; }
.status-bar.is-on .sb-dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-bar.is-slow .sb-dot { background: var(--orange); }
.status-bar.is-off .sb-dot { background: var(--err); }

.modal-offline {
    position: fixed;
    inset: 0;
    z-index: 280;
    display: grid;
    place-items: center;
    padding: max(12px, env(safe-area-inset-top)) 14px calc(var(--status-h) + 12px);
    background: rgba(14, 58, 95, .72);
}
.modal-offline[hidden] { display: none; }
.modal-offline-caixa {
    width: min(440px, 100%);
    text-align: center;
    padding: 22px 18px 18px;
    border-radius: 22px;
    background: #fff5f5;
    border: 3px solid var(--err);
    box-shadow: var(--shadow);
}
.modal-offline-icone {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    background: #fdecec;
    color: var(--err);
}
.modal-offline-caixa h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: var(--err);
}
.modal-offline-caixa p {
    margin: 0 0 16px;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--ink);
}
#modal-offline-retry { width: 100%; }
body.is-offline .app,
body.is-offline .kiosk,
body.is-offline .kiosk-top,
body.is-offline .guest,
body.is-offline .kiosk-alerta,
body.is-offline .modal-excluir {
    pointer-events: none;
    user-select: none;
}

.kiosk-body {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f3f6f8;
    padding-bottom: var(--status-h);
    box-sizing: border-box;
}
.kiosk-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand hora";
    align-items: center;
    gap: 2px 10px;
    padding: 8px 12px 6px;
    position: sticky;
    top: 0;
    z-index: 30;
    flex-shrink: 0;
    background: #f3f6f8;
}
.kiosk-body .brand.compact { grid-area: brand; }
.kiosk-hora-box { grid-area: hora; }
.kiosk-hora-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}
.kiosk-clock {
    margin: 0;
    font-size: clamp(1.45rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: .04em;
    white-space: nowrap;
}
.kiosk-geo {
    margin: 0;
    max-width: 100%;
    font-size: .72rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
}
.kiosk-geo[hidden] { display: none; }
.kiosk-geo.is-alerta { color: var(--err); font-weight: 700; }
.kiosk-geo.is-ok { color: var(--green-2); font-weight: 600; }
.kiosk-top-acoes {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.kiosk-top-acoes form { margin: 0; display: flex; align-items: center; }
.kiosk-voltar {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 2px 0;
    border: 0;
    background: none;
    color: var(--sky);
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}
.kiosk-voltar:hover { text-decoration: underline; }
.kiosk-body .brand.compact {
    min-width: 0;
    gap: 8px;
}
.kiosk-body .brand.compact img { width: auto; }
.kiosk-body .brand.compact .logo-marca { width: 92px; flex-shrink: 0; }
.kiosk-body .brand.compact .logo-casa {
    width: auto;
    height: 40px;
    max-width: 80px;
    object-fit: contain;
    flex-shrink: 0;
}
.kiosk-casa-bloco {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 2px;
    flex-shrink: 0;
    min-width: 0;
}
.kiosk-casa-bloco .kiosk-geo,
.kiosk-body .brand.compact > .kiosk-geo {
    max-width: 90px;
}
.kiosk-body .brand.compact span { min-width: 0; }
.kiosk-body .brand.compact strong,
.kiosk-body .brand.compact small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kiosk {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 16px;
    padding: 8px 16px 8px;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}
.kiosk-panel, .kiosk-result {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 20px;
    min-height: 0;
    box-shadow: var(--shadow);
}
.kiosk-panel {
    overflow: auto;
}
.kiosk-result {
    flex: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    align-content: stretch;
    gap: 6px;
    overflow: hidden;
}
.kiosk-panel[hidden],
.kiosk-result[hidden] { display: none; }
.cpf-display {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    letter-spacing: .08em;
    margin: 8px 0 12px;
    font-weight: 800;
    color: var(--navy);
}
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button {
    height: 64px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #f7fafc;
    color: var(--ink);
    font-size: 1.35rem;
    font-family: inherit;
    font-weight: 700;
}
.keypad button:active { background: #e9f8ed; }
.keypad .key-limpar {
    font-size: .92rem;
    letter-spacing: .01em;
    font-weight: 800;
}
.who { text-align: center; margin-bottom: 0; min-height: 0; }
.who h2 { margin: 0 0 2px; font-size: 1.2rem; color: var(--navy); }
.who p { margin: 0; }
.kiosk-result > .hint {
    margin: 0;
    line-height: 1.25;
}
.kiosk-fotos-par {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
    min-height: 0;
    height: 100%;
    align-items: stretch;
}
.kiosk-foto-card {
    margin: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 6px;
    justify-items: stretch;
    padding: 8px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: #f7fafc;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
.kiosk-foto-card.is-acao {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.kiosk-foto-card.is-acao:hover,
.kiosk-foto-card.is-acao:focus {
    outline: none;
    border-color: var(--navy);
    background: #eef5fa;
    box-shadow: 0 0 0 3px rgba(14, 58, 95, .12);
}
.kiosk-foto-card.is-acao:active {
    transform: scale(.99);
}
.kiosk-foto-card figcaption {
    margin: 0;
    text-align: center;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.kiosk-foto-card > img,
.kiosk-foto-palco {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 18px;
    background: #e8eef2;
    object-fit: cover;
    object-position: center top;
}
.kiosk-foto-palco {
    position: relative;
}
.kiosk-foto-palco[hidden] { display: none; }
.kiosk-foto-palco video,
.kiosk-foto-palco img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.kiosk-foto-palco video[hidden],
.kiosk-foto-palco img[hidden] { display: none; }
.kiosk-foto-vazio {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--navy);
    font-weight: 800;
    font-size: .9rem;
    background: #e8eef2;
    border-radius: 18px;
}
.kiosk-foto-card > .kiosk-foto-vazio {
    position: static;
    height: 100%;
    min-height: 0;
}
.kiosk-foto-vazio[hidden] { display: none; }
.kiosk-acoes {
    display: grid;
    gap: 10px;
    margin-top: 0;
    flex-shrink: 0;
}
.kiosk-body.is-registrando .kiosk-voltar,
.kiosk-body.is-registrando .kiosk-top-acoes select,
.kiosk-body.is-registrando .kiosk-top-acoes form {
    opacity: .4;
    pointer-events: none;
    cursor: wait;
}
.kiosk-body.is-registrando #btn-confirmar,
.kiosk-body.is-registrando #btn-cancelar {
    cursor: wait;
}
.kiosk-acoes .btn:disabled {
    opacity: .55;
}
#cam { width: 100%; background: #0e3a5f; }
.kiosk-alerta {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: max(12px, env(safe-area-inset-top)) 14px calc(var(--status-h) + 12px);
    background: rgba(14, 58, 95, .55);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.kiosk-alerta[hidden] { display: none; }
.kiosk-alerta-caixa {
    width: min(440px, 100%);
    max-height: calc(100dvh - var(--status-h) - 36px);
    overflow: auto;
    text-align: center;
    padding: 22px 18px 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}
.kiosk-alerta-icone {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    font-weight: 800;
}
.kiosk-alerta-caixa h3 { margin: 0 0 8px; font-size: 1.25rem; }
.kiosk-alerta-caixa p { margin: 0 0 16px; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.kiosk-alerta.is-erro .kiosk-alerta-caixa { background: #fff5f5; border: 3px solid var(--err); }
.kiosk-alerta.is-erro .kiosk-alerta-icone { background: #fdecec; color: var(--err); }
.kiosk-alerta.is-erro h3 { color: var(--err); }
.kiosk-alerta.is-erro #kiosk-alerta-ok { background: var(--err); color: #fff; border: 0; font-weight: 800; }
.kiosk-alerta.is-ok .kiosk-alerta-caixa { background: #f3fbf5; border: 3px solid var(--green); }
.kiosk-alerta.is-ok .kiosk-alerta-icone { background: #e9f8ed; color: var(--green); }
.kiosk-alerta.is-ok h3 { color: var(--green-2); }
.kiosk-alerta.is-ok #kiosk-alerta-ok { background: var(--green); color: #fff; border: 0; font-weight: 800; }
.kiosk-alerta.is-medio .kiosk-alerta-caixa { background: #fff8eb; border: 3px solid var(--orange); }
.kiosk-alerta.is-medio .kiosk-alerta-icone { background: #fff3d6; color: #9a6b12; }
.kiosk-alerta.is-medio h3 { color: #9a6b12; }
.kiosk-alerta.is-medio #kiosk-alerta-ok { background: var(--orange); color: #fff; border: 0; font-weight: 800; }
.kiosk-alerta-fotos {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    margin: 0 auto 12px;
}
.kiosk-alerta-fotos[hidden] { display: none; }
.kiosk-alerta-fotos figure {
    margin: 0;
    width: 140px;
    flex: 0 0 auto;
}
.kiosk-alerta-fotos.is-unica figure { width: 168px; }
.kiosk-alerta-fotos figure[hidden] { display: none; }
.kiosk-alerta-fotos img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
    background: #e8eef2;
    display: block;
}
.kiosk-alerta-fotos img[hidden] { display: none; }
.kiosk-alerta-fotos figcaption {
    margin: 6px 0 0;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.kiosk-alerta-caixa .face-dado {
    display: inline-flex;
    margin: 0 0 14px;
    min-width: 72px;
    padding: 6px 14px;
    font-size: 1.05rem;
}
.kiosk-alerta-caixa .face-dado[hidden] { display: none; }

@media (max-width: 980px) {
    .app { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        inset: 0 22% var(--status-h) 0;
        transform: translateX(-110%);
        transition: transform .2s ease;
        z-index: 40;
        box-shadow: var(--shadow);
        overflow: auto;
        padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
    }
    .sidebar-user {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding-bottom: 4px;
        z-index: 1;
    }
    .sidebar-user .linkish {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
    }
    .sidebar.is-open { transform: none; }
    .nav-toggle { display: inline-flex; }
    .topbar {
        padding: 10px 14px 8px;
        gap: 8px;
        align-items: center;
    }
    .topbar-casa { gap: 8px; }
    .topbar-logo {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        border-radius: 8px;
    }
    .topbar-empresa {
        font-size: .95rem;
        font-weight: 700;
    }
    .topbar-cnpj { font-size: .68rem; }
    .topbar h1 { font-size: .78rem; }
    .topbar-titles:has(.topbar-logo) h1 { padding-left: 44px; }
    .topbar-titles:not(:has(.topbar-empresa)) h1 { font-size: 1.1rem; }
    .topbar-meta .pill { font-size: .68rem; padding: 3px 8px; }
    .grid-2, .grid-3, .grid-split, .kiosk, .vinculo, .pix-linha { grid-template-columns: 1fr; }
    .form-editar-ponto .grid-2 { grid-template-columns: 1fr; }
    .jornada-item-valores { grid-template-columns: 1fr 1fr; }
    .jornada-item-valores label:last-child { grid-column: 1 / -1; }
    .hero-panel { flex-direction: column; align-items: stretch; }
    .hero-acoes .btn { flex: 1; text-align: center; }
    .keypad button { height: 62px; }
}

@media (max-width: 640px) {
    .content { padding: 8px 14px 40px; }
    .filters label { flex: 1 1 140px; }
    .filtro-datas label { flex: 1 1 140px; min-width: 0; }
    .faixas-periodo { width: 100%; }
    .faixas-periodo a { flex: 1 1 auto; text-align: center; }
    .brand img { width: 140px; }
    .topbar-meta { display: none; }
    .toolbar, .toolbar .search, .toolbar .row-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar .btn, .toolbar .btn.primary { width: 100%; text-align: center; }
    .pessoa-acoes { flex-wrap: wrap; }
    .pessoa-acoes .form-excluir { margin-left: auto; }
    .jornada-item { padding: 14px; }
    .jornada-item input {
        font-size: 16px;
        min-height: 48px;
        padding: 12px;
    }
    .jornada-item .btn-jornada-excluir {
        width: 48px;
        height: 48px;
    }
    .bloco-jornada .btn,
    #btn-jornada-add {
        width: 100%;
        min-height: 48px;
        text-align: center;
    }
    .jornada-acoes {
        margin: 0 -14px;
        padding: 10px 14px calc(8px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 20px rgba(14, 58, 95, .08);
    }
    .jornada-acoes .btn { width: 100%; min-width: 0; }
    .jornada-item .campo-moeda { min-height: 48px; }
    .jornada-item .campo-moeda input { min-height: 48px; }
    .jornada-page { padding-bottom: 24px; }
    .fotos-face-pic,
    .fotos-face-pic img,
    .fotos-face-pic .avatar {
        width: 56px;
        height: 70px;
    }
    .editar-ponto-resumo { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .kiosk-top {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand hora";
    }
    .kiosk-clock { font-size: 1.55rem; }
    .kiosk-body .brand.compact .logo-marca { width: 64px; }
    .kiosk-body .brand.compact .logo-casa { height: 28px; max-width: 48px; }
    .kiosk-body .brand.compact strong { font-size: .82rem; }
    .kiosk-body .brand.compact small { font-size: .68rem; }
}

@media (max-height: 900px) {
    .kiosk-result { padding: 14px; }
    .kiosk-result .btn.xl { padding: 14px; }
    .kiosk-acoes { gap: 8px; }
    .who h2 { font-size: 1.08rem; }
}

@media (max-height: 740px) {
    .kiosk-top { padding: 4px 12px; }
    .kiosk-result { padding: 12px; gap: 4px; }
    .kiosk-result .btn.xl { padding: 12px; font-size: 1rem; }
    .kiosk-result > .hint { font-size: .78rem; }
    .kiosk-fotos-par { gap: 8px; }
    .kiosk-foto-card { padding: 6px; }
}

@media (max-width: 640px) {
    .kiosk {
        padding: 4px 12px 8px;
        max-width: none;
    }
    .kiosk-panel { padding: 16px 14px; border-radius: 18px; }
    .kiosk-result { padding: 12px 14px; border-radius: 18px; }
    .keypad { gap: 8px; }
    .keypad button { height: 56px; font-size: 1.25rem; }
    .keypad .key-limpar { font-size: .78rem; }
    .kiosk-clock { font-size: 1.45rem; }
    .kiosk-body .brand.compact small { display: none; }
    .kiosk-alerta-caixa { padding: 16px 14px; border-radius: 18px; }
    .kiosk-alerta-icone { width: 52px; height: 52px; font-size: 1.5rem; margin-bottom: 8px; }
    .kiosk-alerta-caixa h3 { font-size: 1.12rem; }
}
