﻿body {
    background-color: transparent;
}

h1, h2 {
    font-weight: bold;
    color: #076DF2;
}

a, h4, .title-menu-principal {
    color: #076DF2;
    font-weight: 500;
}

main.table {
    background-color: #fff5;
    backdrop-filter: blur(7px);
    box-shadow: 1px 1px 7px 5px #e1e1f3;
    border-radius: .8rem;
    overflow: hidden;
    border-radius: 15px 15px 0px 0px;
    border-top: 2px solid #fff;
    padding: 0;
    border-radius: 15px 15px 15px 15px;
}

.table__header {
    min-width: 100%;
    height: 7em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1f1fc;
    padding-left: 2em;
    padding-right: 2em;
    border-radius: 15px 15px 0px 0px;
    border-left: 2px solid #fff;
    border-right: 2px solid #fff;
}

    .table__header .input-group {
        min-width: 200px;
        width: 25%;
        height: 70%;
        background-color: #fff5;
        padding: 0 .8rem;
        border-radius: 2rem;
        display: flex;
        justify-content: space-around;
        align-items: center;
        transition: .2s;
        margin: auto;
    }

        .table__header .input-group:hover {
            width: 30%;
            background-color: #fff8;
            box-shadow: 0 .1rem .4rem #0002;
        }

        .table__header .input-group img {
            width: 1em;
            height: 1em;
        }

        .table__header .input-group input {
            width: 90%;
            padding: 0 .5rem 0 .3rem;
            background-color: transparent;
            border: none;
            outline: none;
        }

#export-table_wrapper {
    background-color: #f1f1fc;
    padding-top: 1em;
    margin: 0px 2px;
}
.table__body {
    width: 100%;
    max-height: calc(89% - 1.6rem);
    overflow: auto;
}

    .table__body::-webkit-scrollbar {
        width: 0.8rem;
        height: 0.8rem;
    }

    .table__body::-webkit-scrollbar-thumb {
        border-radius: .5rem;
        background-color: #0004;
        visibility: hidden;
    }

    .table__body:hover::-webkit-scrollbar-thumb {
        visibility: visible;
    }

.table__body_2 {
    width: 95%;
    max-height: calc(89% - 1.6rem);
    background-color: #fffb;
    margin: .8rem 0px;
    border-radius: .6rem;
    overflow: auto;
    width: 97.5%;
}

    .table__body_2::-webkit-scrollbar {
        width: 0.5rem;
        height: 0.5rem;
    }

    .table__body_2::-webkit-scrollbar-thumb {
        border-radius: .5rem;
        background-color: #0004;
        visibility: hidden;
    }

    .table__body_2:hover::-webkit-scrollbar-thumb {
        visibility: visible;
    }

table {
    width: 100%;
}

td img {
    width: 36px;
    height: 36px;
    margin-right: .5rem;
    border-radius: 50%;
    vertical-align: middle;
}

table, th, td {
    border-collapse: collapse;
    padding: 1rem;
    text-align: left;
    background-color: white;
}
tr{
    background-color:white;
}

thead th {
    position: sticky;
    top: 0;
    left: 0;
    background-color: #f1f1fc;
    cursor: pointer;
    text-transform: capitalize;
    color: #424242;
    border: none !important;
}

tbody tr:nth-child(even) {
    background-color: #0000000b;
}

tbody tr {
    --delay: .1s;
    transition: .5s ease-in-out var(--delay), background-color 0s;
}

    tbody tr.hide {
        opacity: 0;
        transform: translateX(100%);
    }

    tbody tr:hover {
        background-color: #fff6 !important;
    }

    tbody tr td,
    tbody tr td p,
    tbody tr td img {
        transition: .2s ease-in-out;
    }

    tbody tr.hide td,
    tbody tr.hide td p {
        padding: 0;
        font: 0 / 0 sans-serif;
        transition: .2s ease-in-out .5s;
    }

        tbody tr.hide td img {
            width: 0;
            height: 0;
            transition: .2s ease-in-out .5s;
        }

