/* Connections feature visuals
   Extracted from index.html to keep PWA visual ownership explicit. */

/* --- Estilos extra para lista de pacientes --- */
    .patient-item{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:var(--space-5);
      padding:var(--space-4);
      border:1px solid var(--border-subtle);
      border-radius:var(--radius-md);
      margin-bottom:var(--space-3);
      background:var(--surface-card);
    }
    .patient-meta{
      display:flex;
      flex-direction:column;
    }
    .patient-name{
      font-weight:var(--font-weight-semibold);
    }
    .patient-id{
      font-size:var(--font-size-xs);
      color:var(--text-subtle);
    }
    .patient-actions{
      display:flex;
      gap:var(--space-3);
      align-items:center;
    }

.link-info-card{
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);
  padding:var(--space-6);
  margin-top:var(--space-6);
  background:var(--surface-card);
}
.link-info-header{
  display:flex;
  flex-direction:column;
  gap:var(--space-2);
}
.link-info-copy{
  margin:0;
  font-size:var(--font-size-md);
  color:#4b5563;
  line-height:1.45;
}
.link-info-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:var(--space-5);
  margin-top:14px;
}
.link-info-item{
  min-width:0;
}
.link-info-label{
  display:block;
  font-size:var(--font-size-xs);
  font-weight:var(--font-weight-bold);
  color:var(--text-muted);
  text-transform:uppercase;
  letter-spacing:.04em;
}
.link-info-value{
  display:block;
  margin-top:var(--space-1);
  font-size:var(--font-size-lg);
  color:#111827;
  overflow-wrap:anywhere;
}
.link-info-editable{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:var(--space-5);
}
.link-info-edit-actions{
  display:flex;
  gap:var(--space-3);
  flex-wrap:wrap;
  justify-content:flex-end;
}
.link-info-inline-editor{
  margin-top:var(--space-4);
  display:flex;
  flex-direction:column;
  gap:var(--space-4);
}
.link-info-inline-editor.hidden{
  display:none;
}
.link-info-inline-editor .input{
  width:100%;
}
.link-info-inline-actions{
  display:flex;
  gap:var(--space-3);
  flex-wrap:wrap;
}
.link-info-inline-note{
  margin:0;
  color:var(--text-muted);
  font-size:var(--font-size-sm);
  line-height:1.4;
}
.link-admin-box{
  margin-top:var(--space-6);
  padding-top:var(--space-6);
  border-top:1px solid var(--border-subtle);
}
.wear-primary-card{
  margin-top:var(--space-6);
  padding:var(--space-5);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-md);
  background:#f8fafc;
}
.wear-primary-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:var(--space-4);
  margin-bottom:var(--space-3);
}
.wear-primary-title{
  margin:var(--space-1) 0 0;
  font-size:var(--font-size-lg);
  color:#111827;
}
.wear-primary-badge{
  flex:0 0 auto;
  border:1px solid rgba(15,23,42,.12);
  border-radius:999px;
  padding:6px 10px;
  background:#fff;
  color:#334155;
  font-size:var(--font-size-xs);
  font-weight:var(--font-weight-bold);
}
.wear-primary-actions{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-3);
  align-items:center;
  margin-top:var(--space-4);
}
.wear-code-input{
  width:150px;
  max-width:100%;
}
.patients-tabs{
  display:flex;
  gap:10px;
  margin:14px 0 16px;
}
.patients-tab{
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  color:#0f172a;
  border-radius:999px;
  padding:10px 16px;
  font-weight:700;
  cursor:pointer;
}
.patients-tab.active{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
}
.patients-panel[hidden]{
  display:none !important;
}
.patients-empty{
  color:#64748b;
  font-weight:600;
  margin:0 0 12px;
}
.patient-history-item{
  list-style:none;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  padding:14px 16px;
  background:rgba(248,250,252,.9);
  margin-bottom:10px;
}
.patient-history-title{
  font-weight:800;
  color:#0f172a;
  margin-bottom:6px;
}
.patient-history-status{
  font-weight:700;
  color:#b91c1c;
  margin-bottom:6px;
}
.patient-history-meta{
  color:#475569;
  font-size:14px;
  line-height:1.4;
}
