body {
    margin: 0;
    font-family: 'Inter', sans-serif;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

p {
    font-size: 1rem;
}

.logo-bar {
    background: #fff;
    padding: .25rem .25rem;
    height: 50px;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-bar img {
    max-height: 40px;
}

.wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #F7F9FA;
}

.sidebar {
    width: 230px;
    background-color: #222D32;
    transition: width 0.3s ease;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-x: hidden;
    z-index: 1030;
}

.sidebar.collapsed {
    width: 50px;
}

.sidebar.hidden-mobile {
    display: none;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    position: relative;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar a.nav-link {
    color: #b8c7ce;
    font-size: .95rem;
}

.sidebar a.nav-link:hover {
    color: #ffffff;
    background-color: #1E282C;
}

.sidebar a.nav-link.active {
    color: #ffffff;
    background: #1E282C;
}

.sidebar .menu-text {
    margin-left: 0.5rem;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .menu-text {
    display: none;
}

.fa-chevron-down {
    font-size: .8rem;
}

.submenu-inline {
    max-height: 0;
    overflow: hidden;
    padding-left: 2rem;
    color: #8aa4af;
    background-color: #2C3B41;
    transition: max-height 0.3s ease;
}

.submenu-inline li a {
    color: #8aa4af !important;
    font-size: .8rem !important;
    padding: .3rem 0rem !important;
}

.submenu-inline li a:hover {
    color: #ffffff !important;
    background-color: transparent !important;
}

.submenu-inline.show {
    max-height: 500px;
    /* ajustável conforme necessidade */
}

.floating-submenu {
    font-size: .9rem;
    font-weight: 500;
    position: fixed;
    left: 48px;
    top: 0;
    background-color: #2C3B41;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 180px;
    z-index: 1050;
    animation: fadeIn 0.3s ease;
}

.floating-submenu .submenu-title {
    font-size: .95rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    color: #ffffff;
    background-color: #1E282C;
    border-radius: 3px;
}

.floating-submenu .submenu-title a {
    color: #ffffff;
    display: block;
    text-decoration: none;
}

.floating-submenu .submenu-title a:hover {
    color: #b8c7ce;
}

.floating-submenu li a {
    font-size: .8rem !important;
    color: #8aa4af;
    padding: .4rem 1rem;
    display: block;
}

.floating-submenu li a:hover {
    color: #ffffff;
    text-decoration: none;
}

.floating-submenu::before {
    content: attr(data-title);
    display: block;
    border-radius: 3px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-wrapper {
    margin-left: 230px;
    transition: margin-left 0.3s ease;
    width: 100%;
}

.sidebar.collapsed~.content-wrapper {
    margin-left: 50px;
}

.sidebar.hidden-mobile~.content-wrapper {
    margin-left: 0;
}

.topbar {
    background-color: #3C8DBC;
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content {
    padding-top: 25px;
    padding-left: 40px;
    padding-right: 40px;
}

.fa-rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.content-header {
    padding: 15px 40px 20px 40px;
    background-color: #ffffff;
}

.content-header>h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
    padding-top: 10px;
}

.box {
    border: 1px solid rgb(234, 234, 234);
    box-shadow: rgba(9, 15, 37, 0.04) 0px 15px 29px;
    border-radius: 4px;
    padding: 15px 15px 15px 15px;
    background: #ffffff;
    margin-bottom: 20px;
}

.btn-toggle {
    color: #ffffff;
    border: none;
    background: transparent;
}

.btn-toggle:hover {
    color: #f4f4f4;
    background-color: #3C8DBC;
}

.table {
    margin-bottom: 0;
}

.table > thead > tr > th {
    border-bottom: 2px solid #f4f4f4;
}

.table thead th {
    font-size: .7rem;
    text-transform: uppercase;
}

.table td,
.table th {
    padding: .7rem .5rem;
    border-top: none !important;
}

.table tbody tr:nth-of-type(odd) {
    background-color: #F7F9FA;
}

.table tbody tr:hover {
    background-color: #F7F9FA;
}

.table>tbody>tr>td {
    font-size: .9rem;
}

.fa-angle-double-right {
    font-size: .5rem;
}

/*.table a {
    color: #3c8dbc;
}*/

.box.content-max {
    max-width: 1240px;
    margin: auto;
    padding: 25px 25px 15px 25px;
    margin-bottom: 30px;
}

label {
    font-size: .9rem;
    font-weight: 600;
}

.form-check-input {
    margin-left: 0;
}

.form-check-label {
    margin-left: 20px;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 104px;
        height: calc(100% - 104px);
        width: 230px;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
    }

    .sidebar .logo-bar {
        display: none;
    }

    .sidebar.show-mobile {
        transform: translateX(0);
    }

    .content {
        padding-top: 15px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .content-header {
        padding: 15px 10px 20px 10px;
    }

    .content-wrapper {
        margin-left: 0 !important;
    }

    .content-wrapper.shifted {
        transform: translateX(230px);
        transition: transform 0.3s ease;
    }

    .sidebar.collapsed {
        width: 100%;
    }

    .floating-submenu {
        display: none !important;
    }
}



body.login {
    background-color: #EEF0F4;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.login-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.7s ease-out;
    margin: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo-login {
    display: block;
    margin: 10px auto 30px auto;
    max-width: 300px;
}

.form-login .form-group {
    position: relative;
}

.form-login .form-control {
    padding-right: 40px;
}

.form-login .form-group i {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #999999;
    pointer-events: none;
}

.form-login .form-group a {
    font-size: 0.9em;
}

.pointer {
    cursor: pointer;
}