﻿
/*
         * ESTILOS COMBINADOS PARA COTIZACIÓN HTML
         */
/* Estilos para la tabla principal con fondo */
.tabla-con-fondo {
    background-color: #fff; /* Color de fondo blanco */
    border: 1px solid #ccc; /* Borde gris */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Sombreado tenue */
    padding: 20px; /* Espaciado interno para contenido */
    width: 100%; /* Ancho completo */
    max-width: 1000px; /* Ancho máximo */
    height: 100vh; /* Altura completa de la ventana */
    margin: 0 auto; /* Centrar horizontalmente */
    overflow-y: auto; /* Barras de desplazamiento vertical si el contenido es demasiado largo */
}

/* Estilos para texto con gradiente */
.gradiente {
    background: linear-gradient(to right, purple, steelblue);
    -webkit-background-clip: text;
    color: transparent;
    display: inline;
}

/* Estilo para encabezados */
.bheader {
    color: steelblue;
}

/* Estilos para botones sin resaltado de contorno */
.btn-no-focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Media query para ocultar el texto del botón en pantallas pequeñas */
@@media (max-width: 1400px) {
    .btn-text {
        display: none;
    }
}

/* ESTILOS PARA INPUTS, TEXTAREAS Y SELECTS CON ETIQUETAS FLOTANTES */
.floating-label {
    position: relative;
    margin-bottom: 20px;
}

    .floating-label input,
    .floating-label textarea,
    .floating-label select {
        border: 1px solid #ccc;
        padding: 12px;
        font-size: 16px;
        width: 100%;
        background-color: white;
        border-radius: 4px;
        appearance: none; /* Eliminar apariencia predeterminada */
    }

    .floating-label textarea {
        padding-top: 20px;
        min-height: 120px; /* Ajustar según sea necesario */
    }

    .floating-label label {
        position: absolute;
        top: 12px;
        left: 16px;
        font-size: 16px;
        color: #aaa;
        transition: all 0.2s ease-in-out;
        pointer-events: none;
        padding: 0 4px;
    }

    .floating-label textarea + label {
        top: 20px;
    }

    .floating-label input:focus + label,
    .floating-label input:not(:placeholder-shown) + label,
    .floating-label textarea:focus + label,
    .floating-label textarea:not(:placeholder-shown) + label,
    .floating-label select:focus + label,
    .floating-label select:not([value=""]):valid + label {
        top: -12px;
        left: 10px;
        font-size: 12px;
        color: var(--selected-color);
        background-color: white;
        z-index: 1;
    }

    .floating-label input:focus,
    .floating-label textarea:focus,
    .floating-label select:focus {
        outline: none;
        border-color: #ccc; /* Cambiado de #007bff a #ccc */
    }

    /* Flecha personalizada para selects */
    .floating-label select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 30px;
    }

        /* Ocultar placeholder para select */
        .floating-label select option[value=""][disabled] {
            display: none;
        }

    /* Estilos actualizados para ajustar la altura de inputs y selects */
    .floating-label input,
    .floating-label input[type="text"],
    .floating-label input[type="number"],
    .floating-label input[type="email"],
    .floating-label input[type="password"],
    .floating-label select {
        height: 40px !important; /* Usar !important para anular estilos conflictivos */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: 40px !important; /* Asegurar que el texto esté centrado verticalmente */
    }

    /* Asegurar que la etiqueta esté posicionada correctamente para la nueva altura de input */
    .floating-label label {
        top: 50%;
        transform: translateY(-50%);
    }

    .floating-label input:focus + label,
    .floating-label input:not(:placeholder-shown) + label,
    .floating-label select:focus + label,
    .floating-label select:not([value=""]):valid + label {
        top: -12px;
        transform: translateY(0);
    }

    /* Eliminar estilos de enfoque */
    .floating-label input:focus,
    .floating-label textarea:focus,
    .floating-label select:focus {
        outline: none;
        border-color: #ccc;
        box-shadow: none;
    }

        /* Ajuste para el label del textarea */
        .floating-label textarea:focus + label,
        .floating-label textarea:not(:placeholder-shown) + label {
            top: 1px;
            font-size: 12px;
            color: var(--selected-color);
        }

/* ESTILOS PARA SECCIÓN DE TOTALES */
.main-table-container {
    width: 100%;
    overflow-x: auto;
}

.main-table {
    width: 100%;
    max-height: 1050px;
}

.totals-section {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.total-table {
    border-collapse: collapse;
    width: auto;
}

    .total-table tr {
        line-height: 1.2;
        font-size: 0.9em;
    }

    .total-table td {
        padding: 2px 5px;
    }

        .total-table td:first-child {
            text-align: right;
            font-weight: bold;
            color: whitesmoke;
            background-color: var(--selected-color);
        }

        .total-table td:last-child {
            text-align: right;
        }

/* ESTILOS PARA MODALES */
.floating-labelModales {
    position: relative;
    margin-bottom: 20px;
}

    .floating-labelModales input {
        border: 1px solid #ccc;
        padding: 12px;
        font-size: 16px;
        width: 100%;
        background-color: white;
        border-radius: 4px;
    }

    .floating-labelModales label {
        position: absolute;
        top: 12px;
        left: 16px;
        font-size: 16px;
        color: #aaa;
        transition: all 0.2s ease-in-out;
        pointer-events: none;
        padding: 0 4px;
    }

    .floating-labelModales input:focus + label,
    .floating-labelModales input:not(:placeholder-shown) + label {
        top: -12px;
        left: 10px;
        font-size: 12px;
        color: var(--selected-color);
        background-color: white;
        z-index: 1;
    }

    .floating-labelModales input:focus {
        outline: none;
        border: 1px solid;
    }


