body {
    font-family: Arial, sans-serif;
    background: #eee;
    margin: 0;
  }
  
  .form-area {
    width: 90%;
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border: 1px solid #ccc;
  }
  
  label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
  }
  
  input, select, textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    font-size: 14px;
  }
  
  textarea {
    height: 70px;
  }
  
  button {
    margin-top: 15px;
    padding: 8px 14px;
  }


  
.hint {
    color: #666;
    font-size: 12px;
    }

.demo_row {
        display: flex;
        gap: 10px;
    }
    
.demo_row .field {
        flex: 1;
    }

.demo_row .patient_name {
        flex: 2;
    }

.clinical {
        padding: 6px;
        font-size: 14px;
    }

#referred_by, #reason_admission, #chief_complain {
        height: 30px;
    }
      
.comorbidity-row,
    .procedure-row,
    .medication-row {
        display: flex;
        gap: 8px;
        margin-bottom: 2px;
      }
      
.comorbidity-row input,
      .procedure-row input,
      .medication-row input {
        flex: 1;
      }
      
.comorbidity-row button
      .procedure-row button,
      .medication-row button {
        width: auto;
      }

.add-btn {
        margin-top: 2px;
        margin-bottom: 10px;
      }

.declaration {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 14px;
        font-weight: bold;
    }

.declaration input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-top: 14px;
        flex: 0 0 20px;
    }

.printdeclare {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

.required::after {
        content: " *";
        color: red;
        font-weight: bold;
    }

  .page {
    width: 210mm;
    min-height: 297mm;
    margin: 20px auto;
    padding: 12mm;
    background: white;
    box-sizing: border-box;
    font-size: 12px;
    color: black;
  }
  
  .header {
    text-align: center;
    border: 2px solid black;
    padding: 4px;
    font-size: 14px;
    margin-bottom: 4px;
  }
  
  .info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 4px;
  }
  
  .info-table td {
    border: 1px solid black;
    padding: 3px;
    vertical-align: top;
  }
  
  .info-table td:nth-child(1),
  .info-table td:nth-child(3),
  .info-table td:nth-child(5),
  .info-table td:nth-child(7) {
    font-weight: bold;
    width: 80px;
    background: #d3d3d3;
  }
  
  .section {
    border: 1px solid black;
    margin-top: 8px;
    min-height: 30px;
  }
  
  .section h3 {
    margin: 0;
    padding: 2px 6px;
    font-size: 12px;
    background: #f2f2f2;
    border-bottom: 1px solid black;
  }
  
  .section div {
    padding: 6px;
    white-space: pre-wrap;
    min-height: 12px;
  }

  .demographic_block {
    background-color: #f0f8ff;
    border: 1px solid #b7d7f5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

#patient_name {

    text-transform: uppercase;
}
  
  @media print {
    .no-print {
      display: none;
    }
  
    body {
      background: white;
    }
  
    .page {
      margin: 0;
      width: auto;
      min-height: auto;
      padding: 8mm;
    }
  }

  @media (max-width: 768px) {
    .demo_row_1 {
        display: block;
    }

    .demo_row_1 .field {
        margin-bottom: 10px;
    }

}