/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f7fb;
  color: #1e293b;
}

/* Layout */
.app-body {
  min-height: 100vh;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, #0ea5e9, #22c1c3);
  color: white;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.top-nav a.active,
.top-nav a:hover {
  background: rgba(15, 23, 42, 0.18);
  color: #ffffff;
}

/* Panels and general */
.layout-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.5rem 1.5rem;
}

@media (max-width: 900px) {
  .layout-two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.panel-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #22c1c3);
  color: white;
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.btn-xs {
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
}

.btn-full {
  width: 100%;
}

/* Schedule */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.schedule-time {
  font-weight: 600;
  color: #0f172a;
}

.schedule-patient {
  font-weight: 500;
}

.schedule-reason {
  font-size: 0.85rem;
  color: #64748b;
}

/* Calendar placeholder */
.calendar-placeholder {
  border-radius: 0.75rem;
  background: repeating-linear-gradient(
    45deg,
    #e5f4ff,
    #e5f4ff 10px,
    #f1f5f9 10px,
    #f1f5f9 20px
  );
  padding: 2rem 1rem;
  text-align: center;
}

.calendar-placeholder p {
  margin: 0.25rem 0;
}

/* EMR layout */

.emr-layout {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 60px);
}
@media (max-width: 900px) {
  .emr-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}




.side-nav {
  background: linear-gradient(180deg, #113B5C, #1B5F75);
  /* green gradient to match Pluto branding */
  color: white;
  padding: 0.9rem 0.8rem;
  box-shadow: 8px 0 24px rgba(15, 23, 42, 0.55);
}

.side-nav-item {
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.35rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.side-nav-item.active,
.side-nav-item:hover {
  background: rgba(148, 163, 184, 0.22);
  color: #ffffff;
  border-radius: 999px;
}

.emr-main {
  position: relative;
  padding: 1rem 1.5rem 1.5rem;
}

/* Patient banner */
.patient-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  background: #e0f2fe;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.patient-name {
  font-size: 1.15rem;
  font-weight: 600;
}

.patient-demographics {
  font-size: 0.85rem;
  color: #0f172a;
}

.patient-actions {
  display: flex;
  gap: 0.5rem;
}

/* Simple lists + overview */
.subheading {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.simple-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
}

.simple-list li + li {
  margin-top: 0.25rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 700px) {
  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Timeline */
.timeline {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.timeline li + li {
  margin-top: 0.75rem;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
}

.timeline-entry {
  font-size: 0.85rem;
  color: #475569;
}

/* Encounter layout */
.encounter-layout {
  padding: 1rem 1.5rem 1.5rem;
}

.encounter-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 1000px) {
  .encounter-header {
    grid-template-columns: minmax(0, 1fr);
  }
}

.patient-search {
  display: flex;
  gap: 0.5rem;
}

.patient-search input {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
}

.enc-patient-summary {
  background: #e0f2fe;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
}

.enc-patient-name {
  font-size: 1rem;
  font-weight: 600;
}

.enc-patient-details {
  font-size: 0.8rem;
}

.enc-header-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

/* Notes and tabs */
.note-textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 0.75rem;
}

.tabs-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.encounter-tab {
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  background: #e2e8f0;
  color: #0f172a;
  cursor: pointer;
}

.encounter-tab.active {
  background: #0ea5e9;
  color: white;
}

.encounter-content {
  display: none;
}

.encounter-content.active {
  display: block;
}

/* ROS & PE grids */
.ros-grid,
.pe-grid,
.history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 800px) {
  .ros-grid,
  .pe-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ros-card,
.pe-card,
.history-card {
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 0.5rem 0.6rem;
}

.ros-card h4,
.pe-card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
}

.ros-card textarea,
.pe-card textarea,
.history-card textarea {
  width: 100%;
  min-height: 70px;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.45rem;
  font-size: 0.8rem;
  resize: vertical;
}

