* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

header {
    width: 100%;
    text-align: center;
    background-color: rgba(155, 154, 154, 0.8);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}
table, th, td{
    border-collapse: collapse;
    padding: 5px;
}

.container {
    text-align: center;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    background: transparent;
    border: none;
    font-size: 18px;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
}

.dropdown-span {
    cursor: pointer;
}

.dropdown-button:hover {
    color: black;
}

/* Style for the dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Style for the dropdown links */
.dropdown-content a {
    color: white;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
}

/* Change color on hover */
.dropdown-content a:hover {
    background-color: #555;
}

/* Show the dropdown content when the dropdown button is hovered over */
.dropdown:hover .dropdown-content {
    display: block;
}

.menu-principal li {
    list-style: none;
    display: inline-block;
    margin: 0 5px;
}

.menu-principal a {
    text-decoration: none;
    color: white;
    font-size: 20px;
}

.menu-principal a:hover {
    color: black;
}

.form {
    text-align: center;
    width: 400px;
    height: 200px;
    margin: 10% auto;
    padding: 15px;
    background: rgba(155, 154, 154, 0.1);

}

.form form {
    width: 100%;
}

.form span {
    font-size: 20px;
    font-weight: bold;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    margin: 5px 0;
}

.form input {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    color: black;
}

.form button {
    width: 40%;
    padding: 5px;
    margin: 5px 0;
    font-size: 15px;
}

.form p {
    bottom: 0;
}

.form-paciente {
    height: auto;
    text-align: center;
    background: rgba(155, 154, 154, 0.1);
    ;
}

.form-paciente p {
    font-weight: bold;
    font-size: 25px;
    font-family: Arial, Helvetica, sans-serif;
    margin: 10px 0;
}

.form-paciente label {
    float: left;
    font-weight: bold;
}

.form-paciente select {
    width: 100%;
    font-size: 15px;
    margin: 5px 0;
}

.form-paciente button {
    font-size: 22px;
    padding: 5px 10px;
    margin: 5px;
    cursor: pointer;
}

.form-paciente .form-step {
    display: none;
    transition: margin-left 0.3s ease-in-out;
}

.form-paciente .form-step.active {
    display: block;
}


.list-pacientes #campo-pesquisa {
    width: 100%;
    font-size: 15px;
}

#lista-pacientes {
    width: 100%;
    margin: 0 auto;
}

#lista-pacientes th {
    background-color: rgba(155, 154, 154, 0.3);
}

.list-pacientes #lista-pacientes .buttons_action {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.list-pacientes #lista-pacientes .buttons_action button {
    background: transparent;
    border: none;
    cursor: pointer;
}

.list-pacientes #lista-pacientes .buttons_action button img {
    max-width: 18px;
}

.view-paciente {
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    top: 0;
    overflow: auto;
}

.view-paciente .popup {
    margin: 0 auto;
    width: 800px;
    max-height: 100%;
}

.view-paciente .popup .popup-content {
    border: 25px solid rgba(0, 0, 0, 0.8);
    background: white;
    margin-bottom: 5px;
    text-align: right;
    max-height: 100%;
}

.view-paciente .popup .button_close {
    position: absolute;
    color: white;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 22px;
    top: 2px;
    right: 407px;
}

.view-paciente .popup .popup-content .content-topo {
    display: flex;
    justify-content: center;
    text-align: center;
}

.view-paciente .popup .popup-content .content-topo h2 {
    background-color: transparent;
}

.view-paciente .popup .popup-content .content-topo #logo img {
    max-width: 150px;
}

.view-paciente .popup .popup-content .content-topo #logoSecundaria img {
    max-width: 200px;
    margin-top: -1.7px;
}

.view-paciente .popup .popup-content #imprimir {
    margin: 0 5px;
    cursor: pointer;
    font-size: 18px;
    background: transparent;
    border: none;
}

.view-paciente .popup .popup-content #imprimir img {
    max-width: 55px;
    z-index: 1;
}

.view-paciente .popup .popup-content h2 {
    background-color: rgba(155, 154, 154, 0.1);
    text-transform: uppercase;
    font-weight: normal;
    text-align: center;
}

.view-paciente .popup .popup-content #info-tfd,
#info-beneficiario,
#beneficios,
#extras {
    margin: 20px 0;
    text-align: left;
}

.view-paciente .popup .popup-content #info-tfd,
#info-beneficiario,
#beneficios,
#extras p {
    line-height: 30px;
}

.view-paciente .popup .popup-content #info-tfd,
#info-beneficiario,
#beneficios,
#extras span {
    padding-top: 10px;
}

.view-paciente .popup .popup-content #info-tfd,
#info-beneficiario,
#beneficios,
#extras p,
span {
    margin-right: 50px;
}

.view-paciente .popup .popup-content .content-footer {
    display: flex;
    text-align: center;
    padding-top: 20px;

}

.view-paciente .popup .popup-content .content-footer p {
    border-top: 2px solid black;
    width: 325px;
    margin: 0 16px;
}

.view-paciente .popup .popup-content .popup-footer .assinatura {
    position: absolute;
    bottom: 0;
    left: 0;
}

.ficha-paciente{
    width: 800px;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 10% auto;
    padding: 15px;
}
.ficha-paciente h2{
    width: 100%;
    margin: 10px 0;
    text-align: center;
}
.ficha-paciente input{
    font-size: 15px;
    padding: 2px;

}
.ficha-paciente button{
    margin-top: 10px;
    font-size: 15px;
    padding: 5px;

}

.ficha-paciente .dados-paciente, .dados-procedimento, .dados-acompanhante, .dados-despesa{
    display: flex;
    text-align: left;
    flex-direction: column;
    border-bottom: 1px solid black;
    font-weight: bold;
}
.tabela-relatorios{
    text-align: center;
    position: relative;
    padding: 10px;
}
.tabela-relatorios h2{
    margin-bottom: 20px;
}
.tabela-relatorios #rel-despesas{
    margin: 5% auto;
    width: 100;
}

#rel-despesas th{
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}
#rel-despesas td{
    color: rgba(0, 0, 0, 0.6);
}
.tabela-relatorios #calculo-total{
    text-align: right;
    margin-right: 10%;
}
.tabela-relatorios #calculo-total #result{
    color: red;
}


@media print {
    button {
        display: none;
    }

    body {
        -webkit-print-color-adjust: exact;
    }
    header{
        display: none;
    }

    h2 {
        border: none;
    }

    .view-paciente {
        overflow: hidden;
        border: none;
    }

    .view-paciente .popup {
        border: none;
        height: 100%;
    }

    .view-paciente .popup .popup-content {
        width: 100%;
        height: 100%;
        border: none;
    }

    .view-paciente .popup .popup-content h2 {
        text-align: center;
    }

    .view-paciente .popup .popup-content .content-topo {
        margin-right: 30px;
    }

    .view-paciente .popup .popup-content .content-footer {
        position: absolute;
        bottom: 15px;
    }
    .tabela-relatorios h2, label, select, button{
        display: none;
    }
}