@view-transition {
    navigation: auto;
}

:root {
    --blue: #53B4F1;
    --light-blue: #53B4F14C;
    --white: #ffffff;
    --dark-white: #dddddd;
    --gray: #808080FF;
    --black: #000000;
    --warning: #F0E68C;
    --error: #f3766e;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: var(--dark-white);
    margin: 0;
}

.password-label {
    position: relative;
    display: inline-block;
}

#password {
    padding-right: 30px;
    width: 275px;
}

#icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--white);
    height: fit-content;
    margin-bottom: 10px;
    box-shadow: 0 1px 5px var(--gray);
}

img {
    padding: 5px 10px;
    width: 200px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white);
    min-width: fit-content;
    margin: auto;
    padding: 0 20px 20px;
    border: 1px solid var(--dark-white);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--gray);
    width: fit-content;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: fit-content;
    position: static;
}

.rules {
    background-color: var(--light-blue);
    padding: 10px;
    border-radius: 5px;
    text-align: left;
    margin: 10px;
    font-size: 14px;
}

button {
    background-color: var(--blue);
    color: var(--white);
    border: none;
    margin: 7px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

button:hover {
    background-color: var(--blue);
}

.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.5);
    border-left-color: var(--blue);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

input, select {
    margin: 10px;
    width: 300px;
    border: 1px solid var(--blue);
    border-radius: 10px;
    padding: 10px;
}

input[type="file"] {
    position: relative;
    width: 350px;
}

input[type="file"]::before {
    position: absolute;
    pointer-events: none;
    top: 20px;
    left: 16px;
    height: 20px;
    width: 20px;
    content: "";
    background-image: url('/images/icon.svg');
}

input[type="file"]::after {
    position: absolute;
    pointer-events: none;
    top: 23px;
    left: 40px;
    color: var(--blue);
    content: "Escolher arquivos";
}

input[type="file"]::file-selector-button {
    width: 160px;
    color: transparent;
    border-radius: 4px;
    padding: 0 16px;
    margin-right: 10px;
    height: 40px;
    cursor: pointer;
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.16);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 200ms;
}

input[type="file"]::file-selector-button:hover {
    background-color: var(--white);
}

input[type="file"]::file-selector-button:active {
    background-color: var(--dark-white);
}

input[type="file"]::file-selector-button:active {
    background-color: var(--dark-white);
}

.img-logout {
    padding-right: 5px;
    width: 15px;
    height: 15px;
}

.logout {
    display: flex;
    align-items: center;
    margin: 5px;
    padding: 5px 15px 5px 5px;
    background-color: var(--white);
    color: var(--black);
}

.logout:hover {
    background-color: var(--blue);
}

.form-group .input {
    border: 1px solid var(--black);
    padding: 5px;
    border-radius: 5px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.popup {
    display: none;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    color: var(--black);
    padding: 20px;
    border: 2px solid var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
}

.popup .close-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 2px;
    right: 2px;
    color: var(--blue);
    background-color: var(--white);
    border: none;
    width: 25px;
    height: 25px;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    margin: 0;
    padding: 10px;
}

.checkmark {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #28a745;
    position: relative;
    margin: 10px;
}

.checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 40px;
    border: solid #28a745;
    border-width: 0 6px 6px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    animation: check 0.3s ease-in-out;
}

@keyframes check {
    0% {
        transform: translate(-50%, -60%) rotate(0);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -60%) rotate(45deg);
        opacity: 1;
    }
}

#message {
    padding: 10px;
    margin: 0;
}

#filesList {
    background-color: rgba(83, 180, 241, .3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 5px;
}

#filesList li {
    padding: 5px;
}

.xmark {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
    border: 3px solid #dc3545;
    border-radius: 50%;
}

.xmark::before,
.xmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 10px;
    background-color: #dc3545;
    border-radius: 3px;
    transform-origin: center;
    opacity: 0;
    animation: x-appear 0.3s ease-in-out forwards;
}

