/* Medical Certificate for Service at Sea Specific Styles */

.med-cert-container {
  /* height: 500px; Removed to allow dynamic height */
  font-size: 26px;
  display: flex !important;
  align-items: center !important; /* Vertical center */
  justify-content: center !important; /* Horizontal center of the columns */
  width: 100%;
}

.med-cert-container label,
.med-cert-container p,
.med-cert-container span,
.med-cert-container li,
.med-cert-container input,
.med-cert-container div:not(.med-cert-title) {
  font-size: 26px !important;
}

.med-cert-container input {
  font-weight: bold !important;
}

.med-cert-title {
  width: fit-content;
  font-size: 36px !important;
  font-weight: 900 !important;
  margin: 0 auto 20px auto !important;
  text-align: center;
}

/* Details Section (Left) */
.med-cert-details-container {
  width: 77%;
  text-align: center;
  padding-bottom: 16px;
}

/* Photo Section (Right) */
.med-cert-photo-section {
  width: 22%;
  display: flex !important;
  flex-direction: column !important;
  padding: 16px;
  text-align: center !important;
  align-items: center !important; /* Horizontally center content in column */
  justify-content: center !important; /* Vertically center content in column */
  margin-left: auto; /* Push to right if needed, or just let flex handle it */
}

.med-cert-appendix-label {
  border: 0.5px solid #000;
  padding: 10px;
  display: block;
  width: 180px;
  margin: 0 auto 10px auto !important; /* Force center */
  text-align: center;
}

.bb-1 {
    border-bottom: 1px solid #000 !important;
    border-radius: 0;
}

.dynamic-width {
    min-width: 80px;
    max-width: 100%;
}

.bb-n {
    border-bottom: none !important;
}

.med-cert-photo-box {
  border: 0.5px solid #000;
  padding: 10px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 180px;
  height: auto;
  min-height: 190px;
  margin: 0 auto 10px auto !important;
  overflow: hidden;
}

.med-cert-photo-box input[type="file"] {
  width: 100%;
  font-size: 10px !important;
  margin-top: 5px;
}

.med-cert-photo-img {
  width: 170px;
  height: 150px;
  display: block;
  margin: 0 auto !important; /* Force center */
}

/* Utility Classes for this section */
.med-cert-text-center-imp {
  text-align: center !important;
}
.med-cert-w-20-imp {
  width: 20% !important;
}
.med-cert-flex-1 {
  flex: 1;
}
.med-cert-flex-1-center {
  flex: 1;
  text-align: center !important;
}

.font-cambria {
  font-family: Cambria, serif !important;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
}
