/* ELEVASEG Ponto — identidade visual da marca (azul-marinho + laranja da rede de proteção) */
:root {
  --bg: #0a1a2b;
  --bg2: #0e2134;
  --card: #132c46;
  --card2: #1b3a5c;
  --border: #24466b;
  --text: #eaf1f8;
  --muted: #93aac2;
  --accent: #f2900a;
  --accent-dark: #c26f00;
  --green: #34c77b;
  --red: #ef5b5b;
  --blue: #4d9fe8;
  --radius: 14px;
  --nav-h: 62px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.45;
}

/* Marca d'água com o escudo da ELEVASEG */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/icon.svg') center 34% / min(72vw, 430px) no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

#app { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + 28px); }

h1 { font-size: 1.35rem; }
h2 { font-size: 1.1rem; margin-bottom: 10px; }
h3 { font-size: 0.95rem; }
a { color: var(--blue); text-decoration: none; }
small, .muted { color: var(--muted); }

/* ---------- Componentes básicos ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #17120a;
  border: none; border-radius: 12px;
  padding: 12px 18px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: filter 0.15s, transform 0.05s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.secondary { background: var(--card2); color: var(--text); border: 1px solid var(--border); }
.btn.danger { background: var(--red); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.small { padding: 7px 12px; font-size: 0.85rem; border-radius: 9px; }
.btn.block { width: 100%; }
.btn.big { padding: 18px 24px; font-size: 1.15rem; border-radius: 16px; }

label.field { display: block; margin-bottom: 12px; }
label.field span { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 12px; font-size: 1rem; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input[type="checkbox"] { width: auto; accent-color: var(--accent); transform: scale(1.2); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
  background: var(--card2); color: var(--muted);
  white-space: nowrap;
}
.badge.ok { background: rgba(52, 199, 123, 0.15); color: var(--green); }
.badge.warn { background: rgba(242, 144, 10, 0.15); color: var(--accent); }
.badge.err { background: rgba(239, 91, 91, 0.15); color: var(--red); }
.badge.info { background: rgba(77, 163, 255, 0.15); color: var(--blue); }

.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ---------- Cabeçalho ---------- */
.appbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.appbar .brand { display: flex; align-items: center; gap: 10px; }
.appbar .brand img { width: 42px; height: 44px; }
.appbar .brand b { font-size: 1.05rem; letter-spacing: 0.5px; }
.appbar .brand small { display: block; font-size: 0.62rem; color: var(--accent); font-weight: 700; letter-spacing: 2.5px; }

/* Sino de notificações (administrador) */
.bell {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1.25rem;
  padding: 7px 11px;
  cursor: pointer;
}
.bell .ncount {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 99px;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
}
.notif-item.unread { background: rgba(242, 144, 10, 0.07); border-radius: 10px; }

/* ---------- Navegação inferior ---------- */
#bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-around;
  background: rgba(19, 27, 43, 0.97);
  border-top: 1px solid var(--border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  backdrop-filter: blur(8px);
}
#bottom-nav a {
  flex: 1; text-align: center; color: var(--muted);
  font-size: 0.68rem; font-weight: 600; padding: 4px 2px;
  border-radius: 10px;
}
#bottom-nav a .ico { display: block; font-size: 1.35rem; line-height: 1.2; }
#bottom-nav a.active { color: var(--accent); }

/* ---------- Tela de login ---------- */
.login-wrap { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; max-width: 380px; margin: 0 auto; }
.login-logo { text-align: center; margin-bottom: 26px; }
.login-logo img { width: min(64vw, 250px); }

