.hub-logistic-change-address-button i,  .hub-logistic-change-address-button span.hub-logistic-text {
    vertical-align: middle;
}
.hub-logistic-address-search{
    width:100%;
    padding:8px;
    margin-bottom:12px;
}
.editOrigin, .editTarget {
    position: absolute;
    top: 10px;
    right: 20px;
}
.hub-logistic-address-card{
    border:1px solid #ddd;
    border-radius:8px;
    padding:12px;
    margin-bottom:10px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#fff;
}

.hub-logistic-address-info{
    max-width:70%;
}

.hub-logistic-address-actions button{
    margin-left:6px;
}
.hub-logistic-select-address{
    background:#4a90e2;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:6px;
    font-size:14px;
    font-weight:500;
    cursor:pointer;
    transition:all .2s ease;
    position:relative;
    overflow:hidden;
}

/* hover */
.hub-logistic-select-address:hover{
    background:#3f7fd1;
    transform:translateY(-2px);
    box-shadow:0 6px 14px rgba(0,0,0,0.15);
}

/* click */
.hub-logistic-select-address:active{
    transform:translateY(0px) scale(.97);
    box-shadow:0 2px 6px rgba(0,0,0,0.2);
}

/* efecto brillo */
.hub-logistic-select-address::after{
    content:"";
    position:absolute;
    top:0;
    left:-75%;
    width:50%;
    height:100%;
    background:linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.5) 50%,
        rgba(255,255,255,0) 100%
    );
    transform:skewX(-25deg);
    transition:all .6s;
}

.hub-logistic-select-address:hover::after{
    left:130%;
}
.hub-logistic-address-card.hub-logistic-selected{
    border:2px solid #007bff;
    background:#f5f9ff;
}
.hub-logistic-address-toolbar{
    margin-bottom:10px;
    margin-top: 20px;
}
.hub-logistic-address-toolbar input {
  max-width: 100%;
  width: 100%;
  height: 40px;
}

.hub-logistic-results{
    font-size:13px;
    margin-top:5px;
    color:#666;
}

#hub-logistic-pagination{
    margin-top:15px;
    text-align:center;
}

.hub-logistic-page-btn{
    padding:6px 10px;
    border:1px solid #ddd;
    margin:2px;
    cursor:pointer;
    border-radius:4px;
    background:#fff;
}

