@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --light: #cecedbe1;
    --primary: #2e5a88;
    --light-primary: #CFE8FF;
    --grey: #eee;
    --dark-grey: #AAAAAA;
    --dark: #363949;
    --danger: #D32F2F;
    --light-danger: #FECDD3;
    --warning: #FBC02D;
    --light-warning: #FFF2C6;
    --success: #1976D2;
    --light-success: #BBF7D0;
    --light-blue: #76b0ea;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    user-select: none;
}

.bx {
    font-size: 1.7rem;
}

a {
    text-decoration: none;
    color: white;
}

li {
    list-style: none;
}

html {
    overflow-x: hidden;
}

body.dark {
    --light: #181a1e;
    --grey: #25252c;
    --dark: #fbfbfb
}

body {
    background: var(--grey);
    overflow-x: hidden;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--light);
    width: 230px;
    height: 100%;
    z-index: 1000;
    overflow-x: hidden;
    scrollbar-width: none;
    transition: all 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar.close {
    width: 60px;
}

.sidebar .logo {
    font-size: 24px;
    font-weight: 700;
    height: 56px;
    display: flex;
    align-items: center;
    color: var(--primary);
    z-index: 500;
    padding-bottom: 20px;
    box-sizing: content-box;
}

.sidebar .logo .logo-name span {
    color: var(--dark);
}

.sidebar .logo .bx {
    min-width: 60px;
    display: flex;
    justify-content: center;
    font-size: 2.2rem;
}

.sidebar .side-menu {
    width: 100%;
    margin-top: 48px;
}

.sidebar .side-menu li {
    height: 48px;
    background: transparent;
    margin-left: 6px;
    border-radius: 48px 0 0 48px;
    padding: 4px;
}

.sidebar .side-menu li.active {
    background: var(--grey);
    position: relative;
}

.left-image {
    position: relative;
    top: 10px;
    right: -20px;
    max-height: 50px;
    z-index: -1;
}

.sidebar .side-menu li.active::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: -40px;
    right: 0;
    box-shadow: 20px 20px 0 var(--grey);
    z-index: -1;
}

.sidebar .side-menu li.active::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    bottom: -40px;
    right: 0;
    box-shadow: 20px -20px 0 var(--grey);
    z-index: -1;
}

.sidebar.close .submenu-header .toggle-submenu span {
    display: none;
}

.sidebar.close .submenu-header .toggle-submenu2 span {
    display: none;
}

.sidebar.close .submenu-header .toggle-submenu3 span {
    display: none;
}

.sidebar.close .submenu-header .toggle-submenu4 span {
    display: none;
}

.sidebar.open .toggle-submenu {
    display: block;
}

.sidebar.close .versao-footer span {
    display: none;
    /* Oculta o texto */
}

.versao-footer span {
    display: block;
    background-color: var(--light);
    position: fixed;
    bottom: 0;
    font-weight: 500;
    font-size: 15px;
    padding: 10px;
    margin-left: -15px;

}

.versao-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 15px;
    font-weight: 500;
    box-sizing: border-box;
    z-index: 10;
    color: var(--dark)
}

.versao-footer dark {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    color: var(--light-warning);
    font-size: 15px;
    font-weight: 500;
    box-sizing: border-box;
}

