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

/* ===== Reset e Variáveis ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1976D2;
    --light-blue: #E3F2FD;
    --dark-blue: #1565C0;
    --white: #FFFFFF;
    --text-dark: #1a1a2e;
    --text-medium: #2d2d44;
    --text-light: #555e6b;
    --green: #10b981;
    --red: #ef4444;
    --purple: #8b5cf6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.07), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px -8px rgba(0,0,0,0.1);
    --sidebar-width: 270px;
    --header-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f1f5f9;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* ===== Fundo sutil com gradiente ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(25, 118, 210, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(16, 185, 129, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Header - Light Blue Premium ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 50%, #e0ecfb 100%);
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    border-bottom: 1px solid rgba(25, 118, 210, 0.08);
}

.header-top {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
}

.mobile-menu-toggle {
    display: none;
    background: rgba(25, 118, 210, 0.08);
    color: var(--primary-blue);
    border: 1px solid rgba(25, 118, 210, 0.12);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: rgba(25, 118, 210, 0.14);
    border-color: rgba(25, 118, 210, 0.2);
    transform: scale(1.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left .logo-wordmark {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    color: #2c3e50;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.header-left .logo-wordmark b {
    font-weight: 700;
    color: var(--primary-blue);
}

.header-left .logo-wordmark:hover {
    opacity: 0.88;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-light);
    letter-spacing: -0.01em;
}

.balance-info strong {
    color: var(--text-dark);
    font-weight: 600;
}

.separator {
    color: #c7d2fe;
    margin: 0 4px;
}

.user-avatar {
    position: relative;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1976D2 0%, #6366f1 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 2.5px solid var(--white);
    box-shadow: 0 2px 10px rgba(25, 118, 210, 0.25);
}

.avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}

/* ===== Dropdown Menu ===== */
.dropdown-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    display: none;
    flex-direction: column;
    padding: 16px;
    width: 240px;
    z-index: 1050;
    border: 1px solid rgba(0,0,0,0.06);
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 14px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

.dropdown-menu p {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    text-decoration: none;
    font-size: 14px;
    color: var(--text-medium);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: rgba(25, 118, 210, 0.06);
    color: var(--primary-blue);
}

.dropdown-menu button {
    width: 100%;
    padding: 10px 0;
    border: none;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 8px;
}

.dropdown-menu button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.user-avatar.active .dropdown-menu {
    display: flex;
}

/* ===== Balance Mobile Container ===== */
.balance-mobile {
    display: none;
    padding: 12px 20px;
    background: rgba(25, 118, 210, 0.04);
    border-top: 1px solid rgba(25, 118, 210, 0.06);
}

.balance-mobile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.balance-mobile-item:not(:last-child) {
    border-bottom: 1px solid rgba(25, 118, 210, 0.06);
}

.header .balance-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.header .balance-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}

/* ===== Sidebar Overlay (mobile) ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1005;
    transition: opacity 0.3s ease;
}

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

/* ===== Sidebar Premium ===== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 1px 0 0 rgba(0,0,0,0.05), 6px 0 20px rgba(0,0,0,0.03);
    position: fixed;
    left: 0;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    transition: all var(--transition-smooth);
    z-index: 999;
    border-right: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-footer {
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

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

.sidebar.collapsed .menu-item a span,
.sidebar.collapsed .sidebar-nav a span {
    display: none;
}

.sidebar.collapsed .menu-item a,
.sidebar.collapsed .sidebar-nav a {
    justify-content: center;
    padding: 14px 0;
}

.sidebar.collapsed .menu-item a i,
.sidebar.collapsed .sidebar-nav a i {
    margin-right: 0;
}

.sidebar.collapsed .fa-chevron-down {
    display: none;
}

.sidebar.collapsed .submenu {
    display: none !important;
}

.sidebar.collapsed .sidebar-toggle {
    width: 70px;
    text-align: center;
    padding: 15px 0;
}

.sidebar-toggle,
.toggle-sidebar {
    padding: 14px 20px;
    text-align: right;
    cursor: pointer;
    color: var(--primary-blue);
    font-size: 14px;
    border-bottom: 1px solid #eef2f7;
    transition: all var(--transition-fast);
    background: rgba(25, 118, 210, 0.03);
    border: none;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.sidebar-toggle:hover,
.toggle-sidebar:hover {
    background: rgba(25, 118, 210, 0.06);
    color: var(--dark-blue);
}

.sidebar-toggle i,
.toggle-sidebar i {
    background: rgba(25, 118, 210, 0.08);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.sidebar-toggle:hover i,
.toggle-sidebar:hover i {
    background: rgba(25, 118, 210, 0.14);
    transform: scale(1.05);
}

/* ===== Sidebar Menu Items ===== */
.menu-item {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.menu-item a,
.sidebar a {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    color: var(--text-medium);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 2px 10px;
    border-left: none;
}

.menu-item a:hover,
.sidebar a:hover {
    background: rgba(25, 118, 210, 0.06);
    color: var(--primary-blue);
    border-left: none;
}

.menu-item a.active,
.sidebar a.active {
    background: rgba(25, 118, 210, 0.08);
    color: var(--primary-blue);
    font-weight: 600;
    border-left: none;
    position: relative;
}

.menu-item a.active::before,
.sidebar a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary-blue);
    border-radius: 0 4px 4px 0;
}

