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

body {
    font-family: "Inter", Helvetica, Arial, sans-serif;
}

a {
    color: #1da3bf;
    text-decoration: underline;
}

a:hover {
    color: #113257;
}

p:last-child {
    margin: unset;
}

body.login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #acd3d9, #1da1cd);
    margin: 20px;
}

body.login .box {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 12px 20px -8px rgba(26,26,26,0.24), 0px 1px 0px 0px rgba(204,204,204,0.5) inset, 0px -1px 0px 0px rgba(0,0,0,0.17) inset, -1px 0px 0px 0px rgba(0,0,0,0.13) inset, 1px 0px 0px 0px rgba(0,0,0,0.13) inset;
}

body.login .box img {
    width: 100%;
    max-width: 150px;
}

body.login .box .title {
    margin: 24px 0;
}

body.login .box .title h1 {
    color: #303030;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2px;
}

body.login .box .title span {
    color: #616161;
    font-size: 14px;
}

body.login .box p {
    color: #303030;
    font-size: 14px;
}

form .grupo {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

form label {
    color: #303030;
    font-size: 14px;
    text-align: left;
}

form input, form select, form textarea {
    color: #303030;
    font-size: 16px;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    outline: unset;
    transition: all 0.2s ease-in-out;
}

form input:focus, form select:focus, form textarea:focus {
    border-color: #303030;
}

form button {
    cursor: pointer;
    width: 100%;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    background: #1da3bf;
    border: 1px solid #1da3bf;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    transition: all 0.2s ease-in-out;
}

form button:hover {
    background: #113257;
    border-color: #113257;
}

.body {
    display: flex;
    flex-direction: row;
}

.sidebar {
    width: 100%;
    max-width: 260px;
    height: 100vh;
    background: #fff;
    padding: 20px;
    text-align: center;
    box-shadow: -4px 0 10px #0003;
    z-index: 1;
}

.sidebar img {
    width: 100%;
    max-width: 160px;
    margin-bottom: 80px;
}

.sidebar ul {
    list-style: none;
    text-align: left;
}

.sidebar ul li:not(:last-child) {
    margin-bottom: 20px;
}

.sidebar ul li a, .sidebar ul li button {
    cursor: pointer;
    display: block;
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #303030;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    background: #f8f8f8;
    border: unset;
    transition: all 0.2s ease-in-out;
}

.sidebar ul li a:hover, .sidebar ul li.active a, .sidebar ul li button:hover {
    color: #fff;
    background: #1da3bf;
}

.sidebar hr {
    margin: 40px 0;
    border-color: #fff5;
}

.content {
    flex-grow: 1;
    padding: 40px;
    height: 100vh;
    background: #f8fbfc;
    overflow: auto;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
}

.header button {
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    background: #1da3bf;
    border: 1px solid #1da3bf;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    transition: all 0.2s ease-in-out;
}

.header button:hover {
    background: #113257;
    border-color: #113257;
}

.table {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-spacing: 0;
    font-size: 14px;
    text-align: left;
}

table tbody tr {
    transition: all 0.2s ease-in-out;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

table thead tr th, table tbody tr td {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

table tbody tr:last-child td {
    border-bottom: unset;
}

table tbody tr td.opcoes {
    display: flex;
    gap: 10px;
}

table tbody tr td.opcoes button {
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 100%;
    border: unset;
}

table tbody tr td.opcoes button.gerar_pdf {
    color: #fff;
    background: #000;
}

table tbody tr td.opcoes button.editar {
    color: #fff;
    background: #00a651;
}

table tbody tr td.opcoes button.remover {
    color: #fff;
    background: #e5252a;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 80%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px;
    z-index: 3;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 1px 3px 1px rgba(0,0,0,.08);
    border-radius: 8px;
    padding: 0 20px;
    text-align: center;
}

.modal p {
    font-size: 14px;
}

.modal .modal-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 20px 0;
    z-index: 1;
}

.modal .modal-header h3 {
    color: #2a2c32;
    font-weight: bold;
    font-size: 18px;
}

.modal .modal-header button {
    width: auto;
    cursor: pointer;
    background: unset;
    border: unset;
    color: #555;
    font-size: 18px;
    white-space: nowrap;
    padding: unset;
}

.modal .modal-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    z-index: 1;
}

.loop {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-bottom: 15px;
}

.loop .title {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.loop .title b {
    flex-grow: 1;
    text-align: left;
}

.loop .title button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
}

.adicionar_mais_tratamento {
    width: auto;
    margin-bottom: 15px;
}

.mensagem {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.mensagem.erro {
    color: #ff455b;
    background-color: #ffe1e3;
}

.mensagem.sucesso {
    color: #26ad59;
    background-color: #c3f3d6;
}

.mensagem i {
    margin-right: 5px;
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff9;
    border-radius: 8px;
    z-index: 3;
}

.loading:before {
    content: '';
    width: 48px;
    height: 48px;
    border: 5px solid #2a2c32;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: bold;
}

.badge.aguardando {
    color: #212529;
    background-color: #ffc107;
}

.badge.em_tratamento {
    color: #fff;
    background-color: #17a2b8;
}

.badge.realizado {
    color: #fff;
    background-color: #28a745;
}

.sidebar_mobile {
    display: none;
    position: fixed;
    right: 40px;
    bottom: 40px;
    font-size: 28px;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    color: #fff;
    background: #1da3bf;
    border: 1px solid #1da3bf;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    transition: all 0.2s ease-in-out;
}

.sidebar_mobile:hover {
    background: #113257;
    border-color: #113257;
}

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

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

@media (max-width: 800px) {
    .sidebar {
        display: none;
        position: fixed;
    }

    .content {
        padding: 20px;
    }

    .sidebar_mobile {
        display: block;
    }
}