/* critical */
.hidden{ display:none !important; }

:root{
  --bg1:#f7f9ff;
  --bg2:#eef3ff;
  --card: rgba(255,255,255,.88);
  --shadow: 0 18px 45px rgba(15,23,42,.10);
  --shadow2: 0 10px 25px rgba(15,23,42,.08);

  --text:#0f172a;
  --muted:#64748b;
  --line: rgba(15,23,42,.08);

  --blue:#2563eb;

  --green:#2fb56a;
  --orange:#e3a230;
  --grayPill:#e9edf5;

  --r: 24px;
  --r2: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 650px at 80% 10%, rgba(59,130,246,.18), transparent 55%),
    radial-gradient(950px 600px at 20% 25%, rgba(37,99,235,.12), transparent 55%),
    linear-gradient(var(--bg1), var(--bg2));
}

/* app container */
.app{
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 22px 16px 16px;
}

/* cards */
.card{
  background: var(--card);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
  border-radius: var(--r);
  backdrop-filter: blur(10px);
}

.homeView .card{ margin-bottom: 14px; }

/* topbar */
.topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.h1{
  font-size: 44px;
  letter-spacing: -0.03em;
  margin:0;
  line-height:1;
}
.subtitle{
  margin-top: 6px;
  color: var(--muted);
  font-size: 18px;
}

/* buttons */
.btn{
  border:0;
  cursor:pointer;
  font: inherit;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  user-select:none;
}
.btn--pill{
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}
.btn--ghost{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}
.btn--primary{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color:#fff;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(37,99,235,.22);
}
.btn--soft{
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.20);
  color: var(--text);
  font-weight: 900;
}

/* ===== Current week ===== */
.card--big{ padding: 18px; }

.cwLabel{
  color: var(--muted);
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 8px;
}
.cwTime{
  font-size: 74px;
  font-weight: 1000;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-top: 6px;
}
.cwPay{
  color: var(--muted);
  font-size: 28px;
  font-weight: 800;
  margin-top: 6px;
}
.cwActions{
  display:flex;
  gap: 12px;
  margin-top: 16px;
  align-items:center;
}

/* pills */
.pill{
  border:0;
  cursor:pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 1000;
  letter-spacing: .02em;
  box-shadow: 0 10px 20px rgba(15,23,42,.07);
  display:inline-flex;
  align-items:center;
  gap: 10px;
}
.pillIcon{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 1000;
}
.pill--green{
  background: linear-gradient(180deg, #39c276, #26a85f);
  color:#fff;
}
.pill--green .pillIcon{ background: rgba(255,255,255,.18); }
.pill--gray{
  background: var(--grayPill);
  border: 1px solid rgba(15,23,42,.08);
  color: var(--text);
  box-shadow: 0 8px 16px rgba(15,23,42,.05);
}
.pill--orange{
  background: linear-gradient(180deg, #f1b045, #db9631);
  color:#fff;
}
.pill--orange .pillIcon{ background: rgba(255,255,255,.18); }

.cwLine{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,23,42,.06);
  color: var(--muted);
  font-weight: 800;
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap:wrap;
}
.dot{ opacity: .6; }

.cwStatus{
  margin-top: 12px;
  background: rgba(148,163,184,.12);
  border: 1px solid rgba(148,163,184,.18);
  padding: 12px 12px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
  color: #1f2937;
}
.statusIcon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(37,99,235,.12);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: var(--blue);
}
.flex1{ flex:1; }

/* ===== Split card ===== */
.card--split{ padding: 16px; }
.split{ display:flex; gap: 14px; }
.splitLeft{ flex: 1.2; }
.splitRight{ flex: 0.8; display:flex; flex-direction:column; justify-content:flex-start; align-items:flex-start; }
.splitDivider{
  width: 1px;
  background: rgba(15,23,42,.08);
  border-radius: 10px;
}
.splitTitle, .splitTitleRight{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 1000;
  color: #1f2937;
}
.miniIcon{ opacity:.85; }