.status {
    padding: .4rem 0;
    border-radius: 2rem;
    text-align: center;
}

    .status.delivered {
        background-color: #86e49d;
        color: #006b21;
    }

    .status.cancelled {
        background-color: #d893a3;
        color: #b30021;
    }

    .status.pending {
        background-color: #ebc474;
    }

    .status.shipped {
        background-color: #6fcaea;
    }


@media (max-width: 1000px) {
    td:not(:first-of-type) {
        min-width: 12.1rem;
    }
}

thead th span.icon-arrow {
    display: inline-block;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    border: 1.4px solid transparent;
    text-align: center;
    font-size: 1rem;
    margin-left: .5rem;
    transition: .2s ease-in-out;
}

thead th:hover span.icon-arrow {
    border: 1.4px solid #076DF2;
}

thead th:hover {
    color: #076DF2;
}

thead th.active span.icon-arrow {
    background-color: #6c00bd;
    color: #fff;
}

thead th.asc span.icon-arrow {
    transform: rotate(180deg);
}

thead th.active, tbody td.active {
    color: #6c00bd;
}

.export__file {
    position: relative;
}

    .export__file .export__file-btn {
        display: inline-block;
        width: 1.5em;
        height: 1.5em;
        background: url(../../Images/export.png) center / 80% no-repeat;
        border-radius: 50%;
        transition: .2s ease-in-out;
    }

        .export__file .export__file-btn:hover {
            background-color: #fff;
            transform: scale(1.15);
            cursor: pointer;
        }

    .export__file input {
        display: none;
    }

    .export__file .export__file-options {
        position: absolute;
        right: 0;
        width: 12rem;
        border-radius: .5rem;
        overflow: hidden;
        text-align: center;
        opacity: 0;
        transform: scale(.5);
        transform-origin: top right;
        box-shadow: 0 .2rem .5rem #0004;
        transition: .2s;
        display: block;
    }

    .export__file input:checked + .export__file-options {
        opacity: 1;
        transform: scale(.5);
        z-index: 100;
    }

    .export__file .export__file-options label {
        display: block;
        width: 100%;
        padding: .6rem 0;
        background-color: #f2f2f2;
        display: flex;
        justify-content: space-around;
        align-items: center;
        transition: .2s ease-in-out;
    }

        .export__file .export__file-options label:first-of-type {
            padding: 1rem 0;
            background-color: #86e49d !important;
        }

        .export__file .export__file-options label:hover {
            transform: scale(1.05);
            background-color: #fff;
            cursor: pointer;
        }

    .export__file .export__file-options img {
        width: 2rem;
        height: auto;
    }

.adicionar-button {
    width: auto;
    font-size: 14px;
    margin-bottom: 0.5em;
    background-color: #076DF2;
    border: none;
    border-radius: 1em;
    color: white;
    height: 2em;
    padding: 0em 1em;
    width: 100%;
    height: 3em;
}
/* Estilos para a página */
main {
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

h2 {
    margin: 0;
    font-size: 28px;
}

/* Estilos para a tabela */
table {
    border-collapse: collapse;
    width: 100%;
}

th {
    background-color: #eee;
    text-align: left;
    font-weight: bold;
    padding: 10px;
    white-space: nowrap;
    cursor: pointer;
}

td {
    padding: 10px;
}

/*tr:nth-child(odd) {
    background-color: #e9e9f1 !important;
}*/

tr:hover {
    background-color: #ddd;
}

/* Estilos para a barra de pesquisa */
.input-group {
    display: flex;
    align-items: center;
    margin-left: auto;
}

input[type="search"] {
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    flex-grow: 1;
}

img[src="../Images/search.png"] {
    height: 30px;
    margin-left: 10px;
    cursor: pointer;
}

/* Estilos para o botão de exportar */
.export__file {
    display: flex;
    align-items: center;
    margin-left: 20px;
    position: relative;
}

.export__file-btn {
    display: block;
    width: 30px;
    height: 30px;
    background-image: url('../Images/export.png');
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.export__file-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    border-radius: 5px;
}

    .export__file-options label {
        display: block;
        padding: 10px;
        cursor: pointer;
    }

        .export__file-options label:hover {
            background-color: #f1f1f1;
        }

    .export__file-options img {
        width: 20px;
        margin-left: 10px;
        vertical-align: middle;
    }

/* Estilos para a paginação */
.table__footer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 14px !important;
}

