/* public/css/style.css */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::after,
*::before {
    clear: both;
}

:root {
    --primary-color: #4C2779;
    --primary-color-rgb: 76, 39, 121;
}

.invisible {
    display: none !important;
}

/* Estilos gerais */
body {
    font-family: 'Montserrat', sans-serif;
    /* font-family: Arial, sans-serif; */
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

.wrapper {
    width: 100%;
    position: relative;
}

.container {
    width: 80%;
    margin: 0 auto;
    position: relative;
}

/* Estilo para o formulário de login */
.login-container {
    width: 100%;
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #45a049;
}

/* Estilos para a tabela de empresas */
.table-container {
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px 0;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.table-responsive {
    width: 100%;
    min-width: 768px;
    padding: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #f2f2f2;
}

table td button {
    padding: 5px 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.td_b {
    padding: 5px 10px;
    background-color: #085;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.td_b_a {
    padding: 5px 10px;
    background-color: #914;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}


.td_b_a:hover {
    background-color: #E16;
}

.td_b:hover {
    background-color: #1C8;
}

table td button:hover {
    background-color: #0056b3;
}

.navbar {
    background-color: #333;
    overflow: hidden;
}

.navbar a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

.navbar a.active {
    background-color: #4CAF50;
    color: white;
}

.content {
    padding: 20px;
}


.navi {
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: white;
    position: -webkit-sticky;
    position: sticky;
    z-index: 19009;
    box-shadow: 0 -5px 0 rgba(0, 0, 0, 0.1), 0 0 2px rgba(0, 0, 0, 0.1);
}

.navi .container {
    width: 80%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
}

.navi .navbar-items {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.ml-auto {
    margin-left: auto;
}

.navi a {
    color: #000;
}

.navi .navbar-link.icon {
    width: 38px;
    height: 38px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.navi .navbar-link.icon:has(span) {
    background-color: var(--primary-color);
    color: white;
}


/* Estilos para Sidenav */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 19019;
}

.overlay.active {
    display: block;
}


.sidenav {
    top: 0;
    right: -100rem;
    position: fixed;
    width: 360px;
    height: 100%;
    max-width: 100%;
    z-index: 19029;
    background-color: white;
    overflow-y: auto;
    transition: right 0.5s ease-in-out;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.sidenav.active {
    right: 0;
}

.sidenav-top,
.sidenav-contain {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.sidenav-top {
    height: 15%;
    padding: 0 2.1rem;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidenav-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.sidenav-contain {
    align-items: flex-start;
    flex-direction: column;
    height: 85%;
}

.sidenav-link,
.sidenav-dropdown .toggle-dropdown {
    width: 100%;
    padding: 1.2rem 2.1rem;
    font-size: 18px;
    display: flex;
    align-items: center;
    color: #000;
    font-weight: 500;
    position: relative;
}

.dropdown-contain,
.sidenav-dropdown {
    width: 100%;
}

.sidenav-dropdown .toggle-dropdown i {
    transition: 0.5s ease-in-out;
}

.sidenav-dropdown.active .toggle-dropdown i {
    transform: rotate(180deg);
}

.dropdown-contain {
    height: 0;
    overflow: hidden;
}

.sidenav-dropdown,
.dropdown-contain {
    display: flex;
    flex-direction: column;
}

.dropdown-link {
    padding: 1.2rem 3.85rem;
    font-size: 17px;
    color: #000;
    position: relative;
}

.sidenav-link::after,
.dropdown-link::after {
    content: '';
    top: 50%;
    left: 0;
    width: 4px;
    height: 0;
    position: absolute;
    background-color: var(--primary-color);
    transform: translateY(-50%);
    transition: height 0.25s ease-in-out;
}

.sidenav-link.active::after,
.dropdown-link.active::after,
.sidenav-link:hover::after,
.dropdown-link:hover::after {
    height: 100%;
}

.sidenav-dropdown .toggle-dropdown:hover,
.sidenav-link:hover,
.dropdown-link:hover {
    background-color: rgba(76, 39, 121, 0.2);
}

.sidenav-link.active,
.dropdown-link.active {
    color: white;
    background-color: rgba(76, 39, 121, 0.8);
    pointer-events: none;
}

/* Estilos de Sections */

.section-card,
.section-card-contain {
    padding: 0.175rem 0 0.5rem;
}

.section-title {
    margin-bottom: 2rem;
}

.section-title span {
    display: block;
    font-size: 1.35rem;
    font-weight: 500;
    margin: 1rem 0 0.5rem;
}

/* Section Card Flex */

.section-card-flex {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1rem;
    margin-right: -1rem;
}

.section-card-flex>div {
    padding-left: 1rem;
    padding-right: 1rem;
}

.card-flex {
    width: 100%;
    height: 100px;
    padding: 0.75rem 1rem;
    margin: 0.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #49546A;
    color: #fff;
}

.card-flex-count {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-flex-body {
    display: flex;
    align-items: center;
}

.card-flex-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    color: #000;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card-flex-btn:hover {
    border-color: white;
    background-color: transparent;
    color: white;
}

.section-card-flex-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 0.75rem;
    gap: 0.5rem;
    border-radius: 0.25rem;
    transition: 0.25s ease-in-out;
}

.section-card-flex-btn:hover,
.section-card-flex-btn:focus {
    opacity: 0.9;
    box-shadow: 0 0 0 0.2rem rgba(76, 39, 121, 0.5);
}



/*Estilos para modal*/

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 19039;
    background-color: rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    opacity: 0;
    pointer-events: none;
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-contain {
    --modal-width: 768px;
    top: -100%;
    width: var(--modal-width);
    max-width: 90%;
    min-height: 10px;
    margin: 1rem auto;
    position: relative;
    background-color: white;
    border-radius: 0.25rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: top .25s ease-in-out;
    overflow-y: auto;
}

.modal.show .modal-contain {
    top: 0;
}

.modal-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-card-flex {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.modal-title {
    display: block;
    font-weight: 500;
    font-size: 1.2rem;
    margin: 0.75rem 0 0.375rem;
}

.modal-action-close {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
}

.modal-action-close .line {
    display: block;
    width: 65%;
    height: 2px;
    transform: rotate(45deg);
    background-color: #212132;
    position: relative;
    pointer-events: none;
}

.modal-action-close .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #212132;
    transform: rotate(90deg);
}

.modal-body {
    padding: 1rem 0;
}

.mt-auto {
    margin-top: auto;
}


/* Wrapper Login */

.hidden {
    display: none;
}

.wrapper-login {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.contain-login-form {
    width: 360px;
    max-width: 95%;
    position: relative;
}

.tablist {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.05);
    border-radius: 0.25rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    position: relative;
}


.tablist-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45%;
    padding: 0.85rem 0.15rem;
    border-radius: 0.15rem;
    font-size: 0.85rem;
    color: #000;
    font-weight: 500;
}

.tablist-activator {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0.5rem;
    width: 45%;
    left: 5%;
    padding: 1.35rem 0.15rem;
    border-radius: 0.15rem;
    background-color: #6835A6;
    transition: left 0.5s ease-in-out;
}

.tablist-item.active {
    color: white;
    z-index: 11;
}

.tablist-item:not(.active):hover {
    color: var(--primary-color);
}


.login-form-contain {
    width: 100%;
    border-radius: 0.25rem;
    background-color: white;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    padding: 1rem 1rem 1.8rem;
    min-height: 240px;
    gap: 0.5rem;
}

.login-form-contain input,
.login-form-contain button {
    outline: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.85rem 1rem;
    border-radius: 0.15rem;
    font-family: 'Montserrat';
    font-size: 0.9rem;
    transition: 0.25s ease-in-out;
}

.login-form-contain input:focus {
    border-color: rgba(76, 39, 121, 0.5);
    outline: 1.5px solid rgba(76, 39, 121, 0.4);
    outline-offset: 1.5px;
}

.login-form-contain button {
    color: white;
    border-color: transparent;
    cursor: pointer;
    margin-top: 0.75rem;
    background-color: var(--primary-color);
}

.login-form-contain small {
    font-weight: 600;
    margin-top: 0.75rem;
    font-size: 0.75rem;
}

.login-form-contain .forgot-pwd {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 450;
    font-family: 'Segoe UI';
}

.login-form-contain .forgot-pwd a {
    font-weight: bold;
}

.login-form-contain p {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    color: red;
    font-weight: 450;
}

.login-form-contain .title {
    display: block;
    font-weight: bold;
    margin-bottom: 0.05rem;
    font-size: 1.2rem;
}

.login-form-contain .title+small {
    display: block;
    margin-top: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}


.copyright {
    display: block;
    margin-top: 2rem;
    text-align: center;
}

.copyright a {
    font-weight: bold;
    text-decoration: underline;
}



/* Chat Suporte */
.chat-suporte {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 10px;
    padding: 0 1rem;
    max-height: 240px;
}

.chat-item {
    position: relative;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.chat-reply,
.chat-sent {
    width: 420px;
    max-width: 100%;
}

.chat-sent {
    margin-left: auto;
}

.chat-item p {
    font-size: 0.85rem;
    padding: 0.5rem 0.65rem;
}

.chat-sent p {
    background-color: rgba(112, 119, 147, 0.1);
    border-radius: 10px 0 10px 10px;
}

.chat-reply p {
    background-color: rgba(104, 53, 166, 0.4);
    border-radius: 0 10px 10px 10px;
}

.chat-identify {
    display: flex;
    align-items: center;
}

.chat-sent small {
    margin-left: auto;
    display: block;
    margin-bottom: 2px;
}



/* Profile */
.AsidePane {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 19038;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
}

.AsidePane.show {
    opacity: 1;
    pointer-events: all;
}


.AsidePane-Contain {
    top: 0;
    left: -100rem;
    width: 420px;
    max-width: 100%;
    height: 100%;
    position: fixed;
    background-color: white;
    z-index: 9999999999999991;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    transition: left .25s ease-in-out;
}

.AsidePane.show .AsidePane-Contain {
    left: 0;
}

.AsidePane-Header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1rem;
}

.profile-name {
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-name>div span {
    display: block;
    font-weight: bold;
}

.profile-name>span {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: #4C2779;
    color: white;
}

.AsidePane-Close {
    display: flex;
    margin-left: auto;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
}


.AsidePane-Body {
    position: relative;
    overflow-y: auto;
}

.AsidePane-Body ul li {
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.AsidePane-Body .actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 1rem;
}

.AsidePane-Body .actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    padding: 0.375rem 0.75rem;
    border-radius: 0.15rem;
    border: 1px solid transparent;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.AsidePane-Body .actions a:nth-child(1) {
    color: #4C2779;
    border-color:#4C2779;
}

.AsidePane-Body .actions a:nth-child(1):hover {
    color: white;
    background-color:#4C2779;
}

.AsidePane-Body .actions a:nth-child(2) {
    color: #EA1967;
    border-color:#EA1967;
}

.AsidePane-Body .actions a:nth-child(2):hover {
    color: white;
    background-color:#EA1967;
}

.profile-data {
    width: 100%;
    margin-top: 1rem;
    padding: 0 1rem;
}


.profile-data .item {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
    padding-bottom: 1rem;
    padding-top: 0.75rem;
    position: relative;
    padding-left: 1.75rem;
}

.profile-data .item::after {
    content: '';
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    aspect-ratio: 1/1;
    position: absolute;
    border-radius: 50%;
    background-color: #6A797E;
    transform: translateY(-50%);
}

.profile-data .item small {
    display: block;
}

.profile-data .item small:nth-child(2) {
    font-weight: bold;
    color: #343e41;
} 

.profile-data .group-title {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 13px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.75);
    margin: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}