/* Reset e Base */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
    color: #333;
}

/* ========================================
   NOVO LAYOUT - SIDEBAR LATERAL
   ======================================== */

/* Layout com Sidebar */
body.sidebar-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Header Superior */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    border-bottom: 1px solid #EE7736;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 1030;
}

.header-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-name {
    color: #495057;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-user-dropdown {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.btn-user-dropdown:hover {
    background: #e9ecef;
    border-color: #00A859;
    color: #00A859;
}

.btn-mobile-toggle {
    display: none;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.btn-mobile-toggle:hover {
    background: #e9ecef;
    border-color: #00A859;
    color: #00A859;
}

/* Sidebar Lateral */
.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 220px;
    height: calc(100vh - 70px);
    max-height: calc(100vh - 70px);
    background: white;
    border-right: 1px solid #EE7736;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    z-index: 1020;
    transition: width 0.3s ease, transform 0.3s ease !important;
    overflow: hidden;
}

/* Garantir que a sidebar e seus elementos mantenham transições suaves */
.sidebar,
.sidebar * {
    transition-property: width, transform, opacity, background, color, padding, margin !important;
}

.sidebar {
    transition-duration: 0.3s !important;
    transition-timing-function: ease !important;
}

.sidebar .menu-link {
    transition-duration: 0.3s !important;
    transition-timing-function: ease !important;
}

.sidebar .menu-link i {
    transition-duration: 0.2s !important;
    transition-timing-function: ease !important;
}

.sidebar .menu-link span {
    transition-duration: 0.3s !important;
    transition-timing-function: ease !important;
}

.sidebar .btn-sidebar-toggle {
    transition-duration: 0.2s !important;
    transition-timing-function: ease !important;
}

.sidebar .sidebar-title-text {
    transition-duration: 0.3s !important;
    transition-timing-function: ease !important;
}

.sidebar.collapsed {
    width: 70px !important;
}

.sidebar.collapsed .sidebar-header {
    padding: clamp(1rem, 2vh, 1.25rem) clamp(0.5rem, 1vw, 0.75rem);
    justify-content: center;
}

.sidebar-header {
    padding: clamp(1rem, 2vh, 1.25rem) clamp(0.75rem, 1.5vw, 1rem);
    border-bottom: 1px solid #e9ecef;
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-shrink: 0;
}

