.appt-info-icon {
  position: relative;
  cursor: pointer;
}
.appt-info-icon .appt-tooltip {
  display: none;
  position: fixed;
  left: 50%;
  top: calc(var(--appt-tooltip-top, 0px) - 12px);
  transform: translateX(-50%);
  background: #fff;
  color: #21508c;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(44,62,80,0.13);
  padding: 4px 10px;
  font-size: 0.85em;
  font-weight: 500;
  white-space: pre-line;
  z-index: 9999;
  min-width: 80px;
  max-width: 220px;
  word-break: break-word;
  pointer-events: none;
}
.appt-info-icon:hover .appt-tooltip {
  display: block;
}
a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.back-link {
  color: #005A9E;
  font-weight: 500;
  margin-bottom: 16px;
  display: inline-block;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f0f2f5;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  padding-top: 80px; /* Adjust body padding to not be hidden by fixed header */
}

.container {
  width: 100%;
  max-width: 1200px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #f5f6fa;
  color: #222;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(44, 62, 80, 0.07);
  padding: 20px 24px;
  margin-bottom: 20px;
  border: 1px solid #e5e7ef;
}

/* Linhas divisórias */
.divider {
  border-bottom: 1px solid #e5e7ef;
  margin: 16px 0;
}

/* Tags coloridas */
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 4px;
  background: #f0f1f7;
  color: #555;
}

