
/* V5.1.161 FIX 07 — Chart summary/action row only */
.chart-documentation .chart-doc-summary-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  min-height:38px!important;
}
.chart-documentation .chart-doc-summary-row .encounter-doc-actions{
  position:static!important;
  margin:0 0 0 auto!important;
  padding:0!important;
  flex:0 0 auto!important;
}
@media(max-width:900px){
  .chart-documentation .chart-doc-summary-row{flex-wrap:wrap!important}
  .chart-documentation .chart-doc-summary-row .encounter-doc-actions{margin-left:0!important}
}

/* V5.1.161 FIX 08 — tightly scoped cleanup */
/* Restore breathing room around Chart Diagnosis without moving Chart action buttons. */
.chart-diagnosis-panel{margin-top:14px!important;margin-bottom:14px!important;}
/* Patient Add / Intake-style insurance fields: separate payment choice from carrier row. */
#patientPaymentSection [data-insurance-fields]{margin-top:14px!important;}

/* V5.1.161 FIX 09 — space between document tabs and the active document's section tabs. */
.chart-documentation .v306-doc-row{margin-bottom:8px!important;}
