:root {
  /* Palette matched to IOPManager (which uses the chabadrehab.com brand). */
  --teal:        #526E7B;   /* primary — slate-teal of the lettering */
  --teal-dim:    #3d5460;   /* hover / pressed / nav background */
  --teal-deep:   #3d5460;   /* topbar */
  --gold:        #c99f5b;   /* warm gold accent (logo flame, CTAs) */
  --gold-dim:    #a8843b;

  --blue:      var(--teal);     /* legacy alias used by primary buttons */
  --blue-dim:  var(--teal-dim);

  --bg:        #f0f4f6;   /* cool light gray page bg */
  --surface:   #ffffff;   /* white cards */
  --surface-2: #f8fafc;   /* alt surface for form fields */
  --surface-3: #edf2f4;   /* table headers / hover */
  --text:      #3a4a52;
  --text-dim:  #7a8f99;
  --mid:       #94a3b1;
  --border:    #dce5e9;
  --border-hi: #b8c5cb;
  --green:     #16a34a;
  --amber:     #c99f5b;
  --red:       #dc2626;
  --radius:    8px;
  --shadow:    0 1px 0 rgba(0,0,0,0.02), 0 2px 8px rgba(61,84,96,0.07);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Hind Vadodara', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(74,94,114,0.4); }
a:hover { color: var(--teal-dim); text-decoration-color: var(--teal-dim); }

h1, h2, h3 { margin: 0 0 12px; font-weight: 600; }
h2 { font-size: 18px; }
h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }

label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }

input[type="text"],
input[type="number"],
input[type="time"],
input[type="date"],
select {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 4px;
  font-size: 14px;
  font-family: inherit;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--blue);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px))
           calc(24px + env(safe-area-inset-right, 0px))
           14px
           calc(24px + env(safe-area-inset-left, 0px));
  background: var(--teal-deep);
  border-bottom: 1px solid rgba(0,0,0,0.15);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}
.topbar .brand-name { color: white; font-weight: 600; }

.user-menu { display: flex; align-items: center; gap: 8px; }
.user-email { color: rgba(255,255,255,0.78); font-size: 13px; }
.user-menu .btn.ghost { color: rgba(255,255,255,0.85); }
.user-menu .btn.ghost:hover { background: rgba(255,255,255,0.12); color: white; }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--bg);
}
.login-card { width: 100%; max-width: 380px; padding: 28px; }
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.login-brand h1 { margin: 0; font-size: 20px; }
.login-form label { display: block; margin-bottom: 12px; }
.login-error {
  background: rgba(248, 113, 113, 0.12);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.3);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  margin: 6px 0 12px;
}
.login-submit { width: 100%; margin-top: 6px; padding: 10px; }
.login-hint { text-align: center; margin-top: 18px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px;
  background: white;
  border-radius: 8px;
  object-fit: contain;
  padding: 3px;
  display: block;
}
.login-brand .brand-mark { width: 52px; height: 52px; padding: 4px; border-radius: 10px; }
.brand-name { font-weight: 600; }

.tabs { display: flex; gap: 4px; }
.tab {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.75);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}
.tab:hover { color: white; background: rgba(255,255,255,0.10); }
.tab.active { color: var(--teal-deep); background: white; border-color: white; font-weight: 500; }

main {
  max-width: 880px;
  margin: 24px auto;
  padding: 0 16px 80px;
}