.menu-item a i,
.sidebar a i {
    width: 22px;
    margin-right: 14px;
    font-size: 16px;
    text-align: center;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.menu-item a:hover i,
.menu-item a.active i,
.sidebar a:hover i,
.sidebar a.active i {
    opacity: 1;
}

.menu-item a span,
.sidebar a span {
    margin-left: 0;
}

/* Submenu */
.fa-chevron-down {
    transition: transform 0.3s ease;
    margin-left: auto !important;
    font-size: 0.75em;
    opacity: 0.5;
}

.submenu {
    background: transparent;
    margin: 0;
    padding-left: 10px;
}

.submenu a {
    padding-left: 42px !important;
    font-size: 13px !important;
    color: var(--text-medium) !important;
}

.submenu a:hover {
    color: var(--primary-blue) !important;
}

.submenu a.active {
    color: var(--primary-blue) !important;
}

/* Logout Button */
.sidebar .logout-btn,
.btn-logout {
    width: calc(100% - 20px);
    margin: 10px;
    padding: 11px 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-fast);
    font-family: inherit;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.sidebar .logout-btn:hover,
.btn-logout:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    border: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.sidebar-footer {
    padding: 16px 0;
    border-top: 1px solid #f3f4f6;
    background: var(--white);
}

/* ===== Main Content Area ===== */
.content {
    margin-top: var(--header-height);
    margin-left: var(--sidebar-width);
    padding: 32px;
    transition: margin-left var(--transition-smooth);
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    min-height: calc(100vh - var(--header-height));
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 32px;
    transition: margin-left var(--transition-smooth);
    overflow-x: hidden;
    animation: fadeInUp 0.6s ease-out;
    margin-top: var(--header-height);
    position: relative;
    z-index: 1;
}

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

/* ===== Animações de Entrada ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Welcome Section ===== */
.welcome-section {
    margin-bottom: 28px;
    animation: fadeInUp 0.5s ease-out 0.1s both;
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 40%, #c7d9fa 70%, #d4e4fc 100%);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
    display: block;
    margin: 0;
}

.welcome-title .highlight {
    color: transparent;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 700;
}

.welcome-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 400;
    letter-spacing: -0.01em;
    animation: fadeIn 0.8s ease-out 0.3s both;
    position: relative;
    z-index: 1;
}

.welcome-subtitle .highlight {
    color: transparent;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 600;
}

/* ===== Cards ===== */
.card-section {
    margin-bottom: 28px;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--transition-smooth);
    margin-bottom: 0;
}

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

.card-header {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 50%, #c7d9fa 100%);
    color: var(--text-dark);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 0;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header-left i {
    font-size: 18px;
    color: #2563eb;
    opacity: 0.9;
}

.card-header h2,
.card-header h5 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1e3a5f;
    margin: 0;
}

.card-body {
    padding: 22px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    background: var(--white);
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    width: 100%;
}

.stat-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    border-color: #c7d2fe;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: all var(--transition-smooth);
}

