.custom-content {
  height: 100vh;
  background-color: #f5f5f5;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.split-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
}

.logo-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.logo-container img {
  max-width: 80%;
  height: auto;
}

.icons-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-items: center;
  width: 90%;
  max-width: 600px;
  margin: auto;
}

.icon-grid a {
  text-decoration: none;
}

.icon-link {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.2s ease, background-color 0.3s ease;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 250px;
}

.icon-link:hover {
  transform: scale(1.05);
  background-color: #e0f7fa;
}

.icon-link img {
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
}

.icon-link p {
  font-size: 1.2rem;
  color: #333;
  margin: 0;
  font-weight: bold;
}

@media (max-width: 1200px) {
  .split-container {
    flex-direction: column;
  }

  .logo-container,
  .icons-container {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .icon-link {
    padding: 1rem;
  }
}

/*ESTILOS PARA TODO EL FUNCIONAMIENTO RELACIONADO A SHIPPING DATA*/
/* GENÉRICO: tablas con DataTables */
.table-shipping-data,
.table-consolidate-data,
.tabla-warehouses-consolidados {
  width: 100% !important;
  font-size: 10px !important;
  border-collapse: collapse;
}

.table-shipping-data th,
.table-shipping-data td,
.table-consolidate-data th,
.table-consolidate-data td,
.tabla-warehouses-consolidados th,
.tabla-warehouses-consolidados td {
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  font-size: 10px !important;
  padding: 6px 10px;
  border: 1px solid #ddd;
}

.dataTables_scrollHeadInner table,
.dataTables_scrollBody table {
  width: auto !important;
  min-width: 100% !important;
  table-layout: auto !important;
}

.dataTables_scrollBody {
  overflow-x: auto !important;
  overflow-y: auto !important;
}

.dataTables_wrapper {
  overflow-x: hidden !important;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  font-size: 10px !important;
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  .dataTables_wrapper .dataTables_scroll {
    width: 100%;
  }

  .table-dash2-imp,
  .table-dash2-exp {
    display: block;
    overflow-x: auto;
  }
}

/*ESTILOS STATUS*/

.status-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 20px;
  width: 100%;
  color: inherit;
}

.status-wrapper:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-onhand {
  background-color: #28c76f;
}

.dot-delivered {
  background-color: #5f6df2;
}

.dot-consolidated {
  background-color: #9b59b6;
}

.dot-approved {
  background: gray;
}

.dot-quoted {
  background-color: #ffc107;
}

.dot-default {
  background-color: #b8c2cc;
}

.status-text {
  color: #000000;
}

/* MODIFICADO PARA MATCH VISUAL EXACTO */

#almacen-detalle-panel {
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.4;
}

#almacen-detalle-panel strong {
  color: #003366;
}

#almacen-detalle-panel p {
  margin: 0.2rem 0;
}

.almacen-top-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #dcdcdc;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.almacen-left-info {
  width: 60%;
}

.almacen-right-info {
  width: 38%;
  text-align: right;
}

.almacen-right-info img {
  height: 45px;
  margin-bottom: 5px;
}

.badge-onhand,
.badge-delivered {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 15px;
  font-weight: 500;
}

.badge-onhand {
  background: #b9f5c0;
  color: #0f5132;
}

.badge-delivered {
  background: #cfe2ff;
  color: #084298;
}

.almacen-info-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 1px solid #dcdcdc;
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.almacen-info-grid > div {
  width: 23%;
  min-width: 200px;
}

.almacen-info-grid .section-title {
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 2px;
  color: #003366;
}

.almacen-info-grid a {
  color: #0056b3;
  font-size: 13px;
}

.almacen-badge-boxes {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.almacen-badge-boxes > div {
  flex: 1;
  background: #f7f9fa;
  border: 1px solid #ccc;
  padding: 10px 12px;
  border-radius: 4px;
  min-height: 70px;
}

.almacen-badge-boxes .section-title {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 13.5px;
  color: #003366;
}

.almacen-tracking-table table,
.almacen-producto-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-bottom: 16px;
  background: white;
}

.almacen-tracking-table th,
.almacen-tracking-table td,
.almacen-producto-table th,
.almacen-producto-table td {
  border: 1px solid #d1d1d1;
  padding: 6px 8px;
  text-align: left;
}

