/* =========================================================
ECJ BARRA DE PUENTES v1.3
BARRA ESTÁTICA CON UN RECUADRO POR PUENTE
========================================================= */

.ecj-bridge-strip,
.ecj-bridge-strip * {
  box-sizing: border-box;
}

.ecj-bridge-strip {
  width: 100%;

  display: flex;
  align-items: stretch;

  gap: 8px;

  padding: 7px;

  background: #f6f8fa;

  border: 1px solid #dce4e9;
  border-radius: 7px;

  font-family: inherit;
}

/* ENCABEZADO */

.ecj-bridge-strip-header {
  flex: 0 0 190px;

  display: flex;
  align-items: center;

  gap: 9px;

  padding: 8px 12px;

  color: #0b1f33;

  background: #fff;

  border: 1px solid #dfe6eb;
  border-radius: 5px;
}

.ecj-bridge-strip-header > i {
  color: #178dcc;

  font-size: 23px;
  line-height: 1;

  flex: 0 0 auto;
}

.ecj-bridge-strip-header > div {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.ecj-bridge-strip-header strong {
  font-size: 14px;
  line-height: 1.08;
  font-weight: 800;

  white-space: nowrap;
}

.ecj-bridge-strip-header span {
  color: #7b8993;

  font-size: 11px;
  line-height: 1.1;
  font-weight: 600;

  white-space: nowrap;
}

/* CONTENEDOR DE PUENTES */

.ecj-bridge-cards {
  min-width: 0;
  flex: 1;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

  gap: 7px;
}

/* TARJETA DE CADA PUENTE */

.ecj-bridge-card {
  min-width: 0;
  min-height: 58px;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;

  align-items: center;

  gap: 9px;

  padding: 8px 10px;

  background: #fff;

  border: 1px solid #dfe6eb;
  border-radius: 5px;

  box-shadow: 0 1px 3px rgba(11, 31, 51, .04);
}

.ecj-bridge-card-icon {
  width: 31px;
  height: 31px;

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

  border-radius: 5px;

  background: #edf7fc;
  color: #178dcc;

  flex: 0 0 31px;
}

.ecj-bridge-card-icon i {
  font-size: 18px;
  line-height: 1;
}

.ecj-bridge-card-copy {
  min-width: 0;
}

.ecj-bridge-name {
  overflow: hidden;

  color: #0b1f33;

  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;

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

.ecj-bridge-lane {
  margin-top: 4px;

  color: #72808b;

  font-size: 11px;
  line-height: 1.1;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: .25px;
}

.ecj-bridge-wait {
  padding: 6px 7px;

  border-radius: 4px;

  background: #edf7fc;
  color: #0f6fa5;

  font-size: 14px;
  line-height: 1;
  font-weight: 800;

  white-space: nowrap;
}

/* ESTADOS */

.ecj-state-medium .ecj-bridge-wait {
  background: #fff6df;
  color: #9a6700;
}

.ecj-state-high .ecj-bridge-wait {
  background: #fff0f0;
  color: #b42318;
}

.ecj-state-closed .ecj-bridge-wait {
  background: #f2f3f4;
  color: #5c6670;
}

.ecj-state-nodata .ecj-bridge-wait {
  background: #f2f3f4;
  color: #7b8790;
}

/* REPORTE */

.ecj-bridge-report {
  flex: 0 0 auto;

  min-width: 104px;

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

  gap: 6px;

  padding: 8px 12px;

  background: #fff;

  border: 1px solid #dfe6eb;
  border-radius: 5px;

  color: #0f6fa5 !important;

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

  text-decoration: none !important;

  white-space: nowrap;
}

.ecj-bridge-report:hover {
  background: #edf7fc;
}

.ecj-bridge-report i {
  font-size: 14px;
}

/* SIN SELECCIÓN */

.ecj-bridge-empty {
  min-height: 58px;

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

  gap: 7px;

  padding: 8px 12px;

  background: #fff;

  border: 1px solid #dfe6eb;
  border-radius: 5px;

  color: #6e7c87;

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

/* TABLET */

@media (max-width: 1000px) {

  .ecj-bridge-strip {
    flex-wrap: wrap;
  }

  .ecj-bridge-strip-header {
    flex: 1 1 180px;
  }

  .ecj-bridge-cards {
    flex: 1 1 600px;
  }

  .ecj-bridge-report {
    flex: 0 0 100%;
    min-height: 38px;
  }
}

/* MÓVIL */

@media (max-width: 640px) {

  .ecj-bridge-strip {
    display: block;

    padding: 6px;
  }

  .ecj-bridge-strip-header {
    width: 100%;

    margin-bottom: 6px;

    min-height: 44px;
  }

  .ecj-bridge-cards {
    display: flex;

    gap: 6px;

    overflow-x: auto;

    padding-bottom: 3px;

    scroll-snap-type: x proximity;
  }

  .ecj-bridge-card {
    flex: 0 0 230px;

    scroll-snap-align: start;
  }

  .ecj-bridge-strip-header strong {
    font-size: 13px;
  }

  .ecj-bridge-strip-header span {
    font-size: 10px;
  }

  .ecj-bridge-name {
    font-size: 13px;
  }

  .ecj-bridge-lane {
    font-size: 10px;
  }

  .ecj-bridge-wait {
    font-size: 13px;
    padding: 7px 8px;
  }

  .ecj-bridge-report {
    font-size: 11px;
  }

  .ecj-bridge-report {
    width: 100%;

    margin-top: 6px;

    min-height: 38px;
  }
}