.hub-logistic-page-btn.active{
    background:#007bff;
    color:white;
}
#hub-logistic-addresses-select-view {

}
.hub-logistic-menu { 
  padding: 0px;
  margin: 0px;
  border-bottom: solid 1px #1111;
}
.hub-logistic-menu li {
  display: inline-block;
  margin-right: 20px;
  padding-bottom: 20px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.hub-logistic-menu li.hub-logistic-current-menu {
  border-bottom: solid 2px;
}
.hub-logistic-current-menu {
  
}
.hub-logistic-hide {
  position: absolute;
  z-index: -1;
  visibility: hidden;
}
.hub-logistic-make-default {
  user-select: none;
}
.emails-tagify {
  width: 100%;
  max-width: 100%;
  border-radius: 3px;
}
.addresses-modal-logistic {
  width: 655px !important;
  border-radius: 10px;
  padding: 15px;
}
.addresses-modal-logistic .modal-header{
  display: none;
}
.addresses-modal-logistic h3 {
  margin: 0px;
  padding: 0px;
  margin-bottom: 25px;
}
.hub_logistic_breadcrumb {
  display: flex;
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  justify-content: space-between;
  max-width: 800px;
  margin: auto;
  background: white;
  border-radius: 5px;
  padding: 10px;
}
.hub_logistic_breadcrumb li {
  flex: 1;
  text-align: center;
  position: relative;
  color: #aaa;
  font-weight: bold;
  background: initial;
}
.hub_logistic_breadcrumb li.active {
  color: #2c7be5;
  background: transparent;
}
.hub_logistic_breadcrumb li::before {
  content: attr(data-step);
  display: inline-block;
  background: #ddd;
  color: #555;
  width: 25px;
  height: 25px;
  line-height: 25px;
  border-radius: 50%;
  margin-right: 8px;
}
.hub_logistic_breadcrumb li.active::before {
  background: #2c7be5;
  color: #fff;
}
.hub_logistic_breadcrumb li + li::after {
  content: '';
  position: absolute;
  top: 12px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #ddd;
  z-index: -1;
}
.hub_logistic_breadcrumb li.active-tracking + li::after {
  background: #2c7be5;
}

.hub_logistic_container_top_bottoms {
  display: flex;
  align-items: center; /* Centra verticalmente */
  justify-content: center; /* Centra horizontalmente */
  gap: 20px; /* Separación entre divs y el icono */
  margin: 20px 0;
}
.hub_logistic_container {
  display: flex;
  align-items: center; /* Centra verticalmente */
  justify-content: center; /* Centra horizontalmente */
  gap: 20px; /* Separación entre divs y el icono */
  margin: 20px 0;
}

.hub_logistic_address {
  border: 1px solid #ccc;
  padding: 20px;
  width: 420px;
  text-align: center;
  border-radius: 8px;
  background-color: #fff;
  margin-top: 50px;
  position: relative;
}

.hub_logistic_address h2 {
  margin-bottom: 10px;
}

.hub_logistic_address button {
  margin-top: 10px;
  padding: 5px 10px;
  cursor: pointer;
  background: transparent;
  border-radius: 3px;
  border: solid 1px #ccc;
}

.hub_logistic_separator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub_logistic_separator i {
  font-size: 36px;
  color: #555;
}

.hub_logistic_items_container {
  display: block;
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 150px;
}
.hub-logistic-summary-content .logistic_items ul{
  list-style: none;
}
.hub_logistic_items_container .cube .face.front {
  width: 120px;
}
.hub_logistic_items_container .cube .face.top {
  height: 120px;
}
.hub_logistic_items_container .cube .box_height {
  right: -70px;
}
.hub-logistic-container-step-action {
  position: fixed;
  width: 100%;
  background: white;
  bottom: 0px;
  padding: 20px;
  left: 0px;
  box-shadow: 0 1px 5px 1px rgb(21 24 26 / 30%);
  text-align: center;
}
.hub-logistic-breadcrumb-link.completed {
  cursor: not-allowed;
}
.hub-logistic-breadcrumb-link {
  cursor: pointer;
}
.hub-logistic-container-step-action .hub-logistic-next-step,
.hub-logistic-container-step-action .generate-shipping-guide,
.hub-logistic-container-step-action .generateShippingGuide {
  margin-left: 20px;
}
.hub-logistic-summary-content,
.hub-logistic-summary-shipping-companies-list {
  margin-bottom: 250px;
  padding: 35px;
  align-items: center;
  text-align: center;
}
.hub-addresses-summary {
  display: flex; 
  gap: 50px; 
  margin-top: 20px;
  justify-content: center;
}
.envelopes_summary ul, .boxes_summary ul , .pallets_summary ul{
  list-style: none;
}
.hub-logistic-companies-list {
  list-style: none;
  margin: auto;
  max-width: 800px;
  margin-top: 50px;
}
.hub-logistic-companies-list .company-content{
  display: flex;
  padding-bottom: 20px;
  border-bottom:  solid 1px #1111;
}
.hub-logistic-img-logo {
  width: 100%;
  max-width: 150px;
  vertical-align: middle;
  margin-left: 30px;
}
.hub-shipping-services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.hub-shipping-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #ddd;
}

.hub-shipping-service:hover {
  background-color: #f9f9f9;
}

.hub-shipping-service input[type="radio"] {
  margin-right: 12px;
  accent-color: #007bff; /* color del radio */
  cursor: pointer;
  max-width: 50px;
}

.hub-shipping-service-content {
  display: flex;
  align-items: center;
  width: 100%;
}

.hub-shipping-name {
  font-weight: 600;
}

.hub-shipping-price {
  margin-left: auto;
  font-weight: bold;
  color: #007bff;
}

.hub-shipping-service:has(input:checked) {
  background-color: white;
}
.loader-services {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff80;
    display: none; /* oculto por defecto */
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 9999; /* opcional, por si debe ir arriba de todo */
    transition: all 0.2s ease;
}

/* Clase para mostrarlo */
.loader-services.active-tracking {
    display: flex;
    user-select: none;
}