/* Vitals */
.vitals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 700px) {
  .vitals-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.vital-item {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.35rem;
  row-gap: 0.15rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  font-size: 0.8rem;
}

.vital-item label {
  font-weight: 600;
}

.vital-item input {
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  padding: 0.25rem 0.35rem;
  font-size: 0.8rem;
}

.vital-unit {
  font-size: 0.75rem;
  color: #64748b;
}

.vital-source {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  color: #0ea5e9;
}

/* Device panel and badges */
.device-panel {
  margin-top: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.75rem;
  background: #f8fafc;
}

.device-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.device-list {
  margin-top: 0.25rem;
}

.device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.device-name {
  font-weight: 500;
}

.device-meta {
  font-size: 0.75rem;
  color: #64748b;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-online {
  background: #22c55e1a;
  color: #15803d;
}

.badge-offline {
  background: #e5e7eb;
  color: #6b7280;
}

.badge-critical {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

/* Claim layout */
.claim-layout {
  padding: 1rem 1.5rem 1.5rem;
}

.claim-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.claim-section {
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.claim-section.claim-full {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .claim-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.claim-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.4rem;
}

.claim-field label {
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
  color: #475569;
}

.claim-field input {
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  padding: 0.3rem 0.4rem;
  font-size: 0.85rem;
}

.claim-dx-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

@media (max-width: 700px) {
  .claim-dx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.claim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.claim-table th,
.claim-table td {
  border: 1px solid #e2e8f0;
  padding: 0.25rem;
  text-align: left;
}

.claim-table input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.8rem;
  padding: 0.1rem 0.15rem;
  background: transparent;
}

.claim-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.claim-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* RPM dashboard */
.rpm-layout {
  padding: 1rem 1.5rem 1.5rem;
}

.rpm-header-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.rpm-filters {
  display: flex;
  gap: 0.5rem;
}

.rpm-filters select {
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  background: #ffffff;
}

.rpm-alert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .rpm-alert-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rpm-alert-card {
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  color: #0f172a;
}

.rpm-alert-card .rpm-alert-label {
  font-size: 0.75rem;
  font-weight: 600;
}

.rpm-alert-card .rpm-alert-value {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.rpm-alert-card .rpm-alert-desc {
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.rpm-alert-card.critical {
  background: #fee2e2;
}

.rpm-alert-card.warning {
  background: #fef3c7;
}

.rpm-alert-card.stable {
  background: #dcfce7;
}

.rpm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.rpm-table th,
.rpm-table td {
  border: 1px solid #e2e8f0;
  padding: 0.25rem 0.35rem;
  text-align: left;
}

.device-status-list {
  margin-top: 0.5rem;
}

.rpm-trend-card {
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  border: 1px dashed #cbd5e1;
  padding: 0.75rem;
  background: #f9fafb;
}

.rpm-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Misc */
.muted {
  color: #6b7280;
  font-size: 0.85rem;
}

.mt-md {
  margin-top: 0.75rem;
}

.mt-lg {
  margin-top: 1.1rem;
}

/* Secondary nav for utility tabs (Eligibility, Reports) */
.secondary-nav {
  margin-left: auto;
  gap: 0.5rem;
}

.secondary-nav a {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}

/* Vitals mini-graph */
.vitals-chart {
  margin-top: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #e5e7eb;
}

.vitals-chart-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.vitals-chart-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.vitals-chart-label {
  font-size: 0.8rem;
  color: #6b7280;
}

.vitals-chart-bar {
  height: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  opacity: 0.9;
}

.vitals-chart-bar.bar-long { width: 90%; }
.vitals-chart-bar.bar-med  { width: 65%; }
.vitals-chart-bar.bar-high { width: 80%; }
.vitals-chart-bar.bar-low  { width: 45%; }

/* RPM Call Log */
.rpm-call-log {
  margin-top: 1.5rem;
}

.rpm-call-form {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rpm-call-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.rpm-call-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rpm-call-form label {
  font-size: 0.8rem;
  color: #6b7280;
}

.rpm-call-form input,
.rpm-call-form textarea {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}

/* Simple forms on standalone pages */
.full-page-main {
  max-width: 900px;
  margin: 1.5rem auto;
  padding: 0 1rem 2rem;
}

.full-page-main .panel {
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* Daily calendar view (8:00 AM - 9:00 PM, 30-min slots) */
.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.calendar-day-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #64748b;
}

.calendar-day-label {
  font-weight: 500;
  color: #0f172a;
}

.btn-icon-sm {
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 999px;
}

.day-calendar {
  margin-top: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  max-height: 420px;
  overflow-y: auto;
}

.day-calendar-header {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  border-bottom: 1px solid #e5e7eb;
  background: #e5f3ff;
}

.day-calendar-grid {
  display: flex;
  flex-direction: column;
}

.day-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  border-bottom: 1px dashed #e5e7eb;
}

.time-cell {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
  background: #f1f5f9;
}

.slot-cell {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  min-height: 1.4rem;
  background: #ffffff;
}

.day-row:nth-child(2n) .slot-cell {
  background: #f9fafb;
}

.btn-sm {
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
}

.rpm-call-form select {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  background: #ffffff;
}

.layout-two-col-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .layout-two-col-stack {
    grid-template-columns: minmax(0, 1fr);
  }
}

.providers-table {
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  font-size: 0.8rem;
  overflow: hidden;
}

.providers-header-row,
.providers-row {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.2fr 1.2fr 0.9fr;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
}

.providers-header-row {
  background: #e5f3ff;
  font-weight: 600;
  color: #0f172a;
}

.providers-row:nth-child(2n) {
  background: #f9fafb;
}


/* Login layout */
.login-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #e0f2fe, #eff6ff 45%, #e2e8f0 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.login-container {
  width: 100%;
  max-width: 380px;
  padding: 1.75rem 1.5rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15,23,42,0.16);
}

.login-container h2 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}

.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.login-small-link {
  font-size: 0.8rem;
  color: #0ea5e9;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

.login-small-link:hover {
  text-decoration: underline;
}


/* EMR center views controlled by left nav */
.emr-view {
  display: none;
}

.emr-view.is-visible {
  display: block;
}

/* Active state for EMR nav items */
.emr-nav-item {
  cursor: pointer;
}

.emr-nav-item.active {
  background: rgba(148, 163, 184, 0.35);
  border-left: 3px solid #22c55e;
}

/* EMR meds/allergies panels */
.emr-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.emr-form-row input {
  flex: 1 1 180px;
  min-width: 0;
}

.emr-view-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.emr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.emr-list-item {
  background: #f5f9ff;
  border-radius: 0.6rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.emr-list-text {
  margin-right: 0.5rem;
}

.emr-list-remove {
  border: none;
  background: transparent;
  font-size: 0.75rem;
  cursor: pointer;
  color: #9ca3af;
}

.emr-list-remove:hover {
  color: #dc2626;
}

.vertical-gap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


/* EMR toolbar helpers */

.emr-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.emr-toolbar {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}



/* Athena-style flyout replacing sidebar */



.patient-version-tag {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-right: 0.75rem;
}

/* Left-align EMR task panels like Athena */
.emr-view > .panel {
  max-width: 420px;
  margin-top: 0.75rem;
  margin-left: 0;
}


/* Floating cards for left tasks */
.floating-card {
  position: absolute;
  top: 7.2rem;
  left: 1.5rem;
  z-index: 20;
  width: 340px;
  background: #ffffff;
  border-radius: 0.9rem;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.26);
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 180px);
}

.floating-card-hidden {
  display: none;
}

.floating-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.floating-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.floating-card-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.floating-card-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.floating-card-body {
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.45);
  overflow-y: auto;
  font-size: 0.85rem;
}