.almacen-tracking-table thead,
.almacen-producto-table thead {
  background: #f0f0f0;
  font-weight: 600;
  color: #003366;
}

.almacen-producto-table code {
  font-family: Consolas, monospace;
  font-size: 12px;
  color: #444;
  background: #f6f6f6;
  padding: 2px 4px;
  border-radius: 3px;
}

/* MODAL SHIPPING DATA */
/* BASE (pantallas grandes por defecto) */
#cargaShippingModal .modal-dialog {
  max-width: 90% !important;
  margin: 1.5rem auto;
}

#cargaShippingModal .modal-content {
  overflow: auto;
  max-height: 85vh;
  border-radius: 6px;
}

#cargaShippingModal .modal-body {
  padding: 1.2rem;
}

#cargaShippingModal .modal-header,
#cargaShippingModal .modal-footer {
  padding: 1rem 1.2rem;
}

@media (max-width: 1024px) {
  #almacen-detalle-panel {
    width: 100%;
    overflow-x: hidden;
  }

  .almacen-top-panel,
  .almacen-info-grid,
  .almacen-badge-boxes {
    flex-direction: column;
    gap: 10px;
  }

  .almacen-left-info,
  .almacen-right-info,
  .almacen-info-grid > div,
  .almacen-badge-boxes > div {
    width: 100% !important;
  }

  .almacen-right-info {
    text-align: left;
  }

  .almacen-tracking-table,
  .almacen-producto-table-completa {
    overflow-x: auto;
    width: 100%;
  }

  .almacen-tracking-table table,
  .almacen-producto-table-completa table {
    min-width: 1000px;
  }
}

@media (max-width: 768px) {
  #cargaShippingModal .modal-dialog {
    max-width: 95% !important;
    margin: 1rem auto;
  }

  #cargaShippingModal .modal-body {
    padding: 0.8rem;
    font-size: 12px;
  }

  #cargaShippingModal .modal-content {
    max-height: 90vh;
  }
}

@media (max-width: 576px) {
  #cargaShippingModal .modal-dialog {
    max-width: 100% !important;
    margin: 0.5rem auto;
  }

  #cargaShippingModal .modal-content {
    max-height: 92vh;
    border-radius: 0;
  }

  #cargaShippingModal .modal-body {
    padding: 0.6rem;
    font-size: 12px;
  }

  .item-row-tabla {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .item-row-tabla > div {
    flex: 1 1 48%;
  }
}

@media (max-width: 480px) {
  #cargaShippingModal .modal-dialog {
    margin: 0;
  }

  #cargaShippingModal .modal-content {
    max-height: 95vh;
    border-radius: 0;
  }

  #cargaShippingModal .modal-body {
    padding: 0.6rem;
    font-size: 11.5px;
  }

  #cargaShippingModal .modal-header,
  #cargaShippingModal .modal-footer {
    padding: 0.6rem;
  }
}

/************************/
/* VISTA REGISTRO CARGA */
/************************/

#registro-formulario {
  padding: 40px;
  display: flex;
  justify-content: center;
  background-color: #f4f6f8;
  font-family: "Segoe UI", sans-serif;
}

.registro-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1000px;
  padding: 30px;
  box-sizing: border-box;
}

.registro-header {
  text-align: center;
  margin-bottom: 24px;
}

.registro-titulo {
  color: rgb(44, 62, 80) !important;
  font-size: 24px;
  margin: 0;
}

.registro-body {
  width: 100%;
}

.registro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.registro-item,
.registro-item-full {
  font-size: 13;
  display: flex;
  flex-direction: column;
}

.registro-item-full {
  grid-column: 1 / -1;
}

.registro-input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  margin-top: 5px;
}

.registro-botones {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
  gap: 15px;
}

/*TABLA CARGA MODAL */
.item-card-tabla {
  border: 1px solid #d1d1d1;
  margin-bottom: 15px;
  border-radius: 4px;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  font-size: 13px;
  color: #1a1a1a;
}

.item-row-tabla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border-top: 1px solid #d1d1d1;
}

.item-row-tabla:first-child {
  border-top: none;
}

.item-row-tabla div {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #d1d1d1;
}

.item-row-tabla div:first-child {
  border-left: none;
}

.cell-title {
  background-color: #f0f0f0;
  color: #003366;
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid #d1d1d1;
}

