/* WIDTH */

@media screen and (max-width: 1600px) {
    .ads-side-left {
        display: none;
    }

    .ads-side-right {
        display: none;
    }

    .ads-bottom {
        display: block;
    }

    .top {
        right: 120px;
    }

}

@media screen and (max-width: 1536px) {
    .top {
        right: 100px;
    }
}

@media screen and (max-width: 1440px) {
    .top {
        right: 60px;
    }
}

@media screen and (max-width: 1366px) {
    .top {
        right: 20px;
    }
}

@media screen and (max-width: 1280px) {
    .top {
        right: 5px;
    }
}

@media screen and (max-width: 1024px) {

    .header-container {
        min-width: auto;
    }

    .navbar-expand-sm .navbar-item:first-child {
        display: none;
    }

    .nav-item {
        margin: 0 15px;
    }

    .navbar .navbar-item .nav-item.user-profile-dropdown {
        margin-left: 10px;
    }

    .content-home {
        max-width: 980px;
    }

    .content-home .content-left h1 {
        font-size: 40px;
    }

    .content-home .content-left p {
        font-size: 15px;
    }

    .content-store-list {
        max-width: 980px;
    }

    .content-store-card.center {
        margin: 0 20px;
    }

    .content-footer .footer-info {
        max-width: 980px;
    }

    .layout-content-spacing {
        max-width: 980px;
    }

    .commands-card .sidebar-commands {
        margin-left: 36px;
    }

    .panel-commands {
        margin-right: 36px;
    }

    .admin-bar .navbar-item {
        display: flex!important;
        max-width: 980px;
        margin-top: 50px;
    }

    .layout-px-spacing {
        max-width: 980px;
    }

    .user-card .user-data .user-profile {
        padding-right: 20px;
    }

    .user-card .user-data .user-profile .user-name {
        margin-left: 12px;
    }

    .user-card .user-data .user-profile .user-name h1 {
        font-size: 28px;
    }

    .user-card .user-data .user-profile .user-name p {
        font-size: 16px;
    }
    
    .payment-card .payment-data {
        margin: 0px 25px;
    }
    
    .loading {
        width: 980px;
    }

    .dashboard-panel .content-panel.overlay--open::before {
        width: 895px;
    }

    .dashboard-content .dashboard-header .dashboard-title {
        flex: none;
    }

    .dashboard-content .dashboard-header .dashboard-button {
        flex: none;
    }
}