.view { display: flex; flex-direction: column; gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card.danger { border-color: rgba(248, 113, 113, 0.4); }

.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.row.gap { gap: 10px; }
.grow { flex: 1; }

.btn {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--surface-3); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: white; }
.btn.primary:hover { background: var(--blue-dim); border-color: var(--blue-dim); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn.danger:hover { background: rgba(248, 113, 113, 0.1); }
.btn.small { padding: 4px 10px; font-size: 13px; }

.import-btn { display: inline-flex; align-items: center; }

.muted { color: var(--text-dim); }
.small { font-size: 12px; }

.day-meta { color: var(--text-dim); font-size: 13px; margin-top: 8px; text-align: center; }

select.date-picker {
  width: auto;
  min-width: 180px;
  margin: 0;
  text-align: center;
  text-align-last: center;
  font-weight: 500;
  font-size: 15px;
}

.punches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.punch-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.punch-time { font-variant-numeric: tabular-nums; font-weight: 500; }
.punch-shift {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface-3);
  padding: 2px 8px;
  border-radius: 4px;
}
.punch-hours { color: var(--text-dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.punch-notes { font-size: 12px; color: var(--text-dim); margin-top: 4px; grid-column: 2 / -1; }
.punch-actions { display: flex; gap: 4px; }
.icon-btn {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; padding: 4px 6px; border-radius: 4px;
  font-size: 12px;
}
.icon-btn:hover { color: var(--text); background: var(--surface-3); }
.icon-btn.danger:hover { color: var(--red); }
.icon-btn.primary-text { color: var(--blue); }
.icon-btn.primary-text:hover { color: var(--text); background: rgba(79, 126, 248, 0.15); }

.open-tag {
  background: rgba(251, 191, 36, 0.15);
  color: var(--amber);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
}

.empty-state { color: var(--text-dim); font-size: 13px; text-align: center; padding: 16px; }

.punch-form { padding-top: 14px; border-top: 1px solid var(--border); }

.totals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.totals .stat-label { font-size: 11px; text-transform: uppercase; color: var(--text-dim); letter-spacing: 0.06em; }
.totals .stat-value { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px; }

.period-label { margin: 0; font-size: 18px; font-weight: 600; color: var(--teal); }

.period-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}
.period-summary .stat-label { font-size: 11px; text-transform: uppercase; color: var(--text-dim); letter-spacing: 0.06em; }
.period-summary .stat-value { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 6px; line-height: 1.1; }
.period-summary .stat-pay .stat-value { color: var(--green); }

.breakdown { display: flex; flex-direction: column; gap: 18px; }

.workweek-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.workweek-group.seventh { border-left: 4px solid var(--gold); }

.workweek-header {
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.workweek-header-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.workweek-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.workweek-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: baseline;
}
.workweek-stat { display: inline-flex; gap: 6px; align-items: baseline; }
.workweek-stat .num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
}
.workweek-stat .lbl { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }

.workweek-tag {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-dim);
  background: rgba(201, 159, 91, 0.15);
  border: 1px solid rgba(201, 159, 91, 0.4);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.workweek-days {
  display: flex;
  flex-direction: column;
}

.ytd-months { display: flex; flex-direction: column; gap: 8px; }
.ytd-month-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-wrap: wrap;
}
.ytd-month-name {
  font-weight: 600;
  color: var(--teal);
  font-size: 14px;
  min-width: 90px;
}
.ytd-month-stats { display: flex; flex-wrap: wrap; gap: 18px; align-items: baseline; }

/* ---------- Paystubs ---------- */
.paystub-card { display: flex; flex-direction: column; gap: 14px; }
.paystub-actions { display: flex; gap: 4px; flex-shrink: 0; }
.paystub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.paystub-period { font-weight: 600; color: var(--teal); font-size: 15px; }
.paystub-meta { color: var(--text-dim); font-size: 12px; margin-top: 2px; }
.paystub-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--surface-3);
  color: var(--text);
  margin-right: 6px;
}
.paystub-tag-pdf { background: rgba(82,110,123,0.12); color: var(--teal); }

.diff-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.diff-table th, .diff-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}
.diff-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.diff-table td.num, .diff-table th.num { text-align: right; }
.diff-totals-row td { font-weight: 600; border-top: 2px solid var(--border-hi); }
.diff-zero { color: var(--text-dim); }
.diff-short { color: var(--red); font-weight: 600; }   /* paystub paid less than app */
.diff-over  { color: var(--green); font-weight: 600; } /* paystub paid more than app */

.obscure-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  margin: 0;
}
.obscure-toggle input { margin: 0; width: auto; }

.batch-progress {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}

.paystub-warning {
  background: rgba(201,159,91,0.12);
  border: 1px solid rgba(201,159,91,0.4);
  color: var(--gold-dim);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.breakdown-day {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}
.breakdown-day:last-child { border-bottom: none; }
.breakdown-day-header {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 12px;
  padding: 12px 20px;
  align-items: center;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background 0.12s;
}
.breakdown-day-header:hover { background: var(--surface-2); }
.breakdown-day-header .day-name { font-weight: 500; color: var(--text); }
.breakdown-day-header .col {
  color: var(--text-dim);
  font-size: 13px;
  min-width: 64px;
  text-align: right;
}
.breakdown-day-header .col.col-total {
  color: var(--text);
  font-weight: 500;
}
.breakdown-day-header .day-name { font-weight: 500; color: var(--text); }
.breakdown-day-header .col { color: var(--text-dim); font-size: 13px; min-width: 64px; text-align: right; }
.breakdown-day-header .col.amber { color: var(--amber); }
.breakdown-day-header .col.red { color: var(--red); }
.breakdown-day-detail {
  padding: 14px 20px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-dim);
}
.breakdown-day-detail ul { margin: 4px 0; padding-left: 18px; }
.breakdown-day-detail li { margin: 2px 0; }
.breakdown-day-detail .punch-line { font-variant-numeric: tabular-nums; }

