body {
    font-family: "Nunito Sans", sans-serif !important;
}

.list-group-item {
    border-color: #d7e7ff !important;
  }

.hover-shadow {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
  }

  .hover-shadow:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  #detalleModal .modal-body {
    max-height: 300px; 
    overflow-y: auto;
    padding-right: 15px;
}

.factura-contenedor {
    max-width: 900px;
    margin: auto;
}

.titulo-factura {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.factura-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.factura-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.factura-header h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.factura-header p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.factura-detalles p {
    font-size: 14px;
    margin: 5px 0;
    color: #333;
}

.factura-footer {
    text-align: center;
    margin-top: 15px;
}

.toast-message {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: grey; /* Bootstrap success */
    color: white;
    padding: 10px 16px;
    margin-right: 60px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    z-index: 9999;
    font-size: 0.95rem;
}
.toast-message.show {
    opacity: 1;
}

/* Limita el tamaño del modal y la imagen */
#imageModal .modal-dialog {
    max-width: 800px !important;
    width: 100%  !important;
    margin: 2rem auto !important;
}
#modalImage {
    max-height: 90vh !important;   /* Alto máximo: 90% de la pantalla */
    width: auto !important;        /* Ancho automático según la imagen */
    display: block !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
    max-width: 100% !important;    /* No exceder el ancho del modal/pantalla */
}

/* Puedes ajustar el ancho y el z-index si lo necesitas */
#caja-list {
  max-height: 200px !important;
  overflow-y: auto !important;
  border-radius: 0 0 0.5rem 0.5rem !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08) !important;
}

@media (max-width: 576px) {
    #button-addon2 {
        width: 100% !important;
    }
    .input-group-wrapper > * {
        width: 100%;
    }
    .input-search {
        max-width: 80% !important;
    }
    #client-direccion, #client-ubicacion {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    .list-group-horizontal {
        flex-direction: column !important;
        align-items: stretch;
    }
    .list-group-horizontal .list-group-item {
        width: 100% !important;
        text-align: left;
        padding: 0.75rem 1rem;
        box-sizing: border-box;
        border-radius: 0% !important; 
    }
    .get-data-client {
        max-width: 100%;
        margin: 20px auto;
    }
    .row {
        flex-direction: column !important;
    }
    .col-md-4, .col-md-4.offset-md-4 {
        width: 100% !important;
        text-align: center !important; 
    }
    #copy-button-wrapper {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    #copy-button {
        padding: 10px 15px;
    }
    .get-data-client {
        max-width: 85% !important;
    }

    .get-media-client .card {
        width: 90vw !important;
        height: 90vw !important;
        max-width: 100% !important;
        max-height: 100vw !important;
        min-width: 0 !important;
        min-height: 0 !important;
    }
    .get-media-client .card-img-top {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    #imageModal .modal-dialog {
        max-width: 98vw !important;
        margin: 1rem auto !important;
    }
    #modalImage {
        max-width: 70vw !important;
        max-height: 70vh !important;
    }
    .get-media-client .row {
        flex-direction: column !important;
        gap: 1rem;
    }
}