.custom-card {
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.custom-card:hover {
    transform: scale(1.05);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.card-body i {
    opacity: 0.8;
}

.card-footer {
    font-weight: bold;
}

.big-text {
    font-size: 1.5rem; /* Ajusta según lo necesites */
    font-weight: normal;
}

/* Estilos para tarjetas con degradado */
.card-gradient-primary {
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    background: linear-gradient(135deg, #529ff1, #5089DE);
}

.card-gradient-primary:hover {
    transform: scale(1.05);
}

.card-footer-gradient-primary {
    background: linear-gradient(135deg, #529ff1, #5089DE);
    border-top: none;
}

.card-gradient-info {
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    background: linear-gradient(135deg, #6db1fa, #56C2D6);
}

.card-gradient-info:hover {
    transform: scale(1.05);
}

.card-footer-gradient-info {
    background: linear-gradient(135deg, #6db1fa, #56C2D6);
    border-top: none;
}

.card-gradient-danger {
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    background: linear-gradient(135deg, #f59414, #F0643B);
}

.card-gradient-danger:hover {
    transform: scale(1.05);
}

.card-footer-gradient-danger {
    background: linear-gradient(135deg, #f59414, #F0643B);
    border-top: none;
}

.card-gradient-success {
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    background: linear-gradient(135deg, #23d432, #029602);
}

.card-gradient-success:hover {
    transform: scale(1.05);
}

.card-footer-gradient-success {
    background: linear-gradient(135deg, #23d432, #029602);
    border-top: none;
}

.card-gradient-warning {
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    background: linear-gradient(135deg, #fcdfa3, #F8CC6B);
}

.card-gradient-warning:hover {
    transform: scale(1.05);
}

.card-footer-gradient-warning {
    background: linear-gradient(135deg, #fcdfa3, #F8CC6B);
    border-top: none;
}


/* Alinear un texto a la derecha personalizado */
.text-derecha {
    text-align: right;
}
  .inline-linea {
    display: inline-block;
    margin-right: 10px; /* Espacio entre el label y el p */
}
.form-group-propio label, .form-group-propio p {
    display: inline-block;
    margin-bottom: 8px; /* Espacio entre el label y el p */
}
/* Aseguramos que cada par esté en una nueva línea */
.form-group-propio div {
    margin-bottom: 10px; /* Espacio entre las filas */
  }

  


/* Funciones para botones */
.btn-degra-purple {
  background: linear-gradient(135deg,#A1A7CE,#727CB6);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-degra-purple:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-degra-primary {
  background: linear-gradient(135deg,#1eaaeb,#2d56a1);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0 20px;              /* solo horizontal */
  height: 40px;                  /* altura fija uniforme */
  display: inline-flex;          /* mejor alineación */
  align-items: center;           /* centra vertical */
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-degra-primary i {
  font-size: 16px;
}

.btn-degra-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.btn-degra-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30,170,235,0.3);
}

/* En móvil ancho completo pero misma altura */
@media (max-width: 767px) {
  .btn-degra-primary {
    width: 100%;
  }
}


.btn-degra-warning {
  background: linear-gradient(135deg,#FEC571,#F67260);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-degra-danger:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}


.btn-degra-danger {
  background: linear-gradient(135deg,#f85f38,#da110a);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-degra-danger:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-degra-morado {
  background: linear-gradient(135deg,#A05DE7,#5650A8);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-degra-morado:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-degra-success {
  background: linear-gradient(135deg,#76d4ac,#15B392);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-degra-success:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-degra-info {
  background: linear-gradient(135deg,#69e4fa,#56C2D6);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-degra-info:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-degra-marino {
  background: linear-gradient(135deg,#353779,#242660);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-degra-marino:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.superior-celda {
    font-weight: bold;
    text-align: center;
}
.inferior-celda {
    text-align: center;
}

#graficoComprasVentas {
    width: 250px !important;
    height: 250px !important;
}

#tblSeguimientoGarantias td:nth-child(8) {
    white-space: normal !important;
    word-wrap: break-word;
    max-width: 200px;
}

.btn-xs {
  padding: 0.15rem 0.3rem;
  font-size: 0.7rem;
}
.btn-xs i {
  font-size: 0.8rem;
}

.big-text {
    font-size: 20px;
    font-weight: bold;
    color: #385cac;
}


/* estilos para impresion de ventas */
.btn-option {
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 70px;
  font-weight: 500;
}
.btn-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


.color-azul { background-color: #4e73df; }
.color-rojo { background-color: #e74a3b; }
.color-verde { background-color: #1cc88a; }

/* Padding y bordes para simular input */
.p-2 { padding: 0.5rem; }
.rounded { border-radius: 0.5rem; }
.fw-bold { font-weight: bold; }
.text-white { color: #fff; }










/* ===== CONTENEDOR CARRITO VENTA ESPECIAL ===== */
.carrito-especial-container {
    background: #f4f6fa;
    padding: 15px;
    border-radius: 16px;
}

/* ===== SCROLL PERSONALIZADO ===== */
.carrito-especial-container::-webkit-scrollbar {
    width: 6px;
}
.carrito-especial-container::-webkit-scrollbar-thumb {
    background: #242660;
    border-radius: 10px;
}

/* ===== CARD PRODUCTO ===== */
.carrito-especial-container .producto-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px;
    transition: all .2s ease;
}

.carrito-especial-container .producto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* ===== NOMBRE PRODUCTO ===== */
.carrito-especial-container .producto-nombre {
    font-weight: 600;
    color: #242660;
    font-size: 14px;
}

/* ===== PRECIOS ===== */
.carrito-especial-container .precio-unitario {
    color: #f7941d;
    font-size: 12px;
}

.carrito-especial-container .precio-total {
    color: #242660;
    font-size: 16px;
    font-weight: bold;
}

/* ===== BOTONES REDONDOS ===== */
.carrito-especial-container .btn-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.carrito-especial-container .btn-edit {
    background: #242660;
    color: #fff;
}

.carrito-especial-container .btn-edit:hover {
    background: #1a1c4d;
    transform: scale(1.1);
}

.carrito-especial-container .btn-delete {
    background: #f7941d;
    color: #fff;
}

.carrito-especial-container .btn-delete:hover {
    background: #d97706;
    transform: scale(1.1);
}

/* ===== TOTAL ===== */
.carrito-total-box {
    background: linear-gradient(45deg, #242660, #1a1c4d);
    color: #fff;
    border-radius: 14px;
    padding: 12px;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carrito-total-box span:last-child {
    color: #f7941d;
    font-size: 22px;
}