.sidebar .side-menu li a {
    width: 100%;
    height: 100%;
    background: var(--light);
    display: flex;
    align-items: center;
    border-radius: 48px;
    font-size: 16px;
    color: var(--dark);
    white-space: nowrap;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

.sidebar .side-menu li.active a {
    color: var(--primary);
}

.sidebar.close .side-menu li a {
    width: calc(48px - (4px * 2));
    transition: all 0.3s ease;
}

.sidebar .side-menu li a .bx {
    min-width: calc(60px - ((4px + 6px) * 2));
    display: flex;
    font-size: 1.6rem;
    justify-content: center;
}

.sidebar .side-menu button.logout {
    color: var(--light);
    background-color: #1976D2;
    border-radius: 20px;
    border-color: transparent;
    cursor: pointer;
    text-align: center;

}

.sidebar .side-menu .submenu-header {
    height: 40px;
    /* Altura do item principal do submenu */
    background: var(--light);
    margin-left: 15px;
    border-radius: 24px 0 0 24px;
    padding: 4px;
}

.sidebar .side-menu .submenu-header a {
    width: 100%;
    height: 100%;
    background: var(--light);
    display: flex;
    align-items: center;
    border-radius: 48px;
    font-size: 16px;
    color: var(--dark);
    white-space: nowrap;
    overflow-x: hidden;
    transition: all 0.3s ease;
    font-weight: bold;

}

/* Submenu items - ocultar por padrão */
.sidebar .side-menu .submenu-item {
    display: none;
    /* Oculto inicialmente */

}

.sidebar .side-menu .submenu-item3 {
    display: none;
    /* Oculto inicialmente */

}

.sidebar .side-menu .submenu-item4 {
    display: none;
    /* Oculto inicialmente */

}

.sidebar .side-menu .submenu-header a .bx {
    min-width: calc(40px - ((4px + 6px) * 2));
    display: flex;
    font-size: 1.4rem;
    justify-content: center;
}

/* Submenu container */
.sidebar .side-menu li .submenu {
    list-style-type: none;
    padding-left: 20px;
    /* Ajuste o padding conforme necessário */
    display: none;
    /* Itens do submenu ocultos por padrão */
    margin-top: 8px;
}

/* Estilo para os itens do submenu */
.sidebar .side-menu li .submenu li {
    height: 40px;
    /* Altura dos itens do submenu */
    background: var(--light);
    margin-left: 0;
    border-radius: 24px 0 0 24px;
    padding: 4px;
}

.sidebar .side-menu li .submenu li a {
    width: 100%;
    height: 100%;
    background: var(--light);
    display: flex;
    align-items: center;
    border-radius: 24px;
    font-size: 14px;
    color: var(--dark);
    white-space: nowrap;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

.sidebar .side-menu li .submenu li a .bx {
    min-width: calc(40px - ((4px + 6px) * 2));
    display: flex;
    font-size: 1.4rem;
    justify-content: center;
}

/* Submenu toggle (aplicar um ícone ou sinal para abrir/fechar) */
.sidebar .side-menu li.active .submenu {
    display: block;
    /* Mostrar submenu quando o item pai estiver ativo */
}

.content {
    position: relative;
    width: calc(100% - 230px);
    left: 230px;
    transition: all 0.3s ease;
}

.sidebar.close~.content {
    width: calc(100% - 60px);
    left: 60px;
}

.content nav {
    height: 56px;
    background: var(--light);
    padding: 0 24px 0 0;
    align-items: center;
    grid-gap: 24px;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
}


.content nav a {
    color: var(--dark);
}

.content nav .bx.bx-menu {
    cursor: pointer;
    color: var(--dark);
    margin-top: 17px;
}

.content nav form {
    max-width: 400px;
    width: 100%;
    margin-right: auto;
}

.content nav form .form-input {
    display: flex;
    align-items: center;
    height: 36px;
}

.form-input {
    display: none;
}

.content nav form .form-input input {
    flex-grow: 1;
    padding: 0 16px;
    height: 100%;
    border: none;
    background: var(--grey);
    border-radius: 36px 0 0 36px;
    outline: none;
    width: 100%;
    color: var(--dark);
}

.content nav form .form-input button {
    width: 80px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary);
    color: var(--light);
    font-size: 18px;
    border: none;
    outline: none;
    border-radius: 0 36px 36px 0;
    cursor: pointer;
    position: unset;
}

.content nav .notif {
    font-size: 20px;
    position: relative;
}

.content nav .notif .count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--danger);
    border-radius: 50%;
    color: var(--light);
    border: 2px solid var(--light);
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content nav button.logout {
    color: red;
    background-color: transparent !important;
    border-radius: 20px !important;
    border-color: transparent !important;
    cursor: pointer !important;
    text-align: center !important;
    padding: 2px 16px !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 100 !important;
    width: auto !important;
    opacity: 1 !important;
}

.content nav .theme-toggle {
    display: block;
    min-width: 50px;
    height: 25px;
    background: var(--grey);
    cursor: pointer;
    position: absolute !important;
    border-radius: 25px;
    top: 17px !important;
    transition: all 0.3s ease;

}

#icon-container {
    display: flex;
    /* Use flexbox para alinhar os ícones lado a lado */
}

