
/* =========================================================
   UBICACIÓN:
   frontend/src/pages/importaciones/
   proveedores-internacionales/
   proveedores-internacionales.css

   WIRTZ HUB · IMPORTACIONES
   PROVEEDORES INTERNACIONALES
   CSS · PARTE 1 DE 2
   ========================================================= */

.imp-page {
  --imp-bg: #f5f7fa;
  --imp-surface: #ffffff;
  --imp-surface-soft: #f8fafc;
  --imp-surface-hover: #f0f4f8;

  --imp-text: #101828;
  --imp-text-secondary: #344054;
  --imp-text-muted: #526174;

  --imp-border: #cdd5df;
  --imp-border-strong: #aebbc9;

  --imp-primary: #18283e;
  --imp-primary-hover: #263d59;
  --imp-primary-text: #ffffff;

  --imp-success: #146b45;
  --imp-success-bg: #e5f5eb;
  --imp-success-border: #96d3b0;

  --imp-warning: #895300;
  --imp-warning-bg: #fff1d6;
  --imp-warning-border: #eac381;

  --imp-danger: #b42318;
  --imp-danger-bg: #fef0ee;
  --imp-danger-border: #e9b6b0;

  --imp-info: #15559c;
  --imp-info-bg: #eaf3ff;
  --imp-info-border: #a8c8ef;

  --imp-radius-sm: 8px;
  --imp-radius-md: 12px;
  --imp-radius-lg: 16px;

  --imp-shadow:
    0 2px 9px rgb(16 24 40 / 5%);

  --imp-font:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  position: relative;
  isolation: isolate;

  width: 100%;
  min-width: 0;
  max-width: 100%;

  min-height: 100%;

  color: var(--imp-text);
  background: var(--imp-bg);

  font-family: var(--imp-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
}

.imp-page,
.imp-page *,
.imp-page *::before,
.imp-page *::after {
  box-sizing: border-box;
}

.imp-page button,
.imp-page input,
.imp-page select,
.imp-page textarea {
  font: inherit;
}

.imp-page button {
  cursor: pointer;
}

.imp-page button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.imp-page [hidden] {
  display: none !important;
}

.imp-page :focus-visible {
  outline: 2px solid var(--imp-primary);
  outline-offset: 3px;
}

.imp-page__inner {
  width: 100%;
  min-width: 0;
  max-width: 1920px;

  margin-inline: auto;
  padding: 24px;

  display: flex;
  flex-direction: column;
  gap: 22px;
}

.imp-page .imp-text-muted {
  color: var(--imp-text-muted);
}

/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes imp-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes imp-rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imp-slide-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes imp-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes imp-skeleton-pulse {
  0%,
  100% {
    opacity: 0.48;
  }

  50% {
    opacity: 0.9;
  }
}

.imp-page__inner {
  animation: imp-fade-in 180ms ease-out both;
}

/* =========================================================
   ENCABEZADO
   ========================================================= */

.imp-header {
  display: flex;
  flex-direction: column;
  gap: 12px;

  min-width: 0;
}

.imp-header__eyebrow {
  color: var(--imp-text-secondary);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.imp-header__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
  min-width: 0;
}

.imp-header__main {
  flex: 1 1 360px;
  min-width: 0;
}

.imp-header__title {
  margin: 0;

  color: var(--imp-text);

  font-size: clamp(23px, 2vw, 31px);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.imp-header__description {
  max-width: 840px;

  margin: 9px 0 0;

  color: var(--imp-text-secondary);

  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}

.imp-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;

  flex: 0 1 auto;
  gap: 8px;
  min-width: 0;
}

/* =========================================================
   BOTONES
   ========================================================= */

.imp-page .imp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  min-width: 0;
  min-height: 39px;

  padding: 9px 14px;

  border: 1px solid var(--imp-border-strong);
  border-radius: var(--imp-radius-sm);

  color: var(--imp-text);
  background: var(--imp-surface);

  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;

  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.imp-page .imp-btn:hover:not(:disabled) {
  background: var(--imp-surface-hover);
  border-color: var(--imp-text-secondary);
  transform: translateY(-1px);
}

.imp-page .imp-btn:active:not(:disabled) {
  transform: translateY(0);
}

.imp-page .imp-btn svg,
.imp-page .imp-btn i {
  flex-shrink: 0;

  width: 16px;
  height: 16px;

  stroke-width: 2.2;
}

.imp-page .imp-btn--primary {
  color: var(--imp-primary-text);
  background: var(--imp-primary);
  border-color: var(--imp-primary);
}

.imp-page .imp-btn--primary:hover:not(:disabled) {
  color: #ffffff;
  background: var(--imp-primary-hover);
  border-color: var(--imp-primary-hover);
}

.imp-page .imp-btn--secondary {
  color: var(--imp-text);
  background: var(--imp-surface);
}

.imp-page .imp-btn--ghost {
  color: var(--imp-text-secondary);
  background: transparent;
  border-color: transparent;
}

.imp-page .imp-btn--ghost:hover:not(:disabled) {
  color: var(--imp-text);
  background: var(--imp-surface-hover);
  border-color: var(--imp-border);
}

.imp-page .imp-btn--danger {
  color: var(--imp-danger);
  background: var(--imp-danger-bg);
  border-color: var(--imp-danger-border);
}

.imp-page .imp-btn--xs {
  min-height: 32px;
  padding: 6px 10px;

  font-size: 11px;
}

.imp-page .imp-btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.imp-page .imp-btn.is-loading svg {
  animation: imp-spin 850ms linear infinite;
}

/* =========================================================
   BOTONES DE ÍCONO
   ========================================================= */

.imp-page .imp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 35px;
  height: 35px;

  padding: 7px;

  border: 1px solid var(--imp-border);
  border-radius: 9px;

  color: var(--imp-text-secondary);
  background: var(--imp-surface);

  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.imp-page .imp-icon-btn:hover:not(:disabled) {
  color: var(--imp-text);
  background: var(--imp-surface-hover);
  border-color: var(--imp-border-strong);
  transform: translateY(-1px);
}

.imp-page .imp-icon-btn svg,
.imp-page .imp-icon-btn i {
  width: 17px;
  height: 17px;

  stroke-width: 2.1;
}

.imp-page .imp-icon-btn--close {
  width: 40px;
  height: 40px;

  border-color: var(--imp-border-strong);
}

/* =========================================================
   KPI · GRILLA
   ========================================================= */

.imp-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));

  gap: 12px;
  min-width: 0;
}

