﻿/*FUENTES*/
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header.bg-white {
    background-color: #eaedf188 !important;
}


/*Stepper*/
.stepper {
    background-color: #f8f9fa;
    padding: 1rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .stepper .nav-item {
        display: flex;
        align-items: center;
    }

        .stepper .nav-item button {
            border-radius: 0.25rem !important;
            border-width: 1px !important;
            border-style: solid !important;
            border-color: silver;
        }

    .stepper .nav-link {
        border-radius: 0.5rem;
        transition: background-color 0.2s ease;
        font-weight: normal !important;
        background-color: #fff;
        color: #6c757d;
        min-width: 120px;
        text-align: center;
        justify-content: center;
        padding-top: 0.8em;
        padding-bottom: 0.8em;
    }

        .stepper .nav-link.active {
            /*background-color: #dee2e6;*/
            color: #212529;
            border-color: var(--bs-primary) !important;
            font-weight:bold !important;
        }

        /*
        .stepper .nav-link.pending {
            opacity: 0.6;
            border-color: gray !important;
        }
        */

        .stepper .nav-link.completed {
            /*
            background-color: #eff4f9;
            color: #495057;
            border-color: #ced4da !important;
            */
            background-color: #e7f1ff;
            color: var(--bs-body-color);
            border-color: #b3d2ff !important;
        }

        .stepper .nav-link:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            border-color: #dee2e6 !important;
        }

    .stepper .step-separator {
        font-size: 1.7rem;
        color: #adb5bd;
    }


.seleccion-grupo button.btn:hover {
    /*background-color: rgba(239, 244, 249, 0.20);*/
    border-color: #adb5bd; /* borde un poco más oscuro */
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease-in-out;
}

.corner-triangle {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 16px solid var(--bs-primary);
    border-right: 16px solid transparent;
    border-top-left-radius: 2px;
    filter: contrast(0.6) opacity(0.7);
    display:none;
}

.grupo-con-selecciones {
    border-left: 3px solid #769edb !important;
}


/*Ancho columnas: tipo, coste, superficies*/
.col-coste {
    width: 120px;
}
.col-superficie {
    width: 120px;
}
    .col-superficie input {
        width: 80px;
        padding: 0.1em 0.5em;
    }

.no-spinner::-webkit-inner-spin-button,
.no-spinner::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spinner {
    -moz-appearance: textfield; /* para Firefox */
}

/*Modal*/
.modal-ayuda .modal-header {
    background-color: rgba(0, 0, 0, 0.03) !important;
}
.modal-ayuda .modal-header, .modal-ayuda .modal-body {
    padding-left: 1.5em;
    padding-right: 1.5em;
}
.modal-ayuda .modal-body {
    padding-top: 1.5em;
}


/*Formato resumen*/
.desglose .fila {
    border-bottom: 1px solid #ddd;
}
    .desglose .fila:first-child {
        border-top: 1px solid #ddd;
    }

.desglose th.fila {
    border-top: none !important;
    border-bottom-color: #ddd !important;
    padding-top: 0.6em;
    padding-bottom: 0.6em;
}

.desglose td.fila {
    border-bottom: 1px solid #ddd;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}
div.desglose div.fila {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

.col-numeric {
    white-space: nowrap; /* evita que las cifras rompan línea */
    width: 1%; /* hace que ocupen lo mínimo posible */
}

/*Resultados: tarjetas de fases*/
.fase-block {
    border: none;
    border-radius: 0;
}

.fase-header {
    background: rgba(0, 0, 0, 0.04);
    padding-top: 0.25em;
    padding-bottom: 0.25em;
    margin-bottom: 0.5em;
}

.fila-sub {
    padding-left: 1.25rem; /* sangría del conjunto de la fila */
}

.fila-sub-label {
    position: relative;
    padding-left: 1rem; /* espacio para el símbolo */
}

    .fila-sub-label::before {
        content: "•";
        position: absolute;
        left: 0;
        top: 0;
        opacity: 0.6; /* más sutil */
    }

/*PIE Avisos legales*/
.legal-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
}

.legal-links li {
    display: flex;
    align-items: center;
}

    .legal-links li:not(:last-child)::after {
        content: "|";
        margin-left: 0.75rem;
        color: #ccc;
    }

.legal-links a {
    color: inherit;
    text-decoration: none;
}

    .legal-links a:hover {
        text-decoration: underline;
    }
