
/* COMPONENTES */

/* .info {
    padding: 20px 0;
    border-radius: 10px;
    background: #c7c3ff;
    border: 1px solid #0c028d;
} */


@import url();

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    font-family: Arial, Helvetica, sans-serif;
}

ul {
    list-style: none;
    padding: 0;
}


.border {
    border: 1px solid red;
}

/* CLASSES COMUNS */

.center {
    text-align: center;
}

.title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: 1rem;
    margin-bottom: 1rem;
    padding-left: .5rem;
}
.title > h1 {
    flex-basis: 100%;
}

/* -------------- */




button, input[type="button"], input[type="submit"], input[type="reset"], select {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: inherit;
}

input[type="submit"] {
    background-color: rgb(10, 107, 172);
    color: white;
    padding: 10px;
    display: block;
    width: 94%;
    margin: auto;
    border-radius: 6px;
}

input[type='text'], textarea {
    padding: 8px;
}

iframe {
    width: 100%;
    height: calc(100vh - 100px);
}

.form {
    display: flex;
    flex-wrap: wrap;
}

.form > * {
    flex-basis: 100%;
    display: flex;
    flex-wrap: nowrap;
}

/* os filhos diretos do input-group */
.form > * > * {
    flex-basis: 100%;
    margin: 5px 0;
}

/* @media (max-width:768px) {
    .form > * {
        flex-wrap: wrap;
    }
} */

@media (max-width: 768px) {
    .form {
        flex-wrap: wrap;
    }

    .form > * {
        flex-basis: 100%;
    }

    .card {
        width: 100%;
    }

}






.input-field {
    position: relative;
    padding: .8rem 0;
}

/* placeholder */
.input-field label {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    opacity: .5;
    pointer-events: none;
    transition: .3s;
}

.input-field input, select {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    height: 2.5rem;
    padding-left: 1rem;
}

.input-field textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.ativado label,
.input-field input:disabled ~ label,
.input-field input:valid ~ label,
.input-field input:focus ~ label,
.input-field input:read-only ~ label,
.input-field textarea:disabled ~ label,
.input-field textarea:valid ~ label,
.input-field textarea:focus ~ label,
.input-field textarea:read-only ~ label,
.input-field select:disabled ~ label,
.input-field select:valid ~ label,
.input-field select:focus ~ label,
.input-field select:read-only ~ label {
    top: 1.4rem;
    left: 1rem;
    font-size: 0.9em;
    color: var(--primary-color);
    transform: translateY(-25px);
    opacity: 1;
}

.hidden-id {
    display: none;
}

.hidden {
    display: none;
}


/* TABELAS */

.dataTable, .detailTable {
    width: 100%;
    text-align: center;
}

.dataTable thead, .detailTable thead {
    background-color: var(--primary-color);
    color: white;
}

.dataTable tr {
    height: 2rem;
}

.dataTable tr:nth-child(2n) {
    background-color: #ccc;
}

/* SEARCH BAR */
.search {
    width: 100%;
    margin: 0;
}

.search > input {
    width: 100%;
    padding: 10px 15px;
    border: 0;
    border-bottom: 1px solid #ccc;
    border-radius: 10px;
}


.detailTable  {
    display: flex;
    border-collapse: collapse;
}
.detailTable thead , .detailTable tbody  {
    display: flex;
}
.detailTable thead th, .detailTable tbody td {
    display: flex;
    padding: 10px;
}








.listTable {
    background-color: rgb(23, 59, 138);
    border-radius: 10px;
    width: 90%;
    margin: 10px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: white;
    transition: all .3s ease-in-out ;
    transform: scaleY(0);
    overflow: hidden;
    height: 0px;
}
.listTable.open {
    height: auto;
    transform: scaleY(1);
}
.listTable input[type='text'] {
    width: 100%;
    height: 2.5rem;
    border: 1px solid #2f00ff;
    border-radius: 10px 10px 0px 0px;
    padding: 0 10px;
    font-size: 1rem;
    outline: none;
}
.listTable ul {
    width: 100%;
    list-style: none;
    padding: 0;
}
.listTable li {
    box-sizing: border-box;
    margin: 0px;
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    transition: .3s;
}
.listTable li:hover {
    background-color: #00000028;
}
.listTable li:last-child {
    border-bottom: none;
}
#closelistTable {
    width: 100%;
    margin: auto;
    color: #ff5f5f;
    border: 1px solid #ff5f5f;
    border-radius: 0px 0px 10px 10px;
    line-height: 1.4rem;
}