.imp-metric-card {
  position: relative;

  display: flex;
  align-items: flex-start;
  gap: 12px;

  min-width: 0;
  min-height: 118px;

  padding: 17px 15px;

  border: 1px solid var(--imp-border);
  border-radius: var(--imp-radius-md);

  background: var(--imp-surface);

  box-shadow: var(--imp-shadow);

  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.imp-metric-card:hover {
  border-color: var(--imp-border-strong);
  transform: translateY(-2px);
}

.imp-metric-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 39px;

  width: 39px;
  height: 39px;

  border: 1px solid var(--imp-border);
  border-radius: 10px;

  color: var(--imp-text);
  background: var(--imp-surface-soft);
}

.imp-metric-card__icon svg,
.imp-metric-card__icon i {
  width: 20px;
  height: 20px;

  stroke-width: 2.1;
}

.imp-metric-card__body {
  display: flex;
  flex-direction: column;

  flex: 1;
  min-width: 0;
}

.imp-metric-card__label {
  color: var(--imp-text-secondary);

  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.imp-metric-card__value {
  display: block;

  margin-top: 7px;

  color: var(--imp-text);

  font-size: clamp(21px, 1.7vw, 28px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.imp-metric-card__meta {
  margin-top: 8px;

  color: var(--imp-text-muted);

  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.imp-metric-card--primary {
  border-top: 3px solid var(--imp-primary);
}

.imp-metric-card--success {
  border-top: 3px solid var(--imp-success);
}

.imp-metric-card--warning {
  border-top: 3px solid var(--imp-warning);
}

.imp-metric-card--danger {
  border-top: 3px solid var(--imp-danger);
}

/* =========================================================
   CONTENEDOR DE TRABAJO
   ========================================================= */

.imp-workspace {
  display: block;

  width: 100%;
  min-width: 0;
}

.imp-panel {
  display: flex;
  flex-direction: column;

  min-width: 0;
  width: 100%;

  overflow: hidden;

  border: 1px solid var(--imp-border-strong);
  border-radius: var(--imp-radius-lg);

  background: var(--imp-surface);

  box-shadow: var(--imp-shadow);
}

.imp-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding: 19px 20px;

  border-bottom: 1px solid var(--imp-border);
}

.imp-panel__title {
  margin: 0;

  color: var(--imp-text);

  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.imp-panel__subtitle {
  margin: 5px 0 0;

  color: var(--imp-text-secondary);

  font-size: 12px;
  font-weight: 650;
}

.imp-panel__header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.imp-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 14px;
  min-width: 0;

  padding: 15px 20px;

  border-bottom: 1px solid var(--imp-border);
  background: var(--imp-surface);
}

.imp-toolbar__filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;

  gap: 9px;
}

.imp-search {
  position: relative;

  display: flex;
  align-items: center;

  flex: 1 1 380px;

  min-width: 180px;
  max-width: 700px;
}

.imp-search > svg,
.imp-search > i {
  position: absolute;
  left: 13px;

  z-index: 1;

  width: 18px;
  height: 18px;

  color: var(--imp-text-secondary);
  pointer-events: none;
}

.imp-search input {
  width: 100%;
  min-width: 0;
  height: 42px;

  padding: 9px 42px 9px 42px;

  border: 1px solid var(--imp-border-strong);
  border-radius: 10px;

  color: var(--imp-text);
  background: var(--imp-surface);

  font-size: 12px;
  font-weight: 650;

  outline: none;

  transition:
    border-color 140ms ease,
    background-color 140ms ease;
}

.imp-search input::placeholder {
  color: var(--imp-text-muted);
  opacity: 1;
}

.imp-search input:focus {
  border-color: var(--imp-primary);
  background: var(--imp-surface);
}

.imp-search__clear {
  position: absolute;
  right: 8px;

  display: grid;
  place-items: center;

  width: 27px;
  height: 27px;

  padding: 5px;

  border: 0;
  border-radius: 7px;

  color: var(--imp-text-secondary);
  background: transparent;
}

.imp-search__clear:hover {
  color: var(--imp-text);
  background: var(--imp-surface-hover);
}

.imp-search__clear svg,
.imp-search__clear i {
  width: 15px;
  height: 15px;
}

.imp-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;

  min-width: 125px;
}

.imp-select-wrap > span {
  color: var(--imp-text-secondary);

  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.025em;
}

.imp-select-wrap select,
.imp-advanced-filters select {
  width: 100%;
  height: 42px;

  padding: 8px 32px 8px 12px;

  border: 1px solid var(--imp-border-strong);
  border-radius: 9px;

  color: var(--imp-text);
  background: var(--imp-surface);

  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.imp-select-wrap select:focus,
.imp-advanced-filters select:focus {
  border-color: var(--imp-primary);
  outline: none;
}

/* =========================================================
   FILTROS AVANZADOS
   ========================================================= */

.imp-advanced-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;

  gap: 12px;
  min-width: 0;

  padding: 16px 20px;

  border-bottom: 1px solid var(--imp-border);

  background: var(--imp-surface-soft);

  animation: imp-fade-in 140ms ease-out both;
}

.imp-advanced-filters > label {
  display: flex;
  flex-direction: column;
  gap: 6px;

  flex: 1 1 170px;
  min-width: 140px;
}

.imp-advanced-filters > label > span {
  color: var(--imp-text-secondary);

  font-size: 11px;
  font-weight: 800;
}

.imp-advanced-filters__actions {
  display: flex;
  align-items: flex-end;

  min-height: 42px;
}

/* =========================================================
   SELECCIÓN MASIVA
   ========================================================= */

.imp-mass-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 12px;

  padding: 12px 20px;

  border-bottom: 1px solid var(--imp-info-border);
  background: var(--imp-info-bg);

  animation: imp-fade-in 140ms ease-out both;
}

.imp-mass-toolbar > span {
  flex: 1 1 auto;

  color: var(--imp-info);

  font-size: 12px;
  font-weight: 850;
}

/* =========================================================
   TABLA PRINCIPAL
   ========================================================= */

.imp-table-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;

  overflow-x: auto;
  overflow-y: hidden;

  scrollbar-width: thin;
  scrollbar-color:
    var(--imp-border-strong)
    var(--imp-surface-soft);

  overscroll-behavior-inline: contain;
}