.stat-icon.stat-cnh {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.stat-icon.stat-rg {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #7c3aed;
}

.stat-icon.stat-cha {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.stat-icon.stat-cie {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

/* Selo de documento de exemplo (demonstrativo) */
.exemplo-badge {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    vertical-align: middle;
    text-transform: uppercase;
}

.stat-icon.stat-recarga {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #ea580c;
}

.stat-card:hover .stat-icon {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

/* ===== Quick Access Grid ===== */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.quick-access-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
    background: #fafbfc;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.quick-access-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6, #60a5fa);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.quick-access-card:hover::before {
    transform: scaleY(1);
}

.quick-access-card:hover {
    border-color: #c7d2fe;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.quick-access-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all var(--transition-smooth);
}

.quick-access-icon.qa-cnh { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.quick-access-icon.qa-rg { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.quick-access-icon.qa-edit { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #db2777; }
.quick-access-icon.qa-recharge { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.quick-access-icon.qa-extrato { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #ea580c; }
.quick-access-icon.qa-bot { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0284c7; }

.quick-access-card:hover .quick-access-icon { transform: scale(1.08); }
.quick-access-card:hover .quick-access-icon.qa-cnh { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25); }
.quick-access-card:hover .quick-access-icon.qa-rg { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: white; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25); }
.quick-access-card:hover .quick-access-icon.qa-edit { background: linear-gradient(135deg, #db2777, #be185d); color: white; box-shadow: 0 4px 12px rgba(219, 39, 119, 0.25); }
.quick-access-card:hover .quick-access-icon.qa-recharge { background: linear-gradient(135deg, #059669, #047857); color: white; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25); }
.quick-access-card:hover .quick-access-icon.qa-extrato { background: linear-gradient(135deg, #ea580c, #dc2626); color: white; box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25); }
.quick-access-card:hover .quick-access-icon.qa-bot { background: linear-gradient(135deg, #0284c7, #0369a1); color: white; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25); }

.quick-access-info { flex: 1; min-width: 0; }
.quick-access-info h3 { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.quick-access-info p { font-size: 12.5px; color: var(--text-light); margin: 0; }
.quick-access-arrow { font-size: 12px; color: #d1d5db; transition: all var(--transition-fast); flex-shrink: 0; }
.quick-access-card:hover .quick-access-arrow { color: var(--primary-blue); transform: translateX(3px); }

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 0;
    width: 100%;
}

.service-item {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    border-color: #c7d2fe;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: var(--text-dark);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--primary-blue);
    font-size: 22px;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(3deg);
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.service-icon i {
    font-size: 22px;
    color: inherit;
}

.service-info { flex: 1; }
.service-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; transition: color var(--transition-fast); }
.service-item:hover .service-info h3 { color: #1e40af; }
.service-info p { color: var(--text-light); margin-bottom: 8px; font-size: 13px; line-height: 1.5; }

.service-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.service-status.online {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.service-status.offline {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.service-status i { font-size: 6px; }

/* ===== Page Header ===== */
.page-header {
    margin-bottom: 28px;
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    display: block;
    text-align: left;
    justify-content: flex-start;
}

.page-subtitle {
    font-size: 15px;
    color: var(--text-light);
    letter-spacing: -0.01em;
}

/* ===== Editáveis Grid ===== */
.editaveis-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    width: 100%;
}

.editavel-card {
    background: #fafbfc;
    border: none;
    border-radius: 14px;
    padding: 28px 22px 24px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex: 1 1 210px;
    min-width: 210px;
    max-width: 100%;
    box-shadow: none;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.editavel-card:hover {
    background: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(79, 110, 247, 0.15), 0 2px 8px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
}

.editavel-icon {
    width: 56px;
    height: 56px;
    background: #eef2ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: #4f6ef7;
    font-size: 22px;
    transition: all 0.25s ease;
}

.editavel-card .editavel-logo-img {
    max-width: 80%;
    max-height: 64px;
    object-fit: contain;
    margin: 0 auto 14px;
    display: block;
    transition: all 0.25s ease;
}

.editavel-card:hover .editavel-logo-img {
    transform: scale(1.04);
}

.editavel-card:hover .editavel-icon {
    background: #4f6ef7;
    color: #fff;
}

.editavel-card h3 {
    font-size: 14px;
    color: #1a1a2e;
    margin-bottom: 4px;
    font-weight: 600;
    transition: color 0.25s ease;
}
.editavel-card:hover h3 { color: #4f6ef7; }
.editavel-card p {
    font-size: 12.5px;
    color: #8892a4;
    line-height: 1.4;
    margin: 0;
}

/* ===== Balance Cards (Extrato) ===== */
.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.balance-card {
    text-align: center;
    padding: 22px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
    transition: all var(--transition-fast);
}

.balance-card:hover {
    border-color: #c7d2fe;
    box-shadow: var(--shadow-md);
}

.balance-card .balance-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.balance-amount {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.balance-amount.total { color: var(--text-dark); }
.balance-amount.retido { color: #ea580c; }
.balance-amount.disponivel { color: #059669; }

/* ===== Filters ===== */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: all var(--transition-fast);
    background: var(--white);
    color: var(--text-dark);
}

.form-input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.btn-clear-filters {
    padding: 11px 18px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.btn-clear-filters:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* ===== Table ===== */
.table-container {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

table th {
    padding: 13px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
}

table td {
    padding: 14px;
    border-bottom: 1px solid #f3f4f6;
    color: var(--text-dark);
    font-size: 13.5px;
}

table tbody tr {
    transition: background var(--transition-fast);
}

table tbody tr:hover {
    background: #f8fafc;
}

/* ===== Badges ===== */
.badge {
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-block;
    color: white;
}

.badge-success { background: linear-gradient(135deg, #10b981, #059669); }
.badge-danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.badge-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; }
.badge-info { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.badge-transaction {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-credito { background: #ecfdf5; color: #059669; }
.badge-debito { background: #fef2f2; color: #dc2626; }
.badge-pendente { background: #fff7ed; color: #ea580c; }
.badge-aprovado { background: #ecfdf5; color: #059669; }

.valor-credito { color: #059669; font-weight: 600; }
.valor-debito { color: #dc2626; font-weight: 600; }

/* ===== Action Buttons ===== */
.btn-action {
    padding: 7px 14px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ===== Recharge Form ===== */
.recharge-form {
    max-width: 560px;
    margin: 0 auto;
}

.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.btn-quick-amount {
    flex: 1;
    min-width: 100px;
    padding: 13px 18px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-quick-amount:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-quick-amount.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-recharge {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-recharge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.total-recharge {
    text-align: center;
    padding: 28px 0;
}

.total-recharge-value {
    font-size: 44px;
    font-weight: 700;
    color: #1e40af;
    display: block;
    letter-spacing: -0.04em;
}

/* ===== Backward Compatible Form Styles ===== */
.form-cnh {
    width: 100%;
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.form-cnh h1 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
}

h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 20px 0;
}

.form-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

label {
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 5px;
    display: block;
    font-size: 14px;
}

input, textarea, select {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-sm);
    background-color: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-family: inherit;
    color: var(--text-dark);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

textarea { resize: vertical; }

/* Tables backward compat */
.table-cnhs {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Buttons */
.btn {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn.view-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    text-decoration: none;
}

.btn.view-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn.edit-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-decoration: none;
}

.btn.edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-save, .btn-submit, .create-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-save:hover, .btn-submit:hover, .create-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-save:disabled, .btn-submit:disabled, .create-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.btn.submit-btn {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.btn.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

.generate-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    padding: 8px 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.generate-btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
}

.btn-light {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-light:hover { background: rgba(255,255,255,0.25); }

/* Backward-compat containers */
.configuracoes-container {
    width: 100%;
    max-width: 800px;
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.configuracoes-container button.btn {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.configuracoes-container button.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.summary-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    gap: 20px;
    margin-bottom: 20px;
}

.summary-item {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    text-align: center;
    padding: 15px;
    transition: all var(--transition-fast);
}

.summary-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.summary-item h2 { font-size: 1.3rem; color: var(--primary-blue); margin-bottom: 8px; }
.summary-item p { font-size: 1.1rem; color: var(--text-dark); font-weight: 600; margin: 0; }

.limit-box {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #93c5fd;
    border-radius: var(--radius-sm);
    background: #eff6ff;
    color: var(--primary-blue);
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Alert styles */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert i { margin-right: 4px; }

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fff7ed;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.alert-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.alert-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.text-muted { color: var(--text-light); font-size: 13px; }
.text-success { color: #059669; }
.text-danger { color: #dc2626; }
.text-center { text-align: center; }
.mt-2 { margin-top: 10px; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 15px; }
.ms-2 { margin-left: 8px; }
.d-flex { display: flex; }

/* Suggest prices */
.suggest-prices {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggest-prices button {
    padding: 10px 18px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.suggest-prices button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Form control */
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-control:focus {
    border-color: #93c5fd;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

/* ===== Scrollbar Customizado ===== */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
    border: 2px solid transparent;
    background-clip: content-box;
}

/* ===== Selection ===== */
::selection {
    background: rgba(25, 118, 210, 0.15);
    color: var(--text-dark);
}

:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ===== Responsividade ===== */
@media (max-width: 1280px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 0 15px;
        height: 60px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-left .logo-wordmark {
        font-size: 1.25rem;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .balance-info {
        display: none;
    }
    
    .user-balance-mobile {
        display: flex;
        flex-direction: column;
        gap: 8px;
        border-top: 1px solid #eef2f7;
        border-bottom: 1px solid #eef2f7;
        padding: 8px 0;
        margin-bottom: 10px;
        font-size: 13px;
    }
    
    .avatar {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .balance-mobile {
        display: block;
    }
    
    .content,
    .main-content,
    body.sidebar-collapsed .content,
    body.sidebar-collapsed .main-content {
        margin-left: 0;
        padding: 20px 15px;
        margin-top: calc(60px + 48px);
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
        top: calc(60px + 48px);
        height: calc(100vh - 60px - 48px);
        z-index: 1010;
        box-shadow: 6px 0 30px rgba(0, 0, 0, 0.2);
        background: #ffffff;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar.mobile-active,
    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar.collapsed {
        width: var(--sidebar-width);
    }

    /* No mobile, quando sidebar abre, mostrar textos mesmo se estiver collapsed */
    .sidebar.mobile-active.collapsed .sidebar-nav a span,
    .sidebar.active.collapsed .sidebar-nav a span {
        display: inline !important;
    }

    .sidebar.mobile-active.collapsed .sidebar-nav a,
    .sidebar.active.collapsed .sidebar-nav a {
        justify-content: flex-start !important;
        padding: 12px 20px !important;
    }

    .sidebar.mobile-active.collapsed .sidebar-nav a i,
    .sidebar.active.collapsed .sidebar-nav a i {
        margin-right: 12px;
    }

    .sidebar.mobile-active.collapsed .fa-chevron-down,
    .sidebar.active.collapsed .fa-chevron-down {
        display: inline-block !important;
    }

    .sidebar.mobile-active.collapsed .submenu,
    .sidebar.active.collapsed .submenu {
        display: none;
    }

    .sidebar.mobile-active.collapsed .submenu[style*="display: block"],
    .sidebar.active.collapsed .submenu[style*="display: block"] {
        display: block !important;
    }

    .sidebar.mobile-active.collapsed .sidebar-footer,
    .sidebar.active.collapsed .sidebar-footer {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .sidebar.mobile-active.collapsed .btn-logout span,
    .sidebar.active.collapsed .btn-logout span {
        display: inline !important;
    }
    
    .sidebar-toggle,
    .toggle-sidebar {
        display: none;
    }
    
    .sidebar-overlay {
        top: calc(60px + 48px);
    }
    
    .sidebar-overlay.active {
        display: block;
    }

    #menu-overlay {
        z-index: 1005;
    }

    .dropdown-menu {
        position: fixed;
        top: 60px;
        right: 15px;
        width: 260px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 10px;
        gap: 8px;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11px;
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Editáveis grid responsivo */
    .editaveis-grid {
        gap: 12px;
    }

    .editavel-card {
        flex: 1 1 calc(50% - 6px);
        min-width: 140px;
        padding: 20px 14px 18px;
    }

    .editavel-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .editavel-card .editavel-logo-img {
        max-height: 48px;
        margin-bottom: 10px;
    }

    .editavel-card h3 {
        font-size: 12.5px;
    }

    .editavel-card p {
        font-size: 11px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-subtitle {
        font-size: 13px;
    }

    .welcome-section {
        padding: 22px 20px;
        margin-bottom: 18px;
    }

    .welcome-title {
        font-size: 18px;
    }

    .welcome-subtitle {
        font-size: 13px;
    }

    .card-header {
        padding: 14px 18px;
    }

    .card-header h2 {
        font-size: 13px;
    }

    .card-body {
        padding: 18px;
    }

    .balance-cards {
        grid-template-columns: 1fr;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .suggest-prices {
        flex-direction: column;
    }

    .summary-box {
        flex-direction: column;
    }

    .form-cnh {
        width: 100%;
        padding: 20px;
    }
}

@media (min-width: 769px) {
    .user-balance-mobile {
        display: none;
    }
}