/* Free dental lab Rx form (/tools/rx-form/). Look and behavior come from the approved prototype
   (DEC_20261020_무료Rx양식_페이지); every rule is scoped to .rxf so it cannot touch the site styles. */
.rxf{--ink:#1d2733;--muted:#5b6876;--line:#c9d1da;--accent:#1f4e79;--accent-soft:#e8f0f8;--bg:#f2f4f7;color:var(--ink);font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-text-size-adjust:100%;padding:0 16px}
.rxf *{box-sizing:border-box}
.rxf-card{max-width:960px;margin:20px auto;background:#fff;border:1px solid var(--line);border-radius:10px;padding:24px 28px}
.rxf h1{font-size:1.5rem;line-height:1.25;letter-spacing:0;font-weight:700;max-width:none;margin:0 0 6px}
.rxf h1 .sub{display:block;font-size:1rem;font-weight:500;color:var(--muted);margin-top:2px}
.rxf .lead{margin:0 0 10px;color:var(--muted)}
.rxf .notice{background:var(--accent-soft);border-left:4px solid var(--accent);padding:10px 12px;border-radius:6px;font-size:.92rem;margin:0 0 12px}
.rxf .notice p{margin:0 0 4px}
.rxf .notice p:last-child{margin:0}
.rxf .steps{margin:0 0 14px;padding-left:20px;font-size:.92rem;color:var(--muted)}
.rxf .toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 16px}
.rxf .toolbar .hint{flex:1 1 200px}
.rxf .btn{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--accent);background:var(--accent);color:#fff;font:inherit;font-weight:600;padding:10px 16px;border-radius:8px;cursor:pointer;min-height:44px;text-decoration:none}
.rxf .btn.ghost{background:#fff;color:var(--accent)}
.rxf .btn:focus-visible,.rxf .tooth:focus-visible{outline:3px solid #f0a500;outline-offset:2px}
.rxf fieldset{border:1px solid var(--line);border-radius:8px;padding:12px 14px 14px;margin:0 0 14px;min-width:0}
.rxf legend{font-weight:700;padding:0 6px;color:var(--accent)}
.rxf .grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px}
.rxf .grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.rxf .span2{grid-column:span 2}
.rxf .span3{grid-column:1/-1}
.rxf .f{display:flex;flex-direction:column;gap:3px;min-width:0}
.rxf .lbl{font-size:.85rem;font-weight:600}
.rxf .hint{font-size:.8rem;color:var(--muted);font-weight:400}
.rxf input[type=text],.rxf input[type=date],.rxf textarea{width:100%;font:inherit;color:inherit;border:1px solid var(--line);border-radius:6px;padding:8px 10px;background:#fff;min-height:40px}
.rxf textarea{min-height:110px;resize:vertical}
.rxf input[type=text]:focus,.rxf input[type=date]:focus,.rxf textarea:focus{outline:2px solid var(--accent);outline-offset:0;border-color:var(--accent)}
.rxf .row{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin:0 0 10px}
.rxf .row:last-child{margin-bottom:0}
.rxf .row>.lbl{min-width:130px}
.rxf .opt{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;cursor:pointer;min-height:32px}
.rxf .opt input{width:18px;height:18px;margin:0;accent-color:var(--accent)}
.rxf .otherwrap{display:inline-flex;align-items:center;gap:6px;flex:1 1 180px;min-width:0}
.rxf .otherwrap input[type=text]{min-height:34px;padding:5px 8px}
.rxf .chart-wrap{margin:8px 0 10px}
.rxf .sides{display:flex;justify-content:space-between;font-size:.78rem;color:var(--muted);margin:0 2px 4px}
.rxf .arch{font-size:.78rem;font-weight:600;color:var(--muted);margin:2px 2px}
.rxf .chart{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:4px}
.rxf .chart.upper{padding-bottom:6px;border-bottom:2px solid var(--line)}
.rxf .chart.lower{padding-top:6px}
.rxf .tooth{appearance:none;-webkit-appearance:none;font:inherit;font-size:.85rem;font-weight:600;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:6px;min-height:38px;padding:0;cursor:pointer;min-width:0}
.rxf .tooth:nth-child(8){margin-right:8px}
.rxf .tooth[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.rxf .sig{display:flex;gap:24px;align-items:flex-end;margin-top:4px}
.rxf .sigline{flex:3;display:flex;flex-direction:column}
.rxf .sigline.short{flex:1}
.rxf .sigline .line{display:block;height:36px;border-bottom:1.5px solid var(--ink)}
.rxf .sigline .cap{font-size:.8rem;color:var(--muted);margin-top:3px}
.rxf .notes{border-top:1px solid var(--line);margin-top:18px;padding:12px 0 0;font-size:.9rem;color:var(--muted)}
.rxf .notes p{margin:0 0 8px}
.rxf .notes a{color:var(--accent);font-weight:600}
.rxf .credit{font-size:.72rem;color:#8a96a3;text-align:center;margin:16px 0 0}
.rxf .print-only{display:none}
@media screen and (max-width:600px){
  .rxf{padding:0}
  .rxf-card{margin:0;border-left:0;border-right:0;border-radius:0;padding:16px 12px}
  .rxf h1{font-size:1.25rem}
  .rxf fieldset{padding:10px 10px 12px}
  .rxf .grid,.rxf .grid.two{grid-template-columns:1fr}
  .rxf .span2,.rxf .span3{grid-column:auto}
  .rxf .row>.lbl{min-width:0;width:100%}
  .rxf .chart{grid-template-columns:repeat(8,minmax(0,1fr))}
  .rxf .tooth{min-height:42px}
  .rxf .tooth:nth-child(8){margin-right:0}
  .rxf .sides{display:none}
  .rxf .btn{flex:1 1 auto}
  .rxf .sig{flex-direction:column;align-items:stretch;gap:12px}
}
@page{margin:10mm}
@media print{
  html,body{background:#fff!important;color:#000!important}
  nav,footer,.crumb,.rxf-faq{display:none!important}
  main,section{padding:0!important;margin:0!important}
  .rxf{font-size:8.5pt;line-height:1.25;padding:0}
  .rxf .no-print{display:none!important}
  .rxf .print-only{display:block!important}
  .rxf-card{max-width:none;margin:0;padding:0;border:0;border-radius:0}
  .rxf .print-only.phead{display:flex!important;justify-content:space-between;align-items:baseline;border-bottom:.5mm solid #000;padding-bottom:1mm;margin-bottom:2mm}
  .rxf .phead b{font-size:12pt}
  .rxf fieldset{border:.25mm solid #000;border-radius:0;padding:1mm 2.5mm 1.5mm;margin:0 0 1.8mm;break-inside:avoid;page-break-inside:avoid}
  .rxf legend{color:#000;font-size:8pt;padding:0 1mm}
  .rxf .grid{gap:1.2mm 4mm}
  .rxf .f{flex-direction:row;align-items:baseline;gap:1.5mm}
  .rxf .lbl{font-size:8pt;white-space:nowrap}
  .rxf input[type=text],.rxf input[type=date]{border:0;border-bottom:.2mm solid #000;border-radius:0;padding:0 .5mm;min-height:0;height:4.6mm;font-size:8.5pt;flex:1 1 auto;width:auto;min-width:0;background:#fff;color:#000}
  .rxf .otherwrap input[type=text]{min-height:0;height:4.4mm;padding:0 .5mm}
  .rxf ::placeholder{color:transparent}
  .rxf input[type=date]::-webkit-calendar-picker-indicator{display:none}
  .rxf textarea{display:none}
  .rxf #instrPrint{min-height:22mm;white-space:pre-wrap;word-wrap:break-word;font-size:8.5pt}
  .rxf .row{gap:.4mm 3.5mm;margin:0 0 .8mm}
  .rxf .row>.lbl{min-width:30mm}
  .rxf .opt{min-height:0;gap:1mm}
  .rxf .opt input{width:3mm;height:3mm}
  .rxf .otherwrap{flex:1 1 30mm}
  .rxf .chart-wrap{margin:.5mm 0 1mm}
  .rxf .sides,.rxf .arch{font-size:7pt;color:#000;margin:0}
  .rxf .chart{gap:.8mm}
  .rxf .chart.upper{padding-bottom:.8mm;border-bottom:.3mm solid #000}
  .rxf .chart.lower{padding-top:.8mm}
  .rxf .tooth{min-height:0;height:5.5mm;font-size:7.5pt;border:.2mm solid #000;border-radius:1mm;color:#000;background:#fff}
  .rxf .tooth[aria-pressed="true"]{background:#000!important;color:#fff!important;text-decoration:underline;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .rxf .sig{gap:8mm;margin-top:1mm}
  .rxf .sigline .line{height:9mm;border-bottom:.3mm solid #000}
  .rxf .sigline .cap{font-size:7.5pt;color:#000;margin-top:.5mm}
  .rxf .credit{margin:1.5mm 0 0;font-size:6.5pt;color:#555}
  .rxf a{color:#000;text-decoration:none}
}