.imp-table {
  width: 100%;
  min-width: 1120px;

  border-collapse: separate;
  border-spacing: 0;

  color: var(--imp-text);

  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.imp-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;

  padding: 13px 12px;

  border-bottom: 2px solid var(--imp-border-strong);

  color: var(--imp-text-secondary);
  background: var(--imp-surface-soft);

  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.imp-table tbody td {
  padding: 13px 12px;

  border-bottom: 1px solid var(--imp-border);

  vertical-align: middle;
}

.imp-table tbody tr:last-child td {
  border-bottom: 0;
}

.imp-table-row {
  transition: background-color 130ms ease;
}

.imp-table-row:hover {
  background: var(--imp-surface-soft);
}

.imp-table-row[data-provider-id] {
  cursor: pointer;
}

.imp-table-row:focus-within {
  background: var(--imp-surface-soft);
}

.imp-col-checkbox {
  width: 47px;
  min-width: 47px;
  text-align: center !important;
}

.imp-col-checkbox input,
.imp-row-checkbox {
  width: 16px;
  height: 16px;

  margin: 0;

  accent-color: var(--imp-primary);
  cursor: pointer;
}

.imp-col-provider {
  min-width: 235px;
  width: 25%;
}

.imp-col-actions {
  width: 100px;
  min-width: 100px;
  text-align: right !important;
}

.imp-table-empty-cell {
  padding: 45px 18px !important;
}

/* =========================================================
   CELDA PROVEEDOR
   ========================================================= */

.imp-supplier-cell {
  display: flex;
  align-items: center;

  gap: 11px;
  min-width: 0;
}

.imp-supplier-avatar {
  display: grid;
  place-items: center;

  flex: 0 0 42px;

  width: 42px;
  height: 42px;

  overflow: hidden;

  border: 1px solid var(--imp-border-strong);
  border-radius: 11px;

  color: var(--imp-text);
  background: #e6ebf2;

  font-size: 17px;
  font-weight: 900;
}

.imp-supplier-avatar img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  background: #ffffff;
}

.imp-supplier-cell__text {
  display: flex;
  flex-direction: column;

  flex: 1;
  min-width: 0;
}

.imp-supplier-cell__name {
  color: var(--imp-text);

  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;

  overflow-wrap: anywhere;
}

.imp-supplier-cell__legal {
  margin-top: 2px;

  color: var(--imp-text-secondary);

  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;

  overflow-wrap: anywhere;
}

.imp-supplier-cell__meta {
  display: flex;
  flex-wrap: wrap;

  gap: 4px 9px;

  margin-top: 5px;

  color: var(--imp-text-muted);

  font-size: 10px;
  font-weight: 700;
}

.imp-supplier-cell__meta span {
  overflow-wrap: anywhere;
}

/* =========================================================
   CELDAS SECUNDARIAS
   ========================================================= */

.imp-value-stack {
  display: flex;
  flex-direction: column;

  gap: 4px;
  min-width: 0;
}

.imp-value-stack strong {
  color: var(--imp-text);

  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;

  overflow-wrap: anywhere;
}

.imp-value-stack small {
  color: var(--imp-text-muted);

  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;

  overflow-wrap: anywhere;
}

.imp-inline-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;

  gap: 6px;
}

.imp-inline-actions .imp-icon-btn {
  width: 31px;
  height: 31px;
}

.imp-inline-actions .imp-icon-btn svg {
  width: 15px;
  height: 15px;
}

/* =========================================================
   BADGES
   ========================================================= */

.imp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 5px;

  max-width: 100%;

  padding: 5px 9px;

  border: 1px solid var(--imp-border);
  border-radius: 6px;

  color: var(--imp-text-secondary);
  background: var(--imp-surface-soft);

  font-size: 10px;
  font-weight: 850;
  line-height: 1.3;

  text-align: center;
  white-space: nowrap;
}

.imp-badge.is-success {
  color: var(--imp-success);
  background: var(--imp-success-bg);
  border-color: var(--imp-success-border);
}

.imp-badge.is-warning {
  color: var(--imp-warning);
  background: var(--imp-warning-bg);
  border-color: var(--imp-warning-border);
}

.imp-badge.is-danger {
  color: var(--imp-danger);
  background: var(--imp-danger-bg);
  border-color: var(--imp-danger-border);
}

.imp-badge.is-info {
  color: var(--imp-info);
  background: var(--imp-info-bg);
  border-color: var(--imp-info-border);
}

.imp-badge.is-neutral {
  color: var(--imp-text-secondary);
  background: var(--imp-surface-soft);
  border-color: var(--imp-border);
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */

.imp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 12px;

  min-height: 69px;
  padding: 14px 20px;

  border-top: 1px solid var(--imp-border);
  background: var(--imp-surface);
}

.imp-pagination__info {
  color: var(--imp-text-secondary);

  font-size: 11px;
  font-weight: 650;
}

.imp-pagination__info strong {
  color: var(--imp-text);
  font-weight: 850;
}

.imp-pagination__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 7px;
}

.imp-pagination__limit {
  display: flex;
  align-items: center;

  gap: 8px;
  margin-right: 8px;

  color: var(--imp-text-secondary);
  font-size: 11px;
  font-weight: 750;
}

.imp-pagination__limit select {
  min-width: 68px;
  height: 35px;

  padding: 5px 8px;

  border: 1px solid var(--imp-border-strong);
  border-radius: 7px;

  color: var(--imp-text);
  background: var(--imp-surface);

  font-size: 11px;
  font-weight: 750;
}

.imp-pagination__current {
  padding: 0 7px;

  color: var(--imp-text-secondary);

  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.imp-pagination__current strong {
  color: var(--imp-text);
  font-weight: 850;
}

/* =========================================================
   ESTADOS VACÍOS
   ========================================================= */

.imp-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 11px;

  width: 100%;
  min-width: 0;

  padding: 30px 20px;

  text-align: center;
}

.imp-empty__icon {
  display: grid;
  place-items: center;

  width: 57px;
  height: 57px;

  border: 1px solid var(--imp-border);
  border-radius: 15px;

  color: var(--imp-text-secondary);
  background: var(--imp-surface-soft);
}

.imp-empty__icon svg,
.imp-empty__icon i {
  width: 26px;
  height: 26px;
  stroke-width: 1.9;
}

.imp-empty > strong {
  max-width: 480px;

  color: var(--imp-text);

  font-size: 15px;
  font-weight: 850;
  line-height: 1.4;
}

.imp-empty > span {
  max-width: 530px;

  color: var(--imp-text-secondary);

  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
}