.tracking-modal {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    max-width: 520px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #222;
}

/* HEADER */
.tracking-modal .tracking-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.tracking-modal .tracking-header h2 span {
    color: #666;
    font-weight: 400;
}

.tracking-modal .tracking-header .datetime,
.tracking-modal .tracking-header .location {
    margin: 4px 0 0;
    font-size: 13px;
    color: #666;
}

/* STATUS BADGE */
.tracking-modal .status {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.tracking-modal .status.delivered {
    background: #e6f7ee;
    color: #1e8e5a;
}

/* SUMMARY */
.tracking-modal .tracking-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.tracking-modal .tracking-summary div {
    background: #f7f7f7;
    padding: 10px 8px;
    border-radius: 8px;
    text-align: center;
}

.tracking-modal .tracking-summary strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 2px;
}

.tracking-modal .tracking-summary span {
    font-size: 13px;
    font-weight: 500;
}

/* TIMELINE */
.tracking-modal .tracking-timeline h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
}

.tracking-modal .timeline-item {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 16px;
    margin-bottom: -5px;
}

.tracking-modal .timeline-item::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 12px;
    bottom: 0;
    width: 2px;
    background: #cccccc;
    height: initial;
    border-radius: initial;
    border: initial;
    z-index: initial;
}

.tracking-modal .timeline-item:last-child::before {
    display: none;
}

.tracking-modal .timeline-item .dot {
    width: 14px;
    height: 14px;
    background: #ccc;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.tracking-modal .timeline-item.active-tracking .dot {
    background: #1e8e5a;
}

.tracking-modal .timeline-item .content-tracking strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.tracking-modal .timeline-item .content-tracking p {
    margin: 2px 0;
    font-size: 13px;
    color: #444;
}

.tracking-modal .timeline-item .content-tracking small {
    font-size: 12px;
    color: #777;
}
.shipping-success-state {
    margin-top: 30px;
    padding: 30px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.success-icon i {
    font-size: 60px;
    color: #22c55e;
}

.success-content h2 {
    margin: 0 0 10px 0;
    color: #166534;
}

.success-content p {
    margin-bottom: 20px;
    color: #374151;
}

.success-details {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.detail-item .label {
    font-weight: 600;
    color: #6b7280;
}

.detail-item .value {
    font-weight: 600;
    color: #111827;
}

.success-actions {
    display: flex;
    gap: 15px;
}
.hub-logistic-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hub-logistic-order-number {
 margin-top: 25px;
}
.hub-logistic-stage1 {
    margin-bottom: 200px;
}

/* Contenedor general */
.hub-logistic-order-number{
    width:420px;
    margin:20px auto 35px auto;
    text-align:center;
}

/* Label superior */
.hub-logistic-order-label{
    display:block;
    font-weight:600;
    margin-bottom:6px;
    color:#555;
    font-size:14px;
}

/* Vista normal */
.hub-logistic-order-value{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    font-size:15px;
    color:#333;
    user-select: none;
}

/* Texto de la referencia */
.order-text{
    background:#f7f7f7;
    border:1px solid #ddd;
    padding:6px 10px;
    border-radius:6px;
    min-width:120px;
}

/* Botón editar */
.order-edit-btn{
    border:1px solid #ccc;
    background:#fff;
    border-radius:6px;
    cursor:pointer;
    padding:5px 7px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .15s ease;
}

.order-edit-btn:hover{
    background:#f2f2f2;
}

/* Icono material */
.order-edit-btn i{
    font-size:18px;
    color:#555;
}

/* Contenedor edición */
.hub-logistic-order-edit{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
}

/* Input */
.hub-logistic-order-edit input{
    width:100%;
    padding:10px 12px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:14px;
    outline:none;
    transition:border .15s ease, box-shadow .15s ease;
}

.hub-logistic-order-edit input:focus{
    border-color:#4a90e2;
    box-shadow:0 0 0 2px rgba(74,144,226,.15);
}

/* Texto ayuda */
.hub-logistic-order-edit span{
    font-size:12px;
    color:#777;
}

/* Guardando */
.order-saving{
    display:none;
    font-size:12px;
    color:#4a90e2;
}

.hub_logistic_items_container .hubLogisticShowBoxForm .cube,
.hub_logistic_items_container .hubLogisticShowBoxForm .envelope,
.hub_logistic_items_container .hubLogisticShowBoxForm .pallet_container {
    width: 250px;
    height: 250px;
    border: solid 1px #1111;
    margin-top: 20px;
    margin-right: 20px;
}
.hub_logistic_items_container .hubLogisticShowBoxForm:hover .hub-logistic-button-remove, 
.hub_logistic_items_container .hubLogisticShowBoxForm:hover .hub-logistic-button-remove,
.hub_logistic_items_container .hubLogisticShowBoxForm:hover .hub-logistic-button-remove {
    visibility: visible;
}
.hubLogisticShowBoxForm {
    display: inline-block;
    position: relative;
}
.hub-logistic-button-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    color: #dc3545;
    border: solid 1px #dc3545;
    transition:all .1s ease;
    visibility: hidden;
}
.hub-logistic-button-remove:hover {
    color: white;
    background-color: #dc3545;
    border-color: #dc3545;
}

/* ── Error: CP sin colonias ── */

/* Borde rojo en el contenedor Select2 */
.hub-logistic-cp-error-container .select2-selection--single,
.hub-logistic-cp-error-selection {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.20) !important;
    animation: hub-cp-shake .35s ease;
}

