/* Common CSS */
#table_danyos_fin * {
    vertical-align: middle;
}

#table_danyos_fin tr th * {
    line-height: 50px;
}

#table_danyos_fin .damage_image {
    line-height: 50px;
    min-width: 50px;
}

#table_danyos_fin .damage_delete {
    line-height: 50px;
    min-width: 50px;
}

#table_danyos_fin .damage_price {
    min-width: 60px;
}

#tableArticulosPendientesCobro *,
#tableArticulosPendientesAbono * {
    vertical-align: middle;
}

#tableArticulosPendientesCobro .units,
#tableArticulosPendientesAbono .units {
    min-width: 50px;
}

#tableArticulosPendientesCobro .action,
#tableArticulosPendientesAbono .action {
    line-height: 50px;
    min-width: 50px;
}

#tableArticulosPendientesCobro .col-xs-12,
#tableArticulosPendientesAbono .col-xs-12 {
    padding-left: 0px;
    padding-right: 0px;
}

#tableArticulosPendientesCobro .form-control,
#tableArticulosPendientesAbono .form-control {
    padding-left: 5%;
    padding-right: 5%;
}

#tableArticulosPendientesCobro .input-group-addon,
#tableArticulosPendientesAbono .input-group-addon {
    padding-left: 5px;
    padding-right: 5px;
}

#tableArticulosPendientesCobro .btn {
    background-color: transparent;
    border-width: 0;
}

.mt-text {
    padding-top: 8px;
}

/* PC size CSS */
@media only screen and (min-width: 768px) {

    #tableArticulosPendientesCobro .price,
    #tableArticulosPendientesAbono .price {
        min-width: 100px;
    }

    .fs-responsive {
        font-size: medium;
    }

    datalist {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        writing-mode: vertical-lr;
        width: 99%;
        opacity: .5;
    }

}

/* Mobile size CSS */
@media only screen and (max-width: 767px) {

    #tableArticulosPendientesCobro .price,
    #tableArticulosPendientesAbono .price {
        min-width: 75px;
    }

    #tableArticulosPendientesCobro .tax_base,
    #tableArticulosPendientesAbono .tax_base {
        display: none;
    }

    #tableArticulosPendientesCobro .tax,
    #tableArticulosPendientesAbono .tax {
        display: none;
    }

    .mt-responsive {
        margin-top: 10px;
    }

    .fs-responsive {
        font-size: large;
    }

    datalist {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        writing-mode: vertical-lr;
        width: 99%;
        opacity: .5;
    }

}

.step5-description {
    font-size: 16px;
    line-height: 1.5;
    margin: 10px 0;
    color: #555;
}

.step1-message {
    padding: 0;
    margin: 0;
    font-size: 12px;
    height: fit-content;
}

.step1-message div > div {
    height: fit-content;
}

.step1-message h4{
    width: fit-content;
}

.step1-message .modal-dialog {
    width: fit-content;
    padding: 0;
    margin: 0;
}

.sections-dropoff {
    margin: 10px 0;
    padding-bottom: 5px;
    text-align: center;
}

.fuel-full-color {
    color: #51d351;
}

.fuel-empty-color {
    color: #e7505a;
}

.fuel-not-full-color {
    color: #c49f47;
}

.message-badge{
    display: inline-block;
    width: 100%;
    margin: 5px 0;
    padding: 2px 8px;
    border-radius: 4px !important;
    color: #FFF;
    font-weight: 700;
}

.message-badge.green{
    background: #51d351;
}

.list-group-item.active-custom{
    background: #dddddd;
    font-weight: 700;
}

.process-steps {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
    overflow: hidden;
}

.process-steps li {
    flex: 1;
    position: relative;
    background: #f8f9fa;
    color: #6c757d;
    padding: 10px 0px 10px 15px;
    text-align: center;
    white-space: nowrap;
    margin-right: 1px;
}

/* Primera etapa no necesita la flecha a la izquierda */
.process-steps li:first-child {
    padding-left: 5px;
    border-radius: 4px 0 0 4px;
}

/* Última etapa no necesita la flecha a la derecha */
.process-steps li:last-child {
    border-radius: 0 4px 4px 0;
}

/* Crear las flechas */
.process-steps li:not(:first-child):before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    border: 20px solid transparent;
    border-left-color: #fff;
    /* Color del fondo del contenedor */
    border-right: 0;
}

/* Crear el triángulo dentro de cada elemento */
.process-steps li:not(:last-child):after {
    content: "";
    position: absolute;
    top: 0;
    right: -20px;
    height: 0;
    width: 0;
    border: 20px solid transparent;
    border-left-color: #f8f9fa;
    /* Debe coincidir con el color de fondo del elemento */
    border-right: 0;
    z-index: 1;
}

/* Estilo activo */
.process-steps li.active {
    background-color: #d00073;
    color: white;
    font-weight: 700;
}

.process-steps li.active:after {
    border-left-color: #d00073;
}

/* Estilo completado */
.process-steps li.completed {
    background-color: #e9ecef;
    color: #28a745;
}

.process-steps li.completed:after {
    border-left-color: #e9ecef;
}

/* Contenedor */
.steps-container {
    background-color: #e9f0fd;
    padding: 20px;
    border-radius: 5px;
}

.gauge-container {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 0;
}

.gauge-container .gauge-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-container .gauge-icon i{
    font-size: 30px;
}

.gauge-container svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.gauge-bg {
    fill: none;
    stroke: #eef1f5;
    stroke-width: 25;
    stroke-linecap: square;
}

.gauge-progress {
    fill: none;
    stroke-width: 25;
    stroke-linecap: square;
    transition: stroke 0.3s ease, stroke-dashoffset 0.3s ease;
}

.gauge-value {
    font-size: 48px;
    font-weight: 700;
    font-family: monospace;
    fill: #2d3748;
    text-anchor: middle;
    z-index: 20;
}

.gauge-label {
    font-size: 14px;
    fill: #718096;
    text-anchor: middle;
}

.needle {
    transition: transform 0.3s ease;
    transform-origin: 150px 150px;
    opacity: .7;
}

.needle-circle {
    fill: #2d3748;
}

.needle-line {
    stroke: #2d3748;
    stroke-width: 3;
    stroke-linecap: round;
}

.slider-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-container input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: #eef1f5;
    outline: none;
    cursor: pointer;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #32c5d2;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.3s ease;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-container input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(0.95);
    background: #32c5d2;
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #32c5d2;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.3s ease;
}

.slider-container input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.slider-container input[type="range"]::-moz-range-thumb:active {
    transform: scale(0.95);
    background: #32c5d2;
}

.value-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 5px;
    width: 99%;
}

.value-labels span {
    color: #718096;
    font-size: 14px;
    font-family: monospace;
    font-weight: 500;
}

.konvajs-content canvas {
    width: 100% !important;
}