.splitMain{ margin-top: 10px; }
.splitHHMM{
  font-size: 54px;
  font-weight: 1000;
  letter-spacing: -0.04em;
  line-height: 1;
}
.splitEUR{
  margin-top: 8px;
  font-size: 24px;
  font-weight: 900;
  color: var(--muted);
}
.todayEUR{
  margin-top: 18px;
  font-size: 32px;
  font-weight: 1000;
  letter-spacing: -0.02em;
}
.splitMiniLine{
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

/* ===== List cards ===== */
.card--list, .card--reports{ padding: 16px; }
.listRowTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.listTitle{
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: -0.02em;
}
.chev{
  color: rgba(100,116,139,.9);
  font-size: 26px;
  font-weight: 1000;
}

.bhLine{
  color: var(--muted);
  font-weight: 900;
  font-size: 18px;
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 8px 0;
}
.bhDot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display:inline-block;
}
.bhDot--g{ background: #22c55e; }
.bhDot--b{ background: #3b82f6; }
.bhDot--o{ background: #fb923c; }

.reportsSub{
  color: var(--muted);
  font-weight: 800;
  font-size: 18px;
}

/* ===== Bottom nav ===== */
.bottomNav{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  width: min(520px, calc(100% - 24px));
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: var(--shadow2);
  border-radius: 26px;
  padding: 10px;
  display:flex;
  gap: 10px;
  z-index: 50;
}
.navItem{
  flex:1;
  border:0;
  background: transparent;
  cursor:pointer;
  padding: 12px 10px;
  border-radius: 18px;
  font-weight: 1000;
  color: var(--muted);
}
.navItem--active{
  background: rgba(37,99,235,.10);
  color: var(--text);
}
.safeSpace{ height: 110px; }

/* ===== Login ===== */
.loginView{
  min-height: calc(100vh - 40px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.loginCard{
  width: min(480px, 92vw);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: var(--shadow);
  border-radius: 26px;
  padding: 18px;
}

.form{ display:flex; flex-direction:column; gap: 12px; }
.row2{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field span{
  display:block;
  color: var(--muted);
  font-weight: 900;
  font-size: 14px;
  margin: 0 0 6px 2px;
}
.field input{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  padding: 12px 12px;
  font-size: 16px;
  background: rgba(255,255,255,.96);
  outline: none;
}

.remember{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
  color: var(--muted);
}

.linkBtn{
  border:0;
  background: transparent;
  cursor:pointer;
  color: var(--blue);
  font-weight: 1000;
  padding: 8px 4px;
}

.msg{
  min-height: 18px;
  font-weight: 900;
  color: #b91c1c;
}

.forgot{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,23,42,.08);
}
.forgotTitle{ font-weight: 1000; font-size: 16px; }
.forgotSub{ color: var(--muted); font-weight: 900; margin-top: 6px; font-size: 14px; }
.forgotRow{
  display:flex;
  gap: 10px;
  margin-top: 10px;
}
.forgotRow input{
  flex:1;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  padding: 10px 12px;
  font-size: 15px;
  background: rgba(255,255,255,.96);
}

.credit{
  margin-top: 14px;
  text-align:center;
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}

/* ===== Login brand centered / bigger ===== */
.loginBrand{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap: 10px;
  margin: 6px 0 10px;
}
.loginLogoBig{
  width: 74px;
  height: 74px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(15,23,42,.10);
}
.loginTitle{
  font-size: 26px;
  font-weight: 1000;
  letter-spacing: -0.02em;
}

/* Sign up line below login button */
.altAction{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 900;
}
.linkBtn--strong{
  padding: 0;
  margin: 0;
  font-size: 15px;
  text-decoration: underline;
}

/* responsive */
@media (max-width: 420px){
  .h1{ font-size: 38px; }
  .cwTime{ font-size: 62px; }
  .row2{ grid-template-columns: 1fr; }
  .split{ flex-direction:column; }
  .splitDivider{ width: 100%; height: 1px; }
}
/* ===== Current week header (label + add button) ===== */
.cwHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.btnAddWeek{
  white-space: nowrap;
  font-size: 14px;
}

/* ===== Modal ===== */
.modal{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.35);
  backdrop-filter: blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px;
  z-index: 999;
}
.modalCard{
  width: min(520px, 100%);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 45px rgba(15,23,42,.18);
  border-radius: 26px;
  padding: 16px;
}
.modalTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.modalTitle{
  font-size: 20px;
  font-weight: 1000;
}
.modalClose{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(148,163,184,.18);
  border: 1px solid rgba(15,23,42,.10);
  font-weight: 1000;
}
/* =========================
   PRINT VERSION
========================= */
@media print {

  body {
    background: #fff !important;
  }

  .topbar,
  .bottomNav,
  .btn,
  .chev {
    display: none !important;
  }

  .card,
  .card--big {
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .app {
    padding: 0 !important;
  }

  .printOnly {
    display: block !important;
  }
  /* ===== Mobile adjustments ===== */
@media (max-width: 480px) {

  .totalsBox{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .totalsBox .big{
    font-size: 32px;   /* antes ~44px */
  }

  .totalsBox .pay{
    font-size: 28px;   /* antes ~36px */
    text-align: left;
  }

  .totalsBox .label{
    font-size: 13px;
  }
}

}
.introScreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.introScreen video {
  max-width: 100%;
  max-height: 100%;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modalCard {
  background: white;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  padding: 20px;
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modalSection {
  margin-top: 16px;
  font-size: 14px;
}

.modalSection.highlight {
  background: #f1f5ff;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
}

.modal button {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}
.rosterPreview{
  margin-top:12px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
  border-radius:18px;
  padding:12px;
}
.rpHead{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.rpTitle{ font-weight:1000; }
.rpTotals{ color: var(--muted); font-weight:1000; font-size:13px; }

.rpList{ margin-top:10px; display:flex; flex-direction:column; gap:8px; max-height:160px; overflow:auto; }
.rpRow{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px; border-radius:14px;
  border:1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.75);
  font-weight:900;
}
.rpRow .left{ display:flex; flex-direction:column; gap:2px; }
.rpRow .d1{ font-weight:1000; }
.rpRow .d2{ font-size:12px; color:var(--muted); font-weight:1000; }
.rpRow .right{ font-weight:1000; }
.todayBox{
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .06);
  min-width: 220px;
}

.todayTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}

.todayTitle{
  font-weight: 900;
  color: var(--text, #0f172a);
  letter-spacing: .2px;
}

.todayPill{
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,.12);
  color: rgba(22,163,74,1);
  border: 1px solid rgba(34,197,94,.18);
}

.todayVals{
  display:flex;
  align-items:center;
  gap:12px;
}

.todayLabel{
  font-size: 12px;
  font-weight: 800;
  opacity: .6;
  margin-bottom: 2px;
}

.todayValue{
  font-size: 20px;
  font-weight: 1000;
  line-height: 1.1;
}

.todayDivider{
  width: 1px;
  height: 34px;
  background: rgba(15,23,42,.12);
  border-radius: 2px;
}
/* =========================
   Current Week Card Layout (Fix UX)
========================= */
.cwCard { overflow: hidden; }

.cwTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.teCard{
  flex:1;
  max-width: 320px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(2,6,23,.08);
  backdrop-filter: blur(8px);
}

.teHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}

.teTitle{
  font-weight: 800;
  color: var(--text, #0f172a);
}

.teLive{
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  color: rgba(22,163,74,1);
}

.teGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.teLabel{
  font-size: 12px;
  color: rgba(100,116,139,1);
  font-weight: 700;
}

.teValue{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2px;
}

.cwMain{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.cwMeta{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.cwMetaLabel{
  font-size: 12px;
  color: rgba(100,116,139,1);
  font-weight: 800;
}

.cwMetaNo{
  font-size: 14px;
  font-weight: 900;
  color: rgba(15,23,42,.85);
}

.cwNumbers{
  display:flex;
  align-items:baseline;
  gap: 14px;
}

.cwTime{
  font-size: 64px;
  line-height: 1;
  font-weight: 950;
}

.cwPay{
  font-size: 22px;
  font-weight: 900;
  color: rgba(15,23,42,.6);
}

.cwActions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* prevent buttons from pushing layout sideways */
.pill{ white-space: nowrap; }

.cwTop--full { display:block; }
.teCard--full { width:100%; }

.teGrid--2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.teLive--neutral{
  background: rgba(148,163,184,.18);
  border: 1px solid rgba(148,163,184,.25);
  color: #334155;
}
/* =========================
   Dashboard full-width cards
========================= */

/* garante que o container do topo use tudo */
.cwTop,
.cwTop--full {
  width: 100%;
  display: block;
}

/* força o card branco interno a esticar */
.teCard,
.teCard--full {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* garante que o grid interno não limite */
.teGrid,
.teGrid--2 {
  width: 100%;
}

/* remove qualquer limite herdado */
.card.cwCard {
  overflow: hidden;
}
/* Top profile avatar button */
.topAvatarBtn{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  cursor:pointer;
  box-shadow: 0 10px 25px rgba(2,6,23,.08);
  transition: transform .08s ease, background .12s ease;
}

.topAvatarBtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.78);
}

.topAvatarImg{
  width:38px;
  height:38px;
  border-radius:999px;
  object-fit:cover;
  display:block;
}
/* Top profile avatar (Home) */
#btnProfileAvatar{
  width: 60px;
  height: 60px;
  border-radius: 999px;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 22px rgba(2,6,23,.18);
}

#topAvatarImg{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
#btnProfileAvatar{
  border: 2px solid rgba(37,99,235,.35);
}

#btnSaveCapture{
  background: linear-gradient(180deg, var(--blue), var(--blue2)) !important;
  color: #fff !important;
  border: 1px solid rgba(37,99,235,.35) !important;
  box-shadow: 0 16px 35px rgba(37,99,235,.25) !important;
}
#btnSaveCapture{
  font-size: 15px;
  padding: 12px 18px;
}
button[id^="btnSave"]{
  background: linear-gradient(180deg, var(--blue), var(--blue2));
  color:#fff;
}

button[id^="btnSavePhoto"]{
  background: linear-gradient(180deg, var(--blue), var(--blue2));
  color:#fff;
}

/* =========================
   Custom Modal (Yes/No)
========================= */
.whModalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.whModal {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(2, 6, 23, 0.35);
  overflow: hidden;
}

.whModalHeader {
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.whModalIcon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.20);
  font-size: 18px;
}

.whModalTitle {
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
  line-height: 1.2;
}

.whModalBody {
  padding: 0 16px 14px;
  color: #334155;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.whModalFooter {
  padding: 12px 16px 16px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}


.whBtn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform .08s ease, opacity .08s ease;
}

.whBtn:active { transform: scale(0.98); }

.whBtnGhost {
  background: rgba(241, 245, 249, 0.9);
  color: #0f172a;
}

.whBtnPrimary {
  background: #2563eb;
  border-color: rgba(37, 99, 235, 0.55);
  color: #fff;
}

.whModalHint {
  padding: 0 16px 14px;
  font-size: 12px;
  color: #64748b;
}
.btnRed{
  background:#ef4444;
  color:#fff;
  border:1px solid #ef4444;
}
.btnRed:hover{ filter:brightness(0.95); }


/* Header mais clean (sem barra feia) */
.modal .mHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:16px 16px 10px 16px;
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.modal .mTitle{
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
}

.modal .mSub{
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted2, rgba(15,23,42,.55));
}

