/* =========================================================
   791 Midwife App - Plain Clinical EHR Table Report
   Standard Hospital Medical Report (No icons, No shiny effects)
   ========================================================= */

.midwife-report-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  z-index: 500;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 0 0 50px 50px;
  color: #0F172A;
}

.midwife-report-overlay.active {
  transform: translateX(0);
}

/* Plain Top Header */
.midwife-report-header {
  width: 100%;
  padding: 48px 16px 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #CBD5E1;
  background-color: #F8FAFC;
  box-sizing: border-box;
  z-index: 10;
}

.midwife-report-back-btn {
  background: transparent;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0F172A;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding: 5px 10px;
  transition: background-color 0.1s ease;
}

.midwife-report-back-btn:active {
  background-color: #E2E8F0;
}

.midwife-report-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.report-live-timer {
  background: #E2E8F0;
  color: #0F172A;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

/* Scrollable Content Container */
.midwife-report-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 36px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

/* Section Header (Plain Text, No Icons) */
.ehr-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 6px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #CBD5E1;
}

/* Boring Standard EHR Table */
.ehr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  box-sizing: border-box;
}

.ehr-table th,
.ehr-table td {
  padding: 7px 10px;
  text-align: left;
  border: 1px solid #E2E8F0;
  line-height: 1.35;
}

.ehr-table th {
  background-color: #F1F5F9;
  color: #475569;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: 40%;
}

.ehr-table td {
  color: #0F172A;
  font-weight: 500;
}

.ehr-table td.strong {
  font-weight: 700;
}

/* Diagnoses List Table (1 row per diagnose, 5 max) */
.ehr-diagnosis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  border: 1px solid #CBD5E1;
}

.ehr-diagnosis-table thead th {
  background-color: #F1F5F9;
  color: #475569;
  font-weight: 700;
  text-align: left;
  padding: 6px 10px;
  border: 1px solid #CBD5E1;
  font-size: 11.5px;
  text-transform: uppercase;
}

.ehr-diagnosis-table td {
  padding: 6px 10px;
  border: 1px solid #E2E8F0;
  color: #0F172A;
}

.ehr-diagnosis-table td.code {
  font-family: monospace;
  font-weight: 700;
  color: #0284C7;
  width: 65px;
  white-space: nowrap;
}

.ehr-diagnosis-table tr:nth-child(even) {
  background-color: #F8FAFC;
}