.sidebar-title {
    margin: 0;
    font-size: clamp(0.8rem, 1.6vw, 0.85rem);
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-title-text {
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-title-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.btn-sidebar-toggle {
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: clamp(0.4rem, 0.8vh, 0.5rem);
    border-radius: clamp(4px, 0.6vw, 6px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(28px, 3vw, 32px);
    height: clamp(28px, 3vw, 32px);
    flex-shrink: 0;
    z-index: 10;
}

.sidebar.collapsed .btn-sidebar-toggle {
    width: 100%;
    margin: 0 auto;
}

.btn-sidebar-toggle:hover {
    background: #e9ecef;
    color: #00A859;
}

.btn-sidebar-toggle:focus {
    outline: 2px solid #00A859;
    outline-offset: 2px;
}

.sidebar.collapsed .btn-sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(0.75rem, 1.5vh, 1rem) 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.sidebar.collapsed .sidebar-nav {
    padding: clamp(0.5rem, 1vh, 0.75rem) 0;
}

/* Garantir que o scroll funcione corretamente */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.menu-link {
    display: flex;
    align-items: center;
    padding: clamp(0.6rem, 1.2vh, 0.75rem) clamp(0.75rem, 1.5vw, 1rem);
    color: #5a6169;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    font-size: clamp(0.85rem, 1.6vw, 0.9rem);
    position: relative;
}

.menu-link i {
    width: clamp(18px, 2vw, 20px);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    margin-right: clamp(0.5rem, 1vw, 0.75rem);
    color: #868e96;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.menu-link span {
    flex: 1;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .menu-link span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .menu-link {
    justify-content: center;
    padding: clamp(0.6rem, 1.2vh, 0.75rem);
    margin: clamp(0.15rem, 0.3vh, 0.25rem) 0;
    border-left: none;
    border-radius: clamp(6px, 0.8vw, 8px);
}

.sidebar.collapsed .menu-link.active {
    background: #f0f9f4;
    border-left: none;
    border-radius: clamp(6px, 0.8vw, 8px);
}

.sidebar.collapsed .menu-link i {
    margin-right: 0;
    font-size: clamp(1rem, 2vw, 1.1rem);
    width: auto;
}

.menu-link:hover {
    background: #f8f9fa;
    color: #00A859;
}

.menu-link:hover i {
    color: #00A859;
}

.menu-link.active {
    background: #f0f9f4;
    color: #00A859;
    font-weight: 500;
    font-size: 0.9rem;
    border-left: 3px solid #00A859;
}

.menu-link.active i {
    color: #00A859;
}

.menu-section {
    padding: clamp(0.1rem, 0.2vh, 0.15rem) clamp(0.75rem, 1.5vw, 1rem) clamp(0.15rem, 0.3vh, 0.25rem);
    margin-top: clamp(0.05rem, 0.1vh, 0.1rem);
}

.sidebar .menu-section {
    padding: clamp(0.1rem, 0.2vh, 0.15rem) clamp(0.75rem, 1.5vw, 1rem) clamp(0.15rem, 0.3vh, 0.25rem) !important;
    margin-top: clamp(0.05rem, 0.1vh, 0.1rem) !important;
    margin-bottom: 0 !important;
}

.sidebar.collapsed .menu-section {
    padding: clamp(0.5rem, 1vh, 0.75rem) clamp(0.4rem, 0.8vw, 0.5rem) clamp(0.3rem, 0.6vh, 0.4rem);
    margin-top: clamp(0.2rem, 0.4vh, 0.3rem);
}

.sidebar.collapsed .section-title {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.sidebar .section-title {
    font-size: clamp(0.65rem, 1.4vw, 0.7rem) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #868e96 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    display: block !important;
    align-items: unset !important;
    gap: 0 !important;
}

.badge-count {
    background: #EE7736;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.45rem;
    border-radius: 10px;
    margin-left: auto;
}

.sidebar.collapsed .badge-count {
    display: none;
}

.sidebar-footer {
    padding: clamp(0.75rem, 1.5vh, 1rem) clamp(0.75rem, 1.5vw, 1rem);
    border-top: 1px solid #e9ecef;
    background: #fafbfc;
    flex-shrink: 0;
    margin-top: auto;
}

.sidebar.collapsed .sidebar-footer {
    padding: clamp(0.75rem, 1.5vh, 1rem) clamp(0.4rem, 0.8vw, 0.5rem);
    justify-content: center;
}

.sidebar-version {
    margin: 0;
    font-size: clamp(0.75rem, 1.6vw, 0.8rem);
    color: #6c757d;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-version {
    justify-content: center;
    font-size: clamp(0.7rem, 1.4vw, 0.75rem);
}

.sidebar.collapsed .sidebar-version span,
.sidebar.collapsed .sidebar-version i:not(:first-child) {
    display: none;
}

/* Overlay para mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1010;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Main Content */
.main-content {
    margin-left: 220px;
    margin-top: 70px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    transition: margin-left 0.3s ease;
    position: relative;
}

body.sidebar-collapsed .main-content {
    margin-left: 70px;
}

.content-wrapper {
    flex: 1 0 auto;
    padding: clamp(1rem, 2.5vh, 2rem) clamp(0.75rem, 2vw, 1.5rem);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    min-height: 0;
}

/* Footer */
.app-footer {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: clamp(1rem, 2vh, 1.25rem) clamp(1rem, 2vw, 1.5rem);
    margin-top: auto;
    flex-shrink: 0;
    flex-grow: 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    color: #6c757d;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00A859;
}

.footer-links span {
    color: #dee2e6;
}

/* Dropdown customizado */
.header-actions .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
}

.header-actions .dropdown-item {
    border-radius: 6px;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.header-actions .dropdown-item:hover {
    background: #f8f9fa;
    color: #00A859;
}

.header-actions .dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.5;
}

/* Responsividade */
@media (max-width: 991px) {
    .btn-mobile-toggle {
        display: flex;
    }
    
    .btn-sidebar-toggle {
        display: none;
    }
    
    .user-name {
        display: none;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 220px !important;
        height: calc(100vh - 70px);
        max-height: calc(100vh - 70px);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        width: 220px !important;
    }
    
    .sidebar-nav {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 0;
        max-height: calc(100vh - 70px - 120px);
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    body.sidebar-open {
        overflow: hidden;
    }
    
    body.sidebar-collapsed .main-content {
        margin-left: 0 !important;
    }
}

/* Ajustes para telas menores - garantir que todos os itens sejam visíveis */
@media (max-height: 700px) {
    .sidebar {
        height: calc(100vh - 70px);
        max-height: calc(100vh - 70px);
    }
    
    .sidebar-nav {
        max-height: calc(100vh - 70px - 100px);
        overflow-y: auto;
    }
    
    .sidebar-header {
        padding: clamp(0.75rem, 1.5vh, 1rem) clamp(0.75rem, 1.5vw, 1rem);
    }
    
    .sidebar-footer {
        padding: clamp(0.5rem, 1vh, 0.75rem) clamp(0.75rem, 1.5vw, 1rem);
    }
}

@media (max-height: 600px) {
    .sidebar-nav {
        max-height: calc(100vh - 70px - 90px);
    }
    
    .menu-item {
        margin: clamp(0.15rem, 0.3vh, 0.25rem) 0;
    }
    
    .menu-link {
        padding: clamp(0.5rem, 1vh, 0.6rem) clamp(0.75rem, 1.5vw, 1rem);
    }
}

@media (max-width: 576px) {
    .top-header {
        height: 60px;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .logo-img {
        height: 40px;
        max-width: 100%;
    }
    
    .logo-container {
        flex: 1;
        overflow: hidden;
    }
    
    .content-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .app-footer {
        padding: 1rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
}

/* Telas muito pequenas (menos de 400px) */
@media (max-width: 400px) {
    .top-header {
        height: 55px;
    }
    
    .header-content {
        padding: 0 0.75rem;
    }
    
    .logo-img {
        height: 35px;
        max-width: 100%;
    }
    
    .app-footer {
        padding: 0.75rem 0.75rem;
    }
    
    .footer-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

/* ======================================== */

/* Hero Section - Padrão para todas as páginas */
.hero-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    color: #212529;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
}

.hero-section .hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-section .hero-title i {
    color: #868e96;
    font-size: 1.5rem;
}

.hero-section .hero-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

.hero-title {
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.hero-subtitle {
    margin: 0;
    opacity: 0.9;
}

/* Minimalist Color Scheme */
:root {
    --primary: #00A859;
    --primary-dark: #008a47;
    --primary-light: #00c66b;
    
    --success: #2E7D32;
    --success-dark: #1b5e20;
    --success-light: #4caf50;
    
    --warning: #adb5bd;
    --warning-dark: #868e96;
    --warning-light: #ced4da;
    
    --danger: #E65100;
    --danger-dark: #bf360c;
    --danger-light: #ff6d00;
    
    --info: #6c757d;
    --info-dark: #5a6268;
    --info-light: #868e96;
    
    --gray-50: #f8f9fa;
    --gray-100: #f1f2f4;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --border-color: #dee2e6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --navbar-height: 76px;
    --footer-height: 64px;
}

/* Minimalist Navbar */
.navbar-custom {
    background: #fff;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

/* Melhorar comportamento responsivo da navbar */
.navbar-custom .navbar-collapse {
    transition: all 0.3s ease;
}

.navbar-custom .navbar-nav {
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand:hover {
    color: var(--primary-dark) !important;
}

.navbar-custom .navbar-nav .nav-link {
    color: var(--gray-700) !important;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.2s ease;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: var(--gray-100);
}

/* Dropdown Menu */
.navbar-custom .dropdown-menu {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 8px;
    margin-top: 0;
    min-width: 200px;
}

/* Garantir compatibilidade com o comportamento padrão do Bootstrap */
.navbar-custom .dropdown-menu.show {
    display: block;
}

.navbar-custom .dropdown-menu-end {
    left: auto;
    right: 0;
}

.navbar-custom .dropdown-item {
    color: var(--gray-700) !important;
    transition: all 0.2s ease;
    padding: 10px 16px;
    border-radius: 6px;
    margin: 2px 0;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    background: var(--gray-100) !important;
    color: var(--primary) !important;
}

.navbar-custom .dropdown-item.active {
    background: var(--primary) !important;
    color: white !important;
}

.navbar-custom .dropdown-divider {
    border-color: var(--border-color);
    margin: 8px 0;
}

/* Navbar Toggler */
.navbar-custom .navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    background: var(--gray-100);
    border-radius: 6px;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: none;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2873, 80, 87, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Layout Principal */
.main-content {
    padding-top: 2rem;
    background-color: var(--gray-50);
    min-height: calc(100vh - var(--navbar-height) - var(--footer-height));
}

.container-fluid .px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Cards and Containers */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: none;
    background: white;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0 !important;
    padding: 1.25rem;
}

.card-header h5 {
    margin: 0;
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Stats Icons */
.stats-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

/* Action Icons */
.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    transition: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: none;
    box-shadow: none;
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.btn-success:hover {
    background: var(--success-dark);
    border-color: var(--success-dark);
    transform: none;
    box-shadow: none;
}

.btn-info {
    background: var(--info);
    border-color: var(--info);
    color: white;
}

.btn-info:hover {
    background: var(--info-dark);
    border-color: var(--info-dark);
    transform: none;
    box-shadow: none;
}

.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: var(--warning-dark);
    border-color: var(--warning-dark);
    transform: none;
    box-shadow: none;
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-dark);
    border-color: var(--danger-dark);
    transform: none;
    box-shadow: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-action {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: none;
}

/* Inputs and Forms */
.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 123, 229, 0.15);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--gray-700);
    background-color: var(--gray-100);
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid var(--border-color);
}

.table-hover tbody tr:hover {
    background-color: var(--gray-100);
}

/* Progress Bars */
.progress {
    border-radius: 6px;
    background-color: var(--gray-200);
}

.progress-bar {
    border-radius: 6px;
}

/* Alerts */
.alert {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: #d1f3e7;
    border-color: #bdebd9;
    color: #006644;
}

.alert-danger {
    background-color: #fce5ea;
    border-color: #f9d2d9;
    color: #991b2d;
}

/* Modals */
.modal-content {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
    background: #fff;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--gray-50);
    border-radius: 0 0 8px 8px;
}

/* Pagination */
.pagination {
    margin: 0;
}

.page-link {
    color: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin: 0 2px;
    padding: 0.5rem 0.75rem;
}

.page-link:hover {
    background-color: var(--gray-100);
    border-color: var(--border-color);
    color: var(--primary-dark);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Text and Background Utilities */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--gray-600) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-info { background-color: var(--info) !important; }

.bg-light {
    background-color: var(--gray-50) !important;
}

/* Responsive Improvements */
@media (max-width: 1200px) {
    .container-fluid .px-4 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Melhorar navbar em monitores médios */
    .navbar-custom .navbar-nav .nav-link {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .navbar-custom .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Estilos específicos para tablets (768px a 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-custom {
        padding: 0.5rem 0;
    }
    
    .navbar-custom .navbar-nav .nav-link {
        padding: 8px 10px;
        margin: 0 1px;
        font-size: 0.85rem;
    }
    
    .navbar-custom .navbar-brand {
        font-size: 1rem;
    }
    
    /* Ajustar espaçamento dos itens do menu */
    .navbar-custom .navbar-nav {
        gap: 0.1rem;
    }
    
    /* Melhorar dropdowns em tablets */
    .navbar-custom .dropdown-menu {
        min-width: 160px;
        font-size: 0.85rem;
    }
    
    .navbar-custom .dropdown-item {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Estilos específicos para monitores médios (992px a 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-custom {
        padding: 0.5rem 0;
    }
    
    .navbar-custom .navbar-nav .nav-link {
        padding: 8px 12px;
        margin: 0 1px;
        font-size: 0.9rem;
    }
    
    .navbar-custom .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Ajustar espaçamento dos itens do menu */
    .navbar-custom .navbar-nav {
        gap: 0.25rem;
    }
    
    /* Melhorar dropdowns em telas médias */
    .navbar-custom .dropdown-menu {
        min-width: 180px;
        font-size: 0.9rem;
    }
    
    .navbar-custom .dropdown-item {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 1199px) {
    .navbar-custom .navbar-nav {
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        margin-top: 1rem;
    }
    
    .navbar-custom .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--gray-100);
        margin-top: 0.5rem;
        border: 1px solid var(--border-color);
        width: 100%;
    }
    
    .container-fluid .px-4 {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    /* Tornar tabelas responsivas */
    .table-responsive {
        border-radius: 8px;
        box-shadow: var(--shadow);
    }
    
    .table-responsive .table {
        margin-bottom: 0;
        min-width: 600px;
    }
}

@media (max-width: 768px) {
    .navbar-custom .navbar-nav .nav-link {
        padding: 12px 16px;
        margin: 2px 0;
        border-radius: 8px;
        text-align: center;
    }
    
    .navbar-custom .navbar-nav .nav-link:hover,
    .navbar-custom .navbar-nav .nav-link.active {
        background: var(--primary);
        color: white !important;
    }
    
    .navbar-custom .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--gray-50);
        margin-top: 0.5rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
    }
    
    .main-content {
        padding-top: 1rem;
    }
    
    .container-fluid .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Cards responsivos */
    .row > [class*="col-"] {
        margin-bottom: 1rem;
    }
    
    /* Botões em telas menores */
    .btn-group-vertical .btn,
    .btn-group .btn {
        margin-bottom: 0.5rem;
        display: block;
        width: 100%;
    }
    
    /* Modais responsivos */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    /* Forms responsivos */
    .row.g-3 > .col-md-6,
    .row.g-3 > .col-md-4,
    .row.g-3 > .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Formulários em stack vertical */
    .form-row .col-md-6,
    .form-row .col-md-4,
    .form-row .col-md-3,
    .form-row .col-lg-6,
    .form-row .col-lg-4,
    .form-row .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Melhorar spacing em forms */
    .mb-3,
    .mb-2 {
        margin-bottom: 1rem !important;
    }
    
    /* Grupos de botões em stack */
    .btn-group-lg > .btn,
    .btn-group > .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
        border-radius: 6px !important;
    }
    
    /* Input groups responsivos */
    .input-group {
        flex-direction: column;
    }
    
    .input-group > .form-control,
    .input-group > .form-select {
        border-radius: 6px !important;
    }
    
    .input-group-text {
        border-radius: 6px !important;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
}

/* Em telas menores, evita sticky nos filtros para não quebrar layout */
@media (max-width: 991.98px) {
    .filters-sticky {
        position: static;
        top: auto;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 10px 16px;
        font-size: 0.875rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .stats-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    /* Tabelas super responsivas */
    .table-responsive {
        border: none;
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    /* Forms em mobile */
    .form-control,
    .form-select {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 0.875rem;
        border-radius: 8px;
    }
    
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }
    
    /* Melhorar textarea em mobile */
    textarea.form-control {
        min-height: 120px;
        resize: vertical;
    }
    
    /* Checkboxes e radios maiores */
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        margin-top: 0.125rem;
    }
    
    .form-check-label {
        font-size: 0.95rem;
        margin-left: 0.5rem;
    }
    
    /* Melhorar select multiple */
    .form-select[multiple] {
        min-height: 150px;
    }
    
    /* Fieldsets responsivos */
    fieldset {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    fieldset legend {
        font-size: 1rem;
        font-weight: 600;
        padding: 0 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    /* Melhorar grupos de form */
    .form-floating > .form-control,
    .form-floating > .form-select {
        height: calc(3.5rem + 2px);
        line-height: 1.25;
    }
    
    .form-floating > label {
        font-size: 0.875rem;
    }
    
    /* Modais full-screen em mobile */
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .modal-content {
        height: 100%;
        border-radius: 0;
        border: none;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
    
    /* Navigation responsive */
    .navbar-custom {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Cards stack vertical */
    .row .col-xl-4,
    .row .col-lg-6,
    .row .col-md-6,
    .row .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Cards responsivos */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-header {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-footer {
        padding: 0.75rem 1rem;
    }
    
    /* Stat cards responsivos */
    .stat-card,
    .stat-card-modern {
        margin-bottom: 1rem;
    }
    
    .stat-card .stat-card-number,
    .stat-card-number-modern {
        font-size: 2rem;
    }
    
    .stat-card .stat-card-label,
    .stat-card-label-modern {
        font-size: 0.9rem;
    }
    
    .stat-card-icon,
    .stat-card-icon-modern {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Action cards responsivos */
    .action-card,
    .action-card-modern {
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .action-card-icon,
    .action-card-icon-modern {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
        font-size: 1.5rem;
    }
    
    .action-card-title,
    .action-card-title-modern {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .action-card-description,
    .action-card-description-modern {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    /* Ações em lista vertical */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        border-radius: 6px;
        margin-bottom: 0.25rem;
    }
    
    /* Paginação responsiva */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Alertas responsivos */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin: 0 -1rem 1rem -1rem;
        border-radius: 0;
    }
}

/* Simple fade-in animation */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

/* Recadastramento: Cartões de estatística */
.stat-card {
    border-radius: 10px;
    padding: 1rem;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.stat-card .stat-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.stat-card .stat-card-number {
    margin: 0;
    color: #fff;
}

.stat-card .stat-card-label {
    margin: 0;
    opacity: 0.9;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
}

.stat-card.stat-card-primary { background: var(--primary); }
.stat-card.stat-card-info { background: var(--info); }
.stat-card.stat-card-success { background: var(--success); }
.stat-card.stat-card-warning { background: var(--warning); }
.stat-card.stat-card-danger { background: var(--danger); }
.stat-card.stat-card-secondary { background: var(--gray-700); }

/* Sidebar filtros fixa (desktop) */
.filters-sticky {
    position: sticky;
    top: 92px;
}

/* Footer */
.app-footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    color: var(--gray-600);
}

.app-footer a {
    color: var(--gray-700);
    text-decoration: none;
}

.app-footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Classes utilitárias para responsividade */
.mobile-full-width {
    width: 100%;
}

.mobile-text-center {
    text-align: center;
}

.mobile-stack .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
}

.mobile-hidden {
    display: none;
}

.desktop-hidden {
    display: block;
}

/* Tabelas responsivas avançadas */
.table-mobile-cards {
    display: none;
}

/* Estilos para tabelas em mobile */
.table-mobile-responsive {
    position: relative;
}

.table-mobile-responsive .table {
    margin-bottom: 0;
}

/* Cards de tabela para mobile */
.mobile-table-card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.mobile-table-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-table-card .card-title {
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    font-size: 1rem;
}

.mobile-table-card .card-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-table-card .card-body {
    padding: 0;
}

.mobile-table-card .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-table-card .info-item:last-child {
    border-bottom: none;
}

.mobile-table-card .info-label {
    font-weight: 500;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.mobile-table-card .info-value {
    color: var(--gray-800);
    font-size: 0.9rem;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.mobile-table-card .actions {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mobile-table-card .btn-sm {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

/* Estilos para overflow em containers pequenos */
.scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.scroll-x::-webkit-scrollbar {
    height: 8px;
}

.scroll-x::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.scroll-x::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

.scroll-x::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Media queries específicas para dispositivos */
@media (max-width: 991.98px) {
    .mobile-hidden {
        display: block;
    }
    
    .desktop-hidden {
        display: none;
    }
    
    /* Melhorar tabelas em tablets */
    .table-responsive {
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* Transformar tabelas em cards em mobile */
    .table-mobile-cards {
        display: block;
    }
    
    .table-responsive-lg {
        display: none;
    }
    
    /* Esconder tabelas tradicionais em mobile quando há versão card */
    .table-mobile-responsive .table-responsive {
        display: none;
    }
    
    /* Mostrar cards em mobile */
    .table-mobile-responsive .table-mobile-cards {
        display: block;
    }
    
    /* Melhorar scroll horizontal para tabelas pequenas */
    .table-responsive {
        margin: 0 -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .table {
        min-width: 600px;
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    /* Indicador de scroll */
    .table-responsive::after {
        content: "← Deslize para ver mais →";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        background: var(--primary);
        color: white;
        padding: 0.25rem 1rem;
        border-radius: 12px 12px 0 0;
        font-size: 0.75rem;
        font-weight: 500;
        pointer-events: none;
        opacity: 0.8;
        z-index: 10;
    }
    
    /* Esconder indicador quando não há scroll */
    .table-responsive:not(.scrollable)::after {
        display: none;
    }
}

/* Melhorias para touch devices */
@media (pointer: coarse) {
    .btn {
        min-height: 44px; /* Apple guidelines */
        padding: 12px 16px;
    }
    
    .btn-sm {
        min-height: 38px;
        padding: 8px 12px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control,
    .form-select {
        min-height: 44px;
    }
    
    .page-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Estilos para orientação landscape em mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-dialog {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
    
    .modal-content {
        max-height: 100%;
    }
    
    .modal-body {
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
    
    .main-content {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Estilos específicos para iOS Safari */
@supports (-webkit-touch-callout: none) {
    .form-control,
    .form-select {
        font-size: 16px; /* Evita zoom automático */
    }
    
    .modal-content {
        -webkit-overflow-scrolling: touch;
    }
}

/* Print styles responsivos */
@media print {
    .navbar-custom,
    .btn,
    .modal,
    .alert-dismissible .btn-close {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
        margin: 0;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 0.25rem;
        border: 1px solid #000;
    }
}

/* Estilos da Lixeira */
.nav-link .badge,
.dropdown-item .badge {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
    border-radius: 50px;
    position: relative;
    top: -2px;
}

.nav-link:hover .badge,
.dropdown-item:hover .badge {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.dropdown-item .badge {
    float: right;
    margin-top: 0.1rem;
}

/* Hero section da lixeira */
.hero-section.trash {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
}

.hero-section.trash .hero-title {
    color: white;
}

.hero-section.trash .hero-title i {
    color: white;
}

.hero-section.trash .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Cards de Estatísticas - Histórico de Aprovações */
.stat-card-aprovacao {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-card-aprovacao .stat-card-icon {
    background: #00A859;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-card-aprovacao .stat-card-number {
    color: #155724;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-card-aprovacao .stat-card-label {
    color: #1e7e34;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

.stat-card-reprovacao {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-card-reprovacao .stat-card-icon {
    background: #dc3545;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-card-reprovacao .stat-card-number {
    color: #721c24;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-card-reprovacao .stat-card-label {
    color: #c82333;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

.stat-card-recadastramento {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-card-recadastramento .stat-card-icon {
    background: #0d6efd;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-card-recadastramento .stat-card-number {
    color: #004085;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-card-recadastramento .stat-card-label {
    color: #0056b3;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

.stat-card-total {
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-card-total .stat-card-icon {
    background: #6c757d;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-card-total .stat-card-number {
    color: #495057;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-card-total .stat-card-label {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

.stat-card .stat-card-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-card .stat-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* Cards de Estatísticas - Recadastramento e Exportar */
.stat-card-pendente {
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-card-pendente .stat-card-icon {
    background: #adb5bd;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-card-pendente .stat-card-number {
    color: #495057;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-card-pendente .stat-card-label {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

.stat-card-andamento {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-card-andamento .stat-card-icon {
    background: #5a9fd4;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-card-andamento .stat-card-number {
    color: #004085;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-card-andamento .stat-card-label {
    color: #0056b3;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

.stat-card-aprovado {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-card-aprovado .stat-card-icon {
    background: #00A859;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-card-aprovado .stat-card-number {
    color: #155724;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-card-aprovado .stat-card-label {
    color: #1e7e34;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

.stat-card-rejeitado {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-card-rejeitado .stat-card-icon {
    background: #dc3545;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-card-rejeitado .stat-card-number {
    color: #721c24;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-card-rejeitado .stat-card-label {
    color: #c82333;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

.stat-card-atraso {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-card-atraso .stat-card-icon {
    background: #ffc107;
    color: #212529;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-card-atraso .stat-card-number {
    color: #856404;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-card-atraso .stat-card-label {
    color: #b8860b;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

.stat-card-total {
    background: #fff4ed;
    border: 1px solid #ffe4d1;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-card-total .stat-card-icon {
    background: #EE7736;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-card-total .stat-card-number {
    color: #d66420;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-card-total .stat-card-label {
    color: #EE7736;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}