#icon-container>i {
    font-size: 20px;
    /* Tamanho dos ícones */
    margin-right: 10px;
    /* Espaçamento entre os ícones */
}

#icon-theme1 {
    color: white;
}

#icon-theme2 {
    color: black;
}



.content nav .theme-toggle::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    bottom: 2px;
    width: calc(25px - 4px);
    background: var(--primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.content nav #theme-toggle:checked+.theme-toggle::before {
    left: calc(100% - (25px - 4px) - 2px);
}

.content main {
    width: 100%;
    padding: 36px 24px;
    max-height: calc(100vh - 56px);
}

.content main .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 16px;
    flex-wrap: wrap;
}

.content main .header .left h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: -40px;
    color: var(--dark);
}

.content main .header .left .breadcrumb {
    display: flex;
    align-items: center;
    grid-gap: 16px;
}

.content main .header .left .breadcrumb li {
    color: var(--dark);
}

.content main .header .left .breadcrumb li a {
    color: var(--dark-grey);
    pointer-events: none;
}

.content main .header .left .breadcrumb li a.active {
    color: var(--primary);
    pointer-events: none;
}

.content main .header .report {
    height: 36px;
    padding: 0 16px;
    border-radius: 6px;
    background: var(--primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    grid-gap: 10px;
    font-weight: 500;
}

.content main .insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-gap: 24px;
    margin-top: 36px;
}

.content main .insights li {
    padding: 24px;
    background: var(--light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    grid-gap: 24px;
    cursor: pointer;
}

.content main .insights li .bx {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content main .insights li:nth-child(1) .bx {
    background: var(--light-primary);
    color: var(--primary);
}

.content main .insights li:nth-child(2) .bx {
    background: var(--light-warning);
    color: var(--warning);
}

.content main .insights li:nth-child(3) .bx {
    background: var(--light-success);
    color: var(--success);
}

.content main .insights li:nth-child(4) .bx {
    background: var(--light-danger);
    color: var(--danger);
}

.content main .insights li .info h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
}

.content main .insights li .info p {
    color: var(--dark);
}

.content main .bottom-data {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 24px;
    margin-top: 24px;
    width: 100%;
    color: var(--dark);
}

.content main .bottom-data>div {
    border-radius: 20px;
    background: var(--light);
    padding: 24px;
    overflow-x: auto;
}

.content main .bottom-data .header {
    display: flex;
    align-items: center;
    grid-gap: 16px;
    margin-bottom: 24px;
}

.content main .bottom-data .header h3 {
    margin-right: auto;
    font-size: 24px;
    font-weight: 600;
}

.content main .bottom-data .header .bx {
    cursor: pointer;
}

.content main .bottom-data .orders {
    flex-grow: 1;
    flex-basis: 500px;
}

.content main .bottom-data .orders table {
    width: 100%;
    border-collapse: collapse;
}

.content main .bottom-data .orders table th {
    padding-bottom: 12px;
    font-size: 13px;
    text-align: left;
    border-bottom: 1px solid var(--grey);
}

.content main .bottom-data .orders table td {
    padding: 16px 0;
}

.content main .bottom-data .orders table tr td:first-child {
    display: flex;
    align-items: center;
    grid-gap: 12px;
    padding-left: 6px;
}

.content main .bottom-data .orders table td img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.content main .bottom-data .orders table tbody tr {
    cursor: pointer;
    transition: all 0.3s ease;
}

.content main .bottom-data .orders table tbody tr:hover {
    background: var(--grey);
}

.content main .bottom-data .orders table tr td .status {
    font-size: 10px;
    padding: 6px 16px;
    color: var(--light);
    border-radius: 20px;
    font-weight: 700;
}

.content main .bottom-data .orders table tr td .status.completed {
    background: var(--success);
}

.content main .bottom-data .orders table tr td .status.process {
    background: var(--primary);
}

.content main .bottom-data .orders table tr td .status.pending {
    background: var(--warning);
}

.content main .bottom-data .reminders {
    flex-grow: 1;
    flex-basis: 300px;
}

.content main .bottom-data .reminders .task-list {
    width: 100%;
}

.content main .bottom-data .reminders .task-list li {
    width: 100%;
    margin-bottom: 16px;
    background: var(--grey);
    padding: 14px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content main .bottom-data .reminders .task-list li .task-title {
    display: flex;
    align-items: center;
}

.content main .bottom-data .reminders .task-list li .task-title p {
    margin-left: 6px;
}

.content main .bottom-data .reminders .task-list li .bx {
    cursor: pointer;
}

.content main .bottom-data .reminders .task-list li.completed {
    border-left: 10px solid var(--success);
}

.content main .bottom-data .reminders .task-list li.not-completed {
    border-left: 10px solid var(--danger);
}

.content main .bottom-data .reminders .task-list li:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .content {
        width: calc(100% - 60px);
        left: 200px;
    }

}

@media screen and (max-width: 576px) {

    .content nav form .form-input input {
        display: none;
    }

    .content nav form .form-input button {
        width: auto;
        height: auto;
        background: transparent;
        color: var(--dark);
        border-radius: none;

    }

    .content nav form.show .form-input input {
        display: block;
        width: 100%;
    }

    .content nav form.show .form-input button {
        width: 36px;
        height: 100%;
        color: var(--light);
        background: var(--danger);
        border-radius: 0 36px 36px 0;

    }

    .content nav form.show~.notif,
    .content nav form.show~.profile {
        display: none;
    }

    .content main .insights {
        grid-template-columns: 1fr;
    }

    .content main .bottom-data .header {
        min-width: 340px;
    }

    .content main .bottom-data .orders table {
        min-width: 340px;
    }

    .content main .bottom-data .reminders .task-list {
        min-width: 340px;
    }

}

.iframe-container {
    position: static;
    width: 100%;
    height: 100vh;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.profile-details{
    display: flex;
    min-width: 50px;
    height: 25px;
    cursor: pointer;
    border-radius: 10px;
    top: -14px !important;
    right: 30px !important;
    transition: all 0.3s ease;
    flex-direction: row-reverse;
}

.name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}
.alert {
    color: red;
    font-size: 11px;
    font-weight: 600;
}

.topo-cabecalho{
    color: var(--dark); 
    display: flex; 
    flex-direction:row; 
    flex-wrap: wrap; 
    margin-left: 3vh; 
    padding:10px; 
    margin-top: 20px; 
    font-family:Poppins, sans-serif;
    gap: 10px;
    align-items: baseline;
}

.sub-cabecalho{
    font-size: 10px;
    color: var(--dark);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-left: 4vh;
    font-family: Poppins, sans-serif;
    margin-top: -20px;
}
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    z-index: 1001;
}