.imp-empty__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 9px;
  margin-top: 7px;
}

.imp-empty--small {
  padding: 30px 15px;
}

.imp-empty--small .imp-empty__icon {
  width: 46px;
  height: 46px;
}

.imp-empty--small .imp-empty__icon svg {
  width: 21px;
  height: 21px;
}

/* =========================================================
   SKELETONS
   ========================================================= */

.imp-skeleton {
  display: block;

  position: relative;

  border-radius: 6px;

  background: #dce3eb;

  animation: imp-skeleton-pulse 1150ms ease-in-out infinite;
}

.imp-skeleton--icon {
  flex: 0 0 39px;

  width: 39px;
  height: 39px;

  border-radius: 10px;
}

.imp-skeleton--label {
  width: 72%;
  height: 11px;
}

.imp-skeleton--value {
  width: 54%;
  height: 28px;

  margin-top: 10px;
}

.imp-skeleton--small {
  width: 80%;
  height: 9px;

  margin-top: 11px;
}

.imp-skeleton--checkbox {
  width: 16px;
  height: 16px;
}

.imp-skeleton--avatar {
  flex: 0 0 42px;

  width: 42px;
  height: 42px;

  border-radius: 11px;
}

.imp-skeleton--line-lg {
  width: min(210px, 90%);
  height: 13px;

  margin-bottom: 8px;
}

.imp-skeleton--line-sm {
  width: min(125px, 80%);
  height: 10px;
}

.imp-skeleton--badge {
  width: 82px;
  height: 25px;

  border-radius: 6px;
}

.imp-skeleton--button {
  width: 65px;
  height: 30px;
}

/* =========================================================
   TOASTS
   ========================================================= */

.imp-toast-container {
  position: fixed;
  top: 76px;
  right: 22px;

  z-index: 2147483600;

  display: flex;
  flex-direction: column;

  gap: 9px;

  width: min(410px, calc(100vw - 32px));

  pointer-events: none;
}

.imp-toast {
  display: flex;
  align-items: flex-start;

  gap: 11px;

  padding: 14px;

  border: 1px solid var(--imp-border-strong);
  border-left: 4px solid var(--imp-success);
  border-radius: 10px;

  color: var(--imp-text);
  background: var(--imp-surface);

  box-shadow: 0 9px 28px rgb(0 0 0 / 12%);

  pointer-events: auto;

  animation: imp-slide-in 180ms ease-out both;
}

.imp-toast--error {
  border-left-color: var(--imp-danger);
}

.imp-toast--warning {
  border-left-color: var(--imp-warning);
}

.imp-toast__icon {
  flex: 0 0 auto;
}

.imp-toast__icon svg,
.imp-toast__icon i {
  width: 19px;
  height: 19px;
}

.imp-toast--success .imp-toast__icon {
  color: var(--imp-success);
}

.imp-toast--error .imp-toast__icon {
  color: var(--imp-danger);
}

.imp-toast--warning .imp-toast__icon {
  color: var(--imp-warning);
}

.imp-toast__message {
  flex: 1;

  color: var(--imp-text);

  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;

  overflow-wrap: anywhere;
}

.imp-toast__close {
  display: grid;
  place-items: center;

  flex: 0 0 auto;

  width: 23px;
  height: 23px;

  padding: 3px;

  border: 0;
  border-radius: 5px;

  color: var(--imp-text-secondary);
  background: transparent;
}

.imp-toast__close svg {
  width: 15px;
  height: 15px;
}

