/* Imagen del producto con efecto zoom suave */
.img-prod-tabla {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.img-prod-tabla:hover {
  transform: scale(1.1);
}

#tblProdCarrVenBuscar td:first-child {
  max-width: 200px; /* O el ancho que quieras para la columna imagen+nombre */
  white-space: nowrap; /* Opcional para evitar salto de línea */
  overflow: hidden;
  text-overflow: ellipsis;
}

.producto-card {
  display: flex;
  align-items: center;
}

.imagen {
  flex-shrink: 0;
  max-width: 70px;
  max-height: 70px;
  overflow: hidden;
  margin-right: 10px;
}

.imagen img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #ddd;
  display: block;
}

.producto-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}

.codigo {
  font-size: 12px;
  font-weight: 700;
  color: #b33a3a; /* color guindo */
  line-height: 1.1;
}

.producto_nombre {
  font-size: 13px;
  color: #000000;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 220px;
}


.precio {
  font-size: 13px;
  font-weight: 700;
  color: #b33a3a; /* color guindo */
}

.stock-info {
  font-size: 12px;
  color: #444;
}

.stock-info .stock {
  font-size: 15px;
  font-weight: 900;
  color: #eb9a05;
  padding: 2px 6px;
  border-radius: 4px;
}

.stock-info .unidad {
  font-weight: 500;
  color: #7f8c8d;
  font-style: normal;
}

/* Tabla sin bordes verticales y estilo limpio */
#tblProdCarrVenBuscar thead {
  background-color: #8B1A1A;
  color: white;
  border-bottom: none;
}

#tblProdCarrVenBuscar td,
#tblProdCarrVenBuscar th {
  border-top: none;
  border-right: none !important;
  border-left: none !important;
  vertical-align: middle !important;
  font-size: 14px;
  padding: 10px 12px;
}

/* Hover de fila sutil */
#tblProdCarrVenBuscar tbody tr:hover {
  background-color: #fff4e6;
}

/* .input-custom {
    border-radius: 12px;
    padding: 10px 10px;
    border: 1px solid #ddd;
    transition: 0.3s;
  }

.input-custom:focus {
  border-color: #ff7f11;
  box-shadow: 0 0 6px rgba(255, 140, 26, 0.5);
}*/
/* Labels modernos compactos */
.input-label {
  font-size: 0.65rem;       /* tamaño más pequeño */
  font-weight: 200;         /* un poco más de peso */
  color: #082038;           /* color marino */
  margin-bottom: 0.25rem;   /* espacio reducido debajo */
  display: block;
}

/* Inputs personalizados modernos */
.input-custom {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.0;
  color: #1e1e2f; /* texto oscuro */
  background-color: #ffffff; /* fondo claro */
  border: 1px solid #dcdcdd;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
  /* box-shadow: 0 2px 4px rgba(0,0,0,0.05); */
}

.input-custom:hover {
  border-color: #ff7f2a; /* borde naranja al hover */
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.input-custom:focus {
  color: #1e1e2f;
  background-color: #fff;
  border-color: #003366; /* marino al enfocar */
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(0, 51, 102, 0.25); /* halo marino */
}


/* Fondo para tablas personalizado */
.bg-marino {
  background: linear-gradient(90deg, #203A72, #355A9A); /* azul marino medio degradado */
  /* color: rgba(255, 255, 255, 0.85); */
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  user-select: none;
  border-bottom: 2px solid #2A4D8F;
}

.bg-marino th {
  padding: 10px 12px;
  border: none;
  font-size: 12px;
}

.bg-naranja {
  background: linear-gradient(90deg, #FF7E00, #FFB347); /* degradado naranja */
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  user-select: none;
  border-bottom: 2px solid #E96A00; /* tono más oscuro para contraste */
  color: rgba(255, 255, 255, 0.95); /* texto blanco */
}

.bg-naranja th {
  padding: 10px 12px;
  border: none;
  font-size: 12px;
}


/* Solo para #nuevo_producto */
#nuevo_producto .modal-body {
    padding: 0.75rem 1rem;  /* menos espacio que por defecto */
}

#nuevo_producto .form-group {
    margin-bottom: 0.5rem;  /* compacto pero legible */
}

#nuevo_producto .form-group label {
    margin-bottom: 0.2rem;
    font-size: 0.875rem;
}

#nuevo_producto .form-control {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

#nuevo_producto .btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

.text-naranja {
    color: #f7941d !important; /* el naranja que quieras */
}

.text-marino {
    color: #242660 !important; /* un color azul marino */
}

.text-petroleo {
    color: #003E5D !important; /* un color azul marino */
}

/* Color marino */
.btn-marino-propio {
    background-color: #242660; /* color marino */
    color: #fff;
    border: none;
}

/* Hover más oscuro */
.btn-marino-propio:hover {
    background-color: #1d204d;
    color: #fff;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 576px) {
    .btn-icon-split .icon {
        padding: 0.25rem; /* menos espacio para icono */
        font-size: 0.9rem;
    }
    .btn-icon-split .text {
        font-size: 0.85rem; /* texto más pequeño */
    }
    .btn-block-sm {
        display: block;
        width: 100%; /* ocupa todo el ancho en móviles */
        margin-bottom: 0.5rem; /* separa botones si hay varios */
    }
}


.btn-custom-success {
  background: linear-gradient(90deg, #20c997, #9acd32);
  color: #fff;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.btn-custom-success:hover {
  background: linear-gradient(90deg, #9acd32, #20c997);
  color: #fff;
}

.btn-custom-warning {
  background: linear-gradient(90deg, #ff7f2a, #ffb347);
  color: #fff;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.btn-custom-warning:hover {
  background: linear-gradient(90deg, #ffb347, #ff7f2a);
  color: #fff;
}

.btn-custom-marino {
  background: linear-gradient(90deg, #003366, #00509e);
  color: #fff;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.btn-custom-marino:hover {
  background: linear-gradient(90deg, #00509e, #003366);
  color: #fff;
}

/* Botón outline marino */
.btn-outline-marino {
  color: #1f3b73; /* color marino */
  border-color: #1f3b73;
  background-color: transparent;
  transition: all 0.3s;
}

.btn-outline-marino:hover,
.btn-outline-marino:focus,
.btn-outline-marino:active {
  color: #fff; /* texto blanco al hacer hover */
  background-color: #1f3b73; /* relleno marino */
  border-color: #1f3b73;
}


#tblProductos {
    width: 100%;
}

/* .table-responsive {
    overflow: visible !important;
} */

.dropup .dropdown-menu {
    z-index: 2000; /* Asegura que quede por encima de la tabla */
}

/* Compactar modal */
#nuevo_producto_compras .modal-body {
    padding: 10px 15px;
}

/* Reducir espacio entre campos */
#nuevo_producto_compras .form-group {
    margin-bottom: 8px;
}

/* Ajustar labels */
#nuevo_producto_compras label {
    margin-bottom: 2px;
    font-size: 0.85rem;
}

/* Inputs y selects más compactos */
#nuevo_producto_compras .form-control.input-custom {
    padding: 3px 8px;
    height: calc(1.6em + 0.5rem + 2px);
    font-size: 0.85rem;
}

/* Botones más pegados */
#nuevo_producto_compras .text-right {
    margin-top: 10px;
}

.centrado-total th {
    vertical-align: middle !important; /* centra verticalmente */
    text-align: center !important;     /* centra horizontalmente */
}