﻿@font-face {
    font-family: "Roboto";
    src: url("/fonts/Roboto/Roboto-Regular.ttf") format("truetype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto';
    font-size: 0.8rem;
    background-color: #f4f4f4;
    color: #383539;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    cursor: pointer;
}
    a:hover {
        color: white;
    }

a[disabled] {
    pointer-events:none;
    filter: opacity(0.4);
}

.dropdown-item:hover {
    background-color: #383539;
}

.dropdown-item.active, .dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #007bff;
}

hr {
    color: #f7f7f747;
}

div.body {
    display: flex;
    flex: 93;
}

.hidden {
    visibility: hidden;
    margin: 0 5px;
    height: 0;
}

/*-----------------componente content------------------*/

div.content {
    flex: 98%;
    justify-content: flex-start;
    padding-left: 2rem;
    padding-right: 2rem;
    height: 100%;
}

div.title {
    padding: 20px;
    text-align: center;
    color: #202020;
    font-weight: bold;
    text-transform: uppercase;
}

/*--------------------componente card-------------------*/

div.card {
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    background-color: white;
}

div.card-title {
    background-color: #202020;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    padding: 8px 18px;
    font-size: 0.8rem;
    justify-content: center;
    font-weight: bold;
}

div.card-body {
    padding: 40px 80px;
}

div.form-field {
    margin-top: 10px;
}

    div.form-field button {
        width: 100%;
    }

div.card-footer {
    padding: 8px 18px;
    display: flex;
    justify-content: flex-end;
}

/*-------------------componente label-------------------*/

label {
    font-weight: bold;
   /* color: #777;*/
    margin-left: 5px;
}

.required:after {
    content:" *";
    color: #c41b17;
}

/*----------------componente radio-button---------------*/

[type="radio"]:checked,
[type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
}

    [type="radio"]:checked + label,
    [type="radio"]:not(:checked) + label {
        position: relative;
        padding-left: 28px;
        cursor: pointer;
        line-height: 20px;
        display: inline-block;
    }

        [type="radio"]:checked + label:before,
        [type="radio"]:not(:checked) + label:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 18px;
            height: 18px;
            border: 1px solid #c41b17;
            border-radius: 100%;
            background: #fff;
        }

        [type="radio"]:checked + label:after,
        [type="radio"]:not(:checked) + label:after {
            content: '';
            width: 12px;
            height: 12px;
            background: #c41b17;
            position: absolute;
            top: 4px;
            left: 4px;
            border-radius: 100%;
            -webkit-transition: all 0.2s ease;
            transition: all 0.2s ease;
        }

        [type="radio"]:not(:checked) + label:after {
            opacity: 0;
            -webkit-transform: scale(0);
            transform: scale(0);
        }

        [type="radio"]:checked + label:after {
            opacity: 1;
            -webkit-transform: scale(1);
            transform: scale(1);
        }

/*----------------componente radio-button---------------*/

[type="radio"]:checked,
[type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
}

    [type="radio"]:checked + label,
    [type="radio"]:not(:checked) + label {
        position: relative;
        padding-left: 28px;
        cursor: pointer;
        line-height: 20px;
        display: inline-block;
    }

        [type="radio"]:checked + label:before,
        [type="radio"]:not(:checked) + label:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 18px;
            height: 18px;
            border: 1px solid #c41b17;
            border-radius: 100%;
            background: #fff;
        }

        [type="radio"]:checked + label:after,
        [type="radio"]:not(:checked) + label:after {
            content: '';
            width: 12px;
            height: 12px;
            background: #c41b17;
            position: absolute;
            top: 4px;
            left: 4px;
            border-radius: 100%;
            -webkit-transition: opacity 0.2s ease;
            transition: opacity 0.2s ease;
        }

        [type="radio"]:not(:checked) + label:after {
            opacity: 0;
        }

        [type="radio"]:checked + label:after {
            opacity: 1;
        }

        [type="radio"]:disabled + label::before {
            border: 1px solid #ccc;
        }

        [type="radio"]:disabled + label::after {
            background: #ccc;
        }

        [type="radio"]:disabled + label {
            cursor: not-allowed;
        }