.paginate_button {
    font-family: 'SFPRODISPLAYMEDIUM', sans-serif !important;
    color: black !important;
}

.paginate_button {
    padding: 5px 10px !important;
    margin: 0 5px !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}

    .paginate_button:hover {
        background-color: #f1f1f1 !important;
        border-color: #999 !important;
    }

    .paginate_button.current {
        background-color: #076DF2 !important;
        color: #fff !important;
        border-color: #076DF2 !important;
    }

    .paginate_button.disabled {
        opacity: 0.5;
        cursor: default;
    }

/* Estilos para o footer */
#export-table tfoot td {
    font-weight: bold;
    text-align: right;
}

.dataTables_length {
    display: flex;
    width: 100%;
    padding: 0.5em 1em;
    background-color: transparent;
}

    .dataTables_length > label {
        font-family: 'SFPRODISPLAYMEDIUM', sans-serif;
        font-size: 0.8em;
        color: #076DF2;
        margin-left:15px
    }

#export-table {
    border-bottom: 1px solid #f1f1fc;
    padding: 0px;
    background-color: #f1f1fc;
    height: 55vh;
    padding-left: 1em;
    border-collapse: separate;
    border-spacing: 0 11px;
    width: 98%;
}

.noboxshadow {
    font-family: 'SFPRODISPLAYMEDIUM';
    box-shadow: 0px 0px 0px 0px white;
}

#export-table_filter {
    display: none;
}

#export-table tbody tr {
    background-color: white;
}
#export-table tbody tr:nth-child(even) {
    background-color: white;
}

.dt-buttons {
    display: none;
}

.edit-link {
    /*border: 2px solid #141F59;*/
    border-radius: 25%;
    width: 20px;
    height: 20px;
    padding: 2px;
    text-decoration: inherit;
}

.delete-link {
    /*    border: 2px solid red;*/
    border-radius: 25%;
    width: 20px;
    height: 20px;
    padding: 2px;
    text-decoration: inherit;
}

.details-link {
    /*border: 2px solid orange;*/
    border-radius: 25%;
    width: 20px;
    height: 20px;
    text-decoration: inherit;
}

a:hover {
    text-decoration: inherit;
}

select option {
    font-family: 'SFPRODISPLAYMEDIUM', sans-serif;
}
.h5-pacientes {
    font-family: 'SFPRODISPLAYMEDIUM', sans-serif;
}
.right-paciente {
    width: 48%;
    padding: 0;
}
.left-paciente {
    width: 100%;
    border-left: .3em solid #ccc;
}
.title-paciente {
    width: 100%;
    background-color: #f1f1fc;
    padding: 1em;
    display:flex;
    justify-content:space-between
}
.content-paciente {
    width: 100%;
    padding: 1em;

}
@keyframes backgroundTransition {
    0% {
        background-color: rgb(255, 0, 0, 0.1);
    }

    50% {
        background-color: rgb(255, 0, 0, 0.3);
    }

    100% {
        background-color: rgb(255, 0, 0, 0.1);
    }
}

.anamnese-div {
    display: flex;
    border: 1px solid red;
    width: 25%;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 15px;
    animation: backgroundTransition 1.5s infinite;
}



