.prescription-details-dialog{color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:1rem;width:min(44rem,100% - 2rem);max-height:calc(100dvh - 2rem);margin:auto;overflow-y:auto;box-shadow:0 24px 60px #0f172a38}.prescription-details-dialog::backdrop{background:#0f172a8c}.prescription-registration-dialog{width:min(34rem,100% - 2rem)}.prescription-details-actions{position:sticky;bottom:0}@media (max-width:639px){.prescription-details-actions>button{width:100%}}.prescription-medicine-list{border:1px solid #e2e8f0;border-radius:.75rem;overflow:hidden}.prescription-medicine-heading,.prescription-medicine-row{grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1.15fr)) minmax(0,1.5fr) 2.75rem;align-items:center;gap:.5rem;display:grid}.prescription-medicine-heading{color:#334155;background:#f8fafc;padding:.75rem;font-size:.75rem;font-weight:700}.prescription-medicine-row{border-top:1px solid #e2e8f0;padding:.75rem}.prescription-medicine-row input{min-width:0}.prescription-medicine-row-title,.prescription-medicine-mobile-label{display:none}.prescription-medicine-remove{justify-content:center;justify-self:center;display:inline-flex}@media (max-width:1023px){.prescription-medicine-heading{display:none}.prescription-medicine-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:.75rem}.prescription-medicine-row:first-of-type{border-top:0}.prescription-medicine-row-title,.prescription-medicine-mobile-label{display:block}.prescription-medicine-row-title{color:#0f172a;align-self:center;font-size:.875rem;font-weight:600}.prescription-medicine-mobile-label{color:#334155;margin-bottom:.375rem;font-size:.75rem;font-weight:600}.prescription-medicine-remove{grid-area:1/2;justify-self:end}}@media (max-width:639px){.prescription-medicine-row{grid-template-columns:minmax(0,1fr) auto}.prescription-medicine-row>div{grid-column:1/-1}}.prescription-print{color:#0f172a;box-shadow:var(--shadow-card);background:#fff;border:1px solid #e2e8f0;border-radius:.75rem;padding:15mm 15mm 24px;font-size:.875rem;line-height:1.5}.prescription-print-header{border-bottom:2px solid #0f8c8c;justify-content:space-between;gap:1.5rem;min-height:2rem;padding-bottom:1.1rem;display:flex}.prescription-print-header h2{margin-bottom:.25rem;font-size:1.5rem;font-weight:700;line-height:1.25}.prescription-print-header>div{overflow-wrap:anywhere;min-width:0}.prescription-print-doctor{text-align:right}.prescription-print-title{justify-content:space-between;align-items:baseline;gap:1rem;margin-top:1.25rem;display:flex}.prescription-print-title h2{font-size:1.2rem;font-weight:700}.prescription-print-patient{background:#f8fafc;border:1px solid #e2e8f0;border-radius:.5rem;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-top:1.1rem;padding:.8rem;display:grid}.prescription-print-patient dt{color:#475569;text-transform:uppercase;font-size:.7rem;font-weight:700}.prescription-print-patient dd{overflow-wrap:anywhere;font-weight:600}.prescription-print-section{margin-top:1.5rem}.prescription-print-section h3{color:#135a5a;text-transform:uppercase;break-after:avoid;margin-bottom:.5rem;font-size:.8rem;font-weight:700}.prescription-print-section p{overflow-wrap:anywhere}.prescription-print table{border-collapse:collapse;table-layout:fixed;width:100%}.prescription-print th,.prescription-print td{text-align:left;vertical-align:top;overflow-wrap:anywhere;border:1px solid #cbd5e1;padding:.55rem .4rem}.prescription-print th{background:#f1f5f9;font-size:.75rem}.prescription-print th:first-child{width:25%}.prescription-print tbody tr{break-inside:avoid}.prescription-print-signature{flex-direction:column;align-items:flex-end;margin-top:3.5rem;font-size:.8rem;display:flex}.prescription-print-signature span{color:#64748b}@media (max-width:639px){.prescription-print{min-height:0;padding:1rem 1rem 24px;font-size:.75rem}.prescription-print-header,.prescription-print-title{flex-wrap:wrap}.prescription-print-doctor{text-align:left}.prescription-print-patient{grid-template-columns:repeat(2,minmax(0,1fr))}.prescription-print table,.prescription-print tbody,.prescription-print tbody tr,.prescription-print tbody td{width:100%;display:block}.prescription-print thead{display:none}.prescription-print tbody tr{border:1px solid #cbd5e1;margin-bottom:.75rem}.prescription-print tbody td{border:0;border-top:1px solid #e2e8f0;grid-template-columns:6.5rem minmax(0,1fr);gap:.5rem;padding:.35rem .5rem;font-size:.75rem;display:grid}.prescription-print tbody td:first-child{border-top:0}.prescription-print tbody td:before{content:attr(data-label);font-weight:700}}@page{size:A4;margin:12mm}@media print{.prescription-registration-dialog{display:none!important}body:has(.prescription-print)>:not(main){display:none!important}body{background:#fff!important;display:block!important}main,.prescription-page,.prescription-page>.container-page{background:#fff!important;border:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;display:block!important}.prescription-page>.container-page>:not(.prescription-pad-host),.prescription-pad-actions{display:none!important}.prescription-pad-host{margin:0!important}.prescription-print{width:100%;min-height:0;box-shadow:none;border:0;border-radius:0;padding:0;font-size:10pt;position:static}.prescription-print table{font-size:9pt;display:table}.prescription-print thead{display:table-header-group}.prescription-print tbody{display:table-row-group}.prescription-print tbody tr{border:0;margin:0;display:table-row}.prescription-print tbody td{border:1px solid #cbd5e1;width:auto;padding:.55rem .4rem;font-size:9pt;display:table-cell}.prescription-print tbody td:before{content:none}}