.imp-toast.is-leaving {
  opacity: 0;
  transform: translateX(12px);

  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

/* =========================================================
   RESPONSIVE · ESCRITORIO
   ========================================================= */

@media (max-width: 1500px) {
  .imp-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .imp-header__title-row {
    flex-wrap: wrap;
  }

  .imp-header__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1050px) {
  .imp-page__inner {
    padding: 18px;
    gap: 18px;
  }

  .imp-toolbar {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .imp-search {
    flex-basis: 100%;
    max-width: none;
  }

  .imp-toolbar__filters {
    width: 100%;
  }

  .imp-select-wrap {
    flex: 1 1 150px;
  }
}

@media (max-width: 720px) {
  .imp-page__inner {
    padding: 12px;
    gap: 14px;
  }

  .imp-header__title {
    font-size: 23px;
  }

  .imp-header__description {
    font-size: 12px;
  }

  .imp-header__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .imp-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .imp-metric-card {
    min-height: 103px;
    padding: 12px;
    gap: 9px;
  }

  .imp-metric-card__icon {
    flex-basis: 33px;
    width: 33px;
    height: 33px;
  }

  .imp-metric-card__icon svg {
    width: 17px;
    height: 17px;
  }

  .imp-metric-card__value {
    font-size: 22px;
  }

  .imp-panel__header,
  .imp-toolbar,
  .imp-advanced-filters,
  .imp-pagination {
    padding-inline: 13px;
  }

  .imp-pagination {
    justify-content: center;
  }

  .imp-pagination__info {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .imp-metrics {
    grid-template-columns: 1fr;
  }

  .imp-header__actions .imp-btn {
    flex: 1 1 auto;
  }

  .imp-select-wrap {
    flex-basis: 100%;
  }

  .imp-pagination__limit {
    margin-right: 0;
  }
}

/* =========================================================
   MODO OSCURO · VARIABLES
   ========================================================= */

[data-theme="dark"] .imp-page,
.dark .imp-page,
body.dark .imp-page,
body[data-theme="dark"] .imp-page {
  --imp-bg: #080a0d;
  --imp-surface: #0e1116;
  --imp-surface-soft: #151a21;
  --imp-surface-hover: #1c242e;

  --imp-text: #f5f7fa;
  --imp-text-secondary: #d3dae4;
  --imp-text-muted: #aab6c6;

  --imp-border: #35404d;
  --imp-border-strong: #4b596a;

  --imp-primary: #f5f7fa;
  --imp-primary-hover: #dce5ef;
  --imp-primary-text: #101828;

  --imp-success: #7dd6a3;
  --imp-success-bg: #132d22;
  --imp-success-border: #347455;

  --imp-warning: #ffd28a;
  --imp-warning-bg: #33250f;
  --imp-warning-border: #80643c;

  --imp-danger: #ff9b93;
  --imp-danger-bg: #341d1d;
  --imp-danger-border: #8c4545;

  --imp-info: #a6cbff;
  --imp-info-bg: #17283c;
  --imp-info-border: #3a638b;

  --imp-shadow:
    0 2px 12px rgb(0 0 0 / 22%);

  color-scheme: dark;
}

[data-theme="dark"] .imp-skeleton,
.dark .imp-skeleton,
body.dark .imp-skeleton {
  background: #313b48;
}

[data-theme="dark"] .imp-supplier-avatar,
.dark .imp-supplier-avatar,
body.dark .imp-supplier-avatar {
  background: #242d38;
}

[data-theme="dark"] .imp-supplier-avatar img,
.dark .imp-supplier-avatar img,
body.dark .imp-supplier-avatar img {
  background: #ffffff;
}

/* =========================================================
   ACCESIBILIDAD · MENOS MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .imp-page *,
  .imp-page *::before,
  .imp-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   FIN · CSS PARTE 1 DE 2
   ========================================================= */

/* =========================================================
   UBICACIÓN:
   frontend/src/pages/importaciones/
   proveedores-internacionales/
   proveedores-internacionales.css

   AGREGAR AL FINAL DE LA PARTE 1

   WIRTZ HUB · IMPORTACIONES
   PROVEEDORES INTERNACIONALES
   CSS · PARTE 2 DE 2
   ========================================================= */

/* =========================================================
   FICHA DEL PROVEEDOR · OVERLAY
   ========================================================= */

.imp-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px;

  overflow: hidden;
  isolation: isolate;
}

.imp-detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;

  background: rgb(7 13 23 / 75%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.imp-detail {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;

  width: min(1700px, 100%);
  max-width: 100%;

  height: min(94dvh, 1080px);
  max-height: calc(100dvh - 36px);
  min-height: 0;

  overflow: hidden;

  border: 1px solid var(--imp-border-strong);
  border-radius: 17px;

  color: var(--imp-text);
  background: var(--imp-surface);

  box-shadow: 0 25px 80px rgb(0 0 0 / 25%);

  animation: imp-rise-in 190ms ease-out both;
}

/* =========================================================
   FICHA · ENCABEZADO
   ========================================================= */

.imp-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  flex: 0 0 auto;
  gap: 18px;

  min-width: 0;

  padding: 18px 23px;

  border-bottom: 1px solid var(--imp-border);
  background: var(--imp-surface);
}

.imp-detail__header-main {
  flex: 1 1 auto;
  min-width: 0;
}

.imp-detail__header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  flex: 0 0 auto;
  gap: 8px;
}

.imp-detail-provider {
  display: flex;
  align-items: center;

  gap: 13px;
  min-width: 0;
}

.imp-detail-provider > .imp-supplier-avatar {
  flex-basis: 57px;

  width: 57px;
  height: 57px;

  border-radius: 13px;

  font-size: 22px;
}

.imp-detail-provider__text {
  flex: 1;
  min-width: 0;
}

.imp-detail-provider__eyebrow {
  display: block;

  margin-bottom: 4px;

  color: var(--imp-text-secondary);

  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.imp-detail-provider__text h2 {
  margin: 0;

  color: var(--imp-text);

  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.25;

  overflow-wrap: anywhere;
}

.imp-detail-provider__meta {
  display: flex;
  flex-wrap: wrap;

  gap: 5px 12px;
  margin-top: 6px;

  color: var(--imp-text-secondary);

  font-size: 11px;
  font-weight: 700;
}

.imp-detail-provider__meta span {
  overflow-wrap: anywhere;
}

/* =========================================================
   FICHA · INDICADORES
   ========================================================= */

.imp-detail__summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));

  flex: 0 0 auto;

  gap: 0;

  border-bottom: 1px solid var(--imp-border);
  background: var(--imp-surface-soft);
}

.imp-detail-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 5px;
  min-width: 0;
  min-height: 78px;

  padding: 13px 18px;

  border-right: 1px solid var(--imp-border);
}

.imp-detail-stat:last-child {
  border-right: 0;
}

.imp-detail-stat > span {
  color: var(--imp-text-secondary);

  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.imp-detail-stat > strong {
  color: var(--imp-text);

  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;

  overflow-wrap: anywhere;
}

.imp-detail-stat > small {
  color: var(--imp-text-muted);

  font-size: 10px;
  font-weight: 650;
}

/* =========================================================
   FICHA · PESTAÑAS
   ========================================================= */

.imp-detail-tabs {
  display: flex;
  align-items: stretch;

  flex: 0 0 auto;

  gap: 2px;

  min-width: 0;
  width: 100%;

  padding: 7px 13px 0;

  overflow-x: auto;
  overflow-y: hidden;

  border-bottom: 1px solid var(--imp-border);

  background: var(--imp-surface);

  scrollbar-width: thin;
  scrollbar-color:
    var(--imp-border-strong)
    transparent;
}

.imp-detail-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  position: relative;

  flex: 0 0 auto;
  gap: 7px;

  min-height: 43px;

  padding: 10px 13px;

  border: 1px solid transparent;
  border-bottom: 3px solid transparent;
  border-radius: 7px 7px 0 0;

  color: var(--imp-text-secondary);
  background: transparent;

  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;

  white-space: nowrap;

  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.imp-detail-tab:hover {
  color: var(--imp-text);
  background: var(--imp-surface-soft);
}

.imp-detail-tab.is-active {
  color: var(--imp-text);
  background: var(--imp-surface-soft);

  border-color: var(--imp-border);
  border-bottom-color: var(--imp-primary);
}

.imp-detail-tab svg,
.imp-detail-tab i {
  flex: 0 0 auto;

  width: 16px;
  height: 16px;

  stroke-width: 2.1;
}

/* =========================================================
   FICHA · CONTENIDO
   ========================================================= */

.imp-detail__content {
  flex: 1 1 auto;

  min-width: 0;
  min-height: 0;

  padding: 20px 23px 25px;

  overflow-x: hidden;
  overflow-y: auto;

  background: var(--imp-bg);

  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.imp-detail__content > * {
  animation: imp-fade-in 140ms ease-out both;
}

.imp-detail__loading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  align-content: start;

  gap: 13px;

  flex: 1 1 auto;
  min-height: 0;

  padding: 20px;

  overflow-y: auto;
  background: var(--imp-bg);
}

.imp-detail__loading .imp-card {
  min-height: 110px;
}

/* =========================================================
   FICHA · GRILLA
   ========================================================= */

.imp-tab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  align-items: start;

  gap: 15px;

  width: 100%;
  min-width: 0;
}

.imp-tab-grid > * {
  min-width: 0;
}

