.tela-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, #0B3C5D 0%, #0E6BA8 55%, #1F8FD1 100%);
}

/* Tabelas: números alinhados à direita */
.num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }

.mud-table-row.linha-clicavel { cursor: pointer; }

/* Impressão do relatório: só o conteúdo */
@media print {
    .mud-appbar, .mud-drawer, .nao-imprimir { display: none !important; }
    .mud-main-content { padding-top: 0 !important; margin-left: 0 !important; }
}

/* ---------- App de campo (celular) ---------- */
.app-conteudo {
    max-width: 640px;
    margin: 0 auto;
    padding: calc(56px + env(safe-area-inset-top)) 12px calc(24px + env(safe-area-inset-bottom));
}
/* iPhone com o app instalado: a barra começa abaixo do relógio/entalhe */
.app-campo .mud-appbar { padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.app-campo .mud-input { font-size: 1.05rem; }
.app-campo .botao-voltar { min-height: 40px; }
.app-campo .mud-button-root.botao-grande { min-height: 52px; font-size: 1.05rem; }

.app-blocos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.app-bloco {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px;
    min-height: 104px; padding: 14px; border-radius: 12px; background: #fff; color: inherit; text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12); border: 1px solid #eee;
}
.app-bloco:active { background: #e6f1f8; }
.app-bloco .mud-icon-root { font-size: 2rem; color: #0E6BA8; }
.app-bloco b { font-size: 1.02rem; line-height: 1.2; }
.app-bloco small { color: #6b6b6b; line-height: 1.2; }
.app-bloco.destaque { background: #0E6BA8; color: #fff; }
.app-bloco.destaque .mud-icon-root, .app-bloco.destaque small { color: #fff; }

.foto-botao {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; cursor: pointer;
    border: 2px dashed #0E6BA8; color: #0E6BA8; font-weight: 500; background: #fff;
}
.foto-miniatura { position: relative; }
.foto-miniatura img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; }
.foto-miniatura button {
    position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: none;
    background: #c62828; color: #fff; font-size: 12px; line-height: 22px; padding: 0;
}

canvas.assinatura { width: 100%; height: 180px; background: #fff; border: 2px solid #999; border-radius: 8px; display: block; }

.cartao-item { padding: 12px; border-radius: 10px; background: #fff; border: 1px solid #e6e3df; margin-bottom: 8px; }

/* ---------- Resumo do dia (cliente) ---------- */
.resumo-dia { background: #fff; border-radius: 8px; overflow: hidden; }
.resumo-dia h4 { margin: 16px 0 6px; font-size: 15px; }
.resumo-dia > :not(.resumo-topo) { margin-left: 16px; margin-right: 16px; }
.resumo-topo { background: #0B3C5D; color: #fff; padding: 16px; }
.resumo-numeros { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.resumo-numeros div { flex: 1; min-width: 110px; text-align: center; background: #e6f1f8; border-radius: 6px; padding: 8px; }
.resumo-numeros small { display: block; color: #6b6b6b; font-size: 11px; }
.resumo-numeros b { font-size: 20px; color: #0B3C5D; }
@media print { .resumo-dia { border-radius: 0; } .resumo-topo { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

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

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #0E6BA8;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    font-family: Roboto, sans-serif;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Carregando");
}