/* BUTTONS */

.btn {
    padding: .5rem;
    margin: 1px;
    font-size: 1rem;
    color: white;
    border: none;
    border-radius: .5rem;
    transition: .3s;
    justify-content: center;
    /* display: inline-flex; */
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    flex-direction: row;
}
.btn:hover {
    opacity: .8;
}
.btn-danger {
    background-color: var(--danger-color);
}
.btn-primary {
    background-color: var(--primary-color);
}
.btn-neutral {
    background-color: var(--nc2);
}


.outlineButton { 
    width: 100%;
    height: 2.5rem;
    padding: 0;
    font-size: 1rem;
    font-weight: bold;
    color: #047c91;
    border: 1px solid #047c91;
    border-radius: 10px;
    transition: .3s;
}
.outlineButton:hover {
    background-color: #047c91;
    color: white;
}

.circleButton {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 50%;
    transition: .3s;
    align-items: center;
    justify-content: center;
}
.circleButton > span {
    display: none;
}

/* Botoes do visualizar */
.botoesEdicao {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin: 10px auto;
    padding: 0 10px;
}



/* Checkbox customizado alavanca */
.customcheckbox{
    display: flex;
    position: relative;
    align-items: center;
    margin: 5px 0;
}
.customcheckbox label {
    background-color: var(--lc1);
    display: block;
    width: 60px;
    height: 30px;
    border-radius: 200px;
    cursor: pointer;
    position: relative;
}
.customcheckbox label::before{
    position: absolute;
    content: '';
    background-color: #fff;
    /* width: 45%; */
    height: 80%;
    aspect-ratio: 1/1;
    border-radius: 100%;
    margin: 5%;
    transition: .2s;
}
.customcheckbox input:checked + label{
    background-color: var(--primary-color);
}
.customcheckbox input:checked + label::before{
    background-color: #fff;
    transform: translateX(30px);
}
.customcheckbox input{
    display: none;
}
/* Deixar texto do label ao lado do check */
.customcheckbox p {
    margin-left: 10px;
    display: flex;
    align-items: center;
}
/* Botão para visualizar mais detalhes */
.customcheckbox .info {
    display: none;
    /* transform: translateY(-100%); */
    position: absolute;
    left: 0;
    top: 100%;
    /* make z-index in top */
}

.customcheckbox p:hover + .info {
    display: inline;
    background-color: var(--primary-color);
    color: var(--nc0);
    padding: 5px;
    border-radius: 5px;
    z-index: 1000;
    margin-left: 10px;
    box-shadow: 0px 0px 5px #000000;
}
.customcheckbox.cc_green label {
    background-color: #8eca9d;
}
.customcheckbox.cc_dark label {
    background-color: var(--nc2);
}
.customcheckbox.cc_green input:checked + label{
    background-color: #069e40;
}
.customcheckbox.cc_dark input:checked + label{
    background-color: var(--dc1);
}



.link {
    text-decoration: none;
    transition: .3s;
    cursor: pointer;
}
.link:hover {
    color: #047c91;
    text-decoration: underline;
}



/* Separador em CARD */
.card {
    max-width: 96%;
    border-radius: 1rem;
    box-shadow: 0px 5px 10px var(--lc1);
    background-color: var(--nc0);
    /* padding: 1rem 0; */
    padding-bottom: 1rem;
    margin: 1rem auto;
}


/* criar animação de carregamento só com css, tipo um circulo girando */

.loading {
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.05);s */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: rotate infinite 1s;
}

.loading::before {
    content: "";
    width: 50px;
    height: 50px;
    border: 6px solid white;
    border-top: 3px solid transparent;
    /* box-shadow: inset 0 0 0 5px white; */
    border-radius: 50%;
    animation: rotate 1s linear infinite;
    position: relative;
    right: -25px;
}

.loading::after {
    content: "";
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary-color);
    border-top: 3px solid transparent;
    /* box-shadow: inset 0 0 0 5px white; */
    border-radius: 50%;
    animation: rotate 2s linear infinite;
    position: relative;
    left: -25px;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}