.imp-card {
  min-width: 0;

  overflow: hidden;

  border: 1px solid var(--imp-border-strong);
  border-radius: 12px;

  color: var(--imp-text);
  background: var(--imp-surface);

  box-shadow: var(--imp-shadow);
}

.imp-card--full {
  grid-column: 1 / -1;
}

.imp-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  min-height: 68px;
  padding: 15px 17px;

  border-bottom: 1px solid var(--imp-border);
  background: var(--imp-surface-soft);
}

.imp-card__header > div:first-child {
  flex: 1;
  min-width: 0;
}

.imp-card__header h3 {
  margin: 0;

  color: var(--imp-text);

  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
}

.imp-card__header p {
  margin: 4px 0 0;

  color: var(--imp-text-secondary);

  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
}

.imp-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 7px;
}

.imp-card__actions > svg,
.imp-card__actions > i {
  flex-shrink: 0;

  width: 17px;
  height: 17px;

  color: var(--imp-text-secondary);
}

.imp-card__body {
  min-width: 0;
  padding: 16px 17px;
}

/* =========================================================
   FICHA · CAMPOS
   ========================================================= */

.imp-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 0;

  min-width: 0;
}

.imp-kv {
  display: flex;
  flex-direction: column;

  gap: 5px;

  min-width: 0;

  padding: 12px 10px;

  border-bottom: 1px solid var(--imp-border);
}

.imp-kv:nth-child(odd) {
  border-right: 1px solid var(--imp-border);
}

.imp-kv > span {
  color: var(--imp-text-secondary);

  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
}

.imp-kv > strong {
  color: var(--imp-text);

  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;

  overflow-wrap: anywhere;
}

.imp-text-content {
  color: var(--imp-text);

  font-size: 12px;
  font-weight: 650;
  line-height: 1.85;

  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.imp-section-divider {
  height: 1px;
  margin: 18px 0;

  background: var(--imp-border);
}

.imp-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 9px;
}

.imp-inline-badges {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;
  margin-top: 15px;
}

/* =========================================================
   FICHA · IMÁGENES DEL RESUMEN
   ========================================================= */

.imp-summary-media {
  display: flex;
  flex-direction: column;

  gap: 12px;
  min-width: 0;
}

.imp-summary-media__cover {
  width: 100%;
  height: 190px;

  overflow: hidden;

  border: 1px solid var(--imp-border);
  border-radius: 10px;

  background: var(--imp-surface-soft);
}

.imp-summary-media__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.imp-summary-media__logo {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 110px;

  padding: 12px;

  border: 1px solid var(--imp-border);
  border-radius: 10px;

  background: #ffffff;
}

.imp-summary-media__logo img {
  max-width: 100%;
  max-height: 110px;

  object-fit: contain;
}

.imp-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 10px;

  min-height: 155px;

  border: 1px dashed var(--imp-border-strong);
  border-radius: 10px;

  color: var(--imp-text-secondary);
  background: var(--imp-surface-soft);

  font-size: 11px;
  font-weight: 750;
}

.imp-media-placeholder svg {
  width: 31px;
  height: 31px;
}

/* =========================================================
   FICHA · LISTADO DE RECURSOS
   ========================================================= */

.imp-resource-list {
  display: flex;
  flex-direction: column;

  gap: 0;
  min-width: 0;
}

.imp-resource-row {
  display: flex;
  align-items: center;

  gap: 12px;
  min-width: 0;

  padding: 13px 4px;

  border-bottom: 1px solid var(--imp-border);

  transition: background-color 140ms ease;
}

.imp-resource-row:last-child {
  border-bottom: 0;
}

.imp-resource-row:hover {
  background: var(--imp-surface-soft);
}

.imp-resource-row__icon {
  display: grid;
  place-items: center;

  flex: 0 0 39px;

  width: 39px;
  height: 39px;

  border: 1px solid var(--imp-border);
  border-radius: 9px;

  color: var(--imp-text-secondary);
  background: var(--imp-surface-soft);
}

.imp-resource-row__icon svg {
  width: 19px;
  height: 19px;
}

.imp-resource-row__content {
  display: flex;
  flex-direction: column;

  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
}

.imp-resource-row__content strong {
  color: var(--imp-text);

  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;

  overflow-wrap: anywhere;
}

.imp-resource-row__content small {
  color: var(--imp-text-secondary);

  font-size: 11px;
  font-weight: 650;
  line-height: 1.6;

  overflow-wrap: anywhere;
}

.imp-resource-row__meta {
  flex: 0 1 auto;

  max-width: 180px;

  color: var(--imp-text-secondary);

  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;

  text-align: right;
  overflow-wrap: anywhere;
}

.imp-resource-row__actions {
  display: flex;
  align-items: center;

  flex: 0 0 auto;
  gap: 6px;
}

.imp-resource-row__actions .imp-icon-btn {
  width: 31px;
  height: 31px;
}

/* =========================================================
   TABLAS DENTRO DE LA FICHA
   ========================================================= */

.imp-table--detail {
  min-width: 850px;

  font-size: 11px;
}

.imp-table--detail thead th {
  padding: 11px 12px;
}

.imp-table--detail tbody td {
  padding: 12px;
}

/* =========================================================
   PRODUCTOS
   ========================================================= */

.imp-product-cell {
  display: flex;
  align-items: center;

  gap: 10px;
  min-width: 190px;
}

.imp-product-cell > img,
.imp-product-cell__placeholder {
  flex: 0 0 44px;

  width: 44px;
  height: 44px;

  border: 1px solid var(--imp-border);
  border-radius: 8px;

  object-fit: contain;
  background: var(--imp-surface-soft);
}

.imp-product-cell__placeholder {
  display: grid;
  place-items: center;

  color: var(--imp-text-muted);
}

.imp-product-cell__placeholder svg {
  width: 20px;
  height: 20px;
}

.imp-product-cell > div:last-child {
  display: flex;
  flex-direction: column;

  gap: 4px;
  min-width: 0;
}

.imp-product-cell strong {
  color: var(--imp-text);

  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;

  overflow-wrap: anywhere;
}

.imp-product-cell small {
  color: var(--imp-text-secondary);

  font-size: 10px;
  font-weight: 650;
}

/* =========================================================
   GALERÍA DE IMÁGENES
   ========================================================= */

.imp-image-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(170px, 1fr)
  );

  gap: 13px;
  min-width: 0;
}