.tag-green { background: #eafbe6; color: #21508c; }
.tag-red { background: #ffd1d1; color: #21508c; }
.tag-pink { background: #ffe3f0; color: #21508c; }
.tag-lilac { background: #f3e6ff; color: #21508c; }
.tag-yellow { background: #fff7e0; color: #21508c; }
.tag-blue { background: #e6f0ff; color: #21508c; }
.tag-lightblue { background: #eaf6ff; color: #21508c; }
.tag-gray { background: #f0f1f7; color: #21508c; }

/* Cards de diagnóstico, problemas, comorbidades */
.card-diagnostico {
  background: #eafbe6;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
  color: #218838;
  border: 1px solid #d4f5d2;
}
.card-comorbidade {
  background: #f8eafd;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
  color: #a259c6;
  border: 1px solid #e5d0f5;
}
.card-problema {
  background: #f3e6ff;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
  color: #8e44ad;
  border: 1px solid #e5d0f5;
}

/* Timeline */
.timeline {
/* Balão de informação abaixo do horário */
.appt-info-bubble {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #cfd8dc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
  padding: 2px 12px 2px 4px;
  margin-top: 2px;
  margin-bottom: 2px;
  font-size: 1rem;
  color: #21508c;
  z-index: 1;
}
.appt-info-bubble::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 100%;
  width: 16px;
  height: 10px;
  background: transparent;
  border-top: 10px solid #cfd8dc;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  z-index: 0;
}
.appt-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 1.1em;
  font-weight: 600;
  margin-right: 6px;
  color: #fff;
}
.appt-info-icon.yellow {
  background: #ffe600;
  color: #21508c;
}
.appt-info-icon.brown {
  background: #8d4c18;
  color: #fff;
}
.appt-info-text {
  color: #21508c;
  font-weight: 500;
  font-size: 1em;
}
  
  
  
}
.timeline-event {
  margin-bottom: 24px;
  position: relative;
}
.timeline-event:before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e5e7ef;
  box-shadow: 0 2px 6px 0 rgba(44, 62, 80, 0.07);
}

/* Sombreamento leve para caixas */
.box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(44, 62, 80, 0.07);
  padding: 16px 20px;
  border: 1px solid #e5e7ef;
}

/* Ajuste de botões */
button, .btn {
  border-radius: 6px;
  border: none;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 500;
  background: #2986cc;
  color: #fff;
  box-shadow: 0 1px 3px rgba(44,62,80,0.07);
  cursor: pointer;
  transition: background 0.2s;
}
button:hover, .btn:hover {
  background: #2563a6;
}

/* Ajuste de títulos */
h1, h2, h3, h4, h5 {

/* Busca */
.search-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 0 10px;
}

.search-container input {
  width: 100%;
  padding: 12px 40px 12px 20px;
  border-radius: 20px;
  border: 1px solid #ddd;
  font-size: 16px;
  margin-bottom: 0;
}

.search-container .fa-search {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
}

/* Ajuste de tabelas */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px 0 rgba(44, 62, 80, 0.07);
}
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7ef;
}
th {
  background: #f5f6fa;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}

/* Ajuste de scrollbars para visual mais limpo */
::-webkit-scrollbar {
  width: 8px;
  background: #f5f6fa;
}

::-webkit-scrollbar-thumb {
  background: #e5e7ef;
  border-radius: 8px;
}

/* Espaçamento geral */
.container {
  padding: 32px 40px;
}

/* Ajuste de inputs */
input, select, textarea {
  border-radius: 6px;
  border: 1px solid #e5e7ef;

  font-size: 15px;
  background: #fff;
  margin-bottom: 10px;
}

/* Ajuste de avatar */
.avatar {
  width: 56px;

  object-fit: cover;
  border: 2px solid #e5e7ef;
}
  color: #aaa;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
}

/* Lanes layout: duas raias (Urgente / Pode esperar) */
.lanes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}
.lane {
  flex: 1;
  background-color: #fafafa;
  padding: 16px;
  border-radius: 8px;
  min-width: 260px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.lane-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.lane-header h2 {
  font-size: 18px;
  color: #012856;
  margin: 0;
}
.lane-note {
  font-size: 12px;
  color: #6b7280;
}
.lane-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}
.lane-urgent .lane-cards {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}
.lane-later .lane-cards {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}
.lane .card {
  min-height: 200px;
  padding: 14px;
  color: #012856;
}

.lane .card * {
  color: inherit;
}

.card-link,
.card-link:visited,
.card-link:hover,
.card-link:active {
  color: inherit;
}

@media (max-width: 767px) {
  .lanes {
    flex-direction: column;
    gap: 16px;
  }
  
  body {
    padding: 8px;
    padding-top: 100px;
  }
  
  .container {
    max-width: 100%;
    width: 100%;
    padding: 12px;
    margin: 0;
    border-radius: 4px;
  }
  
  .lane {
    min-width: 100%;
    width: 100%;
    padding: 12px;
  }
  
  .lane-header {
    margin-bottom: 10px;
  }
  
  .lane-header h2 {
    font-size: 16px;
  }
  
  .lane-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .card {
    min-height: 140px;
    padding: 14px;
  }

  .lane .card {
    min-height: 140px;
  }
  
  .card-header h2 {
    font-size: 16px;
  }
  
  .card-header i {
    font-size: 20px;
  }
  
  .card-body .main-number {
    font-size: 32px;
  }
  
  .card-body .sub-text {
    font-size: 14px;
  }
  
  .card-footer {
    font-size: 12px;
  }
  
  h1 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .search-container {
    margin-bottom: 16px;
  }
  
  .search-container input {
    padding: 10px 36px 10px 16px;
    font-size: 14px;
  }
  
  .top-header {
    padding: 8px 12px;
  }
  
  .header-left, .header-right {
    gap: 12px;
  }
  
  .header-right .btn-agenda, 
  .header-right .btn-date {
    padding: 6px 12px;
    font-size: 12px;
  }
}

.card {
  border-radius: 8px;
  color: #000000;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-header h2 {
  font-size: 18px;
  font-weight: 500;
}

.card-header i {
  font-size: 24px;
}

.card-body {
  text-align: center;
  margin: 20px 0;
}

.card-body .main-number {
  font-size: 48px;
  font-weight: 700;
  display: inline;
  margin-right: 10px;
}

.card-body .sub-text {
  display: inline;
  font-size: 18px;
}

.card-footer {
  font-size: 14px;
  opacity: 0.9;
}

.card-footer p {
    margin: 0;
}

.card-blue { background-color: #40C4FF; }
.card-green { background-color: #00E676; }
.card-purple { background-color: #E040FB; }
.card-red { background-color: #F44336; }
.card-orange { background-color: #FFC400; }

/* Specific adjustments from image */
.card-green .card-footer {
    display: flex;
    flex-direction: column;
}
.card-green .card-footer p {
    line-height: 1.4;
}

/* --- Top Header --- */
.progress-bar {
  width: 100%;
  height: 4px;
  background-color: #00E676;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
}

.top-header {
  width: 100%;
  background-color: #fff;
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  position: fixed;
  top: 0px;
  left: 0;
  z-index: 1000;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  color: #005A9E;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #012856;
}

.logo-container .brand-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.logo {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.header-right .btn-agenda, .header-right .btn-date {
  border: 1px solid #ddd;
  background-color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.header-right .btn-date {
  background-color: #E8F5E9;
  color: #1B5E20;
  border-color: #C8E6C9;
}

.header-right .icon-btn {
  color: #005A9E;
  font-size: 20px;
  text-decoration: none;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  height: 32px;
  width: 32px;
  border-radius: 50%;
}

body {
  padding-top: 55px; /* Adjust body padding to not be hidden by fixed header */
}

@media (max-width: 767px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 10px;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
  }
  body {
    padding-top: 120px;
  }
}

/* Header */
.header {
  background: white;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-text {
  color: #1976d2;
  font-size: 14px;
}

.btn-icon {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

/* Main content */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  gap: 24px;
}

/* Patient info card */
.patient-info-card {
  background: white;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.patient-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.patient-id {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.patient-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.patient-info-wrapper {
  flex: 1;
  min-width: 280px;
}

.patient-info-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patient-top-line {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.patient-name-container {
  flex: 0 1 200px;
  min-width: 200px;
}

.patient-name {
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #6b7280;
}

.patient-details-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px 24px;
  flex: 1;
}

.detail-item-inline {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.detail-label-inline {
  color: #6b7280;
  font-size: 11px;
}

.detail-value-inline {
  color: #111827;
  font-size: 12px;
}

.patient-subtext {
  color: #6b7280;
  font-size: 12px;
  margin-top: 1px;
}

/* Tags section */
.tags-section {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.tag-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag.diagnosis {
  background-color: #dcfce7;
  color: #166534;
}

.tag.allergy {
  background-color: #fee2e2;
  color: #991b1b;
}

.tag.risk {
  background-color: #fef3c7;
  color: #92400e;
}

.tag.external {
  background-color: #dbeafe;
  color: #1e40af;
}

.tag-more {
  color: #6b7280;
  font-size: 12px;
  padding: 4px 8px;
  background-color: #f3f4f6;
  border-radius: 16px;
}

/* Navigation */
.nav-tabs {
  display: block;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.nav-tabs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-tabs-list {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
}

.nav-tabs-list::-webkit-scrollbar {
  display: none;
}

.tab-item {
  padding: 12px 4px;
  color: #64748b;
  text-decoration: none;
  position: relative;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s;
  scroll-snap-align: start;
}

.tab-item:hover {
  color: #1e293b;
}

.tab-item.active {
  color: #2563eb;
  font-weight: 500;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #00e676;
}

.new-record-btn {
  background-color: #00e676;
  color: #012856;
  border: none;
  padding: 8px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.new-record-btn:hover {
  background-color: #00c853;
}

/* Content layout */
.content {
  display: flex;
  gap: 24px;
  flex: 1;
  min-height: 0;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-header h2 {
  font-size: 16px;
  font-weight: 500;
  color: #1e293b;
}

.timeline {
  flex: 1;
  overflow-y: auto;
}

.timeline-section {
  border-bottom: 1px solid #e5e7eb;
}

.timeline-section h3 {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  padding: 12px 16px;
  background-color: #f8fafc;
  margin: 0;
}

.timeline-item {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background-color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

.timeline-item:hover {
  background-color: #f8fafc;
}

.timeline-item.active {
  background-color: #e8fff3;
}

.timeline-item.inactive {
  background-color: white;
  text-decoration: line-through;
  color: #94a3b8;
}

.timeline-date {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 4px;
}

.timeline-text {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.timeline-status {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.timeline-versions {
  color: #6b7280;
  font-size: 13px;
  margin-top: 4px;
}

.pagination {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #e5e7eb;
  background: white;
}

.pagination-text {
  font-size: 14px;
  color: #64748b;
}

.main-content {
  flex: 1;
  background: white;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  min-width: 0;
}

/* Medical Report Styles */
.medical-report {
  max-width: 800px;
  margin: 0 auto;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

.report-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.report-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: none;
  border: 1px solid #e5e7eb;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.action-btn:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

.report-meta {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.report-meta p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
  margin-bottom: 4px;
}

.event-date {
  font-weight: 500;
  color: #374151 !important;
}

/* Report Sections */
.report-section {
  margin-bottom: 40px;
  page-break-inside: avoid;
}

.report-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.subsection {
  margin-bottom: 24px;
}

.subsection h3 {
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 12px;
}

/* Measurements Grid */
.measurements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 24px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.measurement-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.measurement-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.measurement-value {
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
}

/* Observation Box */
.observation-box {
  padding: 16px;
  background: #f0f9ff;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.observation-box strong {
  color: #1e40af;
  font-weight: 600;
}

/* Risks Table */
.risks-table {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 2fr 120px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.col-header {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 2fr 120px;
  border-bottom: 1px solid #e5e7eb;
}

.table-row:last-child {
  border-bottom: none;
}

.col-content {
  padding: 12px 16px;
  font-size: 14px;
  color: #374151;
  display: flex;
  align-items: center;
}

/* Problems List */
.problems-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.problem-item {
  padding: 20px;
  background: #fefefe;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #ef4444;
}

.problem-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.problem-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  flex: 1;
}

.problem-date {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 12px;
  flex-shrink: 0;
}

.problem-observation {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 16px;
  line-height: 1.5;
}

.problem-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-row {
  display: flex;
  gap: 12px;
  font-size: 13px;
}

.detail-label {
  color: #6b7280;
  font-weight: 500;
  min-width: 100px;
  flex-shrink: 0;
}

.detail-value {
  color: #374151;
  flex: 1;
}

/* Clinical text sections */
.clinical-text {
  color: #374151;
  font-size: 15px;
  line-height: 1.7;
}

.clinical-text p {
  margin-bottom: 16px;
}

.clinical-text p:last-child {
  margin-bottom: 0;
}

.clinical-text ul {
  margin: 16px 0;
  padding-left: 24px;
}

.clinical-text li {
  margin-bottom: 8px;
  color: #374151;
}

/* Floating Assistant */
.floating-assistant {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  cursor: move;
  user-select: none;
  touch-action: none;
  will-change: transform;
}

.floating-assistant.dragging {
  opacity: 0.95;
  transition: none;
  pointer-events: none;
}

.assistant-menu {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.2s ease;
  overflow: hidden;
}

.floating-assistant:hover .assistant-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.assistant-trigger {
  width: auto;
  min-width: 200px;
  height: 56px;
  border-radius: 28px;
  background: #012856;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  cursor: grab;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.assistant-trigger:hover {
  transform: scale(1.02);
  background: #023875;
}

.floating-assistant.dragging .assistant-trigger {
  cursor: grabbing;
  transform: scale(0.95);
}

.appointment-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 14px;
  color: white;
  margin-right: 12px;
}

.appointment-info .patient-name {
  font-weight: 500;
  color: white;
}

.appointment-info .status {
  font-size: 12px;
  color: white;
  opacity: 0.9;
}

.appointment-info .timer {
  font-size: 12px;
  color: white;
  opacity: 0.8;
}

.assistant-action {
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: #374151;
  transition: background-color 0.2s ease;
  font-size: 14px;
  min-width: 200px;
}

.assistant-action:hover {
  background-color: #f3f4f6;
}

.assistant-action svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

.assistant-action.active {
  background-color: #f0fdf4;
  color: #166534;
}

.assistant-action.active svg {
  color: #166534;
}

/* --- List Page Styles --- */

.list-container {
    margin-top: 20px;
}

/* Agendas - Timeline view */
.timeline {
  margin-top: 10px;
}
.timeline-header {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 18px;
}
.timeline-year {
  color: #00aaff;
  font-weight: 600;
}
.timeline-date {
  font-size: 20px;
  color: #012856;
  font-weight: 600;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .agendas-page .container {
    max-width: 100%;
    width: 100%;
    padding: 12px;
    margin: 0;
  }
  
  .timeline {
    width: 100%;
  }
  
  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .col {
    gap: 16px;
  }
  
  .col + .col {
    margin-top: 0;
  }
  
  .appt-slot {
    gap: 12px;
    width: 100%;
    padding: 12px;
  }
  
  .slot-time {
    width: 55px;
    font-size: 13px;
  }
  
  .slot-time span {
    font-size: 11px;
  }
  
  .appt-card {
    padding: 0;
    min-height: 0;
  }
  
  .appt-avatar {
    width: 32px;
    height: 32px;
  }
  
  .appt-name {
    font-size: 13px;
  }
  
  .appt-type,
  .appt-location {
    font-size: 12px;
  }
  
  .appt-content {
    gap: 6px;
  }
  
  .appt-stripe {
    width: 5px;
    margin-right: 10px;
  }
}

.col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.appt-slot {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background-color: #fff;
  border: 1px solid #e5e7ef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
}

.slot-time {
  flex-shrink: 0;
  width: 70px;
  text-align: left;
  font-size: 16px;
  font-weight: 300;
  color: #1a1a1a;
  line-height: 1.3;
  padding-top: 0;
}

.slot-time span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #9ca3af;
  margin-top: 2px;
}

.appt-card {
  flex: 1;
  display: flex;
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  position: relative;
  min-height: 0;
  cursor: inherit;
}

.appt-stripe {
  width: 4px;
  border-radius: 999px;
  flex-shrink: 0;
  margin: 2px 12px 2px 0;
}

.stripe-agendado { background-color: #FFDDC1; }
.stripe-aguardando { background-color: #FFD1D1; }
.stripe-recepcionado { background-color: #C2E5FF; }
.stripe-atendimento { background-color: #C2F0FF; }
.stripe-finalizado { background-color: #D4C2FF; }

/* Manter cores antigas para compatibilidade */
.stripe-grey { background-color: #9ca3af; }
.stripe-cyan { background-color: #06b6d4; }
.stripe-green { background-color: #10b981; }
.stripe-lime { background-color: #84cc16; }

.appt-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.appt-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

 .appt-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.appt-name {
  font-size: 12px;
  font-weight: 300;
  color: #1a1a1a;
  line-height: 1.3;
}

.appt-type {
  font-size: 12px;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 6px;
}

.appt-type i {
  font-size: 13px;
}

.appt-location {
  font-size: 12px;
  font-weight: 300;
  color: #1a1a1a;
  margin-top: 2px;
}

.appt-slot.appt-realizado {
  position: relative;
  overflow: hidden;
}
.appt-slot.appt-realizado::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.32;
  pointer-events: none;
  border-radius: 12px;
  z-index: 2;
}
.appt-card.appt-realizado {
  background: transparent;
}
}

.appt-slot.appt-realizado .appt-name,
.appt-slot.appt-realizado .appt-type,
.appt-slot.appt-realizado .appt-location,
.appt-card.appt-realizado .appt-name,
.appt-card.appt-realizado .appt-type,
.appt-card.appt-realizado .appt-location {
  color: #6b7280;
}

.timeline + .timeline {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #e5e7eb;
}

/* Timeline Legend */
.timeline-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}
.legend-color {
    width: 20px;
    height: 10px;
    border-radius: 5px;
}
.status-agendado { background-color: #FFDDC1; }
.status-aguardando { background-color: #FFD1D1; }
.status-recepcionado { background-color: #C2E5FF; }
.status-atendimento { background-color: #C2F0FF; }
.status-finalizado { background-color: #D4C2FF; }

.legend-toggle {
    font-size: 13px;
    color: #012856;
    font-weight: 600;
    text-decoration: none;
}
.legend-toggle:hover {
    text-decoration: underline;
}

/* ========================================
   PRONTUÁRIO PAGE STYLES
   ======================================== */

.prontuario-page {
  background-color: #f5f7fa;
}

.prontuario-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header Sticky do Paciente */
.patient-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.patient-sticky-header.visible {
  transform: translateY(0);
}

.top-header {
  transition: transform 0.3s ease;
}

.top-header.hidden {
  transform: translateY(-100%);
}

.sticky-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 40px;
  max-width: 1600px;
  margin: 0 auto;
}

.sticky-row-1 {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sticky-row-2 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-left: 56px;
}

.sticky-number {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.sticky-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.sticky-name {
  display: flex;
  flex-direction: column;
  min-width: 160px;
}

.sticky-patient-name {
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
}

.sticky-subtitle {
  font-size: 11px;
  color: #9e9e9e;
  font-weight: 300;
}

.sticky-data {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  flex: 1;
}

.sticky-item {
  font-size: 12px;
  color: #424242;
  font-weight: 300;
}

.sticky-label {
  color: #9e9e9e;
  margin-right: 4px;
}

.badge-green-sm {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 400;
}

.badge-red-sm {
  background: #ef5350;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 400;
}

.badge-gray-sm {
  background: #f5f5f5;
  color: #616161;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 400;
  border: 1px solid #e0e0e0;
}

.badge-blue-sm {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 400;
}

/* Cabeçalho do Paciente */
.patient-header-card {
  background: #fff;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  position: relative;
}

.patient-number {
  background: #e8f0fe;
  color: #1967d2;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}

.patient-main-info {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 4px;
  
}

.patient-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e8eaed;
}

.patient-name-section {
  min-width: 180px;
}

.patient-full-name {
  font-size: 17px;
  font-weight: 400;
  color: #012856;
  margin: 0 0 2px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-icon {
  font-size: 13px;
  color: #5f6368;
  cursor: pointer;
}

.patient-subtitle {
  font-size: 12px;
  color: #1967d2;
  font-weight: 400;
}

.patient-data-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  flex: 1;
}

.data-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 33px;
}

.data-label {
  font-size: 11px;
  color: #5f6368;
  font-weight: 400;
  white-space: nowrap;
}

.data-value {
  font-size: 13px;
  color: #012856;
  font-weight: 400;
  white-space: nowrap;
}

.patient-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  
}

.badge {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 400;
}

.badge-red { background: #fce8e6; color: #c5221f; }
.badge-green { background: #e6f4ea; color: #137333; }
.badge-gray { background: #e8eaed; color: #3c4043; }
.badge-blue { background: #e8f0fe; color: #1967d2; }
.badge-orange { background: #feefc3; color: #e37400; }

/* Abas de Navegação */
.prontuario-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.tab-link {
  padding: 8px 20px;
  border-bottom: 3px solid transparent;
  font-size: 12px;
  color: #5f6368;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-weight: 300;
}

.tab-link:hover {
  color: #1a1a1a;
  border-bottom-color: #dadce0;
}

.tab-link.active {
  color: #012856;
  border-bottom-color: #00E676;
  font-weight: 400;
}

.tab-link i {
  font-size: 16px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 13px;
}

.breadcrumb-link {
  color: #1967d2;
  font-weight: 300;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #5f6368;
  font-size: 16px;
}

.breadcrumb-current {
  color: #5f6368;
  font-weight: 300;
}

/* DEPRECATED - Old tabs style */
.prontuario-tabs-old {
  display: flex;
  gap: 4px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  overflow-x: auto;
}

/* ========================================
   LAYOUT 3 COLUNAS DO PRONTUÁRIO
   ======================================== */

.prontuario-content-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.prontuario-content-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.prontuario-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cards Base */
.card-section {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  position: relative;
}

/* Cards Coloridos */
.prontuario-page .card-pink {
  background: #ffd6da;
}

.prontuario-page .card-purple {
  background: #f1eafe;
}

.prontuario-page .card-yellow {
  background: #fff4cc;
}

.prontuario-page .card-blue-light {
  background: #eef3f7;
}

.prontuario-page .card-green-light {
  background: #e9f7ea;
}

.card-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #5f6368;
  font-size: 14px;
}

/* Section Titles */
.section-title {
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

/* Badge List */
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 400;
}

.prontuario-page .badge-red { background: #f8d0d3; color: #b3261e; border: 1px solid #f1b9bd; }
.prontuario-page .badge-red-sm { background: #f8d0d3; color: #b3261e; border: 1px solid #f1b9bd; }
.prontuario-page .badge-purple { background: #ede7f6; color: #5e35b1; border: 1px solid #e1d7fb; }
.badge-green { background: #e6f4ea; color: #137333; }
.badge-gray { background: #f5f5f5; color: #424242; border: 1px solid #e0e0e0; }
.badge-blue { background: #e8f0fe; color: #1967d2; }
.badge-orange { background: #ff9800; color: #fff; }
.badge-yellow { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.badge-teal-outline { background: transparent; color: #00897b; border: 1px solid #00897b; }
.badge-blue-outline { background: transparent; color: #1976d2; border: 1px solid #1976d2; }

/* Timeline */
.timeline-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  color: #fff;
}

.prontuario-page .icon-star { background: #374151; }
.prontuario-page .icon-warning { background: #f59e0b; }
.prontuario-page .icon-teal { background: #0ea5e9; }
.prontuario-page .icon-green { background: #22c55e; }
.icon-purple { background: #9c27b0; }
.icon-number { 
  background: #e3f2fd; 
  color: #1976d2; 
  font-weight: 600;
  font-size: 11px;
}

.prontuario-page .timeline-item {
  align-items: stretch;
}

.prontuario-page .timeline-content {
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef2f5;
}

.prontuario-page .timeline-icon.icon-warning + .timeline-content { background: #fff4cc; }
.prontuario-page .timeline-icon.icon-teal + .timeline-content { background: #e6f4ff; }
.prontuario-page .timeline-icon.icon-green + .timeline-content { background: #e9f7ea; }
.prontuario-page .timeline-icon.icon-purple + .timeline-content { background: #f1eafe; }
.prontuario-page .timeline-icon.icon-number + .timeline-content { background: #eef2f5; }

.timeline-content {
  flex: 1;
}

.timeline-date {
  font-size: 10px;
  color: #9e9e9e;
  margin-bottom: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.timeline-text {
  font-size: 12px;
  color: #424242;
  line-height: 1.4;
  font-weight: 300;
}

.load-more-btn {
  display: block;
  text-align: center;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #616161;
  margin-top: 16px;
}

/* Contact Card */
.card-contact {
  background: #f5f5f5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-title {
  font-size: 10px;
  color: #9e9e9e;
  margin: 12px 0 4px 0;
  font-weight: 400;
}

.contact-title:first-child {
  margin-top: 0;
}

.contact-item {
  font-size: 12px;
  color: #424242;
  font-weight: 300;
  line-height: 1.4;
}

.contact-item strong {
  font-weight: 500;
}

.copy-icon-sm {
  font-size: 10px;
  color: #9e9e9e;
  margin-left: 4px;
  cursor: pointer;
}

/* Chart Placeholder */
.chart-placeholder {
  position: relative;
}

.chart-y-axis {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
  color: #9e9e9e;
  width: 30px;
}

.chart-area {
  margin-left: 35px;
  height: 100px;
  background: linear-gradient(180deg, rgba(76,175,80,0.1) 0%, rgba(33,150,243,0.1) 100%);
  border-radius: 8px;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-x-axis {
  display: flex;
  justify-content: space-between;
  margin-left: 35px;
  margin-top: 8px;
  font-size: 9px;
  color: #9e9e9e;
}

.chart-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #616161;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.green { background: #4caf50; }
.dot.blue { background: #2196f3; }

/* Treatment Cards */
.treatment-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.treatment-card:last-child {
  margin-bottom: 0;
}

.treatment-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.treatment-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  color: #fff;
}

.icon-purple-bg { background: #9c27b0; }
.icon-teal-bg { background: #26a69a; font-size: 12px; font-weight: 600; }
.icon-pink-bg { background: #e91e63; }

.treatment-info {
  flex: 1;
}

.treatment-info h4 {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.treatment-info p {
  font-size: 11px;
  color: #757575;
  margin: 0 0 6px 0;
  font-weight: 300;
}

.treatment-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  color: #9e9e9e;
  font-weight: 300;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 400;
  margin-top: 8px;
}

.status-green { background: #e8f5e9; color: #2e7d32; }
.status-blue { background: #e3f2fd; color: #1565c0; }
.status-orange { background: #fff3e0; color: #e65100; }

.treatment-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.circular-progress {
  position: relative;
  width: 50px;
  height: 50px;
}

.circular-progress svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 3;
}

.circle {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

.progress-cyan .circle { stroke: #00bcd4; }
.progress-pink .circle { stroke: #e91e63; }

.percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 500;
  color: #424242;
}

.progress-label {
  font-size: 9px;
  color: #9e9e9e;
}

/* Patient About */
.patient-about {
  font-size: 12px;
  line-height: 1.6;
  color: #616161;
  font-weight: 300;
}

.patient-about p {
  margin: 0 0 10px 0;
}

.patient-about p:last-child {
  margin-bottom: 0;
}

/* Diagnosis */
.diagnosis-item {
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 3px solid #1976d2;
}

.diagnosis-item:last-child {
  margin-bottom: 0;
}

.diagnosis-code-link {
  font-size: 12px;
  color: #1976d2;
  font-weight: 400;
  margin-bottom: 8px;
}

.diagnosis-staging {
  font-size: 11px;
  color: #757575;
  margin-bottom: 4px;
}

.diagnosis-staging span {
  color: #1976d2;
}

.diagnosis-stage {
  font-size: 10px;
  color: #9e9e9e;
}

.prontuario-page .card-green-light .diagnosis-item {
  background: #e6fbe8;
  border: 1px solid #ccefd1;
  border-left: none;
}

.prontuario-page .card-green-light .diagnosis-code-link {
  color: #166534;
}

.prontuario-page .card-green-light .diagnosis-staging span {
  color: #166534;
}

/* Comorbidades */
.comorb-card-item {
  padding: 12px;
  background: #f3e5f5;
  border-radius: 8px;
  margin-bottom: 12px;
}

.comorb-card-item:last-child {
  margin-bottom: 0;
}

.comorb-title {
  font-size: 12px;
  color: #7b1fa2;
  font-weight: 400;
  margin-bottom: 8px;
}

.prontuario-page .card-purple .comorb-card-item {
  background: #f5efff;
  border: 1px solid #e6ddff;
}

.prontuario-page .card-purple .comorb-title {
  color: #6b21a8;
}

.comorb-detail {
  font-size: 11px;
  color: #616161;
  margin-top: 4px;
  font-weight: 300;
}

.comorb-detail strong {
  font-weight: 400;
}

/* Exams Section */
.exams-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.exams-icon {
  color: #1976d2;
  font-size: 16px;
}

.exams-title {
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  flex: 1;
}

.btn-add-small {
  background: #e3f2fd;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 10px;
  color: #1976d2;
  cursor: pointer;
  font-weight: 400;
}

.exams-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.exams-period {
  font-size: 10px;
  color: #9e9e9e;
  margin: 0 0 16px 0;
}

.exam-card {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.exam-content {
  flex: 1;
  background: #fafafa;
  border-radius: 8px;
  padding: 12px;
  position: relative;
}

.exam-report {
  font-size: 10px;
}

.exam-report-title {
  font-weight: 500;
  color: #424242;
  margin-bottom: 8px;
}

.exam-report-text {
  color: #757575;
  line-height: 1.5;
  font-weight: 300;
}

.exam-report-text p {
  margin: 0 0 6px 0;
}

.exam-date-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  color: #757575;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.exam-images {
  display: flex;
  gap: 8px;
}

.exam-thumb-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.exam-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-pink-circle {
  background: #fce4ec;
  color: #e91e63;
  font-size: 14px;
}

/* Responsivo 3 Colunas */
@media (max-width: 1200px) {
  .prontuario-content-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .prontuario-content-3col {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsivo 4 Colunas */
@media (max-width: 1400px) {
  .prontuario-content-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .prontuario-content-4col {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ESTILOS ANTIGOS (BACKUP)
   ======================================== */

/* Conteúdo Principal */
.prontuario-content {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 20px;
}

/* Sidebar Esquerda */
.prontuario-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.section-title {
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.section-title-small {
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 16px 0 8px 0;
}

.section-red {
  color: #c5221f;
}

.agenda-item {
  font-size: 13px;
  color: #5f6368;
}

.alert-card {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alert-red {
  background: #fce8e6;
  padding: 12px;
  border-radius: 6px;
}

.alert-label {
  background: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: #c5221f;
  font-weight: 300;
}

.timeline-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  color: #fff;
}

.icon-purple { background: #a142f4; }
.icon-yellow { background: #fbbc04; }
.icon-blue { background: #4285f4; }
.icon-green { background: #34a853; }

.timeline-content {
  flex: 1;
}

.timeline-date {
  font-size: 11px;
  color: #5f6368;
  margin-bottom: 4px;
}

.timeline-text {
  font-size: 12px;
  color: #3c4043;
  line-height: 1.4;
  font-weight: 300;
}

.load-more-link {
  display: block;
  text-align: center;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  color: #1967d2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Conteúdo Central */
.prontuario-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-section {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.content-title {
  font-size: 16px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 16px 0;
}

.treatment-card {
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.treatment-card:last-child {
  margin-bottom: 0;
}

.treatment-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.treatment-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #1967d2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.treatment-info {
  flex: 1;
}

.treatment-info h3 {
  font-size: 15px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.treatment-info p {
  font-size: 13px;
  color: #5f6368;
  margin: 0 0 8px 0;
  font-weight: 300;
}

.treatment-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px !important;
}

.btn-link {
  background: none;
  border: none;
  color: #1967d2;
  font-size: 12px;
  font-weight: 300;
  padding: 0;
  cursor: pointer;
}

.treatment-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.circular-progress {
  position: relative;
  width: 60px;
  height: 60px;
}

.circular-progress svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: #e8eaed;
  stroke-width: 3;
}

.circle {
  fill: none;
  stroke: #4285f4;
  stroke-width: 3;
  stroke-linecap: round;
}

.percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
}

.progress-label {
  font-size: 11px;
  color: #5f6368;
}

.patient-info-text {
  font-size: 13px;
  line-height: 1.6;
  color: #3c4043;
}

.patient-info-text p {
  margin: 0 0 12px 0;
}

.patient-info-text p:last-child {
  margin-bottom: 0;
}

.risk-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.risk-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 8px;
}

.risk-yellow {
  background: #feefc3;
  color: #e37400;
}

.risk-orange {
  background: #fce8e6;
  color: #c5221f;
}

/* Sidebar Direita */
.prontuario-right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.diagnosis-card {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.diagnosis-header {
  margin-bottom: 8px;
}

.diagnosis-code {
  display: inline-block;
  background: #e8f0fe;
  color: #1967d2;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  margin-right: 8px;
}

.diagnosis-stage {
  font-size: 13px;
  font-weight: 300;
  color: #1a1a1a;
}

.diagnosis-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #5f6368;
}

.med-card, .comorb-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.med-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 300;
}

.comorb-item {
  padding: 12px;
  background: #f1e8fc;
  border-radius: 6px;
  font-size: 12px;
  color: #3c4043;
}

.comorb-item strong {
  color: #a142f4;
  font-weight: 400;
}

.comorb-date, .comorb-obs {
  margin-top: 8px;
  font-size: 11px;
  color: #5f6368;
}

.view-exams-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 300;
  color: #1967d2;
  margin-bottom: 16px;
}

.exam-label {
  font-size: 11px;
  color: #5f6368;
  margin-bottom: 12px;
}

.exam-thumbnails {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.exam-thumb {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.exam-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.exam-date {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 400;
}

.btn-add-exam {
  width: 100%;
  padding: 10px;
  background: #e8f0fe;
  border: none;
  border-radius: 6px;
  color: #1967d2;
  font-size: 13px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-exam:hover {
  background: #d2e3fc;
}

.chart-container {
  width: 100%;
  height: 150px;
}

/* Responsivo */
@media (max-width: 1400px) {
  .prontuario-content {
    grid-template-columns: 250px 1fr 280px;
  }
}

@media (max-width: 1200px) {
  .prontuario-content {
    grid-template-columns: 1fr;
  }
  
  .prontuario-sidebar,
  .prontuario-right-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .prontuario-container {
    padding: 12px;
  }
  
  .patient-main-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .patient-data-grid {
    flex-direction: column;
    gap: 8px;
  }

  .data-label,
  .data-value {
    white-space: normal;
  }
  
  .prontuario-tabs {
    overflow-x: scroll;
  }
  
  .treatment-header {
    flex-direction: column;
  }
  
  .exam-thumbnails {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   TELA DE PACIENTES EM INFUSÃO
   ======================================== */

.pacientes-page {
  background: #f5f7fa;
}

.pacientes-page *,
.pacientes-page h1,
.pacientes-page h2,
.pacientes-page h3,
.pacientes-page h4,
.pacientes-page th,
.pacientes-page td,
.pacientes-page span,
.pacientes-page button {
  font-weight: 400 !important;
}

.pacientes-page .fa-solid,
.pacientes-page .fas,
.pacientes-page .fa-sharp,
.pacientes-page .fa-sharp-solid {
  font-weight: 900 !important;
}

.pacientes-page .fa-regular,
.pacientes-page .far,
.pacientes-page .fa-brands,
.pacientes-page .fab {
  font-weight: 400 !important;
}

.pacientes-page .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
}

.full-width-container {
  width: 100%;
}

.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-header-row h2 {
  font-size: 18px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5f6368;
  cursor: pointer;
}

.toggle-container i {
  font-size: 20px;
  color: #1976d2;
}

/* Tabela de Pacientes */
.pacientes-table-container {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.pacientes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-weight: 400;
}

.pacientes-table * {
  font-weight: 400 !important;
}

.pacientes-table thead {
  background: #f8f9fa;
}

.pacientes-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 400;
  color: #5f6368;
  font-size: 12px;
  border-bottom: 1px solid #e8eaed;
}

.pacientes-table td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #424242;
  font-weight: 400;
  vertical-align: middle;
}

/* Cores das linhas por status */
.row-orange {
  background: #fff8e1;
  box-shadow: inset 4px 0 0 #ff9800;
}

.row-orange td:nth-child(3) {
  color: #e65100;
}

.row-yellow {
  background: #fffde7;
  box-shadow: inset 4px 0 0 #ffc107;
}

.row-yellow td:nth-child(3) {
  color: #f9a825;
}

.row-green {
  background: #e8f5e9;
  box-shadow: inset 4px 0 0 #4caf50;
}

.row-green td:nth-child(3) {
  color: #2e7d32;
}

/* Nome do paciente em destaque */
.pacientes-table td:first-child {
  color: #1976d2;
}

/* Coluna Enfermeira */
.pacientes-table td:nth-child(4) {
  color: #00897b;
}

/* Coluna Médico */
.pacientes-table td:nth-child(5) {
  color: #1976d2;
}

/* Horários */
.pacientes-table td:nth-child(6),
.pacientes-table td:nth-child(7),
.pacientes-table td:nth-child(8),
.pacientes-table td:nth-child(9),
.pacientes-table td:nth-child(10),
.pacientes-table td:nth-child(11) {
  text-align: center;
}

/* Hover nas linhas */
.pacientes-table tbody tr:hover {
  filter: brightness(0.98);
}

/* Responsivo */
@media (max-width: 1200px) {
  .pacientes-table-container {
    overflow-x: auto;
  }
  
  .pacientes-table {
    min-width: 1000px;
  }
}

@media (max-width: 768px) {
  .page-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .page-header-row h2 {
    font-size: 16px;
  }
}

/* ========================================
   TELA DE PRESCRIÇÕES PARA ASSINAR
   ======================================== */

.assinar-page {
  background: #f5f7fa;
}

.header-date-range {
  font-size: 13px;
  color: #1976d2;
  font-weight: 400;
}

/* Tabela de Assinar */
.assinar-table-container {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.assinar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.assinar-table thead {
  background: #f8f9fa;
}

.assinar-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 400;
  color: #5f6368;
  font-size: 12px;
  border-bottom: 1px solid #e8eaed;
}

.assinar-table td {
  padding: 18px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #424242;
  font-weight: 300;
  vertical-align: middle;
}

.assinar-table tbody tr {
  cursor: pointer;
  transition: background 0.2s;
}

.assinar-table tbody tr:hover {
  background: #f5f5f5;
}

/* Nome do paciente em destaque */
.assinar-table .patient-name {
  color: #1976d2;
  font-weight: 400;
}

/* Responsivo Assinar */
@media (max-width: 1200px) {
  .assinar-table-container {
    overflow-x: auto;
  }
  
  .assinar-table {
    min-width: 800px;
  }
}

/* ========================================
   MODAL DE PRESCRIÇÃO
   ======================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: #9e9e9e;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

.modal-close:hover {
  color: #424242;
}

/* Cabeçalho da Prescrição */
.prescription-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.presc-info {
  display: flex;
  gap: 16px;
}

.presc-label {
  font-size: 12px;
  color: #9e9e9e;
  font-weight: 400;
}

.presc-details h3 {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.presc-details p {
  font-size: 13px;
  color: #5f6368;
  margin: 0 0 4px 0;
  font-weight: 300;
}

.presc-actions {
  display: flex;
  gap: 12px;
}

.btn-action-green {
  background: #4caf50;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-action-green:hover {
  background: #43a047;
}

/* Seção de Assinaturas */
.signatures-section {
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}

.signatures-section h4 {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.sig-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.sig-role {
  color: #9e9e9e;
  min-width: 100px;
}

.sig-name {
  color: #1976d2;
  font-weight: 400;
}

.sig-date {
  color: #9e9e9e;
  font-weight: 300;
}

/* Grupos de Medicamentos */
.medication-groups {
  padding: 20px 24px;
}

.med-group {
  margin-bottom: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.modal-content .group-header {
  display: flex;
  gap: 20px;
  padding: 12px 16px;
  background: #dff4f2;
  font-size: 12px;
  color: #0f766e;
  font-weight: 400;
  flex-wrap: wrap;
}

.modal-content .group-header span:first-child {
  font-weight: 600;
  color: #0f766e;
}

.group-body {
  padding: 12px 16px;
}

.med-row {
  display: grid;
  grid-template-columns: 30px 1fr 120px 100px 150px;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.med-row:last-child {
  border-bottom: none;
}

.med-status {
  text-align: center;
}

.med-status i {
  font-size: 14px;
}

.text-green {
  color: #4caf50;
}

.text-orange {
  color: #ff9800;
}

.med-name {
  color: #424242;
  font-weight: 400;
  line-height: 1.4;
}

.med-dose {
  color: #5f6368;
  font-weight: 300;
  line-height: 1.4;
}

.med-time {
  color: #5f6368;
  font-weight: 300;
}

.med-nurse {
  color: #9e9e9e;
  font-weight: 300;
  font-size: 11px;
}

/* Footer do Modal */
.modal-footer-custom {
  padding: 20px 24px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
}

.btn-sign-large {
  background: #1976d2;
  color: #fff;
  border: none;
  padding: 14px 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-sign-large:hover {
  background: #1565c0;
}

/* Responsivo Modal */
@media (max-width: 768px) {
  .modal-content {
    max-width: 100%;
    margin: 10px;
    max-height: 95vh;
  }
  
  .prescription-header-top {
    flex-direction: column;
    gap: 16px;
  }
  
  .presc-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .presc-actions button {
    width: 100%;
  }
  
  .med-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  
  .med-status {
    text-align: left;
  }
}