.content-line {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
.left-p{
    width: 50%;
    color:black;
}
.right-p {
    width: 50%
}
.aba {
    display: flex;
    width: 100%;
    justify-content: space-between;
    display: none;
    padding: 10px 10px 10px 10px;
}
.debitos-creditos{
    width: 100%;
    display:flex;
    margin: .8em 0em;
}
    .debitos-creditos * {
        font-family: 'SFPRODISPLAYMEDIUM';
    }
.debitos-creditos *{
    text-transform: uppercase;
}
.left-debitos-creditos{
    display: flex;
    width: 50%;
    justify-content:end;
    padding: 0px 0.8em;
}

.right-debitos-creditos {
    display: flex;
    width: 50%;
    justify-content: start;
    padding: 0px 0.8em;
}
    .buttons-paciente {
        border: none;
        border-radius: 5px;
        width: 20px;
        height: 20px;
        background-color: white;
    }
#total-recebido {
    color: green;
}

#total-areceber {
    color: red;
}
.button-title-paciente {
    display: flex;
    width: 18%;
    background-color: #f1f1fc;
    border-radius: 15px;
    padding: 1em 1em;
    color: gray;
    align-items: center;
    border: none;
    justify-content: space-evenly;
    transition: 0.5s;
}

    .button-title-paciente p {
        color: gray;
        font-size: 12px;
        margin: 0;
        text-transform: uppercase;
        font-family: SFPRODISPLAYMEDIUM, sans-serif;
    }

    .button-title-paciente:hover {
        background-color: #076DF2;
        color: white;
    }

        .button-title-paciente:hover p {
            color: white;
        }

    .button-title-paciente.ativo {
        background-color: #076DF2;
        color: white;
    }

        .button-title-paciente.ativo p {
            color: white;
        }


.button-title-receber {
    display: flex;
    width: 33%;
    background-color: #f1f1fc;
    border-radius: 15px;
    padding: 1em 2em;
    color: gray;
    align-items: center;
    border: none;
    justify-content: space-evenly;
    transition: 0.5s;
}

    .button-title-receber p {
        color: gray;
        font-size: 20px;
        margin: 0;
        text-transform: uppercase;
        font-family: SFPRODISPLAYMEDIUM, sans-serif;
    }

    .button-title-receber:hover {
        background-color: #076DF2;
        color: white;
    }

        .button-title-receber:hover p {
            color: white;
        }

    .button-title-receber.ativo {
        background-color: #076DF2;
        color: white;
    }
        .button-title-receber.ativo p {
            color: white;
        }

.centralize-title-buttons {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-content: center;
    margin-top: 10px;
    padding: 0px 10px 10px 10px;
}
.caixa {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 1em;
}
    .caixa h2 {
        color: white;
        font-family: 'SFPRODISPLAYMEDIUM', sans-serif;
    }
.exibe-caixa {
    align-items: center;
    border-radius: 15px 15px 15px 15px;
    justify-content: space-evenly;
    background-color: #076DF2;
    width: 66%;
    color: white;
}
    .exibe-caixa svg {
        width: 45px;
        height: 45px;
        margin-right: 1em;
    }
.popula-caixa {
    align-items: center;
    border-radius: 15px 15px 15px 15px;
    justify-content: space-evenly;
    background-color: #076DF2;
    width: 33%;
    color: white;
    padding-bottom: 10em;
}
    .popula-caixa svg {
        width: 45px;
        height: 45px;
        margin-right: 1em;
    }
.header-caixa {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    height: 4em;
}
.body-caixa {
    width:100%;
    height: 38em;
}
    .body-caixa::-webkit-scrollbar {
        width: 0.8rem;
        height: 0.8rem;
    }

    .body-caixa::-webkit-scrollbar-thumb {
        border-radius: .5rem;
        background-color: #d5d1defe;
        visibility: hidden;
    }

    .body-caixa:hover::-webkit-scrollbar-thumb {
        visibility: visible;
    }
