/* ============================================
   Gestor de Custo Operacional - Estilos Modernos
   ============================================ */

/* Layout com Sidebar */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    box-shadow: var(--shadow-md);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Scrollbar da Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: var(--sidebar-border);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--sidebar-text-secondary);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sidebar-text);
    transition: color 0.3s ease;
}

.sidebar-brand i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.sidebar-menu {
    flex: 1;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--sidebar-text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9375rem;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, transparent 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.sidebar-link.active:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3) 0%, transparent 100%);
}

.sidebar-link i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

/* Main Content Wrapper */
.main-content-wrapper {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar */
.topbar {
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: background 0.3s ease;
}

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

.topbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.125rem;
}

.topbar-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 2rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-size: 1.125rem;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

[data-theme="dark"] .theme-toggle {
    background: var(--gray-200);
    border-color: var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    transition: background 0.3s ease, color 0.3s ease;
}

.user-info i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.logout-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-color);
    color: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.125rem;
}

.logout-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
    color: var(--white);
}

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --success-color: #06d6a0;
    --success-dark: #05b888;
    --warning-color: #ffd166;
    --warning-dark: #ffc43d;
    --info-color: #118ab2;
    --info-dark: #0d6b8a;
    --danger-color: #ef476f;
    --dark-color: #1a1a2e;
    --light-color: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Dark Mode Variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --bg-gradient: #ffffff;
    
    /* Sidebar Variables */
    --sidebar-bg: #1f2937;
    --sidebar-text: #e5e7eb;
    --sidebar-text-secondary: #9ca3af;
    --sidebar-border: #374151;
    --sidebar-hover: #374151;
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --bg-gradient: #000000;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    
    /* Sidebar Dark Mode */
    --sidebar-bg: #0f172a;
    --sidebar-text: #e2e8f0;
    --sidebar-text-secondary: #94a3b8;
    --sidebar-border: #1e293b;
    --sidebar-hover: #1e293b;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background: #000000;
}

/* Container Principal */
.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

/* Header da Página */
.page-header {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.5s ease-out;
    transition: background 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.page-title i {
    color: var(--primary-color);
    font-size: 2.25rem;
}

.date-selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.date-label i {
    color: var(--primary-color);
}

.date-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    min-width: 200px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.date-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Grid de Estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.report-body .stats-grid {
    margin-bottom: 2.5rem;
}

.stat-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-primary::before {
    background: var(--primary-color);
}

.stat-success::before {
    background: var(--success-color);
}

.stat-warning::before {
    background: var(--warning-color);
}

.stat-info::before {
    background: var(--info-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.stat-primary .stat-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
}

.stat-success .stat-icon {
    background: linear-gradient(135deg, var(--success-color), #34d399);
    color: var(--white);
}

.stat-warning .stat-icon {
    background: linear-gradient(135deg, var(--warning-color), #fbbf24);
    color: var(--white);
}

.stat-info .stat-icon {
    background: linear-gradient(135deg, var(--info-color), #60a5fa);
    color: var(--white);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Conteúdo Principal */
.main-content {
    margin-bottom: 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    animation: fadeInUp 0.7s ease-out;
}

/* Cards de Formulário */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.3s ease;
}

.header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.card-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.card-body-modern {
    padding: 2rem;
}

/* Inputs Modernos */
.input-group-modern {
    margin-bottom: 1.5rem;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.input-label i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    z-index: 1;
    transition: color 0.3s ease;
}

.form-control-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-left: 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-select-modern {
    padding-left: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

[data-theme="dark"] .form-select-modern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Botões Modernos */
.btn-modern {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(99, 102, 241, 0.4);
}

.btn-success-modern {
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

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

.btn-modern:active {
    transform: translateY(0);
}

/* Seção de Relatório */
.report-section {
    animation: fadeInUp 0.8s ease-out;
}

.report-card-modern {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transition: background 0.3s ease;
}

.report-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #2563eb 100%);
    color: var(--white);
    padding: 2rem;
    transition: background 0.3s ease;
}

.report-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.report-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9375rem;
}

.report-body {
    padding: 2rem;
}

.report-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.report-section-title i {
    color: var(--primary-color);
}

/* Grid de Chips */
.chip-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chip-stat-card {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

[data-theme="dark"] .chip-stat-card {
    background: var(--gray-200);
}

.chip-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.chip-6189 {
    border-color: #118ab2;
    background: linear-gradient(135deg, #caf0f8, #90e0ef);
}

.chip-gringo {
    border-color: #06d6a0;
    background: linear-gradient(135deg, #cafff0, #9ef5e3);
}

.chip-8437 {
    border-color: #ffd166;
    background: linear-gradient(135deg, #fff4d6, #ffe8a8);
}

.chip-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.chip-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.chip-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.chip-stat-roi {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Resumo de Custo */
.cost-summary {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.cost-summary-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #2563eb 100%);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: background 0.3s ease;
}

.cost-summary-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.cost-summary-content {
    flex: 1;
}

.cost-summary-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cost-summary-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.cost-summary-note {
    font-size: 0.8125rem;
    opacity: 0.8;
}

/* Animações */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alertas */
.alert {
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    animation: slideDown 0.3s ease-out;
}

.alert-success {
    background: #d1fae5;
    border-color: var(--success-color);
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    border-color: var(--danger-color);
    color: #991b1b;
}

/* Botão de menu mobile (oculto por padrão) */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Overlay para mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content-wrapper {
        margin-left: 0;
    }
    
    .topbar {
        padding: 1rem;
    }
    
    .page-content {
        padding: 1rem;
    }
    
    .dashboard-container {
        padding: 0;
    }
    
    .page-header {
        padding: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .chip-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .card-body-modern {
        padding: 1.5rem;
    }
    
    .report-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stat-value,
    .chip-stat-value {
        font-size: 1.5rem;
    }
    
    .cost-summary-value {
        font-size: 2rem;
    }
    
    .cost-summary-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Lista de Vendas */
.sales-list {
    min-height: 200px;
}

.sales-list .table {
    margin-bottom: 0;
}

.sales-list .table thead th {
    background: var(--gray-100);
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
}

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

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

.sales-list .badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Modal */
.modal-content {
    background: var(--bg-card);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.modal .form-label {
    color: var(--text-primary);
    font-weight: 600;
}

.modal .form-select,
.modal .form-control {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.modal .form-select:focus,
.modal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-close {
    filter: var(--text-primary) opacity(0.5);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) opacity(0.5);
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 5px;
}

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