.xmark::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.xmark::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@keyframes x-appear {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

a {
    text-decoration: none;
}

.nav-itens {
    background-color: var(--white);
    color: var(--black);
    margin: 10px;
    padding: 10px 15px;
    font-size: 16px;
}

.nav-itens:hover {
    background-color: var(--white);
    color: var(--blue);
}

.itens {
    display: flex;
    justify-content: left;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: 10px;
    text-align: center;
    vertical-align: middle;
    transition: width 2s, height 4s;
}
th, td {
    padding: 10px;
    text-align: left;
}
th {
    background-color: var(--blue);
    color: var(--white);
}
.parent-row {
    background-color: var(--light-blue);
}
.child-row {
    display: none;
    background-color: var(--dark-white);
    border-top: 1px solid var(--blue);
}

tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}
tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.importacao {
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    border: 2px solid var(--blue);
    border-radius: 10px;
    align-items: center;
    margin: 15px;
    width: 100%;
}

.filtro {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
}

.tabela {
    width: fit-content;
    border: 2px solid var(--blue);
    border-radius: 10px;
    text-align: center;
    vertical-align: middle;
}

.item-row {
    display: none;
    background-color: var(--dark-white);
    width: 100%;
}

.item-table {
    border: 1px solid var(--blue);
    background-color: #EFEFEFFF;
    overflow: hidden;
}

.warn {
    background-color: var(--warning);
}

#expand, #expandItem {
    cursor: pointer;
}

.arrow {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.2s ease;
    font-size: 20px;
}

.expanded {
    transform: rotate(180deg);
    opacity: 1;
}

.item-row td {
    padding-top: 0;
}

.item-table td {
    padding-top: 10px;
}

.check {
    background-image: url('/images/check.png');
}

.x {
    background-image: url('/images/check.png');
}

.check, .x {
    width: 100%;
    height: 100%;
    vertical-align: bottom;
}

.tbodyFaturas .child-row td {
    padding: 10px;
}

.auditoria th {
    text-align: center;
    border: 1px solid var(--dark-white);
}

.auditoria th, td {
    border: 1px solid var(--dark-white);
}

.auditoria th:has(img) {
    text-align: center;
}

tr:first-child th:first-child {
    border-left: none;
}

tr:first-child th:last-child {
    border-right: none;
}

tr:first-child th {
    border-top: none;
}

.auditoria img {
    padding: 0;
}

.error {
    background-color: var(--error);
}

.tabcontent {
    width: 100%;
    display: none; !important
}

.tab {
    display: flex;
    overflow: hidden;
    background-color: var(--dark-white);
}

.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: .5s;
    margin: 0;
    border-radius: 0;
    width: 100%;
}

.tab button:hover {
    background-color: var(--light-blue);
}

.tab button.active {
    background-color: var(--blue);
}

.tabcontent {
    animation: fadeEffect .5s; /* Fading effect takes 1 second */
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Tooltip aparece acima */
.tooltip-container::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%; /* acima do container */
    left: -25px;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    margin-bottom: 6px;
    z-index: 10;
}

/* Mostrar a tooltip ao passar o mouse */
.tooltip-container:hover::after {
    opacity: 1;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Added classes to replace inline styles */
.active-nav {
    color: var(--blue);
}

.importacao-heading {
    margin: 10px;
}

.popup-message {
    padding: 10px;
}

.welcome-message {
    width: 60%;
    position: absolute;
    left: 20%;
}

.container-margin-top {
    margin-top: 10px;
}

/* Classes for auditoria.html */
.search-label {
    padding-left: 10px;
}

.hidden-filter {
    display: none;
    max-height: 59px;
}

.flex-align-center {
    display: flex;
    align-items: center;
}

.icon-small {
    width: 25px;
    height: 25px;
}

.table-row-display {
    display: table-row;
}

.table-header-height {
    height: 40px;
}

.icon-medium {
    width: 50px;
}

.confirmation-message {
    padding: 10px;
}

.flex-space-between {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.padding-10 {
    padding-left: 10px;
}