.table-caixa {
    height: 35em;
    overflow-x: auto;
}
.footer-caixa {
    width: 100%;
    height: 6em;
    display:flex;
    border-radius: 0px 0px 15px 15px;
    justify-content:center;
}
.footer-caixa input{
    height: 3.5em;
}
.div-input-footer{
    width:19.6%;
}
    .div-input-footer input {
        /*width: 100%;*/
        border:none;
        text-align: right;
        padding-right: 0.5em;
    }

.p-input-footer {
    color: white;
    font-family: 'SFPRODISPLAYMEDIUM', sans-serif;
}
.div-inputs-footer {
    display: flex;
    background-color: white;
}
.first-input {
    width: 33%;
    color: #076DF2;
    font-size: 12px;
}
.second-input {
    width: 66%;
    color: black;
    pointer-events: none;
    background-color:white;
}
.h2-fechamento{
    margin-top: 1em;
    text-align: center;
    font-size: 20px;
}
.p-fechamento{
    font-size: 10px;
    text-align: center;
    color: white;
}
.p-input-fechamento {
    color: white;
    margin: 0em;
}
.div-inputs-fechamento {
    margin-top: 2em;
    width: 100%;
}
.div-input-fechamento {
    width: 99%;
    text-align: center;
    line-height: 2;
    margin-bottom: 1em;
}
.input-fechamento {
    border:none;
    border-radius: 15px;
    height: 3em;
    color:black;
    text-align: center;
}

.left-header{
    width:40%;
    display:flex;
    justify-content: center;
    align-items: center
}
.right-header {
    width: 60%;
    display: flex;
    justify-content: right;
    margin-right: 0.5em;
}
    .right-header select {
        width: 33%;
        border: 1px solid #f1f1fc;
        color: black;
        text-align: left;
        border-radius: 5px;
        margin-right: 0.5em;
    }

.monitor-table {
    padding: 0px;
    /*background-color: #f1f1fc;*/
    margin-bottom: 1em;
    border-collapse: separate;
    border-spacing: 10px 0px;
}
    .monitor-table th {
        background-color: #076DF2;
        color: white;
        border-radius: 15px 15px 0px 0px;
        padding-left: 30px;
        font-size: 20px;
    }
    .monitor-table td {
        background-color: #f1f1fc;
        border-bottom: 2px solid #076DF2;
        padding-left: 30px;
    }
    .monitor-table tr {
        background-color: #f1f1fc;
        border-bottom: 2px solid #076DF2;
    }


.th-first-child{
    width:70%
}
.th-second-child {
    width: 30%
}
.first-table-content {
    color: red;
    font-size: 30px;
    font-family: 'SFPRODISPLAYMEDIUM', sans-serif;
    min-height: 3em;
    text-transform: uppercase;
    text-align: center;
   
}
.first-tr-content {
    min-height: 75px;
    height: 75px;
}
.second-table-content {
    color: #076DF2;
    font-size: 20px;
    font-family: 'SFPRODISPLAYMEDIUM', sans-serif;
    min-height: 3em;
    text-transform: uppercase;
}
/* Estado padrão: sem ordenação definida */
body table.dataTable thead .sorting {
    background-image: url(../../Images/arrow-both.png) !important;
}

/* Estado de ordenação ascendente */
body table.dataTable thead .sorting_asc {
    background-image: url(../../Images/arrow-down.png) !important;
}

/* Estado de ordenação descendente */
body table.dataTable thead .sorting_desc {
    background-image: url(../../Images/arrow-up.png) !important;
}

.dataTables_paginate {
    display: flex;
    align-items: center;
}
th, td, input, .input__label {
    font-size: 14px;
}
.div-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Cria 3 colunas de largura igual */
    gap: 20px; /* Espaçamento entre os campos */
}

.input {
    display: flex;
    flex-direction: column;
}

.input__field {
    width: 100%;
}

@media (max-width: 768px) {
    .div-content {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em telas menores */
    }
}

@media (max-width: 480px) {
    .div-content {
        grid-template-columns: 1fr; /* 1 coluna em telas ainda menores */
    }
}
.dataTables_paginate span {
    display: flex;
}