/* rxcarry.css — the carried-forward medicines list of a follow-up (rxcarry.js).
   Dr Shah, 28-Nov-2026: "When carrying forward last medicines, there should be a good intuitive & properly functioning option of editing the
   last medicine." U15: colour and background set together in every rule; UX-M1: 44 px taps, 8 px apart at <= 1024 px; no sideways scroll. */
.cfsum.rxcarry { display: block; min-height: 0; margin: 4px 0 2px; padding: 0; font-size: 14px; background: #fff; color: var(--ink, #1b2733);
  border: 1px solid var(--line2, #e6ecf1); border-radius: 10px; }
.cfsum.rxcarry.rxdone { display: none; }
.rxcarry .rxch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line2, #e6ecf1);
  background: #f6fafc; color: var(--muted, #5d6b7a); border-radius: 10px 10px 0 0; font-size: 13px; }
.rxcarry .rxcall { min-height: 44px; padding: 6px 16px; background: var(--accent, #0f6e8c); color: #fff; border: 1px solid var(--accent, #0f6e8c); border-radius: 22px; font-size: 14px; }
.rxcarry .rxcall:hover { background: var(--accent-d, #0b5870); color: #fff; }
.rxcarry .rxcl { list-style: none; margin: 0; padding: 0 10px; }
.rxcarry .rxci { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 0; border-bottom: 1px solid var(--line2, #e6ecf1); background: #fff; color: var(--ink, #1b2733); }
.rxcarry .rxci:last-child { border-bottom: 0; }
.rxcarry .rxct { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; font-weight: 600; background: transparent; color: var(--ink, #1b2733); }
.rxcarry .rxci.stopped .rxct { text-decoration: line-through; font-weight: 400; color: var(--muted, #5d6b7a); background: transparent; }
.rxcarry .rxcbs { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rxcarry .rxcbtn { min-height: 44px; min-width: 44px; padding: 6px 14px; font-size: 14px; font-weight: 600; border-radius: 22px;
  background: #fff; color: var(--accent-d, #0b5870); border: 1px solid var(--line, #d3dce5); }
.rxcarry .rxcbtn:hover { background: var(--accent-2, #e3f1f6); color: var(--accent-d, #0b5870); }
.rxcarry .rxcbtn[aria-pressed=true] { background: var(--accent-d, #0b5870); color: #fff; border-color: var(--accent-d, #0b5870); }
.rxcarry .rxcbtn[data-act=stop] { color: var(--err, #b3261e); background: #fff; }
.rxcarry .rxcbtn[data-act=stop]:hover { background: var(--err-bg, #fdecea); color: var(--err, #b3261e); }
.rxcarry .rxcnote { font-size: 13px; font-style: italic; background: transparent; color: var(--muted, #5d6b7a); }
.rxcarry .rxstale { flex: 1 1 100%; min-height: 44px; padding: 6px 12px; text-align: left; font-size: 13.5px; font-weight: 600; border-radius: 8px;
  background: var(--warn, #fff4dc); color: #6b4a00; border: 1px solid var(--gold, #f2a81d); white-space: normal; }
.rxcarry .rxstale:hover { background: #ffe9b8; color: #5a3e00; }
/* Change: the one row's editor, under its line */
.rxcarry .rxced { margin: 0 0 8px; padding: 10px; border: 1px solid var(--accent, #0f6e8c); border-radius: 10px; background: #f3f9fb; color: var(--ink, #1b2733); }
.rxcarry .rxcedn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; background: transparent; color: var(--ink, #1b2733); }
.rxcarry .rxswitch { min-height: 44px; padding: 4px 10px; background: transparent; color: var(--accent-d, #0b5870); border: 0; text-decoration: underline; font-weight: 600; font-size: 13.5px; }
.rxcarry .rxswitch:hover { background: var(--accent-2, #e3f1f6); color: var(--accent-d, #0b5870); }
.rxcarry .rxcedf { display: grid; grid-template-columns: 110px 130px minmax(0, 1fr) 140px; gap: 8px; }
.rxcarry .rxcedf label { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; font-weight: 700; background: transparent; color: var(--muted, #5d6b7a); }
.rxcarry .rxcedf input { min-height: 44px; width: 100%; box-sizing: border-box; font-size: 15px; font-weight: 400; background: #fff; color: var(--ink, #1b2733); }
.rxcarry .rxcedb { display: flex; gap: 8px; margin-top: 10px; }
.rxcarry .rxcdone { min-height: 44px; padding: 6px 22px; background: var(--accent, #0f6e8c); color: #fff; border: 1px solid var(--accent, #0f6e8c); }
.rxcarry .rxccancel { min-height: 44px; padding: 6px 18px; background: #fff; color: var(--accent-d, #0b5870); border: 1px solid var(--line, #d3dce5); }
.rxcarry .rxccancel:hover { background: var(--accent-2, #e3f1f6); color: var(--accent-d, #0b5870); }
@media (max-width: 600px) {
  .rxcarry .rxct { flex-basis: 100%; }
  .rxcarry .rxcbs { width: 100%; }
  .rxcarry .rxcbs .rxcbtn { flex: 1 1 0; padding-left: 6px; padding-right: 6px; }
  .rxcarry .rxcedf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rxcarry .rxcedf input { font-size: 16px; }
  .rxcarry .rxcedb button { flex: 1 1 0; }
}
@media print { .cfsum.rxcarry { display: none !important; } }