/*----------------componente radio-button---------------*/

[type="checkbox"]:checked,
[type="checkbox"]:not(:checked) {
    display: none;
}

    [type="checkbox"]:checked + label,
    [type="checkbox"]:not(:checked) + label {
        position: relative;
        padding-left: 28px;
        cursor: pointer;
        line-height: 20px;
        display: inline-block;
    }

        [type="checkbox"]:checked + label:before,
        [type="checkbox"]:not(:checked) + label:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 18px;
            height: 18px;
            border: 1px solid #c41b17;
            border-radius: 20%;
            background: #fff;
        }

        [type="checkbox"]:checked + label:after,
        [type="checkbox"]:not(:checked) + label:after {
            content: '';
            width: 18px;
            height: 18px;
            background: url("/assets/icons/check.png") no-repeat 0 0;
            background-color: #c41b17;
            background-size: 80%;
            background-position: center;
            position: absolute;
            top: 0px;
            left: 0px;
            border-radius: 20%;
            border: 1px solid #af1916;
            -webkit-transition: opacity 0.2s ease;
            transition: opacity 0.2s ease;
        }

        [type="checkbox"]:not(:checked) + label:after {
            opacity: 0;
        }

        [type="checkbox"]:checked + label:after {
            opacity: 1;
        }

/*------------------componente text-------------------*/

input, select, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
    color: #777;
    font-size: 12px;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

input[type="date"] {
    padding: 10px 4px 10px 4px;
}

input[type="file"] {
    display: none;
}

input:focus, select:focus, textarea:focus {
    border: 1px solid #c41b17;
    border-radius: 4px;
}

input:focus-visible {
    outline: none;
}

input:disabled, select:disabled, textarea:disabled {
    background-color: #f7f7f7;
    cursor: not-allowed;
}
/*-----------------componente select------------------*/

select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("../assets/arrow-down.png");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position-x: 96%;
    background-position-y: 7px;
    box-sizing: border-box;
    padding: 10px 20px 10px 10px;
}

/*------------------componente button------------------*/

button, a[type=button] {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #c41b17;
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    min-height: 35px;
    font-size: 12px;
    white-space: nowrap;
    box-sizing: border-box;
}

    button img, a[type="button"] img {
        width: 19px;
    }

    button:hover, a[type="button"]:hover {
        background-color: #c41b17d6;
    }

    button:active, a[type="button"] :active {
        background-color: #c41b17b0;
    }

    button.outline, a[type="button"].outline {
        background-color: unset;
        border: 1px solid #c41b17;
        color: #c41b17;
    }

        button.outline:hover, a[type="button"].outline:hover {
            background-color: #c41b17d6;
            color: white;
        }

        button.outline:active, a[type="button"].outline:active {
            background-color: #c41b17b0;
            color: white;
        }

    button[disabled], button[disabled]:active, button[disabled]:hover {
        background-color: #f2f2f2;
        color: #acabab;
        border: 1px solid #ccc;
        cursor: not-allowed;
    }

/*---------------componente back button----------------*/

div.back-button {
    display: flex;
    padding: 10px 0;
}

div.back-button .back {
    display: flex;
    align-items: center;
    color: #c41b17;
    cursor: pointer;
}

div.back-button .back img {
    height: 1.2rem;
    margin-right: .2rem;
}

@media(max-width: 720px) {

    /*-----------------componente content------------------*/

    div.content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    div.title p {
        display: none;
    }

    /*--------------------componente card-------------------*/

    div.card-title {
        display: flex;
        padding: 10px 18px;
    }

    div.card-body {
        padding: 40px 80px;
    }

}

@media(max-width: 400px) {

    *, button, a[type=button] {
        font-size: 0.8rem;
    }

    button, a[type=button] {
        padding: 4px 11px;
    }
}