.imp-image-card {
  min-width: 0;

  overflow: hidden;

  border: 1px solid var(--imp-border);
  border-radius: 11px;

  background: var(--imp-surface);

  transition:
    border-color 150ms ease,
    transform 150ms ease;
}

.imp-image-card:hover {
  border-color: var(--imp-border-strong);
  transform: translateY(-2px);
}

.imp-image-card__preview {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  aspect-ratio: 4 / 3;

  overflow: hidden;

  background: var(--imp-surface-soft);
}

.imp-image-card__preview img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.imp-image-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 8px;

  padding: 9px 10px;

  border-top: 1px solid var(--imp-border);
}

.imp-image-card__footer strong {
  flex: 1;
  min-width: 0;

  color: var(--imp-text);

  font-size: 11px;
  font-weight: 800;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   MODAL · OVERLAY
   ========================================================= */

.imp-modal-overlay {
  position: fixed;
  inset: 0;

  z-index: 2147483400;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px;

  overflow: hidden;
  isolation: isolate;
}

.imp-modal-backdrop {
  position: absolute;
  inset: 0;

  z-index: 0;

  background: rgb(5 10 19 / 73%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.imp-modal {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;

  width: min(780px, 100%);
  max-width: 100%;

  max-height: calc(100dvh - 36px);
  min-height: 0;

  overflow: hidden;

  border: 1px solid var(--imp-border-strong);
  border-radius: 16px;

  color: var(--imp-text);
  background: var(--imp-surface);

  box-shadow: 0 28px 90px rgb(0 0 0 / 30%);

  animation: imp-rise-in 170ms ease-out both;
}

.imp-modal--wide {
  width: min(1050px, 100%);
}

.imp-modal--xl {
  width: min(1330px, 100%);
}

.imp-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  flex: 0 0 auto;
  gap: 15px;

  padding: 18px 22px;

  border-bottom: 1px solid var(--imp-border);
  background: var(--imp-surface);
}

.imp-modal__header > div:first-child {
  flex: 1;
  min-width: 0;
}

.imp-modal__header h2 {
  margin: 0;

  color: var(--imp-text);

  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.imp-modal__header p {
  margin: 5px 0 0;

  color: var(--imp-text-secondary);

  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.imp-modal__form {
  display: flex;
  flex-direction: column;

  flex: 1 1 auto;
  min-height: 0;

  overflow: hidden;
}

.imp-modal__body {
  flex: 1 1 auto;

  min-height: 0;

  padding: 19px 22px 26px;

  overflow-x: hidden;
  overflow-y: auto;

  background: var(--imp-bg);

  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.imp-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  flex: 0 0 auto;
  gap: 9px;

  min-height: 70px;
  padding: 13px 22px;

  border-top: 1px solid var(--imp-border);
  background: var(--imp-surface);
}

/* =========================================================
   FORMULARIOS · SECCIONES
   ========================================================= */

.imp-form-section {
  min-width: 0;

  margin-bottom: 16px;

  overflow: hidden;

  border: 1px solid var(--imp-border-strong);
  border-radius: 11px;

  background: var(--imp-surface);
}

.imp-form-section:last-child {
  margin-bottom: 0;
}

.imp-form-section__header {
  padding: 14px 17px;

  border-bottom: 1px solid var(--imp-border);
  background: var(--imp-surface-soft);
}

.imp-form-section__header h3 {
  margin: 0;

  color: var(--imp-text);

  font-size: 13px;
  font-weight: 900;
}

.imp-form-section__header p {
  margin: 5px 0 0;

  color: var(--imp-text-secondary);

  font-size: 11px;
  font-weight: 650;
}

.imp-form-section__footer {
  grid-column: 1 / -1;

  display: flex;
  justify-content: flex-end;

  padding-top: 10px;

  border-top: 1px solid var(--imp-border);
}

.imp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 16px;

  padding: 17px;
}

.imp-field {
  display: flex;
  flex-direction: column;

  gap: 7px;
  min-width: 0;
}

.imp-field--wide {
  grid-column: 1 / -1;
}

.imp-field__label {
  color: var(--imp-text-secondary);

  font-size: 11px;
  font-weight: 850;
  line-height: 1.4;
}

.imp-field__label em {
  color: var(--imp-danger);
  font-style: normal;
}

.imp-input {
  display: block;

  width: 100%;
  min-width: 0;
  min-height: 41px;

  padding: 10px 12px;

  border: 1px solid var(--imp-border-strong);
  border-radius: 8px;

  color: var(--imp-text);
  background: var(--imp-surface);

  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;

  outline: none;

  transition:
    border-color 140ms ease,
    background-color 140ms ease;
}

.imp-input::placeholder {
  color: var(--imp-text-muted);
  opacity: 1;
}

.imp-input:focus {
  border-color: var(--imp-primary);
}

.imp-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--imp-surface-soft);
}

.imp-select {
  padding-right: 34px;
  cursor: pointer;
}

.imp-textarea {
  min-height: 100px;
  resize: vertical;

  font-size: 12px;
  line-height: 1.65;
}

.imp-field--checkbox {
  grid-column: 1 / -1;

  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 10px;
  min-height: 31px;

  padding: 5px 0;
}

.imp-field--checkbox input {
  flex: 0 0 auto;

  width: 17px;
  height: 17px;

  margin: 0;

  accent-color: var(--imp-primary);
  cursor: pointer;
}

.imp-field--checkbox span {
  color: var(--imp-text);

  font-size: 12px;
  font-weight: 750;
}

.imp-form-note {
  margin: 14px 0 0;

  padding: 12px 14px;

  border: 1px solid var(--imp-warning-border);
  border-radius: 8px;

  color: var(--imp-warning);
  background: var(--imp-warning-bg);

  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

/* =========================================================
   DRAWER · OVERLAY
   ========================================================= */

.imp-drawer-overlay {
  position: fixed;
  inset: 0;

  z-index: 2147483200;

  display: flex;
  align-items: stretch;
  justify-content: flex-end;

  overflow: hidden;
  isolation: isolate;
}

.imp-drawer-backdrop {
  position: absolute;
  inset: 0;

  z-index: 0;

  background: rgb(5 10 19 / 62%);
}

.imp-drawer {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;

  width: min(700px, 100%);
  height: 100dvh;
  min-height: 0;

  overflow: hidden;

  border-left: 1px solid var(--imp-border-strong);

  color: var(--imp-text);
  background: var(--imp-surface);

  box-shadow: -12px 0 48px rgb(0 0 0 / 20%);

  animation: imp-slide-in 190ms ease-out both;
}

.imp-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  flex: 0 0 auto;
  gap: 12px;

  padding: 19px 22px;

  border-bottom: 1px solid var(--imp-border);
}

.imp-drawer__header h2 {
  margin: 0;

  color: var(--imp-text);

  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;

  overflow-wrap: anywhere;
}

.imp-drawer__body {
  display: flex;
  flex-direction: column;

  flex: 1 1 auto;
  gap: 18px;

  min-height: 0;

  padding: 20px 22px 30px;

  overflow-x: hidden;
  overflow-y: auto;

  background: var(--imp-bg);
}

.imp-drawer__body > .imp-resource-list {
  flex: 1 1 auto;
}

.imp-drawer__body > .imp-btn {
  align-self: flex-start;
}

/* =========================================================
   SUPERPOSICIONES · CAPAS
   ========================================================= */

.imp-page:has(.imp-detail-overlay:not([hidden])),
.imp-page:has(.imp-modal-overlay:not([hidden])),
.imp-page:has(.imp-drawer-overlay:not([hidden])) {
  isolation: auto;
}

.imp-detail-overlay:not([hidden]) {
  z-index: 2147483000;
}

.imp-drawer-overlay:not([hidden]) {
  z-index: 2147483200;
}

.imp-modal-overlay:not([hidden]) {
  z-index: 2147483400;
}

.imp-toast-container {
  z-index: 2147483600;
}

/* =========================================================
   DARK MODE · CORRECCIONES
   ========================================================= */

[data-theme="dark"] .imp-detail-backdrop,
.dark .imp-detail-backdrop {
  background: rgb(0 0 0 / 82%);
}

[data-theme="dark"] .imp-modal-backdrop,
.dark .imp-modal-backdrop {
  background: rgb(0 0 0 / 84%);
}

[data-theme="dark"] .imp-drawer-backdrop,
.dark .imp-drawer-backdrop {
  background: rgb(0 0 0 / 74%);
}

[data-theme="dark"] .imp-input,
[data-theme="dark"] .imp-select,
.dark .imp-input,
.dark .imp-select {
  color-scheme: dark;
}

[data-theme="dark"] .imp-input option,
.dark .imp-input option {
  color: #f5f7fa;
  background: #151a21;
}

[data-theme="dark"] .imp-summary-media__logo,
.dark .imp-summary-media__logo {
  background: #ffffff;
}

/* =========================================================
   RESPONSIVE · FICHA
   ========================================================= */

@media (max-width: 1250px) {
  .imp-detail__summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .imp-detail-stat:nth-child(3n) {
    border-right: 0;
  }

  .imp-detail-stat:nth-child(-n + 3) {
    border-bottom: 1px solid var(--imp-border);
  }

  .imp-detail__header {
    padding: 15px 18px;
  }

  .imp-detail__content {
    padding: 17px;
  }
}

@media (max-width: 850px) {
  .imp-detail-overlay,
  .imp-modal-overlay {
    padding: 9px;
  }

  .imp-detail {
    height: calc(100dvh - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 12px;
  }

  .imp-detail__header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .imp-detail__header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .imp-detail__header-actions .imp-icon-btn--close {
    margin-left: auto;
  }

  .imp-tab-grid {
    grid-template-columns: 1fr;
  }

  .imp-kv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .imp-modal {
    max-height: calc(100dvh - 18px);
    border-radius: 12px;
  }

  .imp-modal--wide,
  .imp-modal--xl {
    width: 100%;
  }

  .imp-resource-row {
    flex-wrap: wrap;
  }

  .imp-resource-row__content {
    flex-basis: calc(100% - 55px);
  }

  .imp-resource-row__meta {
    margin-left: 51px;
  }

  .imp-resource-row__actions {
    margin-left: auto;
  }
}

@media (max-width: 550px) {
  .imp-detail-overlay,
  .imp-modal-overlay {
    padding: 0;
  }

  .imp-detail,
  .imp-modal {
    width: 100%;
    max-width: 100%;

    height: 100dvh;
    max-height: 100dvh;

    border: 0;
    border-radius: 0;
  }

  .imp-detail__header {
    gap: 12px;
    padding: 13px;
  }

  .imp-detail-provider > .imp-supplier-avatar {
    flex-basis: 45px;

    width: 45px;
    height: 45px;
  }

  .imp-detail-provider__text h2 {
    font-size: 17px;
  }

  .imp-detail__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .imp-detail-stat {
    min-height: 69px;
    padding: 10px 12px;

    border-bottom: 1px solid var(--imp-border);
  }

  .imp-detail-stat:nth-child(3n) {
    border-right: 1px solid var(--imp-border);
  }

  .imp-detail-stat:nth-child(even) {
    border-right: 0;
  }

  .imp-detail-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .imp-detail-tabs {
    padding-inline: 8px;
  }

  .imp-detail-tab {
    min-height: 40px;
    padding: 9px 10px;

    font-size: 10px;
  }

  .imp-detail__content {
    padding: 12px;
  }

  .imp-card__header {
    padding: 13px;
  }

  .imp-card__body {
    padding: 12px;
  }

  .imp-kv-grid {
    grid-template-columns: 1fr;
  }

  .imp-kv {
    border-right: 0 !important;
  }

  .imp-form-grid {
    grid-template-columns: 1fr;
    gap: 13px;

    padding: 13px;
  }

  .imp-field--wide {
    grid-column: 1;
  }

  .imp-modal__header {
    padding: 14px;
  }

  .imp-modal__header h2 {
    font-size: 17px;
  }

  .imp-modal__body {
    padding: 12px;
  }

  .imp-modal__footer {
    padding: 12px;
  }

  .imp-modal__footer .imp-btn {
    flex: 1 1 0;
  }

  .imp-drawer {
    width: 100%;
  }

  .imp-drawer__header {
    padding: 14px;
  }

  .imp-drawer__body {
    padding: 14px;
  }

  .imp-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .imp-resource-row__icon {
    flex-basis: 34px;

    width: 34px;
    height: 34px;
  }

  .imp-toast-container {
    top: 12px;
    right: 12px;
    left: 12px;

    width: auto;
  }
}

/* =========================================================
   REDUCIR MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .imp-detail,
  .imp-modal,
  .imp-drawer,
  .imp-resource-row,
  .imp-image-card {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   FIN · CSS PARTE 2 DE 2
   WIRTZ HUB · PROVEEDORES INTERNACIONALES
   ========================================================= */