/* ---------- Tela inicial (bater ponto) ---------- */
.clock-hero { text-align: center; padding: 22px 16px; }
.clock-hero .time { font-size: 3.2rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.clock-hero .date { color: var(--muted); text-transform: capitalize; }
.punch-btn {
  position: relative;
  width: 180px; height: 180px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.38), transparent 46%),
    linear-gradient(158deg, #ffb254 0%, var(--accent) 48%, var(--accent-dark) 100%);
  color: #201405; font-size: 1.02rem; font-weight: 800; letter-spacing: 1.4px;
  border: none;
  cursor: pointer; margin: 20px auto 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  box-shadow:
    0 0 0 7px rgba(242, 144, 10, 0.14),
    0 0 0 15px rgba(242, 144, 10, 0.05),
    0 16px 38px rgba(242, 144, 10, 0.38),
    inset 0 2px 6px rgba(255, 255, 255, 0.35),
    inset 0 -12px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.12s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
/* Anel "respirando": convida ao toque sem ser chamativo demais */
.punch-btn::after {
  content: ''; position: absolute; inset: -9px; border-radius: 50%;
  border: 2px solid rgba(242, 144, 10, 0.5);
  animation: punch-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes punch-pulse {
  0% { transform: scale(0.95); opacity: 0.85; }
  70%, 100% { transform: scale(1.13); opacity: 0; }
}
.punch-btn:active { transform: scale(0.95); filter: brightness(1.06); }
.punch-btn .ico { font-size: 2.15rem; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }
.punch-btn small {
  font-size: 0.66rem; font-weight: 700; color: #46320f; letter-spacing: 0.5px;
  text-transform: uppercase; background: rgba(255, 255, 255, 0.3);
  padding: 3px 11px; border-radius: 11px; margin-top: 2px;
}
.punch-btn:disabled {
  animation: none; cursor: not-allowed;
  filter: grayscale(1); opacity: 0.55;
}
.punch-btn:disabled::after { display: none; }

/* ---------- Gestão: cabeçalho + menu dropdown ---------- */
.gestao-head {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 14px;
}
.gestao-title { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; min-width: 0; }
.gestao-title .ico { font-size: 1.3rem; }
.gestao-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gestao-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gestao-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--card2); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 12px; color: var(--text); font-weight: 600; font-size: 0.9rem;
}
.gestao-item:hover { border-color: var(--accent); }
.gestao-item.atual { border-color: var(--accent); background: rgba(242, 144, 10, 0.12); }
.gestao-item .gi-ico { font-size: 1.4rem; }

/* Painel de acessos (quem está online) */
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(52,199,123,0.2); }