.invite-list { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  flex-wrap: wrap;
}
.invite-code {
  font-family: ui-monospace, monospace;
  font-weight: 600;
  background: var(--surface-3);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text);
  user-select: all;
}
.invite-meta { color: var(--text-dim); font-size: 12px; }
.invite-status-used { color: var(--green); font-weight: 500; }
.invite-status-pending { color: var(--amber); font-weight: 500; }

.shift-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.shift-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-3);
  border: 1px solid var(--border-hi);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 100;
  font-size: 14px;
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .topbar {
    padding: calc(10px + env(safe-area-inset-top, 0px))
             calc(10px + env(safe-area-inset-right, 0px))
             10px
             calc(10px + env(safe-area-inset-left, 0px));
    gap: 6px;
  }
  .brand-name { display: none; }
  .topbar .user-email { display: none; }
  .topbar .user-menu .btn { padding: 6px 10px; font-size: 13px; }
  .tabs { gap: 2px; }
  .tab { padding: 8px 10px; font-size: 14px; }
  main { padding: 0 10px 80px; margin: 12px auto; }
  .card { padding: 14px; }
  .totals { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .totals .stat-value { font-size: 20px; }
  .period-summary { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .period-summary .stat-value { font-size: 20px; }
  .breakdown-day-header { grid-template-columns: 1fr auto; gap: 6px; padding: 10px 12px; }
  .breakdown-day-header .col:not(.col-total) { display: none; }
  .punch-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 10px;
  }
  .punch-row .punch-time { grid-column: 1 / -1; font-size: 16px; }
  .punch-row .punch-shift { grid-column: 1; }
  .punch-row .punch-hours { grid-column: 2; text-align: right; }
  .punch-row .punch-actions { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; }
  .punch-row .punch-notes { grid-column: 1 / -1; }
  .row.between { flex-wrap: wrap; gap: 8px; }
  .punch-form .row.gap { flex-wrap: wrap; }
  .punch-form .row.gap label { flex: 1 1 45%; min-width: 0; }
  /* Bigger tap targets */
  .btn, .icon-btn, .tab { min-height: 36px; }
  input[type="time"], input[type="date"], input[type="number"], input[type="text"], select {
    font-size: 16px; /* prevent iOS auto-zoom */
    padding: 10px;
  }
}

/* ---------- PDF report ---------- */
@media screen {
  #print-area:not([hidden]) {
    position: fixed;
    inset: 0;
    background: #ffffff;
    color: #111;
    z-index: 1000;
    overflow: auto;
    padding:
      calc(16px + env(safe-area-inset-top, 0px))
      calc(16px + env(safe-area-inset-right, 0px))
      calc(16px + env(safe-area-inset-bottom, 0px))
      calc(16px + env(safe-area-inset-left, 0px));
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
  #print-area .print-toolbar {
    position: sticky;
    top: calc(-16px - env(safe-area-inset-top, 0px));
    background: white;
    padding: 10px 0;
    margin: 0 0 12px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
  }
  #print-area .report { color: #111; max-width: 900px; margin: 0 auto; }
  #print-area .report h1 { font-size: 22px; margin: 0 0 4px; color: #000; }
  #print-area .report h2 { font-size: 14px; margin: 18px 0 6px; border-bottom: 1px solid #999; padding-bottom: 4px; color: #000; text-transform: none; letter-spacing: 0; font-weight: 600; }
  #print-area .report h3.report-week-title { font-size: 13px; margin: 12px 0 4px; color: #333; font-weight: 600; text-transform: none; letter-spacing: 0; }
  #print-area .report-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #000; gap: 12px; flex-wrap: wrap; }
  #print-area .report-name { font-size: 16px; font-weight: 600; }
  #print-area .report-sub { color: #555; font-size: 13px; }
  #print-area .report-meta { text-align: right; font-size: 12px; color: #333; line-height: 1.5; }
  #print-area .report-meta strong { color: #000; }
  #print-area .report-generated { color: #777; font-size: 11px; margin-top: 4px; }
  #print-area .report-summary { width: 100%; border-collapse: collapse; margin: 6px 0 0; }
  #print-area .report-summary th { background: #f3f3f3; border: 1px solid #ccc; padding: 6px 8px; text-align: left; font-size: 12px; }
  #print-area .report-summary td { border: 1px solid #ccc; padding: 6px 8px; font-size: 13px; }
  #print-area .report-summary tr.report-paybreak td { background: #fafafa; font-size: 12px; color: #444; }
  #print-area .report-days { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
  #print-area .report-days th, #print-area .report-days td { border: 1px solid #ddd; padding: 5px 7px; vertical-align: top; font-size: 12px; }
  #print-area .report-days th { background: #f7f7f7; text-align: left; font-weight: 600; }
  #print-area .report-days td.num, #print-area .report-days th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  #print-area .report-days td.col-date { white-space: nowrap; font-weight: 500; }
  #print-area .report-tag { background: #fde68a; color: #6b4f00; padding: 1px 6px; border-radius: 3px; font-size: 10px; margin-left: 4px; }
  #print-area .report-notes { color: #666; font-size: 11px; margin-top: 3px; font-style: italic; }
  #print-area .report-days tfoot td { background: #f3f3f3; font-weight: 600; }
  #print-area .report-week-total { text-align: right; }
  #print-area .report-empty { color: #666; font-style: italic; }
  #print-area .report-footer { margin-top: 16px; padding-top: 8px; border-top: 1px solid #ccc; color: #666; font-size: 11px; }
  #print-area .diff-short { color: #b91c1c; font-weight: 600; }
  #print-area .diff-over  { color: #15803d; font-weight: 600; }
}