/* Tooltip oculta por padrão */
.tooltip-text {
    visibility: hidden;
    width: 180px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -90px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Flecha da tooltip */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Exibir a tooltip ao passar o mouse */
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
.dark .swal2-popup {
    background-color: #363949;
    color: white;
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 5px 0;
    flex-direction: row-reverse;
    justify-content: space-between;
    
    
}
.dropdown select {
    padding: 10px;
    border: none;
    background: white;
    outline: none;
    color: #555;
    font-family: 'Poppins', sans-serif;
    padding: 0.5rem 0.7rem;
    font-size: 1rem;
    border: 2px solid var(--primary);
    border-radius: 5px;
}

.dropdown select:focus {
    border-bottom: 2px solid rgba(52, 75, 209, 0.6);
}

.dropdown select:focus ~ h5,
.dropdown select:not([value=""]) ~ h5 {
    top: -10px;
    font-size: 10px;
    color: rgba(52, 75, 209, 0.6);
}


.dropdown select:focus ~ .i i,
.dropdown select:not([value=""]) ~ .i i {
    color: rgba(52, 75, 209, 0.6);
}
.dropdown option {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: none;
    padding: 0.5rem 0.7rem;
    font-size: 1.2rem;
    color: #555;
    font-family: 'poppins', sans-serif;
}

.dark .dropdown select {
    background-color: #363949;
    color: white;
}
.dark .dropdown select:focus {
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
}
.dark .dropdown select:focus ~ h5,
.dark .dropdown select:not([value=""]) ~ h5 {
    color: rgba(255, 255, 255, 0.6);
}
.dark .dropdown select:focus ~ .i i,
.dark .dropdown select:not([value=""]) ~ .i i {
    color: rgba(255, 255, 255, 0.6);
}
.dark .dropdown option {
    color: white;
}