/* Custom bits Tailwind utilities can't express, plus a few ID-scoped dialog rules
   that must outrank Tailwind's runtime-injected preflight reset. */

/* Force display:none to win regardless of any co-present `flex`/`grid` utility. */
.hidden {
  display: none !important;
}

/* ---- Dialogs (class-scoped so preflight can't strip the padding) ---- */
.dlg {
  border: 1px solid #2a3355;
  border-radius: 16px;
  background: #151b30;
  color: #e6e9f5;
  width: 92%;
  max-width: 24rem;
  padding: 20px;
}
.dlg::backdrop {
  background: rgba(3, 6, 16, 0.6);
}
.dlg h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
}
.dlg label {
  display: block;
  margin: 10px 0;
  font-size: 0.85rem;
  color: #98a2c8;
}
.dlg label.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dlg input,
.dlg select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid #2a3355;
  background: #0b1020;
  color: #e6e9f5;
  font-size: 1rem;
}
.dlg label.row input {
  width: auto;
  margin-top: 0;
}
.dlg .two {
  display: flex;
  gap: 10px;
}
.dlg .two label {
  flex: 1;
}
.dlg menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
}
.dlg menu button {
  padding: 9px 16px;
  border-radius: 9px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: #2a3355;
  color: #e6e9f5;
}
.dlg menu button[value="save"] {
  background: #3b82f6;
  color: #fff;
}

/* Reminder status badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge.ok {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.badge.due_soon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.badge.overdue {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ---- Report timeframe pills ---- */
.range-pill {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #2a3355;
  background: #151b30;
  color: #98a2c8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.range-pill.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

/* ---- Toast ---- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: #2a3355;
  color: #e6e9f5;
  padding: 10px 16px;
  border-radius: 10px;
  max-width: 90%;
  text-align: center;
  z-index: 50;
}
