@font-face{font-family:LXGWWenKaiMedium;src:url(/assets/LXGWWenKai-Medium-D3kxlXf-.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}body{font-family:LXGWWenKaiMedium,Inter,ui-sans-serif,system-ui,sans-serif;font-size:16px;line-height:1.6;color:#1f2937;background:#fff;margin:0;padding:5px;box-sizing:border-box}.loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;font-size:18px;text-align:center;display:flex;justify-content:center;align-items:center}.container{max-width:800px;margin:0 auto;background:#fff;border-radius:12px;overflow:hidden}.qrcode-view{position:absolute;top:62px;left:12px;width:70px;height:70px;background:#fff;border-radius:4px;box-shadow:0 1px 3px #00000026;z-index:10}.header{position:relative;text-align:center;padding:20px 16px 10px;border-bottom:2px solid #059669;background:#fff}.header h1{font-size:24px;font-weight:700;color:#059669;margin:0}.header p{font-size:18px;margin:8px 0 12px;color:#4b5563}.contact-row{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:18px;color:#4b5563}.info-grid{display:flex;justify-content:space-between;grid-template-columns:1fr;gap:12px;padding:16px}@media(min-width:600px){.info-grid{grid-template-columns:repeat(2,1fr)}}.info-item{font-size:15px}.info-label{font-weight:700;color:#059669}.view-toggle{text-align:center;padding:12px;margin-top:10px}.view-toggle button{padding:6px 16px;background:#059669;color:#fff;border:none;border-radius:20px;font-size:14px;cursor:pointer;transition:background .2s;font-family:LXGWWenKaiMedium,Inter,ui-sans-serif,system-ui,sans-serif}.view-toggle button:hover{background:#047857}.card-view{padding:0 10px}.medicine-view{margin-bottom:10px;border-bottom:2px solid #059669}.medicine-title{text-align:center;font-size:20px;margin:10px 0}.medicine-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:16px;margin-bottom:15px;box-shadow:0 2px 4px #00000008;transition:transform .2s}.medicine-card:hover{transform:translateY(-2px);box-shadow:0 4px 8px #0000000f}.card-header{display:flex;justify-content:space-between;margin-bottom:12px;padding-bottom:8px;border-bottom:1px dashed #e5e7eb}.card-index{font-weight:700;color:#059669;font-size:18px}.card-name{font-size:22px;font-weight:700;color:#1f2937;word-break:break-word;line-height:1.4;padding-bottom:5px;border-bottom:1px dashed #aaa}.card-params{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:10px}.param-item{display:flex;flex-direction:column}.param-label{font-size:20px;margin-bottom:4px}.param-value{font-size:20px;color:#1f2937;font-weight:500}.table-view{padding:0 16px 15px}.prescription-table{width:100%;border-collapse:collapse;text-align:center}.prescription-table th,.prescription-table td{border:1px solid #d1d5db;padding:10px 8px;text-align:center;white-space:normal;word-break:break-word}.prescription-table th{background-color:#f3f4f6;font-weight:400;color:#4b5563}th:first-child,td:first-child{white-space:nowrap}th:nth-child(5){white-space:nowrap}.notes{padding:10px 14px;background-color:#f0fdf4;border:1px dashed #bbf7d0;font-size:18px;margin:20px 16px 16px;border-radius:8px}.total-section{padding:10px 14px;text-align:center;font-size:17px;font-weight:700;color:#059669;background:#f0fdf4;margin:0 16px 16px;border-radius:8px}.no-print{text-align:center;padding:5px 20px 20px}.no-print button{padding:10px 24px;background-color:#059669;color:#fff;border:none;border-radius:6px;font-size:16px;cursor:pointer;font-weight:500;font-family:LXGWWenKaiMedium,Inter,ui-sans-serif,system-ui,sans-serif}.no-print button:hover{background-color:#047857}.image-preview-container{padding:16px;text-align:center}.image-preview-box{border:2px dashed #bbf7d0;border-radius:12px;padding:16px;background:#f0fdf4;max-width:800px;margin:0 auto}.generated-image{max-width:100%;height:auto;border-radius:8px;box-shadow:0 2px 8px #0000000d;display:block;margin:0 auto}.hint-text{font-size:14px;color:#1f2937;margin-top:12px;font-weight:500}@media print{html,body{background:#fff;margin:0;padding:0}body{font-family:LXGWWenKaiMedium,Inter,ui-sans-serif,system-ui,sans-serif;font-size:18px;line-height:1.5;color:#1f2937;background:#fff;margin:0 auto;padding:0;width:156mm;height:210mm;box-sizing:border-box}.container{box-shadow:none;border-radius:0;display:flex;flex-direction:column;justify-content:center;align-items:center}.view-toggle,.no-print,.card-view{display:none!important}.table-view{display:block!important;padding:0;margin-bottom:10px}.table-view table{font-size:16px}th,td{padding:8px;font-size:16px;text-align:center}th{padding:8px 6px;white-space:nowrap}}.nowarp{flex-wrap:nowrap;white-space:nowrap;word-break:break-word}.icon_active_loading{--un-icon: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Crect width='2' height='5' x='11' y='1' fill='currentColor' opacity='.14'/%3E%3Crect width='2' height='5' x='11' y='1' fill='currentColor' opacity='.29' transform='rotate(30 12 12)'/%3E%3Crect width='2' height='5' x='11' y='1' fill='currentColor' opacity='.43' transform='rotate(60 12 12)'/%3E%3Crect width='2' height='5' x='11' y='1' fill='currentColor' opacity='.57' transform='rotate(90 12 12)'/%3E%3Crect width='2' height='5' x='11' y='1' fill='currentColor' opacity='.71' transform='rotate(120 12 12)'/%3E%3Crect width='2' height='5' x='11' y='1' fill='currentColor' opacity='.86' transform='rotate(150 12 12)'/%3E%3Crect width='2' height='5' x='11' y='1' fill='currentColor' transform='rotate(180 12 12)'/%3E%3CanimateTransform attributeName='transform' calcMode='discrete' dur='0.85s' repeatCount='indefinite' type='rotate' values='0 12 12;30 12 12;60 12 12;90 12 12;120 12 12;150 12 12;180 12 12;210 12 12;240 12 12;270 12 12;300 12 12;330 12 12;360 12 12'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em;margin-right:5px}
