/* ─── order.css ──────────────────────────────────────────────── */

/* Patient header card */
.patient-header-card {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius-lg); padding: 20px 24px;
  margin-bottom: 20px; color: white;
}
.patient-header-main { display: flex; gap: 18px; align-items: flex-start; }

.patient-avatar {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-600), var(--navy-500));
  color: white; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.patient-header-info    { flex: 1; }
.patient-full-name      { font-size: 18px; font-weight: 700; color: white; margin-bottom: 6px; }
.patient-header-meta    { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.patient-header-meta span { display: flex; align-items: center; gap: 4px; }
.patient-diagnosis      { font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 6px; }

.vital-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; margin-top: 10px;
}
.vital-item {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; padding: 5px 8px; text-align: center;
}
.vital-label { display: block; font-size: 10px; color: rgba(255,255,255,0.5); }
.vital-val   { font-size: 13px; font-weight: 600; font-family: 'IBM Plex Mono', monospace; color: var(--teal-300); }

/* Drug form section */
.drug-form-section {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 20px; box-shadow: var(--shadow);
}
.drug-form-header {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  padding: 14px 20px; display: flex; align-items: center; justify-content: space-between;
}
.selected-drug-name     { font-size: 16px; font-weight: 700; color: white; }
.selected-drug-category { font-size: 11px; color: var(--teal-300); background: rgba(6,182,212,0.15); padding: 2px 8px; border-radius: 20px; }

/* Dose calc box */
.dose-calc-box {
  background: linear-gradient(135deg, #ecfdf5, #cffafe);
  border: 1px solid #a7f3d0; border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 16px;
}
.dose-calc-header { font-size: 11px; font-weight: 600; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.dose-calc-main   { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.calc-dose-value  { font-size: 28px; font-weight: 700; font-family: 'IBM Plex Mono', monospace; color: var(--navy-800); }
.dose-formula     { font-size: 12px; color: var(--slate-500); font-family: 'IBM Plex Mono', monospace; }
.freq-recommended { font-size: 11px; color: var(--teal-600); font-weight: 500; margin-top: 4px; }

/* Doctor remarks */
#doctor-remarks-section {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 16px 20px;
  margin-bottom: 16px; box-shadow: var(--shadow);
}

/* Override note */
.override-note { font-size: 11px; color: var(--amber-600); margin-top: 4px; display: none; }
#prescribed-dose:not([data-default]) + .override-note { display: block; }
