/* DentCell — Hasta dosyası › E-Reçete */
.rx { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
.rx-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.rx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.rx-head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.rx-head small { color: #64748b; font-size: .78rem; }
.rx fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rx label { display: flex; flex-direction: column; gap: 5px; font-size: .76rem; font-weight: 700; color: #334155; min-width: 0; }
.rx label small { font-weight: 500; color: #94a3b8; }
.rx input, .rx select, .rx textarea { font: inherit; font-size: .86rem; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; min-width: 0; }
.rx input:focus, .rx select:focus, .rx textarea:focus { outline: none; border-color: #60a5fa; }
.rx-row { display: flex; gap: 10px; } .rx-row > label { flex: 1; } .rx-row > label.sm { flex: 0 0 150px; }
.rx-sub { font-size: .74rem; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.rx-items { display: flex; flex-direction: column; gap: 8px; }
.rx-item { border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px; background: #fcfdff; display: flex; flex-direction: column; gap: 8px; }
.rx-item-top { display: flex; gap: 8px; align-items: center; }
.rx-item-top input { flex: 1; font-weight: 700; }
.rx-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #1d6fe0; color: #fff; font-size: .78rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.rx-item-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rx-item-row label { flex: 0 0 auto; } .rx-item-row label.grow { flex: 1 1 160px; }
.rx-item-row input.xs { width: 74px; }
.rx-x { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 1px solid #fecaca; background: #fff; color: #dc2626; cursor: pointer; }
.rx-x[hidden] { display: none; }
.rx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a; font: inherit; font-size: .82rem; font-weight: 700; padding: 9px 14px; border-radius: 11px; cursor: pointer; white-space: nowrap; }
.rx-btn:hover { border-color: #93c5fd; }
.rx-btn.primary { background: linear-gradient(135deg, #2f80ed, #1d6fe0); color: #fff; border-color: transparent; }
.rx-btn.ghost { background: transparent; border-style: dashed; color: #1d6fe0; }
.rx-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.rx-hint { font-size: .78rem; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.rx-empty { padding: 22px 12px; text-align: center; color: #94a3b8; font-size: .84rem; border: 1px dashed #e2e8f0; border-radius: 12px; }
.rx-entry { border: 1px solid #eef2f7; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.rx-entry-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rx-entry-top b { font-size: .92rem; color: #0f172a; }
.rx-entry > small { color: #64748b; font-size: .76rem; }
.rx-entry ol { margin: 8px 0 8px; padding-left: 20px; font-size: .82rem; color: #1e293b; }
.rx-entry li { margin-bottom: 3px; }
.rx-type { font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.rx-type.t-kirmizi { background: #fee2e2; color: #b91c1c; } .rx-type.t-yesil { background: #dcfce7; color: #166534; }
.rx-type.t-mor { background: #ede9fe; color: #6d28d9; } .rx-type.t-turuncu { background: #ffedd5; color: #c2410c; }
.rx-erx { font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; }
.rx-entry-act { display: flex; gap: 12px; flex-wrap: wrap; }
.rx-entry-act button { border: 0; background: none; padding: 0; font: inherit; font-size: .76rem; font-weight: 700; color: #1d6fe0; cursor: pointer; }
.rx-entry-act .danger { color: #dc2626; }
@media (max-width: 1100px) { .rx { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .rx-card { padding: 14px; } .rx-row { flex-direction: column; } .rx-row > label.sm { flex: 1; } .rx-actions .rx-btn { flex: 1; } }

/* Sevk Et */
.ref { display: flex; flex-direction: column; gap: 14px; }
.ref-112 { display: flex; align-items: center; gap: 14px; text-decoration: none; background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: 0 10px 26px -12px rgba(220,38,38,.6); }
.ref-112 > span { flex: none; width: 58px; height: 58px; border-radius: 16px; background: #fff; color: #dc2626; font-size: 1.35rem; font-weight: 900; display: flex; align-items: center; justify-content: center; letter-spacing: -.5px; }
.ref-112 b { display: block; font-size: 1.05rem; } .ref-112 small { color: rgba(255,255,255,.85); font-size: .78rem; }
.ref-112:hover { filter: brightness(1.05); }
.ref-anam { font-size: .82rem; color: #334155; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 9px 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ref-anam span { background: #fee2e2; color: #b91c1c; font-weight: 700; padding: 2px 9px; border-radius: 999px; font-size: .74rem; }
.ref-anam em { font-style: normal; color: #9a3412; font-weight: 700; }
.ref-sps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ref-sp { position: relative; display: flex; align-items: center; gap: 7px; text-align: left; border: 1.5px solid #e2e8f0; background: #fff; border-radius: 12px; padding: 8px 10px; font: inherit; font-size: .76rem; font-weight: 700; color: #1e293b; cursor: pointer; line-height: 1.25; }
.ref-sp span { font-size: 1.05rem; flex: none; }
.ref-sp:hover { border-color: #93c5fd; }
.ref-sp.on { border-color: #1d6fe0; background: #eff6ff; color: #1d4ed8; }
.ref-sp.acil { border-color: #fecaca; color: #b91c1c; }
.ref-sp.acil.on { background: #fef2f2; border-color: #dc2626; }
.ref-sp.sug { box-shadow: inset 0 0 0 1px #f59e0b; }
.ref-sp i { position: absolute; top: -7px; right: 6px; font-style: normal; font-size: .6rem; background: #f59e0b; color: #fff; padding: 1px 6px; border-radius: 999px; }
.ref-em { border: 1px solid #fecaca; background: #fff5f5; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ref-asks { display: flex; flex-direction: column; gap: 6px; }
.rx label.ref-ask { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; font-size: .82rem; color: #1e293b; }
.ref-ask input { width: 16px; height: 16px; }
.ref-add { display: flex; gap: 6px; } .ref-add input { flex: 1; }
.ref-reason { margin: 6px 0 8px; font-size: .8rem; color: #334155; }

/* Hazır ilaç listesi */
.rx-drug-wrap { position: relative; flex: 1; min-width: 0; }
.rx-drug-wrap > input { width: 100%; box-sizing: border-box; }
.rx-drug-pop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; max-height: 300px; overflow-y: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(15,23,42,.28); padding: 6px; }
.rx-dg { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #0284c7; padding: 8px 8px 4px; }
.rx-do { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font: inherit; font-size: .82rem; color: #0f172a; cursor: pointer; }
.rx-do:hover, .rx-do:focus { background: #f0f9ff; outline: none; }
.rx-dn { padding: 10px; font-size: .78rem; color: #94a3b8; }
