.hidden {
  display: none !important;
}

.convenios-search-section,
.convenios-section {
  padding: 2.25rem 0;
}

.convenios-search-section {
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.convenios-section {
  background: #f8fafc;
}

.convenios-shell {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.convenios-search-copy {
  display: grid;
  gap: 0.35rem;
  max-width: 640px;
  margin-bottom: 0.95rem;
}

.convenios-search-kicker {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0ea5e9;
}

.convenios-search-copy h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.45rem, 1.8vw, 2.05rem);
  line-height: 1.15;
  max-width: 24ch;
}

.convenios-order-panel {
  margin-bottom: 0.8rem;
  padding: 0.85rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.convenios-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.75rem;
}

.convenios-order-dropzone {
  display: grid;
  gap: 0.22rem;
  min-height: 82px;
  padding: 0.82rem 0.95rem;
  border: 1px dashed rgba(14, 165, 233, 0.7);
  border-radius: 8px;
  background: #f8fbff;
  color: #334155;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.convenios-order-dropzone:hover,
.convenios-order-dropzone:focus-within,
.convenios-order-dropzone.is-dragover {
  border-color: #008ea9;
  background: #eefcff;
  box-shadow: 0 0 0 4px rgba(0, 142, 169, 0.1);
}

.convenios-order-kicker {
  color: #008ea9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.convenios-order-dropzone strong {
  color: #0f172a;
  font-size: 0.98rem;
  line-height: 1.25;
}

.convenios-order-dropzone span {
  font-size: 0.82rem;
  line-height: 1.35;
}

.convenios-order-file {
  color: #64748b;
  font-weight: 600;
}

.convenios-order-file.has-file {
  color: #0369a1;
}

.convenios-order-files {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.convenios-order-file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #f8fafc;
}

.convenios-order-file-main {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.convenios-order-file-name {
  overflow: hidden;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.convenios-order-file-meta {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
}

.convenios-order-file-status {
  color: #475569;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
}

.convenios-order-file-item--done .convenios-order-file-status {
  color: #15803d;
}

.convenios-order-file-item--warning .convenios-order-file-status {
  color: #a16207;
}

.convenios-order-file-item--error .convenios-order-file-status {
  color: #a16207;
}

.convenios-order-file-remove {
  min-height: 34px;
  padding: 0 0.72rem;
  border: 0;
  border-radius: 8px;
  color: #991b1b;
  background: #fee2e2;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.convenios-order-file-remove:hover,
.convenios-order-file-remove:focus-visible {
  outline: none;
  background: #fecaca;
}

.convenios-order-upload {
  align-self: stretch;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  min-height: 46px;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  background: #008ea9;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(0, 142, 169, 0.18);
}

.convenios-order-upload-label {
  display: grid;
  gap: 0.08rem;
  line-height: 1.05;
  text-align: center;
}

.convenios-order-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.convenios-order-upload:hover,
.convenios-order-upload:focus-visible {
  outline: none;
  background: #00788f;
}

.convenios-order-upload:disabled {
  cursor: wait;
  opacity: 0.72;
}

.convenios-order-panel.is-loading .convenios-order-dropzone {
  cursor: wait;
  opacity: 0.78;
}

.convenios-order-status {
  margin: 0.7rem 0 0;
  padding: 0.62rem 0.72rem;
  border-radius: 8px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.32);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.convenios-order-status--success {
  color: #166534;
  background: #dcfce7;
  border-color: rgba(34, 197, 94, 0.32);
}

.convenios-order-status--warning,
.convenios-order-status--error {
  color: #854d0e;
  background: #fef3c7;
  border-color: rgba(245, 158, 11, 0.34);
}

.convenios-order-status--block {
  color: #991b1b;
  background: #fee2e2;
  border-color: rgba(239, 68, 68, 0.28);
}

.convenios-search-panel {
  padding: 0.9rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.convenios-search-label {
  display: block;
  margin: 0 0 0.55rem;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 600;
}

.convenios-search-input-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.convenios-search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 0 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.48);
  border-radius: 8px;
  font: inherit;
  font-size: 0.96rem;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.convenios-search-input:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.7);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.convenios-search-clear {
  flex: 0 0 auto;
  min-width: 92px;
  min-height: 46px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: #0f172a;
  cursor: pointer;
}

.convenios-search-help {
  margin: 0.55rem 0 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.convenios-search-status {
  margin-top: 0.75rem;
  color: #475569;
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.42;
}

.convenios-search-status:empty {
  display: none;
}

.convenios-search-status--success {
  color: #166534;
  background: #dcfce7;
  border-color: rgba(34, 197, 94, 0.32);
}

.convenios-search-status--error {
  color: #854d0e;
  background: #fef3c7;
  border-color: rgba(245, 158, 11, 0.34);
}

.convenios-search-status--block {
  color: #991b1b;
  background: #fee2e2;
  border-color: rgba(239, 68, 68, 0.28);
}

.convenios-search-status--loading {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  color: #075985;
  background: #eff6ff;
  border-color: rgba(14, 165, 233, 0.34);
}

.convenios-search-status-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(14, 116, 144, 0.2);
  border-top-color: #0284c7;
  border-radius: 999px;
  animation: conveniosSpin 0.75s linear infinite;
  flex: 0 0 auto;
}

.convenios-search-status-loading-text {
  min-width: 0;
}

.convenios-search-status-dots,
.convenios-selected-price-loading-dots {
  display: inline-flex;
  gap: 0.18rem;
  align-items: center;
}

.convenios-search-status-dots span,
.convenios-selected-price-loading-dots span {
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.3;
  animation: conveniosLoadingDot 1.05s ease-in-out infinite;
}

.convenios-search-status-dots span:nth-child(2),
.convenios-selected-price-loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.convenios-search-status-dots span:nth-child(3),
.convenios-selected-price-loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes conveniosSpin {
  to { transform: rotate(360deg); }
}

@keyframes conveniosLoadingDot {
  0%, 80%, 100% { opacity: 0.28; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-0.13rem); }
}

.convenios-search-results {
  display: grid;
  gap: 0;
  margin-top: 0.75rem;
  max-height: min(18rem, 48vh);
  max-height: clamp(10rem, calc(100dvh - 18rem), 18rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  scrollbar-gutter: stable;
}

.convenios-result-group {
  display: grid;
  gap: 0;
}

.convenios-result-group + .convenios-result-group {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.convenios-result-group-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.7rem;
  background: #f8fafc;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.convenios-result-group-title {
  margin: 0;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.convenios-result-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  min-height: 1.45rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 0.74rem;
  font-weight: 700;
}

.convenios-result-group-list {
  display: grid;
  gap: 0;
}

.convenios-result-card {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.convenios-result-card + .convenios-result-card {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.convenios-result-card--button {
  appearance: none;
  display: block;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.convenios-result-card--button:hover,
.convenios-result-card--button:focus-visible,
.convenios-result-card--button.is-active {
  outline: none;
  background: #f0f9ff;
  box-shadow: inset 3px 0 0 #0ea5e9;
  transform: none;
}

.convenios-result-card--included-disabled,
.convenios-result-card--included-disabled:hover,
.convenios-result-card--included-disabled:focus-visible {
  cursor: not-allowed;
  background: #f0fdf4;
  box-shadow: inset 3px 0 0 #10b981;
  opacity: 0.88;
}

.convenios-result-card--disabled,
.convenios-result-card--disabled:hover,
.convenios-result-card--disabled:focus-visible {
  cursor: not-allowed;
  background: #f8fafc;
  box-shadow: inset 3px 0 0 #94a3b8;
  opacity: 0.72;
}

.convenios-result-card--disabled .convenios-result-title,
.convenios-result-card--disabled .convenios-result-subtitle {
  color: #64748b;
}

.convenios-result-header {
  display: grid;
  gap: 0.25rem;
}

.convenios-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.convenios-result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.3rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.convenios-result-badge--consulta {
  color: #0f3d91;
  background: #dbeafe;
}

.convenios-result-badge--laboratorio {
  color: #166534;
  background: #dcfce7;
}

.convenios-result-badge--imagen {
  color: #7c2d12;
  background: #ffedd5;
}

.convenios-result-badge--type {
  color: #475569;
  background: #f1f5f9;
}

.convenios-result-badge--included {
  color: #047857;
  background: #d1fae5;
}

.convenios-result-badge--disabled {
  color: #475569;
  background: #e2e8f0;
}

.convenios-result-title {
  margin: 0;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.25;
}

.convenios-result-subtitle {
  margin: 0;
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.35;
}

.convenios-result-included-note {
  margin: 0.35rem 0 0;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.convenios-selected-panel {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.convenios-selected-panel[hidden] {
  display: none;
}

.convenios-selected-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.convenios-selected-title {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.3;
}

.convenios-selected-clear,
.convenios-selected-remove,
.convenios-selected-schedule,
.convenios-selected-group-schedule,
.convenios-selected-schedule-all,
.convenios-selected-print,
.convenios-selected-email-send,
.convenios-selected-pdf-download {
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.convenios-selected-clear {
  min-height: 2rem;
  padding: 0 0.7rem;
  color: #0f172a;
  background: #e2e8f0;
}

.convenios-selected-clear:hover,
.convenios-selected-clear:focus-visible {
  outline: none;
  background: #cbd5e1;
}

.convenios-selected-table-wrap {
  display: grid;
  gap: 0.75rem;
}

.convenios-selected-price-hidden {
  display: block;
  min-height: 1.35em;
}

.convenios-quotation-warning {
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-left: 5px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #854d0e;
}

.convenios-quotation-warning p {
  margin: 0;
  color: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
}

.convenios-selected-reference-box {
  margin-top: 0.9rem;
}

.convenios-print-header,
.convenios-print-notice,
.convenios-print-validity {
  display: none;
}

.convenios-ocr-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.convenios-ocr-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.convenios-ocr-loader-card {
  width: min(92vw, 420px);
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  text-align: center;
}

.convenios-ocr-loader-spinner {
  width: 2.8rem;
  height: 2.8rem;
  margin: 0 auto 0.9rem;
  border: 4px solid #e2e8f0;
  border-top-color: #008ea9;
  border-radius: 999px;
  animation: convenios-ocr-spin 850ms linear infinite;
}

.convenios-ocr-loader-title {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.convenios-ocr-loader-subtitle {
  margin: 0.55rem 0 0;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.convenios-ocr-loader-timer {
  margin-top: 0.75rem;
  color: #0369a1;
  font-variant-numeric: tabular-nums;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

@keyframes convenios-ocr-spin {
  to {
    transform: rotate(360deg);
  }
}

.convenios-email-alert {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  width: min(92vw, 360px);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.convenios-email-alert.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.convenios-email-alert--success {
  color: #166534;
  background: #dcfce7;
  border-color: rgba(34, 197, 94, 0.32);
  border-left: 5px solid #22c55e;
}

.convenios-email-alert--error {
  color: #854d0e;
  background: #fef3c7;
  border-color: rgba(245, 158, 11, 0.34);
  border-left: 5px solid #f59e0b;
}

.convenios-email-alert--block {
  color: #991b1b;
  background: #fee2e2;
  border-color: rgba(239, 68, 68, 0.28);
  border-left: 5px solid #ef4444;
}

.convenios-email-alert-title {
  margin-bottom: 0.25rem;
  color: inherit;
  font-size: 0.98rem;
  font-weight: 800;
}

.convenios-email-alert-message {
  color: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
}

.convenios-selected-table-scroll {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid rgba(100, 116, 139, 0.34);
  border-radius: 8px;
  background: #fff;
}

.convenios-selected-table {
  width: auto;
  min-width: 58rem;
  border-collapse: collapse;
}

.convenios-selected-table th,
.convenios-selected-table td {
  padding: 0.72rem 0.8rem;
  border-right: 1px solid rgba(148, 163, 184, 0.24);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  color: #0f172a;
  font-size: 0.86rem;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
}

.convenios-selected-table th {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.convenios-selected-table th:first-child,
.convenios-selected-service-cell,
.convenios-selected-total-label {
  min-width: 22rem;
}

.convenios-selected-table th:not(:first-child):not(:last-child),
.convenios-selected-table td:not(:first-child):not(:last-child) {
  width: 13rem;
  min-width: 13rem;
}

.convenios-selected-action-heading,
.convenios-selected-action-cell,
.convenios-selected-total-action {
  width: 13rem;
  min-width: 13rem;
}

.convenios-selected-heading-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.1rem;
  min-width: 0;
}

.convenios-selected-heading-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.convenios-selected-heading-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.32rem;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
  cursor: pointer;
}

.convenios-selected-heading-toggle input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #475569;
  cursor: pointer;
}

.convenios-selected-table .convenios-selected-fonasa-heading .convenios-selected-heading-toggle input {
  accent-color: #1e3a8a;
}

.convenios-selected-table .convenios-selected-fonasa-heading,
.convenios-selected-table .convenios-selected-fonasa-cell {
  border-left: 1px solid #38bdf8;
  border-right: 1px solid #38bdf8;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
}

.convenios-selected-table .convenios-selected-fonasa-heading {
  color: #1e3a8a;
  border-top: 1px solid #38bdf8;
}

.convenios-selected-table .convenios-selected-fonasa-cell {
  color: #0f172a;
}

.convenios-selected-table tbody tr:last-child .convenios-selected-fonasa-cell,
.convenios-selected-table tfoot .convenios-selected-fonasa-cell {
  border-bottom-color: #38bdf8;
}

.convenios-selected-table th:last-child,
.convenios-selected-table td:last-child {
  border-right: 0;
}

.convenios-selected-table tbody tr:last-child td {
  border-bottom: 1px solid rgba(100, 116, 139, 0.3);
}

.convenios-selected-table tfoot td {
  border-top: 1px solid rgba(15, 23, 42, 0.2);
  border-bottom: 0;
  background: #f1f5f9;
}

.convenios-selected-service-cell {
  min-width: 260px;
}

.convenios-selected-price-item,
.convenios-selected-price,
.convenios-selected-price-label {
  display: block;
}

.convenios-selected-service-line,
.convenios-selected-code,
.convenios-selected-name {
  display: inline;
}

.convenios-selected-code {
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 800;
}

.convenios-selected-price-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 1.7rem;
  padding: 0.26rem 0.48rem;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.convenios-selected-price-loading-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #0284c7;
  box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.3);
  animation: conveniosLoadingPulse 1.1s ease-out infinite;
}

@keyframes conveniosLoadingPulse {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.35); }
  100% { box-shadow: 0 0 0 0.52rem rgba(2, 132, 199, 0); }
}

.convenios-selected-name {
  color: #0f172a;
  font-weight: 700;
}

.convenios-linked-note,
.convenios-linked-comment,
.convenios-indicacion-message,
.convenios-indicacion-comment,
.convenios-linked-included,
.convenios-linked-included-by {
  display: block;
  margin-top: 0.42rem;
  line-height: 1.35;
}

.convenios-linked-included-by {
  color: #047857;
  font-size: 0.78rem;
  font-weight: 750;
}

.convenios-selected-entry-row--included-by {
  background: #f0fdf4;
}

.convenios-selected-entry-row--included-by .convenios-selected-service-cell {
  border-left: 3px solid #10b981;
}

.convenios-linked-note {
  color: #0369a1;
  font-size: 0.74rem;
  font-weight: 750;
}

.convenios-linked-comment {
  color: #334155;
  font-size: 0.76rem;
  font-weight: 600;
}

.convenios-indicacion-message {
  color: #1f2937;
  font-size: 0.77rem;
  font-weight: 700;
}

.convenios-indicacion-comment {
  color: #334155;
  font-size: 0.76rem;
  font-weight: 600;
}

.convenios-linked-included {
  max-width: 34rem;
  padding: 0.52rem 0.62rem;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
}

.convenios-linked-included-title,
.convenios-linked-included-note {
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
}

.convenios-linked-included-list {
  display: grid;
  gap: 0.28rem;
  margin: 0.38rem 0;
}

.convenios-linked-included-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
  font-size: 0.76rem;
}

.convenios-linked-included-code {
  padding: 0.08rem 0.32rem;
  border-radius: 999px;
  background: #fff;
  color: #065f46;
  font-weight: 850;
}

.convenios-linked-included-name {
  color: #064e3b;
  font-weight: 700;
}

.convenios-selected-price-item + .convenios-selected-price-item {
  margin-top: 0.45rem;
}

.convenios-selected-price {
  font-weight: 800;
  white-space: nowrap;
}

.convenios-selected-price-label {
  margin-top: 0.08rem;
  color: #64748b;
  font-size: 0.72rem;
}

.convenios-selected-muted {
  color: #64748b;
  font-size: 0.82rem;
}

.convenios-selected-action-cell {
  width: 1%;
  white-space: nowrap;
}

.convenios-selected-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.convenios-selected-entry-row--consultation td {
  background: #fff;
}

.convenios-selected-entry-row--lab td {
  background: #fff;
}

.convenios-selected-entry-row--imaging td {
  background: #fff;
}

.convenios-selected-entry-row--consultation .convenios-selected-service-cell {
  box-shadow: inset 3px 0 0 rgba(100, 116, 139, 0.16);
}

.convenios-selected-entry-row--lab .convenios-selected-service-cell {
  box-shadow: inset 3px 0 0 rgba(100, 116, 139, 0.16);
}

.convenios-selected-entry-row--imaging .convenios-selected-service-cell {
  box-shadow: inset 3px 0 0 rgba(100, 116, 139, 0.16);
}

.convenios-selected-group-row td {
  background: #f8fafc;
  border-bottom: 1px solid rgba(100, 116, 139, 0.28);
}

.convenios-selected-group-action-row td {
  padding-top: 0.55rem;
  padding-bottom: 0.8rem;
  background: #f8fafc;
  border-bottom: 1px solid rgba(100, 116, 139, 0.28);
}

.convenios-selected-group-row--consultation td {
  background: #f8fafc;
  border-bottom-color: rgba(100, 116, 139, 0.28);
}

.convenios-selected-group-row--lab td {
  background: #f8fafc;
  border-bottom-color: rgba(100, 116, 139, 0.28);
}

.convenios-selected-group-row--imaging td {
  background: #f8fafc;
  border-bottom-color: rgba(100, 116, 139, 0.28);
}

.convenios-selected-group-action-row--consultation td {
  background: #f8fafc;
  border-bottom-color: rgba(100, 116, 139, 0.28);
}

.convenios-selected-group-action-row--lab td {
  background: #f8fafc;
  border-bottom-color: rgba(100, 116, 139, 0.28);
}

.convenios-selected-group-action-row--imaging td {
  background: #f8fafc;
  border-bottom-color: rgba(100, 116, 139, 0.28);
}

.convenios-selected-group-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.convenios-selected-group-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.convenios-selected-group-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
}

.convenios-selected-group-title {
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 900;
}

.convenios-selected-group-count {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
}

.convenios-selected-remove {
  min-height: 2rem;
  padding: 0 0.7rem;
  color: #991b1b;
  background: #fee2e2;
}

.convenios-selected-schedule,
.convenios-selected-group-schedule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0 0.7rem;
  color: #075985;
  background: #e0f2fe;
  text-decoration: none;
}

.convenios-selected-schedule-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  color: #ffffff;
  background: #0f766e;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.18);
}

.convenios-selected-schedule-all:hover,
.convenios-selected-schedule-all:focus-visible {
  outline: none;
  background: #0d5f59;
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.22);
}

.convenios-selected-schedule-all--active {
  background: #334155;
  box-shadow: 0 10px 18px rgba(51, 65, 85, 0.16);
}

.convenios-selected-schedule-all--active:hover,
.convenios-selected-schedule-all--active:focus-visible {
  background: #1f2937;
  box-shadow: 0 12px 22px rgba(51, 65, 85, 0.2);
}

.convenios-selected-schedule-all--disabled {
  color: #64748b;
  background: #e2e8f0;
  box-shadow: none;
}

.convenios-selected-schedule-all--disabled:hover,
.convenios-selected-schedule-all--disabled:focus-visible {
  background: #e2e8f0;
  box-shadow: none;
}

.convenios-selected-schedule--booked {
  color: #166534;
  background: #dcfce7;
  cursor: default;
  opacity: 1;
}

.convenios-selected-schedule:hover,
.convenios-selected-schedule:focus-visible {
  outline: none;
  background: #bae6fd;
}

.convenios-selected-schedule--booked:hover,
.convenios-selected-schedule--booked:focus-visible {
  background: #dcfce7;
}

.convenios-selected-group-schedule {
  min-height: 2.25rem;
  padding: 0 0.95rem;
  color: #ffffff;
  background: #7e9100;
  white-space: normal;
  text-align: center;
  box-shadow: 0 10px 18px rgba(126, 145, 0, 0.18);
}

.convenios-selected-group-schedule:hover,
.convenios-selected-group-schedule:focus-visible {
  outline: none;
  background: #6f8000;
  box-shadow: 0 12px 22px rgba(126, 145, 0, 0.22);
}

.convenios-selected-group-schedule.convenios-selected-schedule--booked {
  color: #166534;
  background: #dcfce7;
  box-shadow: none;
}

.convenios-selected-group-schedule.convenios-selected-schedule--booked:hover,
.convenios-selected-group-schedule.convenios-selected-schedule--booked:focus-visible {
  background: #dcfce7;
  box-shadow: none;
}

.convenios-selected-schedule:disabled,
.convenios-selected-group-schedule:disabled,
.convenios-selected-schedule-all:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.convenios-selected-schedule--booked:disabled {
  cursor: default;
  opacity: 1;
}

.convenios-selected-remove:hover,
.convenios-selected-remove:focus-visible {
  outline: none;
  background: #fecaca;
}

.convenios-selected-total-row {
  font-weight: 800;
}

.convenios-selected-entry-row--booked td {
  background: #f0fdf4;
}

.convenios-selected-entry-row--booked .convenios-selected-service-cell {
  box-shadow: inset 3px 0 0 #22c55e;
}

.convenios-selected-booked-summary {
  display: grid;
  gap: 0.22rem;
  margin-top: 0.42rem;
  color: #166534;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
}

.convenios-selected-booked-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 1.35rem;
  padding: 0 0.48rem;
  border-radius: 999px;
  color: #14532d;
  background: #bbf7d0;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.convenios-selected-booked-detail {
  color: #166534;
}

.convenios-selected-agenda-row td {
  padding: 0;
  background: #f8fafc;
}

.convenios-inline-agenda {
  margin: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.convenios-inline-agenda-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  background: #f0f9ff;
}

.convenios-inline-agenda-copy {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
}

.convenios-inline-agenda-kicker {
  color: #0369a1;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.convenios-inline-agenda-copy strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.25;
}

.convenios-inline-agenda-progress {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 1.3rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 0.68rem;
  font-weight: 900;
}

.convenios-inline-agenda-close {
  flex: 0 0 auto;
  min-height: 2rem;
  padding: 0 0.72rem;
  border: 0;
  border-radius: 8px;
  color: #0f172a;
  background: #e2e8f0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.convenios-inline-agenda-close:hover,
.convenios-inline-agenda-close:focus-visible {
  outline: none;
  background: #cbd5e1;
}

.convenios-inline-agenda-frame {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  background: #fff;
}

.convenios-selected-total-label {
  color: #0f172a;
}

.convenios-selected-total-amount {
  display: block;
  color: #0f172a;
  font-weight: 900;
  white-space: nowrap;
}

.convenios-selected-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 0.65rem;
}

.convenios-selected-print,
.convenios-selected-email-send,
.convenios-selected-pdf-download {
  min-height: 2.35rem;
  padding: 0 0.9rem;
}

.convenios-selected-print {
  color: #ffffff;
  background: #64748b;
}

.convenios-selected-print:hover,
.convenios-selected-print:focus-visible {
  outline: none;
  background: #475569;
}

.convenios-selected-email-send {
  color: #ffffff;
  background: #64748b;
}

.convenios-selected-email-send:hover,
.convenios-selected-email-send:focus-visible {
  outline: none;
  background: #475569;
}

.convenios-selected-email-send:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.convenios-selected-email-send.is-loading:disabled {
  cursor: wait;
}

.convenios-selected-pdf-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  color: #ffffff;
  background: #64748b;
}

