/* Sobrescrita leve por cima do Tailwind */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; }

/* Scrollbar discreto */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: padding-box; }

/* ===== Year picker (range) ===== */
.yp-popup {
  position: fixed; z-index: 9999; display: none;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(15,23,42,.18), 0 8px 16px -8px rgba(15,23,42,.10);
  padding: 14px; width: 760px; max-width: calc(100vw - 24px);
  max-height: calc(100vh - 120px); overflow-y: auto;
  font-family: Inter, system-ui, sans-serif; color: #0f172a;
}
.yp-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.yp-spacer { flex: 1 1 auto; }
.yp-year { font-size: 17px; font-weight: 600; min-width: 60px; text-align: center; }
.yp-nav {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff;
  font-size: 18px; line-height: 1; cursor: pointer; color: #475569;
}
.yp-nav:hover { background: #f1f5f9; color: #2563eb; border-color: #cbd5e1; }
.yp-preset {
  font-size: 11px; padding: 4px 9px; border-radius: 999px; border: 1px solid #e2e8f0;
  background: #f8fafc; color: #475569; cursor: pointer;
}
.yp-preset:hover { background: #eff8ff; color: #2563eb; border-color: #bfdfff; }

.yp-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
@media (max-width: 720px) {
  .yp-grid { grid-template-columns: repeat(3, 1fr); }
  .yp-popup { width: calc(100vw - 24px); }
}
@media (max-width: 480px) {
  .yp-grid { grid-template-columns: repeat(2, 1fr); }
}

.yp-month {
  border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px;
}
.yp-month-head {
  display: block; width: 100%; text-align: center;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px; color: #334155;
  background: #f8fafc; border: 0; border-radius: 6px;
  padding: 5px 0; margin-bottom: 6px; cursor: pointer;
}
.yp-month-head:hover { background: #dbedff; color: #2563eb; }
.yp-cal {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  font-size: 10px;
}
.yp-dow {
  text-align: center; padding: 2px 0; font-weight: 600; color: #94a3b8;
}
.yp-dow.yp-weekend { color: #ef4444; }
.yp-day {
  text-align: center; padding: 3px 0; line-height: 1.2;
  border: 0; background: transparent; cursor: pointer; color: #0f172a;
  border-radius: 4px;
}
.yp-day.yp-empty { visibility: hidden; }
.yp-day.yp-weekend { color: #ef4444; }
.yp-day:hover:not(.yp-empty) { background: #eff8ff; }
.yp-day.yp-today { box-shadow: inset 0 0 0 1px #2563eb; }
.yp-day.yp-in-range { background: #dbedff; color: #1d4ed8; border-radius: 0; }
.yp-day.yp-start, .yp-day.yp-end {
  background: #2563eb; color: #fff; font-weight: 600;
}
.yp-day.yp-start { border-radius: 4px 0 0 4px; }
.yp-day.yp-end   { border-radius: 0 4px 4px 0; }
.yp-day.yp-start.yp-end { border-radius: 4px; }

.yp-footer {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #e2e8f0;
  font-size: 13px; color: #475569;
}
.yp-status strong { color: #0f172a; }
.yp-btn {
  font-size: 13px; padding: 6px 14px; border-radius: 8px; cursor: pointer; border: 1px solid transparent;
}
.yp-btn-ghost { background: transparent; color: #475569; border-color: #e2e8f0; }
.yp-btn-ghost:hover { background: #f1f5f9; color: #0f172a; }
.yp-btn-primary { background: #2563eb; color: #fff; }
.yp-btn-primary:hover { background: #1d4ed8; }