@media print {
  html, body {
    background: white !important;
    color: black !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
  body > *:not(#print-area) { display: none !important; }
  #print-area, #print-area:not([hidden]) {
    display: block !important;
    position: static !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    overflow: visible !important;
    background: white !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: auto !important;
  }
  #print-area .print-toolbar, .no-print { display: none !important; }
  .report { color: #111; font-size: 9pt; }
  .report h1 { font-size: 16pt; margin: 0 0 3pt; color: #000; }
  .report h2 { font-size: 11pt; margin: 12pt 0 4pt; border-bottom: 1px solid #999; padding-bottom: 3pt; color: #000; }
  .report h3.report-week-title { font-size: 9pt; margin: 8pt 0 3pt; color: #333; font-weight: 600; }
  .report-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10pt; padding-bottom: 6pt; border-bottom: 2px solid #000; }
  .report-name { font-size: 11pt; font-weight: 600; }
  .report-sub { color: #555; font-size: 9pt; }
  .report-meta { text-align: right; font-size: 8.5pt; color: #333; line-height: 1.4; }
  .report-meta strong { color: #000; }
  .report-generated { color: #777; font-size: 8pt; margin-top: 3pt; }
  .report-summary { width: 100%; border-collapse: collapse; margin: 4pt 0 0; }
  .report-summary th { background: #f3f3f3; border: 1px solid #ccc; padding: 4pt 6pt; text-align: left; font-size: 8.5pt; }
  .report-summary td { border: 1px solid #ccc; padding: 4pt 6pt; font-size: 9pt; }
  .report-summary tr.report-paybreak td { background: #fafafa; font-size: 8.5pt; color: #444; }
  .report-days { width: 100%; border-collapse: collapse; margin-bottom: 4pt; }
  .report-days th, .report-days td { border: 1px solid #ddd; padding: 3pt 5pt; vertical-align: top; font-size: 8.5pt; }
  .report-days th { background: #f7f7f7; text-align: left; font-weight: 600; }
  .report-days td.num, .report-days th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .report-days td.col-date { white-space: nowrap; font-weight: 500; }
  .report-tag { background: #fde68a; color: #6b4f00; padding: 0 4px; border-radius: 2px; font-size: 7pt; margin-left: 3px; }
  .report-notes { color: #666; font-size: 7.5pt; margin-top: 2pt; font-style: italic; }
  .report-days tfoot td { background: #f3f3f3; font-weight: 600; }
  .report-week-total { text-align: right; }
  .report-empty { color: #666; font-style: italic; }
  .report-footer { margin-top: 12pt; padding-top: 6pt; border-top: 1px solid #ccc; color: #666; font-size: 7.5pt; }
  .report-days tbody tr { page-break-inside: avoid; break-inside: avoid; }
  .report-summary tr { page-break-inside: avoid; break-inside: avoid; }
  .report-week-block { break-inside: avoid; page-break-inside: avoid; }
  .report-week-title { break-after: avoid; page-break-after: avoid; }
  .diff-short { color: #b91c1c; font-weight: 600; }
  .diff-over  { color: #15803d; font-weight: 600; }
  /* Tighter table for the wide YTD discrepancy report (13 columns). */
  .report-days.report-days-tight { table-layout: auto; }
  .report-days.report-days-tight th,
  .report-days.report-days-tight td { font-size: 7pt; padding: 2pt 3pt; }
  .report-days.report-days-tight td.col-date { font-size: 7.5pt; }
  @page { size: letter portrait; margin: 0.4in; }
  /* Force landscape for any report that opts in via .report-wide. */
  @page landscape { size: letter landscape; margin: 0.4in; }
  .report.report-wide { page: landscape; }
}
