/* Estilos da tela: ponto (use as variáveis de style.css) */

/* ---------- Cartão principal: relógio + botão ---------- */
.ponto-grade { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; margin-bottom: 18px; }
.ponto-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; padding: 24px; margin-bottom: 18px; position: relative; overflow: hidden; }
.ponto-grade .ponto-hero { margin-bottom: 0; }
.ponto-hero::before { content: ""; position: absolute; left: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.22), transparent 70%); pointer-events: none; }
.ph-topo { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sit-selo { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.sit-selo .ic { width: 15px; height: 15px; }
.sit-selo.p { padding: 2px 9px; font-size: 11px; margin-top: 3px; align-self: flex-start; }
.relogio-grande { font-size: 74px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 12px 0 2px; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #0b1720, #155e75); -webkit-background-clip: text; background-clip: text; color: transparent; }
.relogio-grande small { font-size: 34px; opacity: .55; }
.ph-data { text-transform: capitalize; font-weight: 650; margin-bottom: 16px; }
.ph-dir { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.relogio-topo { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.relogio-topo .ic { width: 18px; height: 18px; color: var(--turquesa); }
.relogio-topo b { font-size: 18px; } .relogio-topo small { font-size: 13px; opacity: .6; }

/* Botão enorme */
.bater-btn { position: relative; width: 190px; height: 190px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #34d399, #059669 70%); box-shadow: 0 18px 40px rgba(5,150,105,.45), inset 0 -6px 18px rgba(0,0,0,.18), inset 0 6px 14px rgba(255,255,255,.35);
  transition: transform .18s var(--anim), box-shadow .2s; -webkit-tap-highlight-color: transparent; font: inherit; }
.bater-btn.saida_almoco { background: radial-gradient(circle at 30% 25%, #fbbf24, #d97706 70%); box-shadow: 0 18px 40px rgba(217,119,6,.45), inset 0 -6px 18px rgba(0,0,0,.18), inset 0 6px 14px rgba(255,255,255,.35); }
.bater-btn.volta_almoco { background: radial-gradient(circle at 30% 25%, #38bdf8, #0284c7 70%); box-shadow: 0 18px 40px rgba(2,132,199,.45), inset 0 -6px 18px rgba(0,0,0,.18), inset 0 6px 14px rgba(255,255,255,.35); }
.bater-btn.saida { background: radial-gradient(circle at 30% 25%, #475569, #0b1720 70%); box-shadow: 0 18px 40px rgba(11,23,32,.45), inset 0 -6px 18px rgba(0,0,0,.25), inset 0 6px 14px rgba(255,255,255,.25); }
.bater-btn.feito { background: radial-gradient(circle at 30% 25%, #e2e8f0, #94a3b8 70%); box-shadow: var(--sombra-p); cursor: default; }
.bater-btn:hover:not(.feito) { transform: scale(1.04); }
.bater-btn:active:not(.feito) { transform: scale(.95); }
.bb-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.bb-in .ic { width: 40px; height: 40px; margin-bottom: 4px; stroke-width: 2.2; }
.bb-in b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.bb-in small { font-size: 13px; opacity: .9; font-weight: 650; }
.bater-btn .anel1, .bater-btn .anel2 { position: absolute; inset: 0; border-radius: 50%; border: 3px solid currentColor; color: rgba(16,185,129,.6); animation: onda 2.4s ease-out infinite; pointer-events: none; }
.bater-btn.saida_almoco .anel1, .bater-btn.saida_almoco .anel2 { color: rgba(245,158,11,.6); }
.bater-btn.volta_almoco .anel1, .bater-btn.volta_almoco .anel2 { color: rgba(14,165,233,.6); }
.bater-btn.saida .anel1, .bater-btn.saida .anel2 { color: rgba(11,23,32,.45); }
.bater-btn .anel2 { animation-delay: 1.2s; }
@keyframes onda { from { transform: scale(1); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
.bater-btn.registrando { animation: respira 1s ease-in-out infinite; }
.bater-btn.registrando .anel1, .bater-btn.registrando .anel2 { animation-duration: 1s; }
.bater-btn.registrando .spin { border-color: rgba(255,255,255,.35); border-top-color: #fff; margin-bottom: 6px; }
.bater-btn.sucesso { background: radial-gradient(circle at 30% 25%, #6ee7b7, #059669 70%); animation: sucesso .6s var(--anim); }
.bater-btn.sucesso .bb-in .ic { animation: checa .5s var(--anim) both; }
@keyframes respira { 50% { transform: scale(.96); } }
@keyframes sucesso { 0% { transform: scale(.9); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes checa { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }

/* Anel de horas */
.anel-horas { position: relative; width: 130px; height: 130px; }
.anel-horas svg { width: 100%; height: 100%; }
.anel-horas circle.prog { transition: stroke-dashoffset 1s var(--anim); }
.ah-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ah-txt b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ah-txt span { font-size: 11.5px; color: var(--texto-3); font-weight: 650; }

/* Linha do dia */
.linha-dia { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin-top: 4px; }
.linha-dia::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 21px; height: 4px; border-radius: 2px; background: rgba(12,37,51,.1); }
.ld-passo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; animation: sobeSuave .45s var(--anim) both; }
.ld-passo:not(:first-child)::before { content: ""; position: absolute; right: 50%; width: 100%; top: 21px; height: 4px; background: transparent; z-index: 0; }
.ld-passo.feito:not(:first-child)::before { background: linear-gradient(90deg, #10b981, #34d399); border-radius: 2px; }
.ld-bola { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--texto-3); border: 3px solid rgba(12,37,51,.1); position: relative; z-index: 1; transition: all .3s; }
.ld-bola .ic { width: 20px; height: 20px; }
.ld-passo.feito .ld-bola { background: linear-gradient(135deg, #34d399, #059669); color: #fff; border-color: #fff; box-shadow: 0 6px 14px rgba(5,150,105,.35); }
.ld-passo.proximo .ld-bola { border-color: var(--turquesa); color: var(--turquesa); animation: pulsaBorda 1.6s infinite; }
@keyframes pulsaBorda { 0%, 100% { box-shadow: 0 0 0 0 rgba(20,184,166,.5); } 50% { box-shadow: 0 0 0 9px rgba(20,184,166,0); } }
.ld-passo small { font-size: 11.5px; color: var(--texto-3); font-weight: 650; margin-top: 4px; }
.ld-passo b { font-size: 17px; font-variant-numeric: tabular-nums; color: var(--texto-3); }
.ld-passo.feito b { color: var(--texto); }
.ld-mapa { position: absolute; top: -4px; right: calc(50% - 34px); width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--sombra-p); z-index: 2; }
.ld-mapa .ic { width: 13px; height: 13px; color: #e11d48; }
.ld-aj { font-size: 10px; font-weight: 800; color: #0369a1; background: #e0f2fe; border-radius: 6px; padding: 1px 6px; }

/* Banco de horas */
.banco-card { padding: 22px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(150deg, rgba(209,250,229,.9), rgba(255,255,255,.65)); position: relative; overflow: hidden; }
.banco-card.neg { background: linear-gradient(150deg, rgba(255,228,230,.92), rgba(255,255,255,.65)); }
.banco-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(16,185,129,.18); }
.banco-card.neg::after { background: rgba(244,63,94,.15); }
.bc-rot { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--texto-2); font-size: 13.5px; }
.bc-rot .ic { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--verde); color: #fff; }
.banco-card.neg .bc-rot .ic { background: var(--vermelho); }
.bc-val { font-size: 48px; font-weight: 800; letter-spacing: -.03em; color: #047857; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.banco-card.neg .bc-val { color: #be123c; }
.bc-sub { color: var(--texto-2); font-size: 13px; font-weight: 600; }
.bc-linha { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.7); font-size: 13.5px; font-weight: 650; }
.bc-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 10px; }
.bc-mini > div { background: rgba(255,255,255,.65); border-radius: 12px; padding: 8px 10px; }
.bc-mini small { display: block; font-size: 11px; color: var(--texto-3); font-weight: 650; }
.bc-mini b { font-size: 16px; }

/* Calendário */
.cal-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal-cab b { font-size: 16px; }
.calendario-ponto { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-sem { text-align: center; font-size: 11px; font-weight: 750; color: var(--texto-3); text-transform: uppercase; letter-spacing: .05em; }
.cal-dia { position: relative; aspect-ratio: 1; min-height: 42px; border-radius: 12px; border: 0; padding: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,.5); color: var(--texto-2); cursor: pointer; font: inherit; transition: transform .15s var(--anim), box-shadow .15s; }
button.cal-dia:hover:not(:disabled) { transform: translateY(-2px) scale(1.04); box-shadow: var(--sombra-p); }
.cal-dia:disabled { cursor: default; opacity: .45; }
.cal-dia .n { font-size: 15px; font-weight: 800; line-height: 1; }
.cal-dia .h { font-size: 10px; font-weight: 700; margin-top: 3px; opacity: .9; }
.cal-dia .sd { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; }
.cal-dia .sd.pos { background: #fff; } .cal-dia .sd.neg { background: #fecdd3; box-shadow: 0 0 0 1px #e11d48; }
.cal-dia.completo { background: linear-gradient(135deg, #34d399, #10b981); color: #fff; }
.cal-dia.extra { background: linear-gradient(135deg, #22d3ee, #0891b2); color: #fff; }
.cal-dia.incompleto { background: linear-gradient(135deg, #fcd34d, #f59e0b); color: #fff; }
.cal-dia.falta { background: linear-gradient(135deg, #fb7185, #e11d48); color: #fff; }
.cal-dia.ausencia { background: linear-gradient(135deg, #c4b5fd, #8b5cf6); color: #fff; }
.cal-dia.fim_semana, .cal-dia.vazio-dia { background: rgba(255,255,255,.35); color: var(--texto-3); }
.cal-dia.hoje, .cal-dia.hoje-borda { background: #fff; color: var(--texto); box-shadow: 0 0 0 3px var(--turquesa); }
.cal-dia.antes { background: transparent; color: var(--texto-3); opacity: .4; }
.cal-dia.futuro { background: rgba(255,255,255,.25); }
.cal-dia.mini { display: inline-flex; width: 12px; height: 12px; min-height: 0; aspect-ratio: auto; padding: 0; border-radius: 4px; vertical-align: -1px; }
.cal-dia.grande { width: 56px; height: 56px; aspect-ratio: auto; flex: none; cursor: default; }
.cal-legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: var(--texto-2); font-weight: 600; }
.cal-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legenda i.cal-dia { width: 12px; height: 12px; min-height: 0; aspect-ratio: auto; padding: 0; border-radius: 4px; cursor: default; display: inline-block; }

/* Gráfico horas por dia */
.graf-horas { width: 100%; height: auto; overflow: visible; }
.graf-horas .hb { transform-origin: bottom; transform-box: fill-box; animation: cresce .7s var(--anim) both; cursor: pointer; transition: opacity .15s; }
.graf-horas .hb:hover { opacity: .8; }
.hb.ok, .hb-leg.ok { fill: #10b981; background: #10b981; } .hb.baixo, .hb-leg.baixo { fill: #f59e0b; background: #f59e0b; }
.hb.falta, .hb-leg.falta { fill: #f43f5e; background: #f43f5e; } .hb.sem { fill: rgba(12,37,51,.12); }
.hb-leg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

/* Ajustes */
.lista-ajustes { display: flex; flex-direction: column; gap: 8px; }
.aj-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.55); border: 1px solid #fff; transition: transform .45s var(--anim), opacity .45s, background .3s; }
.aj-item .txt { flex: 1; min-width: 0; } .aj-item .txt b { display: block; font-weight: 650; } .aj-item .txt .fraco { display: block; }
.aj-item.pendente { border-color: #fde3a7; background: rgba(255,247,230,.8); }
.aj-botoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.aj-item.saindo-ok { background: #d1fae5; transform: translateX(40px); opacity: 0; }
.aj-item.saindo-nao { background: #ffe4e6; transform: translateX(-40px); opacity: 0; }

/* Esqueci de Bater: escolha do tipo */
.esc-tipos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.esc-tipo input { position: absolute; opacity: 0; pointer-events: none; }
.esc-tipo span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.75); border: 2px solid #fff; cursor: pointer; font-weight: 650; font-size: 13.5px; transition: all .15s; }
.esc-tipo span .ic { width: 18px; height: 18px; color: var(--turquesa); }
.esc-tipo input:checked + span { border-color: var(--preto); background: var(--preto); color: #fff; }
.esc-tipo input:checked + span .ic { color: #5eead4; }

/* Detalhe do dia */
.dia-det { margin-bottom: 8px; }
.dd-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dd-linhas { display: flex; flex-direction: column; gap: 6px; }
.dd-l { display: grid; grid-template-columns: 40px 1fr auto auto auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 14px; background: rgba(255,255,255,.6); font-size: 14px; }
.dd-l .ld-bola { width: 36px; height: 36px; border-width: 2px; }
.dd-l.ok .ld-bola { background: linear-gradient(135deg, #34d399, #059669); color: #fff; border-color: #fff; }
.dd-l .btn .ic { color: #e11d48; }

/* ---------- Admin: equipe agora ---------- */
.resumo-equipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.resumo-sit { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.75); box-shadow: var(--sombra-p); }
.resumo-sit .ic { width: 34px; height: 34px; padding: 7px; border-radius: 12px; color: #fff; background: #94a3b8; flex: none; }
.resumo-sit b { font-size: 24px; font-weight: 800; }
.resumo-sit span { font-size: 12.5px; color: var(--texto-2); font-weight: 650; line-height: 1.2; }
.resumo-sit.verde .ic { background: var(--verde); } .resumo-sit.amarelo .ic { background: var(--amarelo); } .resumo-sit.vermelho .ic { background: var(--vermelho); }
.resumo-sit.roxo .ic { background: var(--roxo); } .resumo-sit.cinza .ic { background: #64748b; }
.grade-pessoas { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.pessoa-card { padding: 16px; cursor: pointer; transition: transform .25s var(--anim), box-shadow .25s; animation: sobeSuave .45s var(--anim) both; border-top: 4px solid #cbd5e1; }
.pessoa-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(6,40,56,.25); }
.pessoa-card.sit-trabalhando { border-top-color: var(--verde); } .pessoa-card.sit-almoco { border-top-color: var(--amarelo); }
.pessoa-card.sit-nao_bateu { border-top-color: var(--vermelho); } .pessoa-card.sit-ausente { border-top-color: var(--roxo); }
.pc-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pc-nome { display: flex; flex-direction: column; min-width: 0; }
.pc-nome b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-marcas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.pc-marcas > div { position: relative; text-align: center; padding: 7px 4px; border-radius: 12px; background: rgba(255,255,255,.55); }
.pc-marcas > div.ok { background: #d1fae5; }
.pc-marcas small { display: block; font-size: 10.5px; color: var(--texto-3); font-weight: 650; }
.pc-marcas b { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--texto-3); }
.pc-marcas .ok b { color: #047857; }
.pc-marcas a { position: absolute; top: -6px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--sombra-p); }
.pc-marcas a .ic { width: 12px; height: 12px; color: #e11d48; }
.pc-rodape { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: end; }
.pc-rodape small { display: block; font-size: 11px; color: var(--texto-3); font-weight: 650; }
.pc-rodape b { font-size: 16px; font-variant-numeric: tabular-nums; }
.pc-semana { display: flex; gap: 3px; justify-content: flex-end; }
.pc-semana i.cal-dia { width: 14px; height: 14px; min-height: 0; aspect-ratio: auto; padding: 0; border-radius: 4px; display: inline-block; }

/* Mapa simples */
.mini-mapa { position: relative; height: 230px; border-radius: 18px; overflow: hidden; margin-bottom: 10px;
  background: linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px) 0 0 / 28px 28px,
              radial-gradient(circle at 30% 40%, rgba(167,243,208,.7), transparent 55%), radial-gradient(circle at 75% 70%, rgba(186,230,253,.8), transparent 55%), #e6f6f4; }
.mm-pin { position: absolute; transform: translate(-50%, -100%); width: 34px; height: 34px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--cor); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; box-shadow: 0 6px 14px rgba(0,0,0,.25); border: 2px solid #fff; animation: cai .5s var(--anim) both; transition: scale .15s; }
.mm-pin:hover { scale: 1.15; z-index: 3; }
.mm-pin span { rotate: 45deg; line-height: 1; }
@keyframes cai { from { opacity: 0; translate: 0 -20px; } }
.mm-norte { position: absolute; right: 10px; top: 8px; font-size: 11px; font-weight: 800; color: var(--texto-3); background: rgba(255,255,255,.8); border-radius: 8px; padding: 2px 6px; }
.mm-lista { display: flex; flex-direction: column; gap: 4px; }
.mm-li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; color: var(--texto); font-size: 13px; }
.mm-li:hover { background: rgba(255,255,255,.5); }
.mm-li i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mm-li span { color: var(--texto-3); flex: 1; }
.mm-li .ic { width: 15px; height: 15px; color: #e11d48; }

/* Espelho por pessoa */
.seletor-pessoas { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.seletor-pessoas .chip { padding: 4px 13px 4px 4px; }
.seletor-pessoas .avatar.p { width: 26px; height: 26px; font-size: 10.5px; box-shadow: none; }
.aus-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; background: var(--roxo); }
.aus-ic .ic { width: 18px; height: 18px; } .aus-ic.feriado { background: var(--rosa); } .aus-ic.ferias { background: var(--azul); } .aus-ic.atestado { background: var(--laranja); }

@media (max-width: 1100px) { .ponto-grade { grid-template-columns: 1fr; } .resumo-equipe { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) {
  .ponto-hero { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .ph-esq { text-align: center; } .ph-topo { justify-content: center; }
  .relogio-grande { font-size: 60px; } .relogio-grande small { font-size: 26px; }
  .ph-dir { flex-direction: row; justify-content: center; gap: 18px; order: -1; }
  .ph-esq { order: 0; }
  .bater-btn { width: 168px; height: 168px; }
  .anel-horas { width: 112px; height: 112px; }
  .ld-bola { width: 40px; height: 40px; } .linha-dia::before, .ld-passo:not(:first-child)::before { top: 18px; }
  .ld-passo b { font-size: 15px; } .ld-passo small { font-size: 10.5px; }
  .bc-val { font-size: 40px; }
  .resumo-equipe { grid-template-columns: repeat(2, 1fr); }
  .resumo-sit { padding: 10px; } .resumo-sit b { font-size: 20px; }
  .calendario-ponto { gap: 4px; } .cal-dia { min-height: 38px; border-radius: 10px; } .cal-dia .h { font-size: 8.5px; }
  .esc-tipos { grid-template-columns: 1fr 1fr; }
  .dd-l { grid-template-columns: 36px 1fr auto auto; } .dd-l .tag-info { display: none; }
  .aj-item { flex-wrap: wrap; } .aj-botoes { width: 100%; } .aj-botoes .btn { flex: 1; }
  .pc-rodape { grid-template-columns: auto auto; } .pc-semana { grid-column: 1 / -1; justify-content: flex-start; }
}