.convenios-selected-pdf-download:hover,
.convenios-selected-pdf-download:focus-visible {
  outline: none;
  background: #475569;
}

.convenios-selected-pdf-download:disabled {
  cursor: wait;
  opacity: 0.68;
}

.convenios-selected-pdf-icon,
.convenios-selected-pdf-icon svg {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
}

.convenios-selected-pdf-icon svg {
  fill: currentColor;
}

.convenios-selected-email-label {
  display: grid;
  gap: 0.25rem;
  min-width: min(100%, 260px);
  color: #475569;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.convenios-selected-email-input {
  min-height: 2.35rem;
  width: 100%;
  padding: 0 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.48);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  color: #0f172a;
  text-transform: none;
  letter-spacing: 0;
  background: #fff;
}

.convenios-selected-email-input:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.7);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.convenios-selected-name-input {
  text-transform: uppercase;
}

.convenios-schedule-modal {
  display: grid;
  gap: 0.85rem;
  text-align: left;
}

.convenios-schedule-modal-service {
  margin: 0;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.45;
}

.convenios-schedule-options {
  display: grid;
  gap: 0.55rem;
}

.convenios-schedule-option {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.convenios-schedule-option:hover,
.convenios-schedule-option:focus-visible {
  outline: none;
  border-color: rgba(14, 165, 233, 0.7);
  background: #f0f9ff;
}

.convenios-schedule-option-title,
.convenios-schedule-option-detail {
  display: block;
}

.convenios-schedule-option-title {
  font-size: 0.9rem;
  font-weight: 800;
}

.convenios-schedule-option-detail {
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.35;
}

.convenios-heading {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.convenios-heading-title {
  margin-bottom: 1rem;
}

.convenios-heading-description {
  max-width: 800px;
  margin: 0 auto;
  color: #64748b;
  font-size: 1.125rem;
}

.convenios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.convenio-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.convenio-logo {
  width: 100%;
  height: auto;
  max-width: 220px;
  max-height: 110px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .convenios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .convenios-search-section,
  .convenios-section {
    padding: 1.5rem 0;
  }

  .convenios-shell {
    width: min(100% - 1.25rem, 1280px);
  }

  .convenios-search-copy {
    gap: 0.2rem;
    margin-bottom: 0.7rem;
  }

  .convenios-search-copy h2 {
    max-width: none;
    font-size: clamp(1.2rem, 5.8vw, 1.55rem);
  }

  .convenios-search-panel {
    padding: 0.85rem;
  }

  .convenios-order-panel {
    padding: 0.85rem;
  }

  .convenios-order-row {
    grid-template-columns: 1fr;
  }

  .convenios-order-upload {
    min-height: 44px;
  }

  .convenios-order-file-item {
    grid-template-columns: 1fr;
  }

  .convenios-order-file-remove {
    width: 100%;
  }

  .convenios-search-results {
    max-height: min(16rem, 46vh);
    max-height: clamp(9rem, calc(100dvh - 15rem), 16rem);
  }

  .convenios-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .convenio-card {
    width: min(100%, 340px);
    justify-content: center;
    text-align: center;
  }

  .convenio-logo {
    display: block;
    margin-inline: auto;
    object-position: center;
  }

  .convenios-search-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .convenios-heading-description {
    font-size: 1rem;
  }

  .convenios-selected-panel {
    padding: 0.85rem;
  }

  .convenios-selected-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .convenios-selected-title {
    font-size: 0.96rem;
  }

  .convenios-selected-table {
    display: table;
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
  }

  .convenios-selected-table-scroll {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: auto;
    border: 1px solid rgba(100, 116, 139, 0.34);
    border-radius: 8px;
    background: #fff;
  }

  .convenios-selected-table thead {
    display: table-header-group;
  }

  .convenios-selected-table tbody,
  .convenios-selected-table tfoot {
    display: table-row-group;
  }

  .convenios-selected-table tfoot {
    display: table-footer-group;
  }

  .convenios-selected-table tr {
    display: table-row;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #fff;
  }

  .convenios-selected-table th,
  .convenios-selected-table td {
    width: auto;
    min-width: 0;
    padding: 0.35rem 0.28rem;
    border-right: 1px solid rgba(148, 163, 184, 0.24);
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    font-size: 0.62rem;
    line-height: 1.18;
    vertical-align: top;
  }

  .convenios-selected-table th {
    font-size: 0.56rem;
    letter-spacing: 0;
    white-space: normal;
  }

  .convenios-selected-table td::before {
    display: none;
    content: none;
  }

  .convenios-selected-table th:first-child,
  .convenios-selected-service-cell,
  .convenios-selected-total-label {
    width: 34%;
    min-width: 0;
  }

  .convenios-selected-table th:not(:first-child):not(:last-child),
  .convenios-selected-table td:not(:first-child):not(:last-child) {
    width: auto;
    min-width: 0;
  }

  .convenios-selected-action-heading,
  .convenios-selected-action-cell,
  .convenios-selected-total-action {
    width: 22%;
    min-width: 0;
  }

  .convenios-selected-service-cell {
    min-width: 0;
    background: #f8fafc;
  }

  .convenios-selected-table .convenios-selected-fonasa-cell {
    border-left: 1px solid #38bdf8;
    border-right: 1px solid #38bdf8;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  }

  .convenios-selected-heading-content {
    gap: 0.24rem;
    align-items: center;
    flex-wrap: wrap;
  }

  .convenios-selected-heading-toggle {
    gap: 0.16rem;
    font-size: 0.56rem;
    line-height: 1;
  }

  .convenios-selected-heading-toggle input {
    width: 0.78rem;
    height: 0.78rem;
  }

  .convenios-selected-heading-label {
    overflow: visible;
    text-overflow: clip;
  }

  .convenios-selected-service-line {
    display: block;
  }

  .convenios-selected-code {
    font-size: 0.56rem;
  }

  .convenios-selected-name {
    font-size: 0.62rem;
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .convenios-selected-price {
    font-size: 0.7rem;
    line-height: 1.12;
    white-space: nowrap;
  }

  .convenios-selected-price-label,
  .convenios-selected-muted {
    font-size: 0.54rem;
    line-height: 1.12;
  }

  .convenios-selected-action-cell {
    width: auto;
    white-space: normal;
    background: #fff;
  }

  .convenios-selected-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem;
    white-space: normal;
  }

  .convenios-selected-schedule,
  .convenios-selected-remove,
  .convenios-selected-group-schedule {
    width: 100%;
    min-height: 1.45rem;
    padding: 0.18rem 0.2rem;
    border-radius: 6px;
    font-size: 0.58rem;
    line-height: 1.08;
    white-space: normal;
  }

  .convenios-selected-group-row {
    background: #f8fafc;
  }

  .convenios-selected-group-row td,
  .convenios-selected-group-action-row td {
    display: table-cell;
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.28);
    background: transparent;
  }

  .convenios-selected-group-content {
    align-items: stretch;
    flex-direction: column;
    gap: 0.35rem;
  }

  .convenios-selected-group-action {
    justify-content: stretch;
  }

  .convenios-selected-group-copy {
    gap: 0.28rem;
  }

  .convenios-selected-group-title {
    font-size: 0.82rem;
  }

  .convenios-selected-group-count {
    font-size: 0.7rem;
  }

  .convenios-selected-booked-summary {
    gap: 0.18rem;
    margin-top: 0.32rem;
    font-size: 0.56rem;
    line-height: 1.18;
  }

  .convenios-selected-booked-badge {
    min-height: 1rem;
    padding: 0 0.28rem;
    font-size: 0.48rem;
  }

  .convenios-inline-agenda {
    margin: 0.35rem;
  }

  .convenios-inline-agenda-header {
    align-items: stretch;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.58rem;
  }

  .convenios-inline-agenda-copy strong {
    font-size: 0.78rem;
  }

  .convenios-inline-agenda-close {
    width: 100%;
    min-height: 1.8rem;
    font-size: 0.68rem;
  }

  .convenios-inline-agenda-frame {
    min-height: 420px;
  }

  .convenios-selected-total-row {
    border-color: rgba(100, 116, 139, 0.36);
  }

  .convenios-selected-total-label {
    display: table-cell;
    background: #e2e8f0;
    font-size: 0.68rem;
  }

  .convenios-selected-total-cell {
    background: #f8fafc;
  }

  .convenios-selected-total-action {
    display: table-cell !important;
  }

  .convenios-selected-total-amount {
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .convenios-selected-tools {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 0.55rem;
  }

  .convenios-selected-print,
  .convenios-selected-email-send,
  .convenios-selected-pdf-download,
  .convenios-selected-email-label {
    width: 100%;
    min-width: 0;
  }

  .convenios-selected-email-input {
    min-height: 2.55rem;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  html,
  body {
    width: auto;
    min-height: auto;
    background: #fff !important;
    color: #111827 !important;
  }

  body {
    margin: 0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
  }

  body * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .site-header,
  .site-nav,
  .page-band,
  .convenios-search-copy,
  .convenios-order-panel,
  .convenios-search-panel,
  .convenios-selected-header,
  .convenios-selected-tools,
  .convenios-section,
  .floating-sidebar,
  .site-footer,
  .convenios-email-alert,
  .convenios-selected-group-row,
  .convenios-selected-group-action-row,
  .convenios-selected-agenda-row,
  .convenios-selected-action-heading,
  .convenios-selected-action-cell,
  .convenios-selected-total-action,
  .convenios-selected-reference-box {
    display: none !important;
  }

  .convenios-search-section {
    padding: 0 !important;
    background: #fff !important;
    border: 0 !important;
  }

  .convenios-shell {
    width: 100% !important;
    margin: 0 !important;
  }

  .convenios-selected-panel {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  .convenios-selected-table-wrap {
    display: block !important;
  }

  .convenios-print-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10mm;
    margin-bottom: 6mm;
    padding-bottom: 4mm;
    border-bottom: 2px solid #111827;
  }

  .convenios-print-logo {
    width: 36mm;
    height: auto;
    object-fit: contain;
  }

  .convenios-print-heading {
    flex: 1 1 auto;
    text-align: right;
  }

  .convenios-print-kicker {
    margin: 0 0 2mm;
    color: #0369a1 !important;
    font-size: 8pt;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .convenios-print-heading h2 {
    margin: 0 0 2mm;
    color: #111827 !important;
    font-size: 16pt;
    line-height: 1.1;
  }

  .convenios-print-heading p {
    margin: 0;
    color: #475569 !important;
    font-size: 9pt;
  }

  .convenios-print-notice {
    display: block !important;
    margin: 0 0 5mm;
    padding: 3mm 3.5mm;
    border: 1px solid #94a3b8;
    background: #f8fafc !important;
    color: #334155 !important;
    font-size: 8pt;
    line-height: 1.4;
  }

  .convenios-print-validity {
    display: block !important;
    margin: 0 0 5mm;
    color: #111827 !important;
    font-size: 8.2pt;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
  }

  .convenios-quotation-warning {
    display: block !important;
    margin: 5mm 0 0 !important;
    padding: 3mm 3.5mm !important;
    border: 1px solid #f59e0b !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 0 !important;
    background: #fffbeb !important;
    color: #854d0e !important;
    box-shadow: none !important;
  }

  .convenios-quotation-warning p {
    color: #854d0e !important;
    font-size: 8pt !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
  }

  .convenios-selected-table-scroll {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    border: 1px solid #111827 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  .convenios-selected-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
    border-collapse: collapse !important;
  }

  .convenios-selected-table th,
  .convenios-selected-table td {
    width: auto !important;
    min-width: 0 !important;
    padding: 2.2mm 2mm !important;
    border-right: 1px solid #94a3b8 !important;
    border-bottom: 1px solid #94a3b8 !important;
    color: #111827 !important;
    font-size: 7.4pt !important;
    line-height: 1.25 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    vertical-align: top !important;
  }

  .convenios-selected-table th {
    background: #e5e7eb !important;
    color: #111827 !important;
    font-size: 7pt !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
  }

  .convenios-selected-heading-content {
    display: block !important;
  }

  .convenios-selected-heading-toggle {
    display: none !important;
  }

  .convenios-selected-heading-label {
    display: inline !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .convenios-selected-table .convenios-selected-fonasa-heading,
  .convenios-selected-table .convenios-selected-fonasa-cell {
    border-left-color: #38bdf8 !important;
    border-right-color: #38bdf8 !important;
    background: #eaf4ff !important;
  }

  .convenios-selected-table th:last-child,
  .convenios-selected-table td:last-child {
    border-right: 0 !important;
  }

  .convenios-selected-table tfoot td {
    border-top: 2px solid #111827 !important;
    background: #e5e7eb !important;
    font-weight: 900 !important;
  }

  .convenios-selected-service-cell {
    min-width: 0 !important;
    width: 38%;
  }

  .convenios-selected-code {
    color: #111827 !important;
    font-size: 7.4pt !important;
  }

  .convenios-selected-name {
    color: #111827 !important;
    font-weight: 700 !important;
  }

  .convenios-selected-price {
    color: #111827 !important;
    font-weight: 800 !important;
  }

  .convenios-selected-price-label,
  .convenios-selected-muted {
    color: #475569 !important;
    font-size: 6.7pt !important;
  }

  .convenios-selected-total-amount {
    color: #111827 !important;
    font-weight: 900 !important;
  }
}