/* ---------- Painel de Meta / Comissão (torre que enche) ---------- */
.meta-panel { --steel-850: #10233a; --steel-800: #16324e; --steel-700: #24466b; }
.meta-head { text-align: center; }
.meta-pill { display: inline-block; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; color: #fff; background: var(--accent); padding: 6px 15px; border-radius: 3px; }
.meta-headline { letter-spacing: 2px; text-transform: uppercase; font-size: 0.72rem; color: var(--muted); text-align: center; margin-top: 14px; }
.meta-pct { font-weight: 800; font-size: clamp(52px, 16vw, 84px); line-height: 1.02; text-align: center; margin: 4px 0 2px;
  background: linear-gradient(180deg, #ffb254, var(--accent-dark)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.meta-pct.done { background: linear-gradient(180deg, #5fe39b, #26a35f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.meta-points { letter-spacing: 1px; font-size: clamp(16px, 4vw, 21px); text-align: center; }
.meta-points b { color: var(--accent); }
.meta-remaining { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 6px; }
.meta-stage { display: flex; align-items: flex-end; justify-content: center; gap: 16px; margin: 22px 0 6px; }
.meta-tower-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.meta-flag { font-size: 22px; margin-bottom: 4px; transition: transform .4s ease; filter: grayscale(.6) opacity(.5); }
.meta-flag.lit { filter: none; transform: translateY(-2px); }
.meta-tower { position: relative; width: 108px; height: 38vh; min-height: 260px; max-height: 380px;
  background: linear-gradient(180deg, var(--steel-800), var(--steel-850)); border: 2px solid var(--steel-700); border-bottom: none; border-radius: 4px 4px 0 0; overflow: hidden; }
.meta-windows { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 12px 12px 0; align-content: start; }
.meta-windows span { aspect-ratio: 1/1.25; background: var(--steel-700); border-radius: 1px; }
.meta-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(242,144,10,.20), rgba(194,111,0,.10)); border-top: 3px solid var(--accent); transition: height 1.1s cubic-bezier(.2,.7,.2,1); }
.meta-fill.done { border-top-color: var(--green); box-shadow: 0 0 26px 3px rgba(52,199,123,.5); background: linear-gradient(180deg, rgba(52,199,123,.18), rgba(38,163,95,.10)); }
.meta-lit { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 12px 12px 0; align-content: end; }
.meta-lit span { aspect-ratio: 1/1.25; background: var(--accent); border-radius: 1px; box-shadow: 0 0 6px rgba(242,144,10,.7); }
.meta-fill.done .meta-lit span { background: var(--green); box-shadow: 0 0 6px rgba(52,199,123,.7); }
.meta-ground { width: 140px; height: 10px; background: var(--border); border-radius: 2px; }
.meta-ruler { display: flex; flex-direction: column; justify-content: space-between; height: 38vh; min-height: 260px; max-height: 380px; padding: 2px 0; }
.meta-ruler div { font-size: 0.68rem; color: var(--muted); letter-spacing: 1px; }
.meta-message { font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: clamp(14px, 4vw, 19px); text-align: center; margin-top: 12px; min-height: 24px; }
.meta-message.done { color: var(--green); }
.meta-obra { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.meta-obra .nm { font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta-obra .pts { font-weight: 700; font-size: 0.9rem; color: var(--accent); background: rgba(242,144,10,.13); border-radius: 20px; padding: 3px 11px; flex-shrink: 0; }
.meta-foot { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; display: flex; justify-content: space-between; align-items: center; letter-spacing: .5px; font-size: 0.82rem; color: var(--muted); }
.meta-foot b { color: var(--accent); font-size: 0.95rem; }
@media (min-width: 720px) { .meta-two { display: flex; gap: 20px; align-items: flex-start; } .meta-two > .meta-left { flex: 1; } .meta-two > .meta-right { width: 300px; flex-shrink: 0; } }

/* Placar das 4 marcações do dia (entrada, almoço, volta, saída) */
.day-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 16px;
}
.dstep {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 2px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
}
.dstep b { display: block; font-variant-numeric: tabular-nums; color: var(--text); font-size: 0.85rem; }
.dstep.done { border-color: var(--green); }
.dstep.done b { color: var(--green); }
.dstep.next { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dstep.next small { color: var(--accent); font-weight: 700; }

.timeline { list-style: none; }
.timeline li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.timeline li:last-child { border-bottom: none; }
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.timeline .t { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 52px; }

/* ---------- Fluxo de ponto (modal) ---------- */
.steps { display: flex; gap: 6px; margin-bottom: 16px; }
.steps .step { flex: 1; height: 4px; border-radius: 99px; background: var(--border); }
.steps .step.on { background: var(--accent); }

.cam-wrap { position: relative; width: 100%; aspect-ratio: 3/4; max-height: 54vh; background: #000; border-radius: var(--radius); overflow: hidden; }
.cam-wrap video, .cam-wrap img.freeze { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-oval {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 34% 42% at 50% 46%, transparent 98%, rgba(10, 14, 22, 0.72) 100%);
}
.cam-oval::after {
  content: ''; position: absolute; left: 50%; top: 46%;
  width: 68%; height: 84%; transform: translate(-50%, -50%);
  border: 3px dashed rgba(242, 144, 10, 0.85); border-radius: 50%;
}
.cam-wrap.ok .cam-oval::after { border-color: var(--green); border-style: solid; }
.cam-status {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px; text-align: center; font-weight: 700; font-size: 0.9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.geo-box { text-align: center; padding: 26px 10px; }
.geo-box .big-ico { font-size: 3rem; margin-bottom: 8px; }

.receipt { text-align: center; }
.receipt .ok-ico { font-size: 3.4rem; color: var(--green); }
.receipt table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 0.92rem; }
.receipt td { padding: 6px 4px; border-bottom: 1px dashed var(--border); text-align: left; }
.receipt td:first-child { color: var(--muted); width: 42%; }
.receipt .hash { font-family: ui-monospace, monospace; font-size: 0.68rem; word-break: break-all; color: var(--muted); }

/* ---------- Espelho de ponto ---------- */
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.month-nav b { font-size: 1.05rem; text-transform: capitalize; }

table.mirror { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table.mirror th { text-align: left; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; padding: 8px 6px; border-bottom: 1px solid var(--border); }
table.mirror td { padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.mirror tr.weekend td { opacity: 0.5; }
table.mirror tr.absent td { background: rgba(239, 91, 91, 0.06); }
.mark { display: inline-block; background: var(--card2); border-radius: 6px; padding: 1px 6px; margin: 1px 2px 1px 0; font-variant-numeric: tabular-nums; font-size: 0.8rem; }
.mark.manual { border: 1px dashed var(--accent); }

.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.totals .tot { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-align: center; }
.totals .tot b { display: block; font-size: 1.15rem; }
.totals .tot small { font-size: 0.7rem; }

/* ---------- Listas ---------- */
.list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }
.list-item .info b { display: block; }
.list-item .info small { font-size: 0.78rem; }
.clickable { cursor: pointer; }
.clickable:hover { background: rgba(255, 255, 255, 0.02); }

.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card2); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0; overflow: hidden;
}

/* ---------- Painel admin ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-cards .stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 10px; text-align: center; }
.stat-cards .stat b { display: block; font-size: 1.7rem; color: var(--accent); }
.stat-cards .stat small { font-size: 0.72rem; }

.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.tabs a {
  white-space: nowrap; padding: 8px 14px; border-radius: 99px;
  background: var(--card); color: var(--muted); border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 700;
}
.tabs a.active { background: var(--accent); color: #17120a; border-color: var(--accent); }

/* ---------- Modal ---------- */
#modal-root:not(:empty) {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 8, 14, 0.72);
  display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  width: 100%; max-width: 560px; max-height: 92vh;
  overflow-y: auto; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  animation: slideUp 0.22s ease-out;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) {
  #modal-root:not(:empty) { align-items: center; }
  .modal { border-radius: 20px; }
}
.modal h2 { display: flex; justify-content: space-between; align-items: center; }
.modal .x { background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; padding: 0 4px; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; top: 14px; left: 0; right: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: var(--card2); color: var(--text);
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 11px 16px;
  max-width: 92%; font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  animation: slideDown 0.2s ease-out;
}
.toast.err { border-left-color: var(--red); }
.toast.ok { border-left-color: var(--green); }
@keyframes slideDown { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Pop-up de notificação (aparece quando algo acontece) ---------- */
.bell .ncount.ok-count { background: var(--green); }
#popup-stack {
  position: fixed; top: 12px; right: 12px; left: 12px; z-index: 300;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  pointer-events: none;
}
@media (min-width: 560px) { #popup-stack { left: auto; width: 380px; } }
.popup {
  pointer-events: auto; cursor: pointer;
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--card2); color: var(--text);
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 12px 12px 12px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-14px); opacity: 0;
  transition: transform 0.22s ease-out, opacity 0.22s ease-out;
}
.popup.show { transform: none; opacity: 1; }
.popup.alert { border-left-color: var(--red); }
.popup.meta { border-left-color: var(--green); }
.popup.ajuste { border-left-color: var(--blue); }
.popup-ico { font-size: 1.3rem; line-height: 1.2; flex-shrink: 0; }
.popup-body { min-width: 0; flex: 1; }
.popup-body b { display: block; font-size: 0.9rem; }
.popup-body small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.popup-x {
  flex-shrink: 0; background: transparent; border: 0; color: var(--muted);
  font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 2px;
}

.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
.mt { margin-top: 12px; }
.mb { margin-bottom: 12px; }

.punch-photo { width: 100%; border-radius: var(--radius); }

/* ---------- Impressão (espelho de ponto) ---------- */
.print-header { display: none; }
@media print {
  body { background: #fff; color: #000; }
  body::before { display: none; }
  #bottom-nav, .appbar, .month-nav .btn, .no-print, #toast-root, #modal-root { display: none !important; }
  #app { padding: 0; max-width: none; }
  .card, .totals .tot { border: 1px solid #999; background: #fff; color: #000; }
  table.mirror th, table.mirror td { border-bottom: 1px solid #999; color: #000; }
  .mark { background: #eee; color: #000; }
  .badge { border: 1px solid #999; background: #fff; color: #000; }
  .print-header { display: block; margin-bottom: 12px; color: #000; }
  .print-sign { display: flex !important; justify-content: space-between; gap: 40px; margin-top: 60px; }
  .print-sign div { flex: 1; border-top: 1px solid #000; text-align: center; padding-top: 6px; font-size: 0.8rem; }
}
.print-sign { display: none; }