/* Mensaje de error debajo del campo */
.hub-logistic-cp-error-msg {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    font-size: 12px;
    color: #e53e3e;
    font-weight: 500;
    line-height: 1.4;
}

.hub-logistic-cp-error-msg i.material-icons {
    font-size: 15px !important;
    color: #e53e3e;
    vertical-align: middle;
}

@keyframes hub-cp-shake {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-4px); }
    50%  { transform: translateX(4px); }
    75%  { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

/* ── Quantity selector (+/−) ── */

.hub-logistic-quantity-control {
    display: flex;
    align-items: center;
    gap: 4px;
}
.hub-logistic-qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
}
.hub-logistic-qty-btn:hover {
    background: #e0e0e0;
    border-color: #aaa;
}
.hub-logistic-qty-btn:active {
    background: #d0d0d0;
    transform: scale(0.95);
}
.hub-logistic-qty-btn i {
    font-size: 18px;
    color: #555;
}
.hub-logistic-qty-input {
    width: 60px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px;
    -moz-appearance: textfield;
}
.hub-logistic-qty-input::-webkit-outer-spin-button,
.hub-logistic-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.hub-logistic-qty-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
}

/* ── BOL Address Card ─────────────────────────────────────────────── */
.hub-logistic-bol-address-card {
    border: 2px solid #e6b800;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fffef0 0%, #fff9d6 100%);
    box-shadow: 0 2px 12px rgba(230, 184, 0, 0.18);
    animation: bol-pulse-border 2.2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.hub-logistic-bol-address-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #f5c400, #d4a000);
    border-radius: 10px 0 0 10px;
}

@keyframes bol-pulse-border {
    0%   { box-shadow: 0 2px 12px rgba(230, 184, 0, 0.18); }
    50%  { box-shadow: 0 2px 20px rgba(230, 184, 0, 0.40); }
    100% { box-shadow: 0 2px 12px rgba(230, 184, 0, 0.18); }
}

.hub-logistic-bol-address-left {
    flex: 1;
    padding-left: 6px;
}

.hub-logistic-bol-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5c400;
    color: #5a4000;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hub-logistic-bol-folio {
    font-size: 12px;
    color: #7a5e00;
    margin-bottom: 4px;
}

/* Select button for BOL card */
.hub-logistic-select-bol-address {
    background: linear-gradient(135deg, #28a745, #218838);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.hub-logistic-select-bol-address:hover {
    background: linear-gradient(135deg, #218838, #1a6e2e);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(40, 167, 69, 0.30);
}

.hub-logistic-select-bol-address:active {
    transform: translateY(0) scale(.97);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.25);
}

/* Shimmer effect on hover */
.hub-logistic-select-bol-address::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.45) 50%,
        rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left .5s;
}
.hub-logistic-select-bol-address:hover::after {
    left: 130%;
}

/* Loading state for BOL button */
.hub-logistic-select-bol-address.bol-loading {
    pointer-events: none;
    opacity: 0.75;
}