 @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

 body {
     font-family: 'Inter', sans-serif;
     background-color: #fff;
     color: #333;

 }

 .form-container {
     max-width: 800px;
     margin: auto;
     background: #fff;
     padding: 2rem;
 }

 .header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 1rem;
 }

 .logo {
     font-size: 2.5rem;
     font-weight: 700;
     color: #00008b;
 }

 .logo-img {
     height: 70px;
     width: auto;
 }

 .header-info {
     display: flex;
     flex-direction: column;
     gap: 0.5rem;
     font-size: 0.9rem;
 }

 .header-info label {
     display: flex;
     justify-content: space-between;
     font-weight: 500;
     color: #555;
     gap: .5rem;
     font-size: 0.7rem;
     font-weight: bold;
 }

 .header-info input {
     border: 1px solid #ccc;
     border-radius: 4px;
     padding: 0.2rem 0.25rem;
     width: 250px;
     font-size: .6rem;
 }

 .prescription-table {
     border-collapse: collapse;
     width: 100%;
     margin-top: 1.5rem;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
     border-radius: 4px;
     overflow: hidden;
 }

 .prescription-table th,
 .prescription-table td {
     border: 1px solid #ddd;
     padding: 0.25rem .9rem;
     text-align: center;
 }

 .prescription-table th {
     background-color: #0006e6;
     color: white;
     font-weight: 500;
     text-transform: uppercase;
     font-size: 0.7rem;
 }

 .prescription-table .rx-row th {
     background-color: transparent;
     color: #0006e6;
     font-weight: bold;
     font-size: 2rem;
     padding: 0;
     border: none;
     width: 40px;
 }

 .prescription-table .rx-row td {
     background-color: #f5f5f5;
     font-weight: 500;
     text-transform: uppercase;
 }

 .prescription-table .eye-row td {
     background-color: #f5f5f5;
     font-weight: 500;
     text-transform: uppercase;
     color: #00008b;
     font-size: .75rem;

 }

 .prescription-table input {
     width: 100%;
     text-align: center;
     border: 1px solid #ccc;
     border-radius: 4px;
     padding: 0.2rem 0;
     font-size: .65rem;
 }

 .field-section {
     margin-top: .5rem;
 }

 .field-section span {
     font-size: .7rem;
     font-weight: 600;
 }

 .field-section h2 {
     font-size: .7rem;
     font-weight: 600;
     border-bottom: 1px solid #ccc;
     padding-bottom: 0.5rem;
     margin-bottom: .75rem;
 }

 .field-group {
     background-color: #f5f5f5;
     padding: .25rem 1rem;
     border-radius: 4px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-wrap: wrap;
     gap: 1rem;
     min-height: 35px;
 }

 .field-group label {
     display: flex;
     align-items: center;
     font-weight: 500;
     gap: 0.3rem;
     font-size: 0.65rem;
 }

 .field-group input[type="radio"],
 .field-group input[type="checkbox"] {
     transform: scale(1.2);
     accent-color: #00008b;
 }

 .field-group input[type="text"] {
     border: 1px solid #ccc;
     border-radius: 4px;
     padding: 0.2rem 0.5rem;
     width: 96px;
 }

 #observations {
     width: 100%;
     height: 120px;
     border: 1px solid #ccc;
     border-radius: 8px;
     resize: vertical;
     margin-top: 0.5rem;
     padding: 0.5rem;
     font-size: 0.8rem;
 }

 .footer {
     display: flex;
     justify-content: space-between;
     margin-top: 2rem;
     font-size: 0.9rem;
     color: #555;
     border-top: 1px solid #ccc;
     border-bottom: 1px solid #ccc;
     padding: 0.5rem;
 }

 .print-button {

     background-color: #00008b;
 }

 .print-button,
 .reset-button {
     font-size: 0.9rem;
     color: white;
     padding: 0.75rem 1.5rem;
     border-radius: 8px;
     border: none;
     cursor: pointer;
     font-weight: 500;
     transition: background-color 0.3s;
     margin-top: 2rem;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 1rem;
     width: fit-content;
     min-width: 230px;
 }

 .reset-button {
     background-color: #2b00e3;
 }


 .print-button:hover,
 .reset-button:hover {
     background-color: #00005a;
 }

 .input-group {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     font-size: 0.7rem;
     font-weight: bold;
 }

 .frame-measurements-container {
     position: relative;
     margin-top: 1rem;
     display: flex;
     flex-direction: column;
     align-items: center;
     width: 360px;
     height: 165px;

 }

 .frame-measurements {
     position: relative;
     width: 360px;
     height: auto;
 }

 .frame-input {
     position: absolute;
     background-color: #e5e5e5;
     border: 1px solid #000000a5;
     border-radius: 4px;
     padding: 0.2rem 0.3rem;
     font-size: 0.7rem;
     width: 42px;
     text-align: center;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
 }

 .input-horizontal-center {
     left: 50%;
     transform: translateX(-50%);
 }

 .input-vertical-center {
     top: 50%;
     transform: translateY(-50%);
 }

 #box-width {
     top: -10px;
     left: 72px;
 }

 #box-height {
     top: 68px;
     left: -6px;
 }

 #bridge-width {
     top: 50px;
     left: 163px;
 }

 #dia-width {
     top: 67px;
     left: 70px;
 }

 #tl-width {
     bottom: -2px;
     left: 90px;
 }

 /* Estilos de impresión */
 @media print {
     body {
         background-color: #fff;
         transform: scale(0.9);
     }

     .form-container {
         box-shadow: none;
         border: none;
         padding: 0;
     }

     .header-info {
         gap: .2rem;
     }

     .header-info input {
         font-size: .6rem;
         border: none !important;
         padding: 0 !important;
     }

     .frame-input {
         color: #000 !important;
         border-color: #e5e5e5 !important;
         background-color: #fff !important;
         box-shadow: none !important;
     }

     .field-section {
         margin-top: .25rem !important;
     }

     .field-group {
         background-color: transparent;
         border-bottom: 1px solid #e5e5e5 !important;
     }

     .logo-img {
         height: 50px;
         width: auto;
     }

     .print-button,
     .reset-button,
     .footer,
     .image-section {
         display: none !important;
     }

     input,
     textarea {
         -webkit-print-color-adjust: exact;
         border-color: #e5e5e5 !important;
     }


     .prescription-table {
         margin-top: 1rem !important;
         margin-bottom: 0.5rem !important;
     }

     .prescription-table th {
         background-color: #f5f5f5 !important;
         color: #000 !important;
     }

     .prescription-table .rx-row th {
         color: #000 !important;
     }

     .prescription-table .eye-row td {
         color: #000 !important;
     }

     .prescription-table input {
         border-color: transparent !important;
         padding: 0 !important;
     }
 }