/* Promemoria (js/health.js): orario «dalle», promemoria personali, notifiche */

/* automatici: nome con sotto l'orario, interruttore a destra */
.rem-row { cursor: default; }
.rem-row .pr-t { gap: 3px; }
.rem-row .sw { flex: none; min-height: 0; margin-left: auto; }
.rem-row.is-off .pr-t b { color: var(--muted); }
.rem-row.is-off .pr-ic { opacity: .5; }
.rem-my .pr-t b { overflow-wrap: anywhere; }

/* «dalle 07:30» e la × che lo toglie (tutto il giorno) */
.rem-at { display: inline-flex; align-items: center; gap: 2px; align-self: flex-start; max-width: 100%; }
.rem-at label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.rem-at input {
  min-width: 92px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: 600 14px/30px var(--f-body); font-variant-numeric: tabular-nums;
  -webkit-appearance: none; appearance: none;
}
.rem-at input::-webkit-date-and-time-value { text-align: left; }
.rem-at input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.rem-at input:disabled { opacity: .5; cursor: default; }
.rem-at-x { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.rem-at-x svg { width: 13px; height: 13px; }
.rem-at-x:hover { color: var(--ink); }

/* un promemoria personale: cosa, da che ora, in che giorni */
.rem-in {
  width: 100%; max-width: 560px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 15px;
}
.rem-in:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.rem-ed .rem-at label { font-size: 14px; }
.rem-ed .rem-at input { min-width: 112px; height: 40px; line-height: 38px; background: var(--surface-2); }
.rem-ed .rem-at-x { width: 40px; height: 40px; }
.rem-days { margin-top: 12px; }
.rem-days .chip { min-height: 40px; }
.rem-sum { margin: 8px 0 0; }
.rem-note { margin: 8px 0 0 4px; }

/* sul telefono i campi a 16px (iPhone non ingrandisce la pagina) e alti 40 px, come la × accanto: si toccano col dito */
@media (max-width: 820px) {
  .rem-at input, .rem-in { font-size: 16px; }
  .rem-at input { height: 40px; line-height: 38px; }
  .rem-at-x { width: 40px; height: 40px; }
}
