/* Catálogo de Destinos — Atenea steel + box cian */

.overlay-catalogo-destinos {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.overlay-catalogo-destinos.visible {
  display: flex;
}

.catalogo-modal {
  position: relative;
  width: min(760px, 94vw);
  max-height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
  padding: 20px 20px 14px;
  overflow: visible;
}

.catalogo-cerrar {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  font-family: inherit;
}

.catalogo-modal > h2 {
  margin: 0 0 4px;
  padding-right: 28px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.catalogo-sub {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--steel-sub, #8b97a8);
}

.catalogo-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(72vh, 640px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalogo-section {
  width: 100%;
  margin: 0;
  overflow: visible;
}

.catalogo-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.catalogo-section-title .fa-solid {
  color: #4fc3f7;
  font-size: 13px;
  flex-shrink: 0;
}
.catalogo-section-label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #c5d0e0;
}

.catalogo-toolbar,
.catalogo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-end;
}

/* Dropdown cliente — botón Atenea, no <select> */
.catalogo-dd {
  position: relative;
  flex: 1 1 160px;
  max-width: 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.catalogo-dd-label {
  font-size: 10px;
  color: #8ea1b5;
  letter-spacing: 0.02em;
}
.catalogo-dd-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #2a2d3a;
  background: #0d0f18;
  color: #c5d0e0;
  font-size: 10px;
  font-family: inherit;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  text-align: left;
}
.catalogo-dd-btn:hover {
  border-color: #4fc3f755;
  color: #4fc3f7;
}
.catalogo-dd-btn .fa-chevron-down {
  font-size: 9px;
  color: #8ea1b5;
  flex-shrink: 0;
}
.catalogo-dd-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalogo-dd-menu {
  position: fixed;
  z-index: 1400;
  min-width: 200px;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(79, 195, 247, 0.45);
  background: #12151e;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.catalogo-dd-menu.hidden {
  display: none !important;
}
.catalogo-dd-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #c5d0e0;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  line-height: 1.3;
}
.catalogo-dd-item:hover,
.catalogo-dd-item.activo {
  background: rgba(79, 195, 247, 0.12);
  color: #4fc3f7;
}
.catalogo-dd-item--otro {
  margin-top: 4px;
  border-top: 1px solid #2a3344;
  border-radius: 0 0 6px 6px;
  color: #4fc3f7;
  font-weight: 600;
}

/* Modo: chips compactos (no full-width como Exportar) */
.catalogo-modo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.catalogo-modo-row .exp-opt {
  width: auto;
  flex: 0 0 auto;
  min-width: 0;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  padding: 0 10px;
  font-size: 10px;
  line-height: 1;
}

.catalogo-actions .btn-modal,
.catalogo-toolbar .btn-modal,
.catalogo-file-btn {
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  width: auto;
  flex: 0 0 auto;
  padding: 0 8px;
  font-size: 10px;
  font-family: inherit;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  gap: 4px;
}
.catalogo-actions .btn-modal .fa-solid,
.catalogo-toolbar .btn-modal .fa-solid,
.catalogo-file-btn .fa-solid {
  font-size: 9px;
  line-height: 1;
}
.catalogo-file-btn {
  cursor: pointer;
  margin: 0;
}

.catalogo-badge {
  font-size: 10px;
  font-family: inherit;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(79, 195, 247, 0.35);
  background: rgba(79, 195, 247, 0.1);
  color: #4fc3f7;
  align-self: center;
}

.catalogo-msg {
  margin: 8px 0 0;
  font-size: 11px;
  color: #94a3b8;
}
.catalogo-msg--err {
  color: #f44336;
}

