*{box-sizing:border-box}html,body,#root{min-height:100%}body{color:#2b3437;background:#f7fafc;margin:0;font-family:Public Sans,sans-serif}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24}.no-scrollbar::-webkit-scrollbar{display:none}.glass-panel{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#f7fafccc}.bg-primary-gradient{background:linear-gradient(135deg,#005eb6 0%,#5f9efb 100%)}.backdrop-blur-custom{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}@media print{@page{size:794px 1123px;margin:0}body.print-rx-template-only *{visibility:hidden}body.print-rx-template-only .rx-template-print-root,body.print-rx-template-only .rx-template-print-root *{visibility:visible}body.print-rx-template-only .rx-template-print-root{-webkit-print-color-adjust:exact;print-color-adjust:exact;width:794px;min-height:0;position:static;overflow:visible;background:#fff!important;margin:0 auto!important;padding:0!important}body.print-rx-template-only #root,body.print-rx-template-only #root>div,body.print-rx-template-only main{width:100%!important;min-height:0!important;margin:0!important;padding:0!important;display:block!important}body.print-rx-template-only .rx-template-sheet{-webkit-print-color-adjust:exact;print-color-adjust:exact;page-break-inside:avoid;break-inside:avoid;width:794px!important;height:1123px!important;box-shadow:none!important;border:0!important;margin:0!important;padding:20px 24px!important;overflow:hidden!important}body.print-rx-template-only .rx-template-sheet:not(:last-child){page-break-after:always;break-after:page}}.visit-pad-page{gap:.6rem;display:grid}.visit-topbar{background:#f8fafc;border:1px solid #d5dbe5;border-radius:12px;justify-content:space-between;align-items:center;gap:.8rem;padding:.45rem .6rem;display:flex}.visit-patient-summary{align-items:center;gap:.6rem;display:flex}.visit-back-btn{color:#fff;cursor:pointer;background:#334155;border:0;border-radius:999px;width:30px;height:30px}.visit-avatar{background:#d8dee9;border-radius:999px;place-items:center;width:34px;height:34px;font-size:1rem;display:grid}.visit-patient-name{color:#0f172a;margin:0;font-size:1.05rem;font-weight:700}.visit-patient-meta{color:#667085;margin:0;font-size:.82rem;line-height:1.3}.visit-top-actions{gap:.5rem;display:flex}.mini-action-btn{color:#1d4ed8;cursor:pointer;background:#fff;border:1px solid #c9d4e5;border-radius:9px;height:34px;padding:0 .7rem;font-weight:700}.visit-tabs{background:#f8fafc;border:1px solid #d5dbe5;border-radius:12px;flex-wrap:wrap;gap:.35rem;padding:.35rem;display:flex}.visit-tab-btn{color:#475467;cursor:pointer;background:0 0;border:0;border-radius:8px;height:34px;padding:0 .75rem;font-weight:600}.visit-tab-btn.active{color:#0f172a;background:#fff;box-shadow:inset 0 -2px #1d4ed8}.visit-card{background:#f8fafc;border:1px solid #d9dee7;border-radius:12px;gap:.65rem;padding:.8rem;display:grid}.visit-card.compact{gap:.45rem}.visit-card-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;display:flex}.visit-card h3{font-size:1.05rem;font-family:var(--sans);color:#1f2937;margin:0}.visit-card-actions{color:#344054;align-items:center;gap:.75rem;display:flex}.outline-btn{color:#1d4ed8;cursor:pointer;background:#fff;border:1px solid #1d4ed8;border-radius:8px;height:32px;padding:0 .65rem;font-weight:700}.history-columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;display:grid}.visit-history-row{align-items:center;gap:.55rem;min-width:0;display:flex}.history-chip{text-align:left;color:#1f2937;cursor:pointer;background:0 0;border:0;align-items:center;gap:.45rem;font-size:1rem;font-weight:600;display:inline-flex}.visit-history-status{color:#7b8797;background:#e9edf3;border-radius:999px;flex:0 0 30px;place-items:center;width:30px;height:30px;font-size:.95rem;font-weight:700;display:inline-grid}.visit-history-status.yes{color:#2e9151;background:#d5f1de}.visit-history-status.no{color:#b44b4b;background:#f1d9d9}.visit-history-since-wrap{position:relative}.visit-history-since{color:#1f2937;background:#fff;border:1px solid #c9d3df;border-radius:6px;outline:none;width:104px;height:32px;padding:0 9px;font-size:.9rem}.visit-history-since::placeholder{color:#9aa3b2}.visit-since-options{z-index:3;background:#fff;border:1px solid #d7dde6;border-radius:6px;width:126px;margin:0;padding:4px 0;list-style:none;position:absolute;top:calc(100% + 4px);left:0;box-shadow:0 8px 18px #0f172a1f}.visit-since-option-btn{text-align:left;color:#303a4a;cursor:pointer;background:0 0;border:0;width:100%;padding:6px 10px;font-size:.9rem}.visit-since-option-btn:hover{background:#eef2f7}.section-head{align-items:center;gap:.5rem;display:flex}.section-head.spread{justify-content:space-between}.section-head h3{align-items:center;gap:.45rem;display:inline-flex}.section-tag{color:#98a2b3;border:1px solid #e4e7ec;border-radius:5px;padding:0 .25rem;font-size:.72rem}.section-badge{border-radius:4px;width:14px;height:14px;display:inline-block}.section-badge.blue{background:#3478f6}.section-badge.purple{background:#8b5cf6}.section-badge.pink{background:#ec4899}.section-badge.amber{background:#d97706}.section-badge.green{background:#2ea44f}.section-badge.slate{background:#56637f}.section-shortcut{color:#1d4ed8;font-size:.95rem;font-weight:600}.outline-btn.small{height:30px;padding:0 .7rem}.notes-grid{grid-template-columns:1fr 1fr;gap:.8rem;display:grid}.notes-col{gap:.4rem;display:grid}.notes-col span{color:#667085;font-size:.78rem;font-weight:700}.notes-col textarea,.followup-notes{resize:vertical;width:100%;font:inherit;background:#fff;border:1px solid #d5dbe5;border-radius:8px;padding:.6rem .7rem}.bottom-two-col{grid-template-columns:1fr 1fr;gap:.8rem;display:grid}.followup-row{grid-template-columns:1fr auto;gap:.6rem;display:grid}.inline-checkbox{color:#475467;align-items:center;gap:.45rem;display:inline-flex}.visit-final-bar{z-index:8;background:#0f56b3;border-radius:10px;grid-template-columns:1fr auto 1fr;align-items:center;gap:.55rem;padding:.45rem;display:grid;position:sticky;bottom:0}.visit-final-left,.visit-final-right{align-items:center;gap:.45rem;min-width:0;display:flex}.visit-final-right{justify-content:flex-end}.final-btn,.final-square-btn,.final-link-btn{color:#fff;cursor:pointer;white-space:nowrap;background:0 0;border:1px solid #ffffff6b;border-radius:9px;height:36px;padding:0 .85rem;font-size:.95rem;font-weight:700}.final-btn.light{color:#1f3d7a;background:#fff;border-color:#fff}.final-btn.solid{color:#114391;background:#fff}.final-btn.ghost{border-color:#0000}.final-btn.outline{background:#ffffff0f}.final-square-btn{width:42px;padding:0}.final-link-btn{text-underline-offset:3px;border-color:#0000;text-decoration:underline}.section-input{color:#98a2b3;background:#fff;border:1px solid #d5dbe5;border-radius:9px;min-height:38px;padding:.55rem .7rem;font-size:.95rem}.symptoms-wrap{position:relative}.symptoms-input{outline:none;width:100%}.symptoms-popup{z-index:24;overscroll-behavior:contain;background:#f8fafc;border:1px solid #d7dde6;border-radius:10px;width:100%;max-height:min(56vh,460px);position:absolute;top:calc(100% + 6px);left:0;overflow:hidden auto;box-shadow:0 8px 18px #0f172a1f}.symptoms-popup-head{z-index:2;background:#f8fafc;align-items:center;gap:.45rem;padding:.55rem .75rem .35rem;display:flex;position:sticky;top:0}.symptoms-popup-head.associated{border-top:1px solid #e4e7ec;padding-top:.6rem}.frequently-badge{color:#fff;background:#2563eb;border-radius:4px;padding:.2rem .35rem;font-size:.8rem;font-weight:700}.associated-badge{color:#fff;background:#16a085;border-radius:4px;padding:.2rem .35rem;font-size:.8rem;font-weight:700}.muted-note{color:#98a2b3;font-size:.88rem}.symptoms-close-btn{color:#344054;cursor:pointer;background:0 0;border:0;margin-left:auto;font-size:.95rem}.symptoms-option{color:#344054;text-align:left;cursor:pointer;background:#eef2f7;border:0;align-items:center;gap:.6rem;width:100%;padding:.65rem .85rem;font-size:1.05rem;display:flex}.symptoms-option.active{background:#dbeafe}.symptoms-option.associated-row{background:#f8fafc}.symptoms-option.associated-row.active{background:#dbeafe}.symptom-code{color:#2563eb;background:#dbeafe;border:1px solid #60a5fa;border-radius:999px;place-items:center;width:28px;height:28px;font-size:.88rem;display:inline-grid}.medicine-name{color:#1f2937;font-weight:600}.medicine-option{align-items:flex-start}.medicine-option-text{gap:.12rem;min-width:0;display:grid}.medicine-composition{color:#7482a3;white-space:normal;font-size:.8rem;font-weight:600}.symptoms-popup-footer{text-align:right;color:#667085;background:#f8fafc;padding:.45rem .75rem .55rem;font-size:.9rem;position:sticky;bottom:0}.symptoms-empty{color:#98a2b3;padding:.6rem .85rem;font-size:.92rem}.medication-selected-list{gap:.5rem;margin-bottom:.6rem;display:grid}.medication-selected-row{background:#f8fafc;border:1px solid #d9dee7;border-radius:8px;grid-template-columns:1.3fr .55fr .55fr .55fr .72fr .9fr auto 36px;align-items:stretch;display:grid;overflow:visible}.medication-col{border-right:1px solid #e4e7ec;align-items:center;gap:.5rem;min-height:58px;padding:.45rem .55rem;display:flex}.medication-name-col{color:#0f172a}.medication-name-col p{color:#98a2b3;margin:.1rem 0 0;font-size:.75rem}.medication-input-col{align-content:center;gap:.22rem;display:grid}.medication-mini-label{color:#475467;text-transform:uppercase;font-size:.78rem;font-weight:700}.medication-dose-wrap,.medication-frequency-wrap,.medication-timing-wrap,.medication-duration-wrap{position:relative}.medication-dose-wrap .symptom-inline-input,.medication-frequency-wrap .symptom-inline-input,.medication-timing-wrap .symptom-inline-input,.medication-duration-wrap .symptom-inline-input{padding-right:1.8rem}.medication-suggestion-list{width:100%;max-height:240px;overflow-y:auto}.medication-instructions-input{resize:vertical;height:auto;min-height:56px;padding-top:.35rem;padding-bottom:.35rem}.dose-clear-btn{color:#fff;cursor:pointer;background:#9aa3b2;border:0;border-radius:999px;width:18px;height:18px;padding:0;font-size:.95rem;line-height:1;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.medication-actions-col{border-right:0;justify-content:center}.medication-delete-btn{color:#667085;cursor:pointer;background:0 0;border:0;width:100%;height:100%}.symptom-selected-row{background:#f8fafc;border:1px solid #d9dee7;border-radius:8px;grid-template-columns:1.1fr .48fr .48fr auto 36px;align-items:center;margin-top:.5rem;display:grid;overflow:visible}.symptom-col{border-right:1px solid #e4e7ec;align-items:center;gap:.55rem;min-height:58px;padding:.45rem .6rem;display:flex}.symptom-name-col{color:#0f172a}.drag-dot{color:#98a2b3}.symptom-input-col{align-content:center;gap:.35rem;display:grid}.symptom-since-wrap{position:relative}.symptom-label{color:#475467;font-size:.85rem;font-weight:600}.symptom-inline-input{color:#344054;border:1px solid #d0d5dd;border-radius:4px;outline:none;height:34px;padding:0 .55rem;font-size:.95rem}.symptom-severity-select{color:#98a2b3;cursor:pointer;background:#fff}.symptom-severity-select:focus,.symptom-severity-select.filled{color:#344054}.symptom-actions-col{border-right:0}.more-options-btn{color:#98a2b3;background:#f3f4f6;border:1px solid #d0d5dd;border-radius:4px;height:34px;padding:0 .7rem;font-size:.85rem;font-weight:700}.symptom-delete-btn{color:#667085;cursor:pointer;background:0 0;border:0;width:100%;height:100%}@media (width<=900px){.visit-topbar{flex-direction:column;align-items:stretch}.visit-top-actions{width:100%}.mini-action-btn{flex:1}.history-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.visit-history-row{flex-wrap:wrap}.notes-grid,.bottom-two-col{grid-template-columns:1fr}.visit-final-bar{grid-template-columns:1fr;position:static}.visit-final-left,.visit-final-right{flex-wrap:wrap;justify-content:flex-start}.symptom-selected-row,.medication-selected-row{grid-template-columns:1fr}.symptom-col,.medication-col{border-top:1px solid #e4e7ec;border-right:0}.symptom-name-col,.medication-name-col{border-top:0}.symptom-delete-btn,.medication-delete-btn{border-top:1px solid #e4e7ec;height:36px}}@media (width<=640px){.history-columns{grid-template-columns:1fr}}
