.add-new-medicine-overlay{z-index:1200;background:#0f172a80;justify-content:center;align-items:flex-start;padding:10px 12px;display:flex;position:fixed;inset:0;overflow-y:auto}.add-new-medicine-panel{border:1px solid var(--border);background:#fff;border-radius:10px;width:min(100%,920px);margin-bottom:10px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;box-shadow:0 20px 50px #0003}.add-new-medicine-header{border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:10px 14px;display:flex}.add-new-medicine-header h3{color:#111827;margin:0;font-size:1.15rem;font-weight:700}.add-new-medicine-close{color:#b91c1c;cursor:pointer;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;justify-content:center;align-items:center;width:26px;height:26px;display:inline-flex}.add-new-medicine-close:hover{background:#fee2e2}.add-new-medicine-body{padding:10px 14px 12px}.add-new-medicine-form-error{color:#b91c1c;margin-top:0;font-size:13px}.add-new-medicine-row-one{flex-wrap:wrap;align-items:flex-start;gap:10px;margin-bottom:8px;display:flex}.add-new-medicine-row-one .medicine-combo-field,.add-new-medicine-row-one .add-new-medicine-brand-wrap{flex:160px;min-width:140px}.add-new-medicine-brand-wrap label{color:#374151;margin-bottom:2px;font-size:13px;font-weight:600;display:block}.add-new-medicine-brand-input{box-sizing:border-box;border:2px solid #d1d5db;border-radius:6px;width:100%;height:30px;padding:0 8px;font-size:13px}.add-new-medicine-brand-input--invalid{border-color:#dc2626}.add-new-medicine-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:8px;margin-bottom:4px;display:flex}.add-new-medicine-actions .btn-primary{border-radius:8px;padding:8px 18px;font-weight:600}.add-new-medicine-actions .add-new-medicine-save-btn{align-items:center;gap:6px;display:inline-flex}.add-new-medicine-actions .add-new-medicine-save-btn.is-saving{opacity:.9}.add-new-medicine-save-spinner{animation:.9s linear infinite add-new-medicine-save-spin}@keyframes add-new-medicine-save-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.add-new-medicine-actions .btn-secondary{border-radius:8px;padding:8px 18px}.add-new-medicine-actions .btn-danger-outline{color:#b91c1c;cursor:pointer;background:#fff;border:1px solid #dc2626;border-radius:8px;align-items:center;gap:6px;padding:8px 14px;display:inline-flex}.add-new-medicine-common-head{border-top:2px solid #e5e7eb;margin:8px 0 6px;padding-top:8px}.add-new-medicine-common-head h4{color:#374151;margin:0;font-size:15px;font-weight:600}.add-new-medicine-common-grid{grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:6px;display:grid}@media (max-width:800px){.add-new-medicine-common-grid{grid-template-columns:1fr}}.add-new-medicine-common-card{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:8px}.add-new-medicine-common-card>label{color:#374151;margin-bottom:3px;font-size:14px;font-weight:600;display:block}.add-new-medicine-common-add-row{align-items:center;gap:8px;margin-bottom:6px;display:flex}.add-new-medicine-common-add-row input{border:1px solid #d1d5db;border-radius:6px;flex:1;min-width:0;padding:6px 8px;font-size:13px}.add-new-medicine-add-circle{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:9999px;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;display:inline-flex;box-shadow:0 2px 6px #2563eb59}.add-new-medicine-add-circle:hover{background:#1d4ed8}.add-new-medicine-common-list{max-height:120px;overflow-y:auto}.add-new-medicine-common-item{color:#374151;background:#fff;border:1px solid #e5e7eb;border-radius:6px;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px;padding:2px;font-size:13px;display:flex}.add-new-medicine-common-item-remove{color:#fff;cursor:pointer;background:#dc2626;border:1px solid #dc2626;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;padding:0;display:inline-flex}.add-new-medicine-common-empty{color:#9ca3af;font-size:12px;font-style:italic}.medicine-combo-field__label{color:#374151;margin-bottom:2px;font-size:13px;font-weight:600;display:block}.medicine-combo-field__req{color:#dc2626;margin-left:2px}.medicine-combo-field__shell{box-sizing:border-box;background:#fff;border:2px solid #d1d5db;border-radius:6px;align-items:center;padding:0 2px;display:flex;position:relative;box-shadow:0 1px 2px #0000000d}.medicine-combo-field__shell--invalid{border-color:#dc2626}.medicine-combo-field__shell--warn{border-color:#f59e0b;box-shadow:0 0 0 3px #f59e0b1f}.medicine-combo-field__shell--ok{border-color:#16a34a;box-shadow:0 0 0 3px #16a34a1f}.medicine-combo-field__input{box-sizing:border-box;background:0 0;border:none;outline:none;flex:1;min-width:0;height:100%;padding:0 28px 0 6px;font-size:13px}.medicine-combo-field__chevron{color:#6b7280;cursor:pointer;background:0 0;border:none;align-items:center;padding:2px 4px;display:flex;position:absolute;top:50%;right:4px;transform:translateY(-50%)}.medicine-combo-field__error{color:#dc2626;margin-top:4px;font-size:12px}.medicine-combo-field__menu-shell{box-sizing:border-box}.medicine-combo-field__menu-shell--list{overflow-anchor:none;overflow:hidden auto}.medicine-combo-field__menu-shell--actions{overflow-anchor:none;background:#fff;border:1px solid #94a3b8;border-radius:5px;grid-template-columns:minmax(0,1fr) 82px;align-content:start;column-gap:0;display:grid;overflow:hidden auto;box-shadow:0 8px 24px #0f172a1f}.medicine-combo-field__menu-shell--actions>*,.medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-section-title,.medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-row--label,.medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-row--action,.medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-empty{z-index:1;position:relative}.medicine-combo-field__menu--with-actions{display:contents}.medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-section-title,.medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-empty{grid-column:1/-1}.medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-row--label{background:#fff;grid-column:1;align-items:center;display:flex}.medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-row--action{box-sizing:border-box;background:#fff;grid-column:2;justify-content:flex-end;align-items:center;width:82px;min-width:82px;min-height:36px;padding-right:6px;display:flex}.medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-row--label.active,.medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-row--action.active{background:#f3f4f6}.medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-row--label.medicine-combo-field__menu-row--selected,.medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-row--action.medicine-combo-field__menu-row--selected{background:#dbeafe}html.dark .medicine-combo-field__menu-shell--actions{background:var(--emr-card,var(--popover))!important;border:1px solid var(--emr-border,var(--border))!important;box-shadow:0 8px 24px #00000059!important}html.dark .medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-row--label,html.dark .medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-row--action{background:var(--emr-card,var(--popover))!important}html.dark .medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-row--label.active,html.dark .medicine-combo-field__menu-shell--actions .medicine-combo-field__menu-row--action.active{background:color-mix(in srgb, var(--emr-card,var(--card)) 75%, var(--emr-accent,var(--primary)))!important}.medicine-combo-field__menu{overflow-anchor:none;background:#fff;border:1px solid #94a3b8;border-radius:5px;padding:0;overflow-y:auto;box-shadow:0 8px 24px #0f172a1f}.medicine-combo-field__menu-section-title{letter-spacing:.04em;text-transform:uppercase;background:#f1f5f9;border-bottom:1px solid #e2e8f0;padding:6px 10px 4px;font-size:10px;font-weight:700}.medicine-combo-field__menu-section-title--last-used{color:#166534;background:#f0fdf4;border-bottom-color:#bbf7d0}.medicine-combo-field__menu-section-title--specific{color:#166534;background:#ecfdf5}.medicine-combo-field__menu-section-title--common{color:#64748b;background:#f1f5f9}.medicine-combo-field__menu-section-title--selected{color:#1d4ed8;background:#eff6ff;border-bottom-color:#bfdbfe}.medicine-combo-field__menu-inline-confirm{flex-shrink:0;align-items:center;gap:4px;margin-right:0;display:inline-flex}.medicine-combo-field__menu-confirm-yes,.medicine-combo-field__menu-confirm-no{cursor:pointer;border-radius:4px;min-width:34px;height:26px;padding:0 8px;font-size:11px;font-weight:700}.medicine-combo-field__menu-confirm-yes{color:#fff;background:#dc2626;border:1px solid #dc2626}.medicine-combo-field__menu-confirm-yes:hover{background:#b91c1c}.medicine-combo-field__menu-confirm-no{color:#475569;background:#fff;border:1px solid #cbd5e1}.medicine-combo-field__menu-confirm-no:hover{background:#f8fafc}.medicine-combo-field__menu-empty{color:#64748b;padding:10px 12px;font-size:12px}.medicine-combo-field__menu-row{background:#fff;border-bottom:1px solid #e2e8f0;align-items:center;min-height:36px;display:flex}.medicine-combo-field__menu-row.active{background:#f3f4f6}.medicine-combo-field__menu.add-new-medicine-combo-menu .medicine-combo-field__menu-row--selected{background:#dbeafe}.medicine-combo-field__menu.add-new-medicine-combo-menu .medicine-combo-field__menu-row--selected .medicine-combo-field__menu-main{color:#1e40af;font-weight:600}.medicine-combo-field__menu-main{text-align:left;cursor:pointer;color:#111827;white-space:normal;background:0 0;border:none;flex:1;min-width:0;padding:8px 10px;font-size:13px;line-height:1.35;display:block}.medicine-combo-field__menu-trash{color:#dc2626;cursor:pointer;background:#fff;border:1px solid #93c5fd;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:26px;margin-right:0;display:inline-flex}.medicine-combo-field__menu-trash:hover{background:#fee2e2}.medicine-combo-field__menu-remove-common{color:#dc2626;cursor:pointer;background:#fff;border:1px solid #93c5fd;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:26px;margin-right:0;display:inline-flex}.medicine-combo-field__menu-remove-common:hover{background:#fee2e2}.add-new-medicine-panel .rx-exclusive-multiselect-root{margin-bottom:8px}.add-new-medicine-panel .rx-exclusive-multiselect-label{color:#374151;margin-bottom:4px;font-size:13px;font-weight:600;display:block}.add-new-medicine-panel .rx-exclusive-multiselect-shell{box-sizing:border-box;cursor:text;background:#fff;border:2px solid #d1d5db;border-radius:8px;flex-wrap:wrap;align-content:center;align-items:center;gap:6px;width:100%;height:auto;min-height:38px;padding:6px 8px;display:flex;box-shadow:0 1px 2px #0000000d}.add-new-medicine-panel .rx-exclusive-multiselect-shell--custom{border-color:#f59e0b;box-shadow:0 0 0 3px #f59e0b1f}.add-new-medicine-panel .rx-exclusive-multiselect-shell--saved{border-color:#16a34a;box-shadow:0 0 0 3px #16a34a1f}.add-new-medicine-panel .rx-exclusive-multiselect-input{color:#1f2937;background:0 0;border:none;outline:none;flex:120px;min-width:120px;min-height:24px;padding:2px 4px;font-family:inherit;font-size:13px}.add-new-medicine-panel .rx-exclusive-multiselect-input::placeholder{color:#9ca3af;font-style:italic}.add-new-medicine-panel .rx-exclusive-multiselect-chip{color:#1d4ed8;background:#eff6ff;border:1px solid #dbeafe;border-radius:6px;flex-shrink:0;align-items:center;gap:4px;max-width:100%;padding:4px 8px;font-size:13px;font-weight:600;display:inline-flex}.add-new-medicine-panel .rx-exclusive-multiselect-chip-text{text-overflow:ellipsis;overflow:hidden}.add-new-medicine-panel .rx-exclusive-multiselect-chip-remove{cursor:pointer;color:#9ca3af;background:0 0;border:none;align-items:center;padding:0 0 0 4px;display:inline-flex}.add-new-medicine-panel .rx-exclusive-multiselect-chip-remove:hover{color:#ef4444}.medicine-chip-multiselect-menu-portal{background:#fff;border:1px solid #dee2e6;border-radius:8px;padding:4px 0;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-size:13px;box-shadow:0 8px 24px #0000001f}.medicine-chip-multiselect-menu-portal .rx-exclusive-multiselect-menu-empty{color:#64748b;text-align:center;padding:10px 12px;font-size:12px}.add-new-medicine-actions .btn-primary,.add-new-medicine-actions .btn-secondary{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:9999px;min-width:110px;height:38px;font-weight:600}.add-new-medicine-actions .btn-primary:hover,.add-new-medicine-actions .btn-secondary:hover{background:#dbeafe;border-color:#93c5fd}.medicine-instructions-embedded__head{letter-spacing:.04em;text-transform:uppercase;border-bottom:1px solid #e2e8f0;padding:6px 10px 4px;font-size:10px;font-weight:700}.medicine-instructions-embedded__head--specific{color:#166534;background:#ecfdf5}.medicine-instructions-embedded__head--common{color:#718096;background:#edf2f7}.medicine-instructions-embedded__row{color:#2d3748;cursor:pointer;background:#fff;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:8px;padding:4px 5px;font-size:13px;display:flex}.medicine-instructions-embedded__row:hover{background:#f8fafc}.medicine-instructions-embedded__row-text{text-align:left;flex:1;min-width:0}.medicine-instructions-embedded__trash{color:#e53e3e;cursor:pointer;background:#fff5f5;border:1px solid #f56565;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;display:inline-flex}.medicine-instructions-embedded__trash:hover{background:#fed7d7}.medicine-instructions-menu-section{letter-spacing:.04em;text-transform:uppercase;background:#f1f5f9;border-bottom:1px solid #e2e8f0;padding:6px 10px 4px;font-size:10px;font-weight:700}.medicine-instructions-menu-section--last-used{color:#166534;background:#f0fdf4;border-bottom-color:#bbf7d0}.medicine-instructions-menu-section--specific{color:#166534;background:#ecfdf5}.medicine-instructions-menu-section--common{color:#64748b;background:#f1f5f9}.medicine-instructions-menu-row{background:#fff;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;min-height:36px;display:flex}.medicine-instructions-menu-row.active{background:#f1f5f9}.medicine-instructions-menu-row__pick{text-align:left;cursor:pointer;color:#1a202c;background:0 0;border:none;flex:1;padding:8px 10px;font-size:13px}.medicine-instructions-menu-trash{color:#dc2626;cursor:pointer;background:#fff;border:1px solid #93c5fd;border-radius:4px;justify-content:center;align-items:center;width:28px;height:26px;margin-right:8px;display:inline-flex}.medicine-instructions-menu-trash:hover{background:#fee2e2}.medicine-instructions-menu-remove-x{color:#dc2626;cursor:pointer;background:#fff;border:1px solid #93c5fd;border-radius:4px;justify-content:center;align-items:center;width:28px;height:26px;margin-right:8px;display:inline-flex}.medicine-instructions-menu-remove-x:hover{background:#fee2e2}