.floating-card-placeholder {
  margin: 0.5rem 0 0;
  color: #64748b;
}


/* Embedded encounter inside EMR */
.encounter-embed-container {
  margin-top: 0.75rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  height: calc(100vh - 230px);
}

.encounter-embed-frame {
  width: 100%;
  height: 100%;
  border: none;
}



/* --- Wound care enhancements --- */
.divider { height: 1px; background: rgba(0,0,0,0.08); width: 100%; }
.subsection-title { margin: 10px 0 6px; font-size: 0.95rem; font-weight: 700; color: #1b2b3a; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.10); background: rgba(255,255,255,0.7); font-size: 0.85rem; }
.chip input { margin: 0; }
/* Wound images */
.wc-image-upload{
  display:flex;
  align-items:flex-start;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.wc-camera-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  cursor:pointer;
}
.wc-camera-btn:hover{filter:brightness(0.98);}
.wc-image-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(92px,1fr));
  gap:10px;
  margin-top:10px;
}
.wc-thumb{
  border:1px solid rgba(0,0,0,0.12);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.wc-thumb img{
  width:100%;
  height:92px;
  object-fit:cover;
  display:block;
}
.wc-thumb-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  font-size:12px;
  color:#444;
  background:#f8fafc;
}
.wc-thumb-remove{
  border:none;
  background:transparent;
  color:#0ea5e9;
  cursor:pointer;
  padding:2px 4px;
  font-size:12px;
}
.wc-thumb-remove:hover{text-decoration:underline;}


/* --- Compact vitals (remove source line) --- */
.vital-source{display:none !important;}
.vital-item{
  grid-template-columns: auto 1fr auto !important;
  padding: 0.32rem 0.45rem !important;
}
.vital-item input{
  max-width: 110px;
  padding: 0.18rem 0.35rem !important;
}

