* {
    box-sizing: border-box;
}

html {
    background-color: #f5f7fb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fb;
    margin: 0;
    padding: 0;
    font-family: "Cerebri Sans",sans-serif;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #fafbfc !important;
    border-right: 1px solid #e9ecef;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
}

    .sidebar .navbar-brand {
        padding: 2rem 1rem;
        text-align: center;
    }

    .sidebar .navbar-brand-img {
        max-height: 40px;
        width: auto;
    }

    .sidebar .navbar-nav {
        padding: 0.5rem 0;
    }

    .sidebar .navbar-heading {
        padding: 1rem 1.5rem 0.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        color: #6c757d;
        letter-spacing: 0.05em;
    }

    .sidebar .nav-link {
        padding: 0.75rem 1.5rem;
        color: #495057;
        font-weight: 400;
        border: none;
        transition: all 0.2s;
    }

        .sidebar .nav-link:hover {
            color: #00394f;
            background-color: #edf2f9;
        }

        .sidebar .nav-link.active {
            color: #00394f;
            background-color: #edf2f9;
            font-weight: 500;
        }

    .sidebar .fe {
        width: 20px;
        text-align: center;
        margin-right: 0.75rem;
    }

.main-content {
    flex: 1;
    margin-left: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

    .topbar .container-fluid {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.input-group-merge .input-group-prepend {
    margin-right: 0;
}

.input-group-merge .form-control {
    border-right: 0;
}

.input-group-merge .input-group-text {
    background: #fff;
    border-left: 0;
}

/* Seletor de Estabelecimento */
.select3 {
    position: relative;
    cursor: pointer;
    min-width: 240px;
}

.select3-rendered {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
}

.select3-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-out;
}

    .select3-content.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.select3-search-container {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
}

.select3 .list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

    .select3 .list li {
        padding: 8px 12px;
        cursor: pointer;
        border-bottom: 1px solid #f8f9fa;
    }

        .select3 .list li:hover {
            background-color: #f8f9fa;
        }

        .select3 .list li.selected {
            background-color: #edf2f9;
            color: #00394f;
            font-weight: 500;
        }

.status-indicator-area {
    margin: 0 1rem;
}

.status-indicator {
    padding: 0.375rem 0.75rem;
    color: #fff;
    line-height: 1;
    border-radius: 0.375rem;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
}

    .status-indicator .circle {
        display: inline-block;
        width: 8px;
        height: 8px;
        background-color: #fff;
        border-radius: 50%;
        margin-right: 0.375rem;
    }

    .status-indicator.s1 {
        background-color: #00a99d;
    }

    .status-indicator .blink {
        animation: blinker 1s cubic-bezier(0.5, 0, 1, 1) infinite alternate;
    }

@keyframes blinker {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Avatar do Usuário */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #00394f;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    position: relative;
}

.avatar-sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.avatar .bg-success {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
}

.dropdown-toggle::after {
    display: none !important;
}

.status-indicator-area {
    margin: 0 1rem;
}

.status-indicator {
    padding: 0.5rem;
    color: #fff;
    line-height: 1;
    border-radius: 0.375rem;
    display: inline-block;
    font-size: 0;
    background-color: #00a99d;
}

    .status-indicator .circle {
        display: inline-block;
        width: 8px;
        height: 8px;
        background-color: #fff;
        border-radius: 50%;
    }

    .status-indicator.s1 {
        background-color: #00a99d;
    }

    .status-indicator .blink {
        animation: blinker 1s cubic-bezier(0.5, 0, 1, 1) infinite alternate;
    }

.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu {
    margin-top: 0.5rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    min-width: 180px;
    font-size: 0.875rem;
}

.dropdown-menu-start {
    right: 0;
    left: auto;
}

#session-timer {
    font-family: inherit;
    font-weight: normal;
    font-size: 0.875rem;
    color: inherit;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

    .dropdown-item .fe {
        width: 16px;
        margin-right: 0.5rem;
    }

.content {
    flex: 1;
    padding: 0.5rem !important;
    background: #f5f7fb;
}

.metro-layout {
    margin-top: 1rem !important;
}

    .metro-layout .items {
        display: grid;
        grid-template-columns: repeat(3, 120px);
        gap: 0.75rem;
        margin: 0;
        justify-content: start;
    }

.box {
     background: #ffffff !important;
     border: 1px solid #e9ecef;
     box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
     border-radius: 0.375rem;
     color: #495057;
     text-decoration: none;
     display: flex;
     flex-direction: column;
     justify-content: flex-start;
     transition: all 0.2s ease;
     animation: fadeIn 0.3s ease;
     width: 120px !important;
    height: 110px !important;
    padding: 0.75rem !important;
    background-color: #fff;
}

    .box::before {
        display: none;
    }

    .box:hover {
        transform: translateY(-4px);
        text-decoration: none;
        color: #00394f;
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
        border-color: #00394f;
    }

    .box.box-search {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

        .box.box-search .icon {
            font-size: 1.5rem !important;
            margin-bottom: 0.5rem !important;
        }

    .box .icon {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
        color: #00394f;
    }

    .box .caption-modulo {
        font-size: 0.65rem !important;
        font-weight: 600;
        opacity: 1;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.15rem !important;
    }
    
    .box .caption-pagina {
       font-size: 0.9rem !important; 
        font-weight: 600;
        line-height: 1.1 !important;
        color: #00394f;
    }

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    margin-bottom: 0.5rem !important;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
}

.card-title {
    margin-bottom: 0;
    font-weight: 600;
}

.card-body {
    padding: 0.75rem !important;
}

.jumbotron {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.row.mb-4 {
    margin-bottom: 1rem !important;
}

.row.mb-3 {
    margin-bottom: 1rem !important;
}

.list-group-item {
    border: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
}

    .list-group-item:first-child {
        border-top-left-radius: 0.375rem;
        border-top-right-radius: 0.375rem;
    }

    .list-group-item:last-child {
        border-bottom-left-radius: 0.375rem;
        border-bottom-right-radius: 0.375rem;
    }

.badge {
    font-size: 0.75em;
    font-weight: 500;
}

.row {
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }

    .topbar .container-fluid {
        flex-wrap: wrap;
    }

    .search-container {
        order: 3;
        max-width: 100%;
        margin: 1rem 0 0 0;
    }

    .content {
        padding: 0.25rem !important;
    }
}

.text-logo {
    font-size: 2.5em;
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.navbar-divider {
    margin: 1rem 0;
    border-top: 1px solid #dee2e6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-menu {
    padding: 0.5rem 0;
}

.menu-item {
    margin-bottom: 0.25rem;
}

.menu-header {
    padding: 0.75rem 1.5rem;
    color: #495057;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.85rem !important;
}

    .menu-header:hover {
        color: #00394f;
        background-color: #edf2f9;
    }

    .menu-header.active {
        color: #00394f;
        background-color: #edf2f9;
    }

    .menu-header .fe {
        width: 20px;
        margin-right: 0.75rem;
        font-size: 1.1rem !important;
        color: #6c757d;
    }

.menu-arrow {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
    color: #6c757d;
}

.menu-header.active .menu-arrow {
    transform: rotate(180deg);
    color: #00394f;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
}

    .submenu.show {
        max-height: 300px;
    }

    .submenu .nav-link {
        padding: 0.625rem 1.5rem 0.625rem 3rem;
        color: #6c757d;
        font-weight: 400;
        border: none;
        transition: all 0.2s;
        position: relative;
        font-size: 0.8rem !important;
    }

        .submenu .nav-link:hover {
            color: #00394f;
            background-color: #e9ecef;
        }

        .submenu .nav-link.active {
            color: #00394f;
            background-color: #e9ecef;
            font-weight: 500;
        }

        .submenu .nav-link::before {
            content: "";
            position: absolute;
            left: 2rem;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 4px;
            background-color: #6c757d;
            border-radius: 50%;
        }

        .submenu .nav-link:hover::before,
        .submenu .nav-link.active::before {
            background-color: #00394f;
        }

.sidebar-heading {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    background: #fafbfc !important;
    border-bottom: 1px solid #e9ecef !important;
}

.navbar-brand-img {
    max-height: 100px;
    width: auto;
}

.sidebar-menu {
    padding: 0.5rem 0 0 0;
}

.menu-header {
    padding: 0.75rem 1.5rem;
    color: #6c757d !important;
    font-weight: 500 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease-in-out;
    border: none;
    background: none !important;
    width: 100%;
    text-align: left;
    margin: 0;
    font-size: 1rem;
}

    .menu-header:hover {
        color: #495057 !important;
        background-color: transparent !important;
        text-decoration: none;
    }

    .menu-header[aria-expanded="true"] {
        color: #00394f !important;
        background-color: transparent !important;
        font-weight: 600 !important;
    }

    .menu-header .fe {
        width: 18px;
        margin-right: 0.75rem;
        font-size: 0.9rem;
        color: #6c757d;
    }

    .menu-header:hover .fe,
    .menu-header[aria-expanded="true"] .fe {
        color: #00394f;
    }

.menu-arrow {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
    color: #6c757d;
    margin-left: auto;
}

.menu-header[aria-expanded="true"] .menu-arrow {
    transform: rotate(180deg);
    color: #00394f;
}

.menu-header[aria-expanded="true"] {
    color: #00394f;
    background-color: #edf2f9;
}

.submenu {
    background-color: #fafbfc !important;
}

    .submenu .navbar-nav {
        padding: 0.25rem 0 !important;
    }

    .submenu .nav-item {
        list-style: none !important;
    }

    .submenu .nav-link {
        padding: 0.625rem 1.5rem 0.625rem 3rem;
        color: #6c757d;
        font-weight: 400;
        border: none;
        transition: all 0.2s;
        position: relative;
    }

        .submenu .nav-link:hover::before {
            background-color: #00394f;
        }

        .submenu .nav-link::before {
            display: none !important;
        }

        .submenu .nav-link:hover {
            color: #00394f !important;
            background-color: #edf2f9 !important;
        }

.sidebar-header {
    padding: 2rem 1rem !important;
    border-bottom: none !important;
}

.navbar-brand-img {
    max-height: 50px !important;
    width: auto;
}

.btn[style*="background: none"] {
    background: none !important;
    border: none !important;
    color: #6c757d;
    transition: all 0.2s ease;
    padding: 0.5rem !important;
}

    .btn[style*="background: none"]:hover {
        color: #00394f;
        background-color: #f8f9fa !important;
        border-radius: 0.375rem;
    }

.fe.fe-bell[style*="font-size: 1.4rem"] {
    font-size: 1.4rem !important;
}

.badge[style*="font-size: 0.55rem"] {
    font-size: 0.55rem !important;
    padding: 0.2rem 0.35rem !important;
}

.select3.me-0,
.me-0 {
    margin-right: 0 !important;
}

.topbar .container-fluid {
    gap: 0.125rem;
}

#page-search-container {
    animation: fadeIn 0.3s ease;
   max-width: 450px; 
   margin: 1rem 0; 
}

#page-search-results .list-group-item {
    cursor: pointer;
    border-radius: 0;
   border-width: 0 0 1px 0; 
    padding: 0.75rem 1rem;
}

    #page-search-results .list-group-item:first-child {
        border-top: 1px solid #dee2e6;
    }

    #page-search-results .list-group-item:hover {
        background-color: #f8f9fa;
    }

    #page-search-results .list-group-item small {
        color: #6c757d;
    }