.modal .mHint{
  font-weight: 700;
  color: var(--muted2, rgba(15,23,42,.55));
  margin-top: 6px;
}


.btnx{
  height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 13px;
}

.modal{
  display: flex;
  flex-direction: column;
  width: min(420px, 92vw);
  background: var(--card, #fff);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}
.modal .mFoot{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px 16px 16px;
  border-top: 1px solid rgba(15,23,42,.06);
}

.is-today{
  background: rgba(59,130,246,.14);
  border: 1px solid rgba(59,130,246,.45) !important;
}

.today-pill{
  display:inline-block;
  margin-left:8px;
  padding:2px 8px;
  font-size:12px;
  border-radius:999px;
  background: rgba(59,130,246,.18);
  border:1px solid rgba(59,130,246,.35);
}

.btn--danger{
  background: rgba(239,68,68,1) !important;
  color:#fff !important;
  border: 1px solid rgba(239,68,68,.45) !important;
}

.btn--danger:hover{
  filter: brightness(1.05);
}

.btn--danger:active{
  transform: translateY(1px);
}

.btn--danger:disabled{
  opacity:.6;
  cursor:not-allowed;
}
/* ===== Mobile header fix (Bank Holidays + others) ===== */
.pageHeader,
.topHeader,
.headerBar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

/* bloco do título pode encolher sem estourar */
.pageHeader .titleBlock,
.topHeader .titleBlock,
.headerBar .titleBlock {
  min-width: 0;
}

/* bloco de botões / ações pode quebrar linha */
.pageHeader .headerActions,
.topHeader .headerActions,
.headerBar .headerActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 420px) {
  .pageHeader,
  .topHeader,
  .headerBar {
    flex-wrap: wrap;          /* 🔥 isso evita “sair da tela” */
    padding-right: 14px;
    padding-left: 14px;
  }

  /* força as ações irem pra 2ª linha se precisar */
  .pageHeader .headerActions,
  .topHeader .headerActions,
  .headerBar .headerActions {
    width: 100%;
    justify-content: flex-end;
  }

  /* título menor no mobile */
  .pageHeader h1,
  .topHeader h1,
  .headerBar h1 {
    font-size: 34px;
    line-height: 1.05;
    margin: 0;
  }

  /* botões menores no topo */
  .pageHeader .headerActions .btn,
  .topHeader .headerActions .btn,
  .headerBar .headerActions .btn {
    padding: 10px 14px;
    border-radius: 16px;
  }
}
/* Top actions layout */
.actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.navWrap{
  display:flex;
  gap:10px;
  align-items:center;
}

.yearWrap{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

/* MOBILE: stack actions, year below buttons */
@media (max-width: 480px){
  .top{
    align-items:flex-start;
  }

  .actions{
    flex-direction:column;
    align-items:flex-end;
    gap:8px;
  }

  .navWrap{ order:1; }
  .yearWrap{ order:2; }

  /* opcional: deixa o select menos “gordo” no mobile */
  .yearSel{ padding: 8px 12px; }
}
/* Today Earnings LIVE - strong glow pulse */
#todayEarnCard{
  position: relative;
}

#todayEarnCard.is-live{
  animation: teGlowPulse 1.15s ease-in-out infinite;
  outline: 2px solid rgba(34,197,94,.55);
  outline-offset: 0px;
}

