:root{--bg:#060709;--panel:#101216;--panel2:#15181d;--line:#292d34;--text:#f6f7f8;--muted:#9aa1ab;--silver:#d8dce1;--good:#86d7a8;--bad:#ff9d9d;--warn:#e4c878;--blue:#9fc3ff}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(circle at 20% 0,#171a20 0,#090a0d 34%,#050608 75%);color:var(--text);min-height:100vh}button,input{font:inherit}button{cursor:pointer}.app{max-width:620px;margin:0 auto;min-height:100vh;padding:20px 16px calc(100px + env(safe-area-inset-bottom))}
.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.brand{font-weight:780;letter-spacing:.1em;font-size:14px}.syncbadge{font-size:11px;border:1px solid #5f5232;background:#17140d;color:var(--warn);border-radius:999px;padding:7px 10px}.syncbadge.on{border-color:#315543;background:#0d1712;color:var(--good)}
.view{display:none}.view.active{display:block}.hero,.card{border:1px solid var(--line);background:linear-gradient(145deg,rgba(27,30,36,.97),rgba(10,11,14,.97));border-radius:26px;box-shadow:0 24px 70px rgba(0,0,0,.28)}.hero{padding:25px;position:relative;overflow:hidden}.hero:before{content:"";position:absolute;right:-70px;top:-90px;width:190px;height:190px;border-radius:50%;background:rgba(255,255,255,.055)}
.date{color:var(--muted);font-size:14px;text-transform:capitalize}.clock{font-size:58px;line-height:1;font-weight:760;letter-spacing:-.05em;margin:11px 0 24px}.eyebrow{font-size:10px;color:var(--muted);letter-spacing:.14em;text-transform:uppercase}.next{font-size:22px;font-weight:690;margin:7px 0 15px}.punch{width:100%;border:0;border-radius:18px;padding:18px 16px;background:linear-gradient(180deg,#f5f7f9,#c8cdd4);color:#090a0c;font-weight:800;box-shadow:inset 0 1px #fff,0 10px 30px rgba(255,255,255,.08)}.punch:disabled{opacity:.4;cursor:default}.suggest{margin-top:11px;font-size:12px;color:var(--muted);display:flex;gap:6px;align-items:center}.suggest strong{color:#cdd1d6;font-weight:650}.syncnote{font-size:12px;color:var(--muted);line-height:1.45;margin-top:13px}.syncnote b{color:var(--silver)}
.section{margin-top:22px}.sectionhead{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:11px}h2{font-size:17px;margin:0}.tiny{font-size:11px;color:var(--muted)}.card{padding:16px}.timeline{display:grid;grid-template-columns:1fr 1fr;gap:9px}.titem,.metric{background:#0c0e11;border:1px solid #252930;border-radius:16px;padding:14px}.tlabel,.metric span{font-size:10px;color:var(--muted);display:block;margin-bottom:6px;text-transform:uppercase;letter-spacing:.06em}.tvalue{font-size:20px;font-weight:720}.pending{color:#656c76}
.summary{display:grid;grid-template-columns:1fr 1fr;gap:9px}.metric strong{font-size:20px}.positive{color:var(--good)!important}.negative{color:var(--bad)!important}.neutral{color:var(--silver)!important}
.monthscroll{display:flex;gap:8px;overflow-x:auto;padding:2px 0 9px;scrollbar-width:none}.monthscroll::-webkit-scrollbar{display:none}.monthbtn{flex:0 0 auto;border:1px solid var(--line);background:#0e1013;color:var(--muted);border-radius:999px;padding:9px 13px;font-size:12px}.monthbtn.active{background:#e1e4e8;color:#0b0c0e;border-color:#e1e4e8;font-weight:750}
.monthtitle{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.monthtitle h3{margin:0;font-size:21px}.sheetlink{font-size:11px;color:var(--muted);text-decoration:none;border:1px solid var(--line);padding:7px 9px;border-radius:999px}.row{display:grid;grid-template-columns:48px 1fr auto;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid #20242a}.row:last-child{border-bottom:0}.dow{font-size:11px;color:var(--muted);font-weight:730}.rd{font-size:13px;font-weight:650}.times{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.35}.status{display:inline-block;padding:3px 7px;border-radius:999px;background:#171a1f;color:#b9bec6;border:1px solid #292e35;font-size:10px}.balance{font-size:12px;font-weight:720;text-align:right}.future{opacity:.52}
.yearpick{display:flex;gap:8px;margin-bottom:12px;justify-content:center}.yearbtn{border:1px solid var(--line);background:#0e1013;color:var(--muted);border-radius:999px;padding:9px 15px;font-size:12px;font-weight:720}.yearbtn.active{background:#e1e4e8;color:#0b0c0e;border-color:#e1e4e8}.yeargrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.monthcard{border:1px solid var(--line);background:#0e1013;border-radius:18px;padding:14px;text-align:left;color:var(--text)}.monthcard.current{outline:1px solid #cdd1d6}.monthcard .mn{font-weight:740;font-size:14px}.monthcard .ms{font-size:11px;color:var(--muted);margin-top:7px}.monthcard .mb{font-size:18px;font-weight:760;margin-top:5px}
.connection{display:grid;gap:13px}.field label{font-size:11px;color:var(--muted);display:block;margin-bottom:6px}.field input{width:100%;border:1px solid var(--line);background:#090b0e;color:var(--text);border-radius:14px;padding:13px;outline:none}.actionrow{display:flex;gap:8px;flex-wrap:wrap}.btn2{border:1px solid #333841;background:#16191e;color:var(--text);padding:11px 13px;border-radius:13px;font-weight:680}.btn2.primary{background:#e0e3e7;color:#0c0d0f;border-color:#e0e3e7}.help{font-size:12px;line-height:1.55;color:var(--muted)}.help code{color:#d5d8dd}
.nav{position:fixed;left:50%;bottom:10px;transform:translateX(-50%);width:min(calc(100% - 20px),600px);display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:7px;background:rgba(8,9,12,.9);backdrop-filter:blur(18px);border:1px solid #2a2e35;border-radius:20px;z-index:20}.nav button{border:0;background:transparent;color:var(--muted);padding:11px 5px;border-radius:14px;font-size:12px;font-weight:680}.nav button.active{background:#e1e4e8;color:#0d0e10}.toast{position:fixed;left:50%;bottom:91px;transform:translate(-50%,18px);background:#e4e7eb;color:#101114;padding:11px 14px;border-radius:999px;font-size:12px;font-weight:720;opacity:0;pointer-events:none;transition:.25s;z-index:30;max-width:calc(100% - 30px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
.loginGate{position:fixed;inset:0;background:rgba(5,6,8,.96);backdrop-filter:blur(18px);z-index:100;display:flex;align-items:center;justify-content:center;padding:22px}.loginGate.hidden{display:none}.loginBox{width:min(100%,430px);border:1px solid var(--line);background:linear-gradient(145deg,#171a1f,#090a0d);border-radius:28px;padding:24px 22px 18px;box-shadow:0 30px 90px rgba(0,0,0,.45)}.loginBox h1{font-size:24px;margin:5px 0 8px}.loginBox p{font-size:13px;color:var(--muted);line-height:1.5;margin:12px 0 0}.loginBox input{width:100%;border:1px solid var(--line);background:#090b0e;color:var(--text);border-radius:14px;padding:14px;margin-bottom:10px;outline:none}.loginErr{min-height:18px;font-size:11px;color:var(--bad);margin-top:8px}.login-footer{margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08);text-align:center;color:#8f949c;font-size:11px;line-height:1.7}.login-footer strong{color:#d8dbe0;font-weight:650}.login-footer a{color:#b9bec6;text-decoration:none}
@media(max-width:390px){.clock{font-size:50px}.hero{padding:21px}.app{padding-left:13px;padding-right:13px}.yeargrid{grid-template-columns:1fr 1fr}}

.reportform{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field{display:flex;flex-direction:column;gap:7px}.field label{font-size:11px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.08em}.field input{width:100%;box-sizing:border-box;background:#0c0e11;color:var(--text);border:1px solid var(--line);border-radius:13px;padding:12px 11px;font:inherit;color-scheme:dark}.reportpreview{margin-top:12px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,#11141a,#0d0f13);font-size:12px;color:var(--muted);line-height:1.5}.reportpreview strong{color:var(--text);font-size:13px}.quickrow{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.quickrow button{border:1px solid var(--line);background:#111318;color:var(--muted);border-radius:999px;padding:8px 11px;font-size:11px;font-weight:700}.reportbtn{width:100%;margin-top:12px;border:0;border-radius:14px;padding:14px;background:#e1e4e8;color:#0d0e10;font-weight:800;letter-spacing:.03em}.reportbtn:disabled{opacity:.45}.app-footer{margin:28px 16px 96px;padding:17px 12px;border-top:1px solid rgba(255,255,255,.10);text-align:center;color:#8f949c;font-size:11px;line-height:1.65;letter-spacing:.02em}.app-footer strong{color:#d8dbe0;font-weight:650}.app-footer a{color:#b9bec6;text-decoration:none}

body:not(.auth-ok) #appRoot{display:none!important}
body:not(.auth-ok) #loginGate{display:flex!important}
body.auth-ok #loginGate{display:none!important}


/* Luxo geral dos botões + PDF mobile refinado */
button,
.monthbtn,
.yearbtn,
.btn2,
.sheetlink,
.nav button,
.report-quick-actions button,
.reportbtn,
.punch{
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
button:hover,
.monthbtn:hover,
.yearbtn:hover,
.btn2:hover,
.sheetlink:hover,
.nav button:hover,
.report-quick-actions button:hover,
.reportbtn:hover,
.punch:hover{
  transform:translateY(-1px);
  filter:brightness(1.03);
}
button:active,
.monthbtn:active,
.yearbtn:active,
.btn2:active,
.sheetlink:active,
.nav button:active,
.report-quick-actions button:active,
.reportbtn:active,
.punch:active{
  transform:translateY(0);
}
.monthbtn,
.yearbtn,
.btn2,
.sheetlink,
.nav button,
.report-quick-actions button{
  border:1px solid rgba(216,220,225,.12);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 10px 24px rgba(0,0,0,.24);
}
.monthbtn.active,
.yearbtn.active,
.btn2.primary,
.nav button.active{
  background:linear-gradient(180deg,#f7f8fa,#d4dae1 58%,#c2c8d0);
  color:#090b0d;
  border-color:#e3e7eb;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 14px 32px rgba(0,0,0,.28);
}
.punch,
.reportbtn{
  background:linear-gradient(180deg,#fbfcfd,#dfe4ea 52%,#c7ced6);
  border:1px solid rgba(255,255,255,.8);
  box-shadow:inset 0 1px 0 rgba(255,255,255,1),0 20px 40px rgba(0,0,0,.32);
}
.punch:hover,
.reportbtn:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,1),0 22px 44px rgba(0,0,0,.38)}

.reportform{display:block}
.report-filter-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  align-items:end;
}
.report-filter-field{min-width:0}
.report-filter-field label{
  display:block;
  margin-bottom:8px;
  font-size:13px;
  color:#edf1f6;
  font-weight:760;
  letter-spacing:.02em;
  text-transform:none;
}
.report-date-input,
.report-filter-field input[type="date"]{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  min-height:64px;
  padding:0 18px;
  border-radius:18px;
  border:1px solid rgba(216,220,225,.18);
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03)),linear-gradient(145deg,#181c22,#0c0f13);
  color:#f5f7fa;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 16px 34px rgba(0,0,0,.32);
  font:inherit;
  font-size:17px;
  font-weight:720;
  letter-spacing:-.01em;
  color-scheme:dark;
  appearance:none;
  -webkit-appearance:none;
}
.report-date-input:focus,
.report-filter-field input[type="date"]:focus{
  outline:none;
  border-color:rgba(159,195,255,.55);
  box-shadow:0 0 0 1px rgba(159,195,255,.26),0 18px 36px rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.08);
}
.report-date-input::-webkit-date-and-time-value{min-height:100%;text-align:left}
.report-date-input::-webkit-datetime-edit,
.report-filter-field input[type="date"]::-webkit-datetime-edit{display:flex;align-items:center;min-height:100%;padding:0}
.report-date-input::-webkit-datetime-edit-fields-wrapper,
.report-filter-field input[type="date"]::-webkit-datetime-edit-fields-wrapper{display:flex;align-items:center;gap:2px;flex-wrap:nowrap}
.report-date-input::-webkit-datetime-edit-text,
.report-date-input::-webkit-datetime-edit-month-field,
.report-date-input::-webkit-datetime-edit-day-field,
.report-date-input::-webkit-datetime-edit-year-field,
.report-filter-field input[type="date"]::-webkit-datetime-edit-text,
.report-filter-field input[type="date"]::-webkit-datetime-edit-month-field,
.report-filter-field input[type="date"]::-webkit-datetime-edit-day-field,
.report-filter-field input[type="date"]::-webkit-datetime-edit-year-field{color:#f5f7fa;font-weight:720}
.report-date-input::-webkit-calendar-picker-indicator,
.report-filter-field input[type="date"]::-webkit-calendar-picker-indicator{opacity:.92;filter:invert(1) brightness(1.45);cursor:pointer;margin-left:10px}
.report-quick-actions{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:16px;
}
.report-quick-actions button{
  width:100%;
  min-width:0;
  min-height:54px;
  padding:10px 14px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.15;
  color:#f4f6f8;
  font-size:16px;
  font-weight:760;
  letter-spacing:-.01em;
}
.reportpreview{
  margin-top:16px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(216,220,225,.14);
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.015)),linear-gradient(145deg,#11141a,#0b0d12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.reportpreview strong{font-size:15px}
.reportbtn{
  width:100%;
  margin-top:16px;
  min-height:72px;
  border-radius:22px;
  font-size:18px;
  letter-spacing:.04em;
}
.reportbtn:disabled{opacity:.5;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 10px 18px rgba(0,0,0,.18)}
@media (max-width:560px){
  .sectionhead{align-items:flex-start;flex-wrap:wrap}
  .report-filter-grid{grid-template-columns:1fr;gap:14px}
  .report-date-input,
  .report-filter-field input[type="date"]{
    min-height:72px;
    font-size:18px;
    border-radius:20px;
    padding:0 18px;
  }
  .report-quick-actions{grid-template-columns:1fr 1fr;gap:10px}
  .report-quick-actions button:last-child{grid-column:1 / -1}
  .report-quick-actions button{min-height:58px;font-size:15px;border-radius:20px}
  .reportbtn{min-height:76px;font-size:19px}
}

/* Security-compatible utility classes (no inline styles) */
.section-top-tight{margin-top:4px!important}
.hist-summary-spacing{margin-bottom:10px!important}
.help-top{margin-top:12px!important}
.footer-logout-wrap{margin-top:8px}
.logout-btn{border:0;background:transparent;color:#777d86;font-size:10px;padding:4px 8px}
.balance-extra{font-size:10px;margin-top:3px}
.history-empty{padding:8px 0}


/* Login Google — black card discreto */
.loginGate{
  align-items:center;
  padding:22px;
  overflow:auto;
}
.loginBox{
  width:min(100%,420px);
  padding:24px 22px 18px;
  border-radius:28px;
  border:1px solid rgba(220,224,230,.15);
  background:
    radial-gradient(circle at 78% 0,rgba(255,255,255,.055),transparent 28%),
    linear-gradient(145deg,#171a1f 0%,#0b0d11 62%,#07080a 100%);
  box-shadow:0 34px 90px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.04);
}
.loginBox h1{font-size:27px;letter-spacing:-.025em;margin:5px 0 8px}
.login-owner-name{
  margin:-2px 0 16px;
  color:#c7ccd3;
  font-size:12px;
  font-weight:600;
  letter-spacing:.11em;
  text-transform:uppercase;
  line-height:1.4;
  text-shadow:0 1px 0 rgba(255,255,255,.04);
  opacity:.88;
}
.google-login-mount{width:100%;margin:20px 0 14px}
.google-login-btn{
  width:100%;
  min-height:64px;
  display:grid;
  grid-template-columns:38px 1fr 18px;
  align-items:center;
  gap:12px;
  padding:11px 16px 11px 12px;
  border-radius:18px;
  border:1px solid rgba(205,211,219,.36);
  color:#f4f6f8;
  background:
    linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.014)),
    linear-gradient(145deg,#14171c,#090b0e);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 0 0 1px rgba(255,255,255,.015),
    0 16px 34px rgba(0,0,0,.32);
  text-align:left;
  -webkit-tap-highlight-color:transparent;
}
.google-login-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(225,229,234,.52);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 18px 38px rgba(0,0,0,.38);
}
.google-login-btn:active{transform:translateY(0);filter:brightness(.97)}
.google-login-btn:focus-visible{
  outline:none;
  border-color:rgba(235,238,242,.72);
  box-shadow:0 0 0 3px rgba(216,220,225,.10),0 18px 38px rgba(0,0,0,.38);
}
.google-login-btn:disabled{opacity:.55;cursor:wait;transform:none}
.google-login-mark{
  width:38px;height:38px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  color:#e9edf2;font-size:16px;font-weight:800;letter-spacing:-.03em;
  border:1px solid rgba(220,224,230,.25);
  background:linear-gradient(180deg,rgba(255,255,255,.095),rgba(255,255,255,.025));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09);
}
.google-login-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.google-login-main{font-size:14px;font-weight:760;line-height:1.1;color:#f4f6f8;letter-spacing:.005em}
.google-login-sub{font-size:10px;line-height:1.1;color:#858c96;font-weight:580;letter-spacing:.04em;text-transform:uppercase}
.google-login-arrow{font-size:24px;line-height:1;color:#828994;font-weight:300;transform:translateY(-1px)}
.loginBox p{font-size:12px;line-height:1.55;margin:0;color:#8f96a0}
.login-footer{margin-top:17px;padding-top:14px;border-top:1px solid rgba(255,255,255,.075)}
@media(max-width:560px){
  .loginGate{align-items:flex-start;padding:calc(28px + env(safe-area-inset-top)) 16px 24px}
  .loginBox{width:100%;max-width:410px;padding:22px 18px 17px;border-radius:25px}
  .loginBox h1{font-size:26px}
  .login-owner-name{font-size:11px;letter-spacing:.1em;margin:-1px 0 15px}
  .google-login-mount{margin:18px 0 13px}
  .google-login-btn{min-height:62px;border-radius:17px;padding-right:14px}
}

/* V10.18 — resumos sem Horas Extras */
.summary .metric:nth-child(3):last-child{grid-column:1 / -1}
@media(min-width:520px){.summary{grid-template-columns:repeat(3,1fr)}.summary .metric:nth-child(3):last-child{grid-column:auto}}

/* V10.19 - ajustes de resumos */
@media (max-width:519px){
  .summary .metric.metric-centered{
    grid-column:1 / -1;
    width:calc(50% - 4.5px);
    justify-self:center;
  }
}
@media (min-width:520px){
  .summary .metric.metric-centered{grid-column:auto;width:auto;justify-self:stretch}
}

/* V10.21 - textos centralizados nos cards de resumo */
.summary .metric{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.summary .metric span,
.summary .metric strong{
  width:100%;
  text-align:center;
}

/* V10.23 - jornada inteligente / encerramento com duas marcações */
.finishday{
  width:100%;
  margin-top:10px;
  min-height:45px;
  border-radius:15px;
  border:1px solid rgba(205,211,219,.28);
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.012)),#0b0d11;
  color:#c8cdd4;
  font-size:11px;
  font-weight:760;
  letter-spacing:.075em;
  text-transform:uppercase;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
}
.finishday:hover{
  border-color:rgba(225,229,234,.48);
  color:#f0f2f5;
}
.finishday:disabled{opacity:.42;cursor:default;transform:none}
.finishday[hidden]{display:none!important}

/* V10.24 - cronômetro de almoço */
.lunchtimer{
  margin-top:12px;
  padding:14px 16px 15px;
  border-radius:18px;
  border:1px solid rgba(205,211,219,.22);
  background:
    linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.012)),
    linear-gradient(145deg,#12151a,#090b0e);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 12px 28px rgba(0,0,0,.22);
  text-align:center;
}
.lunchtimer[hidden]{display:none!important}
.lunchtimer-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color:#8f97a2;
  font-size:9px;
  font-weight:760;
  letter-spacing:.13em;
}
.lunchtimer-value{
  margin:8px 0 5px;
  color:#eef1f4;
  font-size:31px;
  line-height:1;
  font-weight:790;
  letter-spacing:.035em;
  font-variant-numeric:tabular-nums;
  text-shadow:0 1px 0 rgba(255,255,255,.04);
}
.lunchtimer-note{
  color:#9299a3;
  font-size:10px;
  line-height:1.35;
}
.lunchtimer.late{
  border-color:rgba(255,116,116,.32);
  background:
    linear-gradient(180deg,rgba(255,68,68,.055),rgba(255,68,68,.012)),
    linear-gradient(145deg,#161214,#0b090b);
}
.lunchtimer.late .lunchtimer-head{color:#c98585}
.lunchtimer.late .lunchtimer-value{
  color:#ff9292;
  text-shadow:0 0 18px rgba(255,80,80,.12);
}
.lunchtimer.late .lunchtimer-note{color:#d48787}
@media(max-width:560px){
  .lunchtimer{padding:13px 14px 14px;border-radius:17px}
  .lunchtimer-value{font-size:29px}
}

/* V10.27 - navegação horizontal dos meses no Histórico */
.monthscroll{
  scroll-behavior:smooth;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x;
  cursor:grab;
}
.monthscroll:active{cursor:grabbing}
.monthscroll::before,
.monthscroll::after{
  content:"";
  flex:0 0 2px;
}
@media (min-width:700px){
  .monthscroll{
    padding-bottom:10px;
    scrollbar-width:thin;
    scrollbar-color:rgba(190,196,204,.26) transparent;
  }
  .monthscroll::-webkit-scrollbar{
    display:block;
    height:5px;
  }
  .monthscroll::-webkit-scrollbar-track{background:transparent}
  .monthscroll::-webkit-scrollbar-thumb{
    background:rgba(190,196,204,.25);
    border-radius:999px;
  }
}

/* V10.32 — aba Justificar preservada */
.justify-card{display:grid;gap:14px}.justify-intro{font-size:12px;line-height:1.55;color:var(--muted)}.justify-field{min-width:0}.justify-field label{font-size:11px;color:var(--muted);display:block;margin-bottom:6px}.justify-field label span{opacity:.8}.justify-field select,.justify-field textarea,.justify-field input[type="date"]{width:100%;max-width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--line);background:#090b0e;color:var(--text);border-radius:14px;padding:13px;outline:none;font:inherit}.justify-field input[type="date"]{display:block;height:48px;color-scheme:dark}.justify-field input[type="date"]::-webkit-date-and-time-value{min-height:100%;text-align:left}.justify-field input[type="date"]::-webkit-datetime-edit{display:flex;align-items:center;min-height:100%;padding:0}.justify-field input[type="date"]::-webkit-calendar-picker-indicator{margin-left:auto;flex:0 0 auto}.justify-field textarea{min-height:108px;resize:vertical;line-height:1.5}.justify-period{display:grid;grid-template-columns:1fr 1fr;gap:9px}.justify-warning{border:1px solid #4e4529;background:#15130d;color:#cfc3a0;border-radius:15px;padding:12px 13px;font-size:11px;line-height:1.5}.justify-warning b{color:#eee4c6}.justify-preview{border:1px solid #272c33;background:#0b0d10;border-radius:15px;padding:12px 13px;font-size:11px;line-height:1.55;color:var(--muted)}.justify-preview strong{color:var(--silver)}.justify-save{width:100%;border:0;border-radius:16px;padding:15px;background:linear-gradient(180deg,#f5f7f9,#c8cdd4);color:#090a0c;font-weight:800}.justify-save:disabled{opacity:.5;cursor:default}.justify-help{font-size:11px;line-height:1.5;color:var(--muted)}
@media(max-width:520px){.justify-period{grid-template-columns:minmax(0,1fr)}.justify-field,.justify-field input[type="date"]{width:100%;max-width:100%;min-width:0}.nav button{font-size:11px;padding-left:2px;padding-right:2px}}

/* V10.30 — correção exclusiva da aba Justificar: respeita campos ocultos */
#justifySingleWrap[hidden],
#justifyPeriodWrap[hidden]{display:none!important}

/* V10.34 — correção específica para campos de data no Safari/iPhone.
   Impede o controle nativo de ultrapassar a largura do cartão. */
@media (max-width:520px){
  .justify-card,
  .justify-period,
  .justify-field{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .justify-field{
    overflow:hidden;
    contain:inline-size;
  }
  .justify-field input[type="date"]{
    display:block;
    inline-size:100%;
    width:100%;
    max-width:100%;
    min-width:0;
    min-inline-size:0;
    height:48px;
    padding:0 13px;
    margin:0;
    border-radius:14px;
    font-size:16px;
    line-height:48px;
    -webkit-appearance:none;
    appearance:none;
    overflow:hidden;
  }
  .justify-field input[type="date"]::-webkit-date-and-time-value{
    width:100%;
    min-width:0;
    margin:0;
    padding:0;
    text-align:left;
  }
  .justify-field input[type="date"]::-webkit-datetime-edit{
    width:100%;
    min-width:0;
    padding:0;
    overflow:hidden;
  }
  .justify-field input[type="date"]::-webkit-datetime-edit-fields-wrapper{
    min-width:0;
    padding:0;
  }
}

/* Centralização e distribuição simétrica na aba Ano (resumo anual de 2 métricas) */
#annualSummary,
#annualSummary.summary,
main#appRoot section#year #annualSummary{
  display:grid;
  grid-template-columns:repeat(2,1fr)!important;
  gap:10px;
  width:100%;
  justify-content:center;
}
@media (min-width:520px){
  #annualSummary,
  #annualSummary.summary,
  main#appRoot section#year #annualSummary{
    grid-template-columns:repeat(2,1fr)!important;
    justify-content:center;
    width:100%;
  }
}
main#appRoot > section#year:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(3){
  text-align:center;
}
main#appRoot > section#year:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(3) button{
  margin-left:auto;
  margin-right:auto;
  text-align:center;
  display:inline-flex;
  justify-content:center;
  align-items:center;
}
main#appRoot > section#year:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(3) > div#annualSummary:nth-of-type(1) > div:nth-of-type(1),
main#appRoot > section#year:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(3) > div#annualSummary:nth-of-type(1) > div:nth-of-type(2),
#annualSummary .metric{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  width:100%;
  box-sizing:border-box;
}
#annualSummary .metric span,
#annualSummary .metric strong{
  text-align:center;
  width:100%;
}

main#appRoot > section#today:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(2) > div#apurationCurrentCycle:nth-of-type(2) > div:nth-of-type(4),
#apurationCurrentCycle > div:nth-of-type(4){
  display:none!important;
}

main#appRoot:nth-of-type(1) > section#today:nth-of-type(1) > div:nth-of-type(1) > div#syncNote:nth-of-type(8),
#syncNote{
  text-align:center;
  font-size:24px;
}

@keyframes liveClockPulse{
  0%, 100%{
    opacity:1;
    transform:scale(1);
    text-shadow:0 0 0px rgba(255,255,255,0);
  }
  50%{
    opacity:0.94;
    transform:scale(1.012);
    text-shadow:0 0 14px rgba(255,255,255,0.2);
  }
}

@keyframes liveDateBreath{
  0%, 100%{
    opacity:0.8;
  }
  50%{
    opacity:1;
  }
}

main#appRoot:nth-of-type(1) > section#today:nth-of-type(1) > div:nth-of-type(1) > div#clock:nth-of-type(2),
#clock{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
  animation:liveClockPulse 3.5s ease-in-out infinite;
  will-change:transform,opacity;
}

main#appRoot:nth-of-type(1) > section#today:nth-of-type(1) > div:nth-of-type(1) > div#date:nth-of-type(1),
#date{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
  animation:liveDateBreath 4.5s ease-in-out infinite;
  will-change:opacity;
}

/* Componente isolado: botão e formulário de ponto manual. */
/* Exclusivo ao formulário de registro manual; não altera botões existentes. */
.manual-punch-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  min-height:36px;
  margin:11px 0 0 auto;
  padding:8px 13px;
  border:1px solid rgba(195,204,216,.24);
  border-radius:999px;
  background:rgba(255,255,255,.055);
  color:#cbd2dc;
  font-size:12px;
  font-weight:650;
  line-height:1.2;
  letter-spacing:.01em;
  text-decoration:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.manual-punch-toggle:hover,
.manual-punch-toggle:focus-visible{
  background:rgba(255,255,255,.095);
  border-color:rgba(224,231,240,.47);
  color:#fff;
}
.manual-punch-toggle.is-open{
  border-color:rgba(224,231,240,.42);
  color:#fff;
}
.manual-punch-panel[hidden]{display:none!important}
.manual-punch-panel{
  display:grid;
  gap:11px;
  margin-top:12px;
  padding:14px;
  border:1px solid #343b46;
  border-radius:15px;
  background:#0c0e12;
  text-align:left;
}
.manual-punch-panel .manual-punch-title{font-size:12px;font-weight:750;color:#eceff3}
.manual-punch-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.manual-punch-field{display:grid;gap:6px;min-width:0}
.manual-punch-field-wide{grid-column:1 / -1}
.manual-punch-field label{font-size:11px;color:#aeb6c2}
.manual-punch-field input,.manual-punch-field select{
  display:block;
  width:100%;
  min-width:0;
  min-height:42px;
  padding:8px 10px;
  border:1px solid #3a414d;
  border-radius:10px;
  background:#171b21;
  color:#f1f3f6;
  color-scheme:dark;
  font-size:13px;
}
.manual-punch-help{margin:0;font-size:11px;line-height:1.45;color:#929ba9}
.manual-punch-submit{
  min-height:40px;
  border:1px solid #7b8797;
  border-radius:11px;
  background:#252c36;
  color:#f1f3f6;
  font-size:11px;
  font-weight:750;
  letter-spacing:.03em;
}
.manual-punch-submit:disabled{opacity:.5;cursor:default}
@media(max-width:370px){.manual-punch-fields{grid-template-columns:1fr}.manual-punch-field-wide{grid-column:auto}}