/* Mobile Responsive - max-width: 768px */
@media screen and (max-width: 768px) {
    .header-container {
        min-width: auto !important;
        width: 100%;
        padding: 0 10px;
    }

    .content-home {
        max-width: 100%;
        padding: 20px 15px;
    }

    .content-home .content-center h1 {
        font-size: 28px !important;
        line-height: 1.3;
    }

    .content-home .content-center p {
        font-size: 14px !important;
    }

    .content-home .buttons {
        flex-direction: column;
        gap: 15px;
    }

    .content-home .buttons .btn {
        width: 100%;
        margin: 0 !important;
    }

    .content-store-list {
        max-width: 100%;
        padding: 0 15px;
    }

    .content-store-card.center {
        margin: 0 auto 20px;
        width: 100%;
        max-width: 100%;
    }

    .content-footer .footer-info {
        max-width: 100%;
        padding: 0 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .layout-content-spacing {
        max-width: 100%;
        padding: 0 15px;
    }

    .layout-px-spacing {
        max-width: 100%;
        padding: 0 15px;
    }

    .navbar-expand-sm .navbar-item {
        width: 100%;
    }

    .nav-item {
        margin: 5px 0 !important;
    }

    .commands-card {
        flex-direction: column;
        height: auto;
    }

    .commands-card .sidebar-commands {
        margin-left: 0 !important;
        width: 100%;
        min-width: 100%;
    }

    .panel-commands {
        margin-right: 0 !important;
        width: 100%;
        margin-top: 20px;
    }

    .admin-bar .navbar-item {
        max-width: 100%;
        flex-wrap: wrap;
        padding: 0 15px;
    }

    .loading {
        width: 100% !important;
        max-width: 100%;
    }

    .content-client-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .content-client-item {
        min-width: 200px;
    }

    .top {
        right: 15px !important;
        bottom: 15px;
        width: 45px;
        height: 45px;
    }

    body {
        overflow-x: hidden;
    }

    .main-content {
        width: 100% !important;
        overflow-x: hidden;
    }
}

/* Mobile - max-width: 768px - menu-top-bar space-between */
@media screen and (max-width: 768px) {
    .menu-top-bar {
        justify-content: space-between !important;
        width: 100%;
        gap: 4px;
    }

    .menu-top-bar > li {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .menu-top-bar > li .nav-link {
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
    }

    .menu-top-bar .nav-item.selected .nav-link {
        padding: 10px 12px;
    }

    .menu-top-bar > li {
        min-width: 0;
    }
}

/* Very Small Mobile - max-width: 520px - show only icons, except selected */
@media screen and (max-width: 520px) {
    .menu-top-bar .nav-item .nav-link .menu-title {
        display: none !important;
    }

    /* Item selecionado: ícone e texto lado a lado */
    .menu-top-bar .nav-item.selected .nav-link {
        flex-direction: row !important;
        align-items: center;
        gap: 6px;
        padding: 8px 10px;
    }

    .menu-top-bar .nav-item.selected .nav-link .menu-title {
        display: inline !important;
        white-space: nowrap;
        font-size: 13px;
        line-height: 1.2;
        margin: 0;
    }

    .menu-top-bar .nav-item.selected .nav-link svg {
        flex-shrink: 0;
    }

    .menu-top-bar > li {
        flex: 0 0 auto;
    }

    .menu-top-bar > li .nav-link {
        padding: 8px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Ajustar tamanho dos ícones quando apenas ícone é exibido */
    .menu-top-bar .nav-item:not(.selected) .nav-link svg {
        width: 24px;
        height: 24px;
    }
}

/* Small Mobile - max-width: 480px */
@media screen and (max-width: 480px) {
    .content-home .content-center h1 {
        font-size: 24px !important;
    }

    .content-home .content-center p {
        font-size: 13px !important;
    }

    .content-store-card {
        padding: 15px;
    }

    .shopbox button {
        width: 100% !important;
        padding: 12px;
        font-size: 14px;
    }

    .top {
        right: 10px !important;
        bottom: 10px;
        width: 40px;
        height: 40px;
    }
}

/* HEIGHT */

@media screen and (max-height: 900px) {
    .finance-card .transaction-card {
        height: 310px;
    }

    .dashboard-panel .content-panel.overlay--open::before {
        height: 700px;
    }

    .dashboard-body .dashboard-cards {
        height: 565px;
    }
}

@media screen and (max-height: 864px) {
    .finance-card .transaction-card {
        height: 280px;
    }

    .dashboard-panel .content-panel.overlay--open::before {
        height: 675px;
    }

    .dashboard-body .dashboard-cards {
        height: 535px;
    }
}

@media screen and (max-height: 800px) {
    .finance-card .transaction-card {
        height: 230px;
    }

    .dashboard-panel .content-panel.overlay--open::before {
        height: 625px;
    }

    .dashboard-body .dashboard-cards {
        height: 485px;
    }
}

@media screen and (max-height: 768px) {
    .finance-card .transaction-card {
        height: 210px;
    }

    .dashboard-panel .content-panel.overlay--open::before {
        height: 600px;
    }

    .dashboard-body .dashboard-cards {
        height: 460px;
    }
}

@media screen and (max-height: 720px) {
    .finance-card .transaction-card {
        height: 170px;
    }

    .dashboard-panel .content-panel.overlay--open::before {
        height: 560px;
    }

    .dashboard-body .dashboard-cards {
        height: 425px;
    }
}