/* treatments by specialty (txpick.js): Most used, then one row per specialty that opens to its treatments */
.txp{display:flex;flex-direction:column;gap:10px}
.txp-top{display:flex;flex-direction:column;gap:6px}
.txp-lbl{font-size:var(--fs-11);font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink3)}
:root[lang=ar] .txp-lbl{letter-spacing:0;text-transform:none;font-size:var(--fs-12)}
.txp-groups{display:flex;flex-direction:column;border:1px solid var(--sep);border-radius:12px;background:#fff;overflow:hidden}
.txp-g+.txp-g{border-top:1px solid var(--sep2)}
.txp-gh{width:100%;display:flex;align-items:center;gap:8px;min-height:38px;padding:0 12px;text-align:start;font-weight:500;color:var(--ink)}
.txp-gh:hover{background:#f7f7f8}
.txp-gn{flex:1;min-width:0}
.txp-gc{color:var(--ink3);font-size:var(--fs-12);font-variant-numeric:tabular-nums}
.txp-gp{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--ink);color:#fff;font-size:var(--fs-11);font-weight:600;display:grid;place-items:center}
.txp-chev{flex:none;width:7px;height:7px;margin:0 3px;border-right:1.6px solid var(--ink3);border-bottom:1.6px solid var(--ink3);transform:rotate(45deg);transition:transform .15s}
.txp-g:not(.open) .txp-chev{transform:rotate(-45deg)}
:root[dir=rtl] .txp-g:not(.open) .txp-chev{transform:rotate(135deg)}
.txp-g.open>.txp-gh{background:#fafafb}
.txp-opts{padding:4px 12px 12px;background:#fafafb}
.txp .opts button:has(.txp-sub){height:auto;min-height:30px;padding:4px 12px;border-radius:12px;display:inline-flex;flex-direction:column;align-items:flex-start;line-height:1.25;text-align:start}
.txp-sub{font-size:var(--fs-11);font-weight:400;color:var(--ink2)}
.txp .opts button[aria-pressed=true] .txp-sub{color:#d1d1d6}
.txp-foot{margin-top:-2px}
/* Clinic → Treatments: one card per specialty */
.txc-g{padding:4px 16px 8px;margin-bottom:12px}
.txc-gh{display:flex;align-items:center;gap:10px;padding:10px 0 8px;border-bottom:1px solid var(--sep2)}
.txc-gh b{font-size:var(--fs-14)}.txc-gh .mini-btn{margin-inline-start:auto}
.txc-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(150px,210px);align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--sep2)}
.txc-row:last-child{border-bottom:0}
.txc-nm{min-width:0;overflow-wrap:anywhere}
.txc-sel{height:32px;border:1px solid var(--sep);border-radius:8px;padding:0 8px;font:inherit;background:#fff;min-width:0}
.txc-none{padding:10px 0}
.txc-add{display:flex;flex-direction:column;gap:10px;padding:12px;margin:10px 0;border:1px solid var(--sep);border-radius:12px;background:#fafafb}
.txc-add input{height:36px;border:1px solid var(--sep);border-radius:9px;padding:0 10px;font:inherit;background:#fff}
.txc-area{flex-wrap:wrap}
.txc-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.txc-acts{display:flex;gap:8px;justify-content:flex-end}.txc-acts button{width:auto;padding:0 16px}
@media (max-width:640px){.txc-row{grid-template-columns:minmax(0,1fr) auto}.txc-sel{grid-column:1/-1}}
/* inside a list of its own (Stock → Treatment recipes): the list's plain rows don't apply to the picker */
.reclist .txp .opts button{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;height:auto;min-height:30px;padding:4px 12px;border:1px solid var(--sep);border-radius:12px;background:#fff;color:var(--ink)}
.reclist .txp .opts button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.reclist .txp .txp-gh{border-radius:0;padding:0 12px}
/* Clinic → Treatments: the groups' own buttons, a group's names, a treatment's names */
.txc-gacts{margin-inline-start:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px}
.txc-gh .txc-gacts .mini-btn{margin-inline-start:0}
.txc-mv{min-width:30px;justify-content:center;font-size:var(--fs-14);line-height:1}
.txc-mv:disabled{opacity:.35;cursor:default}
.txc-gform{flex:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;align-items:end;padding:4px 0}
.txc-gform input{height:36px;border:1px solid var(--sep);border-radius:9px;padding:0 10px;font:inherit;background:#fff;width:100%}
.txc-gform .txc-acts{grid-column:1/-1}
.txc-gnew{padding:12px 16px}
.txc-btns{display:inline-flex;gap:6px;align-items:center}
.txc-names{margin:2px 0 10px}
