/**
 * eCW iframe embed only. Applied when ScribeAI is loaded inside eCW's modal (html.ecw-embed).
 * Fills the iframe and allows zoom; no impact when not embedded.
 */

html.ecw-embed {
  height: 100%;
  overflow: hidden;
}

html.ecw-embed body {
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html.ecw-embed #app-content {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

html.ecw-embed .main-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

html.ecw-embed .main-content-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Patient mismatch warning banner */
html.ecw-embed #ecw-patient-mismatch-banner {
  flex-shrink: 0;
}

html.ecw-embed .ecw-mismatch-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background-color: #fef3c7;
  border-left: 3px solid #f59e0b;
  font-size: 11px;
  color: #92400e;
  line-height: 1.3;
}

html.ecw-embed .ecw-mismatch-inner i {
  flex-shrink: 0;
  font-size: 11px;
  color: #d97706;
}

html.ecw-embed #ecw-mismatch-text {
  flex: 1;
}

html.ecw-embed #ecw-mismatch-switch-btn {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
  background: #fde68a;
  border: 1px solid #f59e0b;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}

html.ecw-embed #ecw-mismatch-switch-btn:hover {
  background: #fcd34d;
}

/* Encounter selector */
html.ecw-embed #ecw-encounter-selector-container {
  flex-shrink: 0;
}

html.ecw-embed .ecw-encounter-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background-color: #eff6ff;
  border-left: 3px solid #3b82f6;
  font-size: 12px;
  color: #1e40af;
  line-height: 1.3;
}

html.ecw-embed .ecw-encounter-inner label {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 12px;
  color: #1e40af;
}

html.ecw-embed .ecw-encounter-inner i {
  flex-shrink: 0;
  font-size: 12px;
  color: #3b82f6;
}

html.ecw-embed #ecw-encounter-select {
  flex: 1;
  min-width: 0;
  padding: 3px 6px;
  font-size: 11px;
  color: #1e3a5f;
  background: #fff;
  border: 1px solid #93c5fd;
  border-radius: 3px;
  cursor: pointer;
}

html.ecw-embed #ecw-encounter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

/* Transcript tab: allow scroll so Save Instructions and content above stay reachable */
html.ecw-embed .transcript-tab-panel {
  overflow-y: auto;
  min-height: 0;
}
