@media screen {

    /* Estilos para os status dos dispositivos */
    .device-status .badge {
        font-size: 0.75em;
    }

    /* Animação para atualização de status */
    @keyframes pulse {
        0% {
            opacity: 1;
        }

        50% {
            opacity: 0.5;
        }

        100% {
            opacity: 1;
        }
    }

    .device-status.updating .badge {
        animation: pulse 1s infinite;
    }

    body {
        overflow: hidden;
    }

    html[data-bs-theme="light"] body {
        background: #f7f7f7;
    }

    .lead {
        font-size: 1.10rem;
    }

    .fa-3x {
        font-size: 3.5em !important;
    }

    .la,
    .las {
        font-size: 1.1em;
    }

    .form-label {
        font-weight: 500;
    }

    .navbar.navbar-expand-lg {
        display: flex;
    }

    .navbar.navbar-expand-lg div.container-fluid {
        height: 100%;
    }

    .pointer {
        cursor: pointer;
    }

    .preload {
        position: fixed;
        width: 100%;
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        align-content: center;
        transition: opacity 0.5s, background-color 0.5s;
    }

    .onload {
        position: relative;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s;
        min-height: 100vh;
    }

    .preload.load {
        opacity: 1 !important;
        z-index: 999999 !important;
        background-color: rgba(255, 255, 255, 0.5) !important;
        pointer-events: auto !important;
    }

    .preload img {
        animation: spin 7s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotateZ(0deg);
        }

        50% {
            transform: rotateZ(360deg);
        }

        100% {
            transform: rotateZ(0deg);
        }
    }

    .subscription-red {
        background: transparent;
        border-radius: 50%;
        border: hsl(2, 79%, 59%) 3px solid;
        width: 30px;
        height: 30px;
        font-weight: bold;
        font-size: .7em;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0px 0px 1px 1px #0000001a;
    }

    .subscription-green {
        background: transparent;
        border-radius: 50%;
        border: #53dc53 3px solid;
        width: 30px;
        height: 30px;
        font-weight: bold;
        font-size: .7em;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0px 0px 1px 1px #0000001a;
    }

    .subcription-area {
        margin: 12px;
    }

    .subcription-percent-red {
        border: hsl(2, 79%, 59%) 6px solid;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        font-size: 2em;
        background: transparent;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px;
    }

    .subcription-percent-green {
        border: #53dc53 6px solid;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        font-size: 2em;
        background: transparent;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px;
    }

    .socket-on {
        background: #53dc53;
        color: #fff;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        font-weight: bold;
        font-size: .7em;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0px 0px 1px 1px #0000001a;
    }

    .pulse {
        animation: pulse-animation 3s infinite;
    }

    @keyframes pulse-animation {
        0% {
            box-shadow: 0 0 0 0px rgba(136, 214, 147, 0.8);
        }

        100% {
            box-shadow: 0 0 0 10px rgba(136, 214, 147, 0);
        }
    }

    font {
        color: #9f9f9f;
        font-size: 13px;
        font-weight: 500;
    }

    h1 {
        font-size: 1.65em;
    }

    h2 {
        font-size: 1.55em;
    }

    h3 {
        font-size: 1.45em;
    }

    h4 {
        font-size: 1.35em;
    }

    h5 {
        font-size: 1.25em;
    }

    .h5-index {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 95%;
    }

    h1,
    h2,
    h3,
    h4,
    h5 {
        opacity: 0.9 !important;
    }

    a {
        text-decoration: none;
    }

    a.nav-link {
        display: flex;
        align-items: center;
    }

    .height {
        min-height: 100vh;
    }

    .login-i {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .login-i a>i {
        font-size: 2.5em;
        margin: 8px;
    }

    .background {
        background: url(../img/img-login.svg);
        background-position: bottom;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .form-control-login {
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 15px;
        padding-left: 20px;
    }

    .login {
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 16px;
        padding-left: 20px;
        color: #fff;
        background: #063b92;
    }

    .dropdown-menuIn {
        margin-left: -100px !important;
    }

    .map-size {
        height: 200px;
        width: 100%;
        border-radius: 5px;
        border: 0;
    }

    b {
        font-weight: 500;
    }

    .login:hover {
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 16px;
        padding-left: 20px;
        color: #fff;
        background: #000b2e;
        border-radius: 15px;
        box-shadow: 0 1rem 2rem #00124f57 !important;
    }

    .box-shadow-none {
        outline: none !important;
        box-shadow: none !important;
    }

    .btn.show,
    .btn:focus {
        border-color: transparent !important;
    }

    /***********************************************************************/
    blockquote {
        border-left: #063b92 6px solid;
        padding: 8px;
    }

    .navbar .nav-item i {
        font-size: 22px;
    }

    .navbar .nav-item {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    table th {
        font-weight: 500;
    }

    html[data-bs-theme="dark"] table {
        --bs-table-bg: #212529 !important;
        --bs-table-striped-bg: #2c3034 !important;
        --bs-table-striped-color: #fff !important;
        --bs-table-active-bg: #373b3e !important;
        --bs-table-active-color: #fff !important;
        --bs-table-hover-bg: #323539 !important;
        --bs-table-hover-color: #fff !important;
        color: #fff !important;
        border-color: #373b3e !important;
    }

    html[data-bs-theme="light"] .menu {
        background: #063b92;
    }

    html[data-bs-theme="light"] .menu.offcanvas-md {
        background: #063b92 !important;
    }

    html[data-bs-theme="dark"] .menu {
        background: #2b3035;
    }

    html[data-bs-theme="dark"] .menu.offcanvas-md {
        background: #2b3035 !important;
    }

    .menu {
        min-height: 100vh;
        max-height: 100vh;
        width: 270px !important;
        max-width: 270px !important;
        min-width: 270px !important;
        color: #fff;
        overflow: auto !important;
        padding-bottom: 30px;
        z-index: 1045;
    }

    .nav-link-menuLat {
        transition: 0.2s;
        padding: 12px;
        padding-left: 30px;
        font-size: 14px;
        font-weight: 490;
        text-decoration: none;
        color: #fff;
        opacity: 0.6;
        display: flex;
        align-items: center;
    }

    .nav-link-menuLat i {
        font-size: 24px;
        margin-right: 15px;
    }

    .nav-link-menuLat.active {
        font-size: 14.5px;
        color: #fff;
        border-left: 4px solid #fff;
        opacity: 1;
    }

    .nav-link-menuLat:hover {
        font-size: 14.5px;
        color: #fff;
        border-left: 4px solid #fff;
        opacity: 1;
    }

    .nav-link-menuLat-sube {
        transition: all 0.2s;
        padding: 10px;
        padding-left: 45px;
        font-size: 14px;
        text-decoration: none;
        color: #fff;
        opacity: 0.6;
    }

    .nav-link-menuLat-sube.active {
        padding: 10px;
        padding-left: 45px;
        font-size: 15px;
        color: #fff;
        opacity: 1;
    }

    .nav-link-menuLat-sube:hover {
        padding: 10px;
        padding-left: 45px;
        font-size: 15px;
        color: #fff;
        opacity: 1;
    }

    .nav-link-tabs {
        border-top-right-radius: 10px !important;
        border-top-left-radius: 10px !important;
        border: 1px rgba(0, 0, 0, .5) !important;
        min-width: 100px;
        text-align: center;
        text-decoration: none;
        background: #FFFFFF !important;
        color: #4e4e4e;
        transition: all 0.2s;
    }

    .nav-link-tabs.active {
        text-decoration: none;
        color: #fff !important;
        background: #063b92 !important;
    }

    .nav-link-tabs:hover {
        text-align: center;
        text-decoration: none;
        color: #fff !important;
        background: #063b92 !important;
    }

    html[data-bs-theme="light"] .content-area>nav {
        background: #fff !important;
    }

    html[data-bs-theme="dark"] .content-area>nav {
        background: #2b3035 !important;
    }

    .page-link.active {
        background: #063b92 !important;
        color: #fff !important;
    }

    .page-link:hover {
        background: #063b92 !important;
        color: #fff !important;
    }

    thead {
        font-size: 14px;
    }

    tbody {
        font-size: 14px;
    }

    table {
        margin-bottom: 0 !important;
    }

    .card {
        font-size: 14px;
    }

    html[data-bs-theme="dark"] .card {
        background: #2b3035;
    }

    .card-tab {
        border: none;
    }

    .condominium-card {
        background: #fff;
        display: flex;
        padding: 8px;
        border-radius: 12px;
        margin: 8px;
        width: 80px;
        height: 80px;
    }

    .dropdown-menu {
        border: none;
        box-shadow: 3px 4px 4px rgba(0, 0, 0, .05);
    }

    .page-link {
        border: 0.5px #ebe9ee solid;
        border-radius: 8px !important;
    }

    html[data-bs-theme="dark"] .page-link {
        border: 0 !important;
    }

    .page-link:hover {
        border-radius: 8px !important;
        background: #063b92;
        color: #fff;
    }

    .btn-close:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    .page-link.active {
        border-radius: 8px !important;
        background: #063b92;
        color: #fff;
    }

    .btn-primary {
        background: #063b92;
        color: #fff;
        border: none !important;
    }

    .swal2-confirm {
        background: #063b92 !important;
        color: #fff !important;
        border: none !important;
    }

    div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus {
        box-shadow: 0 0 0 3px rgba(102, 177, 224, 0.5) !important;
    }

    .btn-primary:hover {
        background: #063b92;
        color: #fff;
    }

    .pagination .page-link {
        margin: 3px !important;
    }

    .pagination .page-item.active .page-link {
        border-color: transparent;
        background: #063b92;
        color: #fff !important;
    }

    .content-area {
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        overflow: hidden;
    }

    .content-area>div.container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .navbar.top {
        background: #063b92 !important;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }

    html[data-bs-theme="light"] .footer {
        background: #fff !important;
    }

    html[data-bs-theme="dark"] .footer {
        background: #2b3035 !important;
    }

    .navbar-toggler {
        outline: none;
        border: 0 !important;
    }

    .navbar-toggler:focus {
        text-decoration: none;
        outline: 0;
        box-shadow: none;
    }

    .off-canvas-visible {
        display: none !important;
    }

    .navbar-brand {
        font-size: 1.20rem;
        opacity: 0.9;
    }
}

@media screen and (min-width: 991px) {
    ::-webkit-scrollbar {
        width: 8px;
    }

    html[data-bs-theme="light"] ::-webkit-scrollbar-thumb {
        transition: 0.3s;
        -webkit-border-radius: 0px;
        background: #063b92;
    }

    html[data-bs-theme="light"] ::-webkit-scrollbar-thumb:hover {
        background: #063b92;
        cursor: pointer;
    }

    ::-webkit-scrollbar-track {
        background-color: transparent;
    }

    html[data-bs-theme="dark"] ::-webkit-scrollbar {
        width: 20px;
    }

    html[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
        transition: all 0.3s;
        background-color: rgba(0, 0, 0, .3);
        border-radius: 20px;
        border: 6px solid transparent;
        background-clip: content-box;
    }

    html[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0, 0, 0, .5);
    }
}

@media screen and (max-width: 991px) {
    table {
        white-space: nowrap;
    }

    html {
        font-size: 11pt;
    }

    .navbar-brand {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: none;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }

    .nav-item .nav-link {
        padding: 8px !important;
    }

    .mobile-hidden {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .off-canvas-visible {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

@media screen and (max-width: 512px) {
    html {
        font-size: 10pt;
    }

    button {
        font-weight: bold;
    }

    .card-tab h5 {
        font-size: 1.1em;
    }
}