html, body { margin: 0; background: #F3F5F7; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.carregando { display: flex; align-items: center; justify-content: center; height: 100vh; color: #1E3A5F; font-weight: 600; }

.marca { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.marca img { width: 30px; height: 30px; }
.marca small { font-weight: 500; opacity: .8; margin-left: 4px; }
.usuario { font-size: .85rem; opacity: .9; margin-right: 6px; }
.item-canal { display: inline-flex; align-items: center; gap: 10px; }
.item-canal img { width: 22px; height: 22px; }
.fraco { color: #6B7280; font-size: .8rem; }
.erro { color: #C62828; }
a.limpo { color: inherit; text-decoration: none; }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 12px; background: #FFF3CD; z-index: 2000; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

.selo-sintesys { display: flex; justify-content: center; padding: 16px 16px 24px; }
.selo-sintesys a { display: inline-flex; align-items: center; gap: 8px; color: #5F6B7A; text-decoration: none; font-size: .75rem; opacity: .85; }
.selo-sintesys a:hover, .selo-sintesys a:focus-visible { opacity: 1; }
.selo-sintesys img { height: 34px; width: auto; }
.selo-sintesys.escuro a { color: #C9D1DB; }

/* Números do topo */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #E5E7EB;
       cursor: pointer; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.kpi:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.kpi-rotulo { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #6B7280; font-weight: 600; }
.kpi-valor { font-size: 1.6rem; font-weight: 800; color: #1E3A5F; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi.alerta { border-color: #D32F2F; background: #FEF2F2; }
.kpi.alerta .kpi-valor { color: #C62828; }
.kpi.hoje .kpi-valor { color: #0E7490; }

/* Calendário do mês */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; background: #fff; }
.cal-cab { background: #F8FAFC; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: #6B7280; padding: 6px 8px; border-bottom: 1px solid #E5E7EB; }
.cal-dia { min-height: 112px; border-right: 1px solid #EEF0F3; border-bottom: 1px solid #EEF0F3; padding: 4px 5px 6px; cursor: pointer; min-width: 0; }
.cal-dia:nth-child(7n) { border-right: none; }
.cal-dia.fora { background: #FAFBFC; color: #A0A7B1; }
.cal-dia.fds { background: #FBFCFD; }
.cal-dia.hoje { box-shadow: inset 0 0 0 2px #0E7490; }
.cal-dia.escolhido { background: #ECFEFF; }
.cal-num { font-size: .8rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.cal-num .qtd { font-weight: 600; font-size: .7rem; color: #6B7280; }
.cal-item { display: block; font-size: .72rem; line-height: 1.25; padding: 2px 5px; margin-top: 3px; border-radius: 5px; white-space: nowrap; overflow: hidden;
            text-overflow: ellipsis; border-left: 3px solid transparent; }
.cal-item.pendente { background: #EFF6FF; border-left-color: #2563EB; color: #1E3A8A; }
.cal-item.atrasada { background: #FEF2F2; border-left-color: #D32F2F; color: #991B1B; font-weight: 600; }
.cal-item.feita { background: #F0FDF4; border-left-color: #2E7D32; color: #166534; text-decoration: line-through; text-decoration-color: rgba(22,101,52,.35); }
.cal-item.prevista { background: transparent; border: 1px dashed #CBD5E1; border-left: 3px dashed #94A3B8; color: #64748B; }
.cal-mais { font-size: .7rem; color: #0E7490; font-weight: 600; margin-top: 3px; }
.cal-pontos { display: none; gap: 3px; flex-wrap: wrap; margin-top: 4px; }
.ponto { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ponto.pendente { background: #2563EB; } .ponto.atrasada { background: #D32F2F; } .ponto.feita { background: #2E7D32; } .ponto.prevista { background: #CBD5E1; }
@media (max-width: 760px) {
  .cal-dia { min-height: 54px; padding: 3px; }
  .cal-item, .cal-mais { display: none; }
  .cal-pontos { display: flex; }
  .cal-cab { padding: 4px 2px; text-align: center; font-size: .65rem; }
  .cal-num { justify-content: center; } .cal-num .qtd { display: none; }
}
.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: .75rem; color: #4B5563; margin: 8px 2px; }
.legenda span { display: inline-flex; align-items: center; gap: 5px; }

/* Lista de ordens (dia escolhido, agenda) */
.lista-ordens { display: flex; flex-direction: column; gap: 8px; }
.ordem-linha { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid #E5E7EB;
               border-left: 4px solid #2563EB; text-decoration: none; color: inherit; }
.ordem-linha:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ordem-linha.atrasada { border-left-color: #D32F2F; }
.ordem-linha.feita { border-left-color: #2E7D32; opacity: .85; }
.ordem-linha.prevista { border-left-color: #94A3B8; border-style: dashed; border-left-style: solid; background: #FAFBFC; }
.ordem-linha .icone { color: #0E7490; flex: 0 0 auto; }
.ordem-linha .corpo { flex: 1; min-width: 0; }
.ordem-linha .titulo { font-weight: 600; font-size: .92rem; }
.ordem-linha .sub { font-size: .8rem; color: #6B7280; }
.agenda-dia { font-weight: 700; color: #1E3A5F; margin: 14px 0 6px; font-size: .9rem; }

/* Execução da ordem */
.checklist .linha { display: flex; align-items: flex-start; gap: 6px; padding: 2px 0; }
.checklist .cabecalho { font-weight: 700; color: #1E3A5F; margin: 8px 0 2px; font-size: .9rem; }
.checklist .feito { color: #166534; }
.fotos { display: flex; gap: 10px; flex-wrap: wrap; }
.foto { position: relative; width: 110px; height: 110px; border-radius: 8px; overflow: hidden; border: 1px solid #E5E7EB; background: #F3F4F6; }
.foto img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.foto button { position: absolute; top: 2px; right: 2px; }
.dados-equip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 16px; }
.dados-equip .rotulo { display: block; font-size: .72rem; color: #6B7280; }
.dados-equip .valor { display: block; font-weight: 600; font-size: .9rem; }
.checklist-texto textarea { font-size: .85rem; line-height: 1.4; }
.foto-grande { max-width: 100%; max-height: 80vh; display: block; margin: auto; }
.capitaliza::first-letter { text-transform: uppercase; }