@keyframes teGlowPulse{
  0%{
    box-shadow:
      0 10px 30px rgba(2,6,23,.08),
      0 0 0 0 rgba(34,197,94,.45),
      0 0 0 6px rgba(34,197,94,.10);
    outline-color: rgba(34,197,94,.55);
  }
  50%{
    box-shadow:
      0 10px 30px rgba(2,6,23,.08),
      0 0 0 3px rgba(34,197,94,.22),
      0 0 0 14px rgba(34,197,94,.00);
    outline-color: rgba(34,197,94,.25);
  }
  100%{
    box-shadow:
      0 10px 30px rgba(2,6,23,.08),
      0 0 0 0 rgba(34,197,94,.45),
      0 0 0 6px rgba(34,197,94,.10);
    outline-color: rgba(34,197,94,.55);
  }
}

/* acessibilidade */
@media (prefers-reduced-motion: reduce){
  #todayEarnCard.is-live{ animation: none; }
}

/* ===== Holidays - Summary + Tabs + Single Status Button ===== */

.summaryPills{
  display:flex;
  gap:12px;
  padding:14px;
  margin:10px 0 12px;
  background: rgba(255,255,255,.6);
  border:1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(2,6,23,.08);
}

.sumPill{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.7);
  font-weight:800;
}

