/* ---------- Dr Shah 06-Nov-2026 (Slack): the additional fields on each of the three Prescription pages (rxext.js). Cards fold; a number shows how many fields are filled. ---------- */
.xext { margin-top: 14px; }
.xext .sech small { font-weight: 400; }
.xcard { border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin: 8px 0; padding: 0 12px 10px; }
.xcard > summary { cursor: pointer; padding: 10px 0; min-height: 44px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; font-size: 15px; color: #0b3d4f; }
.xcard > summary small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xcard > summary .xn { flex: none; display: inline-block; margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 11px; background: #1b9e5a; color: #fff; font-size: 12px; text-align: center; }
.xcard > summary .xn[hidden] { display: inline-block; visibility: hidden; }   /* keeps its room: typing must never move the page (test_rx_still) */
.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 12px; }
.xfield { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xfield.xwide { grid-column: 1 / -1; }
.xfield .xl { font-size: 12.5px; color: #475569; }
.xfield input:not([type=checkbox]), .xfield select, .xfield textarea { width: 100%; box-sizing: border-box; min-height: 38px; }
.xfield input.w-num { width: 100%; }
.xfield.xcheck { flex-direction: row; align-items: center; gap: 8px; min-height: 38px; font-size: 14px; }
.xchips, .xrosp, .xsets { display: flex; flex-wrap: wrap; gap: 6px; }
.xchip.on, .xros .chip.on { background: #0b5d73; border-color: #0b5d73; color: #fff; }
.xnorm { display: table; margin: 2px 0 0; padding: 0 8px; min-height: 22px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #0b5d73; font-size: 12px; cursor: pointer; }
.xrosbar { display: flex; gap: 8px; margin: 4px 0 8px; }
.xros { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 0; border-top: 1px solid #edf2f4; }
.xrosl { flex: 1 1 200px; font-size: 14px; font-weight: 600; color: #0b3d4f; }
.xrosb { display: flex; gap: 6px; }
.xros .chip.on.xpos { background: #b4540a; border-color: #b4540a; }
.xrosp { flex: 1 1 100%; padding-left: 4px; }
.xrosp input { min-height: 34px; flex: 1 1 160px; max-width: 260px; }
.xfam { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; align-items: flex-start; }
.xfamrow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.xfamrow input[data-xf=c] { width: 220px; max-width: 100%; }
.xfamrow input.w-num { width: 70px; }
.xprev { display: block; font-size: 11px; line-height: 1.2; margin-top: 2px; }
.rxstrip { display: flex; flex-wrap: nowrap; overflow: hidden; height: 34px; box-sizing: border-box; align-items: center; gap: 6px 14px; margin: 0 0 10px; padding: 0 12px; white-space: nowrap; border: 1px solid #cfe3ea; border-radius: 10px; background: #f3f9fb; font-size: 13px; color: #0b3d4f; }
.rxstrip .xs { overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.rxstrip .xempty { color: #556275; font-size: 12.5px; }
.xprev { min-height: 13px; }
.rxstrip .xs b { color: #475569; font-weight: 600; margin-right: 3px; }
.rxstrip .xs.xal { color: #9b1c1c; font-weight: 600; }
.rxstrip .xs.xal b { color: #9b1c1c; }
@media print { .xext, .rxstrip { display: none !important; } }

/* Consents: Gujarati / Hindi glyphs in the letter paper preview and print */
.ltpaper { font-family: Arial, "Noto Sans Gujarati", "Shruti", "Noto Sans Devanagari", "Mangal", sans-serif; }