.cell-content {
  padding: 6px 8px;
  background-color: white;
  color: #333;
}

/*CSS TOTALES */

.total-summary-card {
  margin-top: 20px;
  background-color: #f9f9f9;
  border: 1px solid #cccccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.total-summary-card .cell-title {
  background-color: #f2f2f2;
  color: #003366;
  font-weight: 600;
}

.total-summary-card .cell-content {
  color: black;
  font-size: 13px;
}

/* Estilo especial solo para la palabra TOTAL */
.total-summary-card .cell-title {
  background-color: #e0e0e0;
  color: #002b50;
  font-size: 13px;
}

/*responsividad*/

@media (max-width: 1024px) {
  .item-row-tabla {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 768px) {
  .item-row-tabla {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .cell-title,
  .cell-content {
    font-size: 12px;
    padding: 6px;
  }

  .total-summary-card .cell-title,
  .total-summary-card .cell-content {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .item-row-tabla {
    grid-template-columns: repeat(2, 1fr);
  }

  .cell-title {
    font-size: 11px;
  }

  .cell-content {
    font-size: 11px;
  }

  .total-summary-card .item-row-tabla {
    grid-template-columns: 1fr 1fr;
  }
}

/* CSS PARA MODAL SUBIR DOCUMENTOS */
.modal-upload-card {
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid #d1d1d1;
  background: #ffffff;
  padding: 15px;
  font-size: 13px;
  color: #1a1a1a;
}

.modal-upload-card .modal-header {
  border-bottom: 1px solid #dcdcdc;
}

.modal-upload-card .form-group {
  margin-bottom: 1rem;
}

.modal-upload-card .archivo-input {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 13px;
  background-color: #fefefe;
}

.modal-upload-card .btn {
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 6px;
}

.adjuntos-docs-section {
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
}

.attachments-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.documentos-grid {
  display: flex;
  flex-wrap: wrap;
}

.documento-adjunto-card {
  width: 110px;
  text-align: center;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  background-color: #f9f9f9;
  transition: all 0.2s ease-in-out;
}

.documento-adjunto-card:hover {
  background-color: #eef2f7;
  transform: translateY(-2px);
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
}

.doc-icon {
  width: 100%;
  height: auto;
}

.doc-name-text {
  font-size: 12px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.documento-adjunto-card {
  display: inline-block;
  width: 140px;
  padding: 10px;
  margin: 10px;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  background-color: #f8f9fa;
}

.doc-icon {
  width: 40px;
  height: 40px;
}

.doc-name-text {
  font-size: 12px;
  margin-top: 5px;
  word-break: break-word;
}

/* RESPONSIVE */
@media (max-width: 576px) {
  .modal-upload-card {
    padding: 10px;
  }

  .modal-upload-card .btn {
    width: 100%;
    margin-bottom: 8px;
  }

  .modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

/* CSS PARA VISTA CONSOLIDADOS */

.modal-fullscreen-custom {
  width: 95%;
  max-width: 95%;
  max-height: 100vh;
  height: auto;
  margin: auto;
  display: flex;
  flex-direction: column;
}

#modalWarehouseDetalleConsolidado .modal-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

#modalWarehouseDetalleConsolidado .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 15px;
}

/*Estilo de los filtros de carga*/

.sa-container {
  padding: 20px 30px;
  background-color: rgb(245, 245, 245);
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  flex: 1;
  box-sizing: border-box;
}

.sa-header {
  padding: 10px 0 15px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
}

.sa-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: rgb(44, 62, 80);
}

.sa-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.sa-filter-group,
.sa-export-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sa-filter-group label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 10px;
  margin-right: 8px;
  margin-left: 4px;
  display: inline-block;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sa-input {
  border: 1px solid #ccc;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 13px;
  min-width: 130px;
}

.sa-table-container {
  overflow-x: unset !important;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .sa-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .sa-filter-group,
  .sa-export-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .sa-input {
    width: 100%;
  }

  .sa-btn {
    width: 100%;
    text-align: center;
  }

  .sa-title {
    font-size: 18px;
    text-align: center;
    width: 100%;
  }

  .sa-container {
    padding: 15px;
  }

  .sa-table-container {
    padding: 0;
    border: none;
  }
}