.sumPill .dot{
  width:26px;
  height:26px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-weight:900;
}



.pillPaid{ background: rgba(16,185,129,.12); }
.pillPaid .dot{ background: rgba(16,185,129,.18); }

.pillNotPaid{ background: rgba(239,68,68,.12); }
.pillNotPaid .dot{ background: rgba(239,68,68,.18); }

.pillNA{ background: rgba(100,116,139,.10); }
.pillNA .dot{ background: rgba(100,116,139,.18); }

.segTabs{
  display:flex;
  gap:10px;
  padding:10px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border:1px solid rgba(15,23,42,.08);
  margin-bottom: 14px;
}

.segBtn{
  flex:1;
  padding:12px 12px;
  border-radius: 999px;
  border:1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.65);
  font-weight: 900;
}

.segBtn--active{
  background: rgba(59,130,246,.14);
  border-color: rgba(59,130,246,.22);
}

.holidayList{ display:flex; flex-direction:column; gap:14px; }

.holidayCard{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 16px;
  border-radius: 22px;
  border:1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 30px rgba(2,6,23,.08);
}

.holidayCard h3{ margin:0; font-size: 20px; }
.holidayCard .date{ margin-top:6px; color: rgba(15,23,42,.6); font-weight:700; }

.statusBtn{
  min-width: 160px;
  padding:12px 14px;
  border-radius: 999px;
  border:1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.7);
  font-weight: 950;
  letter-spacing:.02em;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.statusBtn::after{
  content:"›";
  font-size:22px;
  opacity:.7;
}

