/* Fondo solo para la página de productos/servicios */
body[data-pc-preset="preset-1"] .pc-container {
    background-color: #FAFAFB !important;
    min-height: 100vh;
}

body[data-pc-preset="preset-1"] .pc-content {
    background-color: #FAFAFB;
}

/*Paginacion*/
#paginacion {
    margin-bottom: 30px; /* Ajusta este valor según necesites */
    padding-bottom: 10px;
}

/* ESTILO SIMPLE PARA EL FORMATO "Precio 1 S/25.00" */
.price-value-box {
    font-size: 0.8rem; 
    padding: 0.05rem 0.3rem; 
    border: 2px solid; 
    border-radius: 0.25rem;
    min-width: 65px;
    text-align: center;
    font-weight: bold;
    line-height: 1.5;
    display: inline-block;
    margin-left: 5px;
}

.price-value-box.text-primary {
    border-color: #007bff;
    color: #007bff;
}

.price-value-box.text-success {
    border-color: #28a745;
    color: #28a745;
}

.price-value-box.text-info {
    border-color: #17a2b8;
    color: #17a2b8;
}

.price-value-box.text-warning {
    border-color: #ffc107;
    color: #ffc107;
}

.price-value-box.text-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.precio-linea {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.price-value-box {
    font-size: 0.8rem; 
    padding: 0.05rem 0.3rem; 
    border: 2px solid; 
    border-radius: 0.25rem;
    min-width: 65px;
    text-align: center;
    font-weight: bold;
    line-height: 1.5;
    display: inline-block;
    margin-left: 5px;
}

/* Estilos para los nombres de precios */
.nombre-precio {
    font-weight: 700; /* Más grueso que el semibold (600) */
    padding: 0.1rem 0.5rem;
    border-radius: 0.25rem;
    color: #212529; /* Color más oscuro como los strong */
    font-size: 0.8rem;
    min-width: 50px;
    text-align: left;
    display: inline-block;
}
.precio-linea {
    display: flex;
    justify-content: space-between;
    align-items: left;
    margin-bottom: 8px;
    gap: 10px;
}

.modal-backdrop {
    background-color: rgb(0, 0, 0) !important; /* Fondo blanco semitransparente */
    backdrop-filter: blur(1px); /* Efecto de desenfoque sutil */
}

.modal-backdrop.show {
    opacity: 0.2 !important;
}

/* Contenedor para los botones */
.botones-contenedor {
  display: flex;
  justify-content: flex-end; /* Alinea los botones a la derecha */
  gap: 10px;
  margin-bottom: 20px;
}

/* Estilos para los botones */
.boton-unidad,
.boton-precios {
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.boton-unidad {
  background-color: #28a745; /* Verde */
}

.boton-precios {
  background-color: #007bff; /* Azul */
}

.boton-unidad:hover {
  background-color: #218838;
}

.boton-precios:hover {
  background-color: #0069d9;
}

/* Tabla de precios */
.name-pagos {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.name-pagos thead tr {
  background-color: #f8f9fa; /* Fondo gris claro */
  border-bottom: 1px solid #e0e0e0;
}

.name-pagos th {
  padding: 12px 15px;
  text-align: center;
  font-weight: bold;
  color: #555;
  /*text-transform: uppercase;*/
}

.name-pagos td {
  width:140px ;
  padding: 15px;
  text-align: center;
}
/*input de los costo de la tabla*/
.input-costo {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  text-align: center;
  font-size: 1rem;
}

.input-costo:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Estilo de  la etiqueta select*/
.select-cliente {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  text-align: center;
  font-size: 1rem;
  background-color: #fff;
  appearance: none; /* Elimina el estilo nativo en algunos navegadores */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.select-cliente:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
/* estilos de capo input de costos */

/* modal pequeño del nombre del preci*/

.modal-header h2 {   
    margin: 0;
    font-size: 20px;
    color: #333333;
    
}
.close-button {
    background: none;
    border: none;
    font-size: 24px;
    color: #9e9e9e;
    cursor: pointer;
    line-height: 1;
}
.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 14px;
    color: #555555;
    margin-bottom: 8px;
}
.form-group label .required {
    color: #ff0000;
}
.form-group input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}
.form-group input:focus {
    border-color: #b25b5b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-actions button {
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.form-actions .cancel-button {
    background-color: #e0e0e0;
    color: #555555;
}
.form-actions .cancel-button:hover {
    background-color: #d5d5d5;
}
.form-actions .save-button {
    background-color: #007bff;
    color: #ffffff;
}
.form-actions .save-button:hover {
    background-color: #0056b3;
}

/* estilos de la tabla de los precios*/
/* Contenedor de la tabla con altura limitada y scroll solo en tbody */
.tabla-contenedor {
  max-height: 220px; /* Altura que muestra 3 filas aprox. ajustable */
  overflow-y: auto;
  margin-top: 10px;
  border: 1px solid #ddd;
}

/* Evita que el thead se desplace con el scroll */
.name-pagos thead {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  z-index: 1;
}


.acciones-col {
  position: relative;
  overflow: visible;
}

.dropdown-menu-acciones {
  position: absolute !important;
  z-index: 1055;
  right: 0;
  top: 100%;
  min-width: 120px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.207);
}


/* Estilo del botón de eliminar */
.btn-eliminar-fila {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-eliminar-fila:hover {
  background-color: #c82333;
}