.catalogo-table-wrap {
  overflow: auto;
  max-height: min(38vh, 360px);
  border: 1px solid #2a3344;
  border-radius: 8px;
  background: #0c0e14;
}
.catalogo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-family: inherit;
}
.catalogo-table th,
.catalogo-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #1e2a36;
  text-align: left;
  color: #a8b8c8;
}
.catalogo-table th {
  position: sticky;
  top: 0;
  background: #12151e;
  color: #8ea1b5;
  font-weight: 600;
  font-size: 10px;
}
.catalogo-table code {
  font-size: 11px;
  color: #4fc3f7;
  font-family: ui-monospace, Consolas, monospace;
}
.catalogo-empty {
  color: #6b7c8f;
  text-align: center !important;
  padding: 1.2rem !important;
}
.catalogo-actions--cruce {
  margin-top: 8px;
}
.catalogo-btn-danger {
  color: #ff8a80 !important;
  border-color: rgba(244, 67, 54, 0.35) !important;
}
.catalogo-btn-danger:hover {
  color: #ffc9c5 !important;
  border-color: rgba(244, 67, 54, 0.55) !important;
  background: rgba(244, 67, 54, 0.08) !important;
}
.catalogo-conflictos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 10px;
  max-height: min(36vh, 320px);
  overflow-y: auto;
}
.catalogo-conflictos.hidden {
  display: none !important;
}
.catalogo-conflicto-card {
  border: 1px solid rgba(244, 67, 54, 0.4);
  border-radius: 8px;
  background: rgba(244, 67, 54, 0.06);
  padding: 8px 10px;
}
.catalogo-conflicto-cod {
  font-size: 12px;
  color: #ff8a80;
  margin-bottom: 6px;
}
.catalogo-conflicto-cod code {
  color: #ff8a80;
  font-family: ui-monospace, Consolas, monospace;
}
.catalogo-conflicto-opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.catalogo-opcion {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-radius: 6px;
  background: #0c0e14;
  border: 1px solid #2a3344;
}
.catalogo-opcion-body {
  flex: 1 1 200px;
  font-size: 11px;
  color: #c5d0e0;
  line-height: 1.35;
}
.catalogo-opcion-meta {
  color: #6b7c8f;
  font-size: 10px;
  margin-top: 2px;
}
.catalogo-opcion .btn-modal {
  height: 24px;
  min-height: 24px;
  width: auto;
  flex: 0 0 auto;
  padding: 2px 8px;
  font-size: 10px;
  font-family: inherit;
  white-space: nowrap;
}
.catalogo-table-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 8px;
}
.catalogo-table-tools .btn-modal {
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  width: auto;
  flex: 0 0 auto;
  padding: 0 8px;
  font-size: 10px;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}
.catalogo-filtro-dup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #c5d0e0;
  cursor: pointer;
  user-select: none;
}
.catalogo-filtro-dup input {
  accent-color: #f44336;
  margin: 0;
}
.catalogo-tratamiento {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(244, 67, 54, 0.45);
  background: rgba(244, 67, 54, 0.1);
  color: #ffc9c5;
  font-size: 11px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.catalogo-tratamiento strong {
  color: #ff8a80;
  font-size: 12px;
}
.catalogo-tratamiento-hint {
  color: #c9a09c;
  font-size: 10px;
}
.catalogo-row--conflicto td {
  background: rgba(244, 67, 54, 0.12);
  color: #ffc9c5;
}
.catalogo-row--conflicto code {
  color: #ff8a80;
}
.catalogo-tag-dup {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(244, 67, 54, 0.25);
  color: #ff8a80;
  vertical-align: middle;
}
.catalogo-row--conflicto .btn-cat-del {
  color: #ff8a80;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
}
.catalogo-row-actions button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #8ea1b5;
  font-size: 12px;
  padding: 2px 4px;
}
.catalogo-row-actions button:hover {
  color: #4fc3f7;
}
.catalogo-total {
  margin: 8px 0 0;
  font-size: 11px;
  color: #6b7c8f;
}
.catalogo-hist ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 11px;
  color: #8ea1b5;
  line-height: 1.45;
}

.catalogo-cfg-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 210px;
  background: var(--steel-bg-solid, #141a24);
  border: 1px solid var(--steel-border, #3d4a5c);
  border-radius: 8px;
  padding: 0.35rem;
  z-index: 80;
  box-shadow: var(--atenea-modal-shadow);
}
.catalogo-cfg-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #c5d0e0;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
}
.catalogo-cfg-menu button:hover {
  background: rgba(79, 195, 247, 0.1);
  color: #4fc3f7;
}
.titlebar-cfg-wrap {
  position: relative;
  display: inline-flex;
}