.status--paid{ background: rgba(16,185,129,.22); border-color: rgba(16,185,129,.26); }
.status--notpaid{ background: rgba(239,68,68,.22); border-color: rgba(239,68,68,.26); }
.status--na{ background: rgba(100,116,139,.14); border-color: rgba(100,116,139,.18); }

#cardCurrentWeek { cursor: pointer; }
#cardCurrentWeek:active { transform: translateY(1px); }

#cardCurrentWeek{
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  z-index: 2;
}


/* ===== FIX: Create Week button blue ===== */
.pill.pill--blue{
  background: #2563eb !important;
  color: #ffffff !important;
  border: 1px solid rgba(37,99,235,.45) !important;
}

.pill.pill--blue:hover{
  filter: brightness(.95);
}

.pill.pill--blue:active{
  transform: translateY(1px);
}
#rpList .rpRow.is-picked{
  background: #cfe1ff !important;
  border: 2px solid #2563eb !important;
  box-shadow: 0 18px 40px rgba(37,99,235,.35) !important;
  transform: scale(1.01);
  transition: all .18s ease;
}

#rpList .rpRow.is-picked::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:8px;
  background:#1d4ed8;
}

#rpList .rpRow.is-latest{
  background: #bcd4ff !important;
  border-color: #1e40af !important;
  box-shadow: 0 22px 50px rgba(37,99,235,.45) !important;
}
.shiftOption--active{
  background: #2563eb !important;
  color: #fff !important;
  border: 2px solid #1e40af !important;
  box-shadow: 0 12px 30px rgba(37,99,235,.35);
}
#rpList .rpRow.is-picked{
  background: #2563eb !important;
  color: #fff !important;
  border: 2px solid #1e40af !important;
  box-shadow: 0 18px 40px rgba(37,99,235,.45) !important;
  transform: scale(1.01);
  transition: all .2s ease;
}

#rpList .rpRow.is-picked .d2{
  color: rgba(255,255,255,.85);
}

#rpList .rpRow.is-picked::before{
  display:none;
}
.shiftOption--active{
  background:#2563eb !important;
  color:#fff !important;
  border:2px solid #1e40af !important;
  box-shadow:0 14px 35px rgba(37,99,235,.35);
}

#rpList .rpRow.is-picked{
  background:#2563eb !important;
  color:#fff !important;
  border:2px solid #1e40af !important;
  box-shadow:0 18px 40px rgba(37,99,235,.45);
}

#rpList .rpRow.is-picked .d2{
  color:rgba(255,255,255,.85);
}
