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

/* ===== SISTEMA DE CORES PROFISSIONAL ===== */
:root {
    /* Cores primárias */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    
    /* Cores de sucesso */
    --success-50: #f0fdf4;
    --success-100: #dcfce7;
    --success-200: #bbf7d0;
    --success-300: #86efac;
    --success-400: #4ade80;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --success-700: #15803d;
    --success-800: #166534;
    --success-900: #14532d;
    
    /* Cores de aviso */
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-200: #fde68a;
    --warning-300: #fcd34d;
    --warning-400: #fbbf24;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;
    --warning-800: #92400e;
    --warning-900: #78350f;
    
    /* Cores de erro */
    --error-50: #fef2f2;
    --error-100: #fee2e2;
    --error-200: #fecaca;
    --error-300: #fca5a5;
    --error-400: #f87171;
    --error-500: #ef4444;
    --error-600: #dc2626;
    --error-700: #b91c1c;
    --error-800: #991b1b;
    --error-900: #7f1d1d;
    
    /* Cores neutras */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    /* Cores de texto */
    --text-primary: #171717;
    --text-secondary: #525252;
    --text-tertiary: #737373;
    --text-inverse: #ffffff;
    
    /* Cores de fundo */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --bg-elevated: #ffffff;
    
    /* Cores de borda */
    --border-light: #e5e5e5;
    --border-medium: #d4d4d4;
    --border-dark: #a3a3a3;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ===== CONFIGURAÇÃO GLOBAL DE FONTES ===== */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    font-variation-settings: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== ESTILOS DO MENU LATERAL ===== */
.sidebar-content {
    background: #272727 !important;
    transition: margin-left .35s ease-in-out, left .35s ease-in-out, margin-right .35s ease-in-out, right .35s ease-in-out;
}

/* ===== REMOVER EFEITOS VERDES DO MENU ===== */
.sidebar-item.active .sidebar-link,
.sidebar-item.active .sidebar-link:hover {
    background: none !important;
    color: #e2e8ee !important;
}

.sidebar-item.active .sidebar-link i,
.sidebar-item.active .sidebar-link svg {
    color: #e2e8ee !important;
}

.sidebar-link:hover {
    background: none !important;
    color: rgba(226,232,238,.75) !important;
}

.sidebar-link:hover i,
.sidebar-link:hover svg {
    color: rgba(226,232,238,.75) !important;
}

/* ===== MARCA D'ÁGUA VETTOR COMMERCE ===== */
.sidebar-watermark {
    margin-top: auto;
    padding: 1rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.sidebar-watermark:hover {
    opacity: 1;
}

.watermark-content {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.watermark-logo {
    height: 30px;
    width: auto;
    filter: brightness(0.8) contrast(1.2);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.watermark-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.watermark-brand {
    color: #e2e8ee;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.watermark-tagline {
    color: rgba(226, 232, 238, 0.6);
    font-size: 0.65rem;
    font-weight: 400;
}

/* ===== ESTILOS MODERNOS PARA PEDIDOS ===== */

/* Header da página */
.page-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.page-title h1 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

/* Cards de estatísticas */
.stat-card {
    background: var(--bg-elevated);
    border-radius: 6px;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-card-info {
    flex: 1;
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.stat-card-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.stat-card-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
}

.trend-up {
    color: var(--success-600);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.trend-down {
    color: var(--error-600);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.trend-period {
    color: var(--text-tertiary);
    font-weight: 400;
}

.stat-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Cores dos cards */
.stat-card-primary .stat-card-value {
    color: var(--primary-600);
}

.stat-card-primary .stat-card-icon {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    color: var(--text-inverse);
}

.stat-card-success .stat-card-value {
    color: var(--success-600);
}

.stat-card-success .stat-card-icon {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-700) 100%);
    color: var(--text-inverse);
}

.stat-card-warning .stat-card-value {
    color: var(--warning-600);
}

.stat-card-warning .stat-card-icon {
    background: linear-gradient(135deg, var(--warning-500) 0%, var(--warning-700) 100%);
    color: var(--text-inverse);
}

.stat-card-info .stat-card-value {
    color: var(--primary-600);
}

.stat-card-info .stat-card-icon {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    color: var(--text-inverse);
}

/* Filtros dinâmicos */
.quick-filters {
    background: var(--bg-elevated);
    border-radius: 6px;
    padding: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 1rem;
}

.filter-chip {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    letter-spacing: 0.025em;
}

.filter-chip:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-700) 100%);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.filter-chip.active::after {
    content: '✓';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 0.8rem;
}

/* Filtros selecionados */
/* ===== ESTILOS PARA MODAL DE DESENVOLVIMENTO ===== */
.bg-gradient-primary {
	background: linear-gradient(135deg, var(--primary-500), var(--primary-700)) !important;
}

.construction-animation {
	animation: bounce 2s infinite;
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}

.feature-icon {
	transition: all 0.3s ease;
}

.modal-header:hover .feature-icon {
	transform: scale(1.1);
}

/* ===== ESTILOS PARA TABELA DE PEDIDOS ===== */
.modern-table {
	border-collapse: collapse;
	width: 100%;
	background: var(--bg-white);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-light);
}

.modern-table thead th {
	background: var(--bg-white);
	border: none;
	padding: 0.375rem 0.5rem;
	font-weight: 600;
	color: var(--text-secondary);
	font-size: 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	position: sticky;
	top: 0;
	z-index: 10;
	font-family: 'Inter', sans-serif;
	border-bottom: 1px solid var(--border-light);
}

.modern-table tbody tr {
	transition: all 0.2s ease;
	border-bottom: 1px solid var(--border-light);
	background: var(--bg-white);
	line-height: 1.1;
}

.modern-table tbody tr:hover {
	background: var(--primary-25);
	transform: none;
	box-shadow: none;
}

.modern-table tbody tr.selected {
	background: var(--primary-100);
	border-left: 4px solid var(--primary-600);
	position: relative;
}

.modern-table tbody tr.selected::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 4px;
	height: 100%;
	background: var(--primary-600);
}

.modern-table tbody tr.selected:hover {
	background: var(--primary-150);
}

.modern-table tbody tr {
	cursor: pointer;
}

.modern-table tbody tr:last-child {
	border-bottom: none;
}

.modern-table tbody td {
	padding: 0.375rem 0.5rem;
	vertical-align: middle;
	border: none;
	font-family: 'Inter', sans-serif;
}

.checkbox-column {
	width: 30px;
	text-align: center;
}

.checkbox-column .form-check-input {
	width: 12px;
	height: 12px;
	border: 1px solid var(--border-light);
	border-radius: 2px;
	cursor: pointer;
	transition: all 0.2s ease;
	background-color: var(--bg-white);
	position: relative;
}

.checkbox-column .form-check-input:checked {
	background-color: var(--primary-500);
	border-color: var(--primary-500);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
	background-size: 6px;
	background-position: center;
	background-repeat: no-repeat;
}

.checkbox-column .form-check-input:hover {
	border-color: var(--primary-500);
	transform: scale(1.05);
}

.order-info .order-number {
	font-weight: 600;
	color: var(--primary-600);
	font-size: 0.75rem;
	letter-spacing: -0.01em;
	font-family: 'Inter', sans-serif;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.order-info .order-number:hover {
	color: var(--primary-700);
	text-decoration: none;
	opacity: 0.8;
}

.order-info .order-badge.archived {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	font-size: 0.6rem;
	padding: 0.15rem 0.4rem;
	background: var(--neutral-200);
	color: var(--neutral-700);
	border-radius: 3px;
	margin-top: 0.2rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.customer-info .customer-name {
	font-weight: 500;
	color: var(--text-primary);
	font-size: 0.75rem;
	letter-spacing: -0.01em;
	margin-bottom: 0.15rem;
}

.customer-info .customer-email {
	font-size: 0.65rem;
	color: var(--text-secondary);
	font-weight: 400;
}

.order-value .value-amount {
	font-weight: 600;
	color: var(--success-700);
	font-size: 0.8rem;
	letter-spacing: -0.01em;
	font-family: 'Inter', sans-serif;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.1rem;
	padding: 0.15rem 0.4rem;
	border-radius: 2px;
	font-size: 0.55rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-family: 'Inter', sans-serif;
	position: relative;
}

.status-badge.status-success {
	background: var(--success-100);
	color: var(--success-700);
	border: 1px solid var(--success-200);
}

.status-badge.status-warning {
	background: var(--warning-100);
	color: var(--warning-700);
	border: 1px solid var(--warning-200);
}

.status-badge.status-danger {
	background: var(--error-100);
	color: var(--error-700);
	border: 1px solid var(--error-200);
}

.status-badge.status-primary {
	background: var(--primary-100);
	color: var(--primary-700);
	border: 1px solid var(--primary-200);
}

.status-badge.status-info {
	background: linear-gradient(135deg, var(--info-100), var(--info-200));
	color: var(--info-800);
	border: 1px solid var(--info-300);
}

.status-badge.status-secondary {
	background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
	color: var(--neutral-700);
	border: 1px solid var(--neutral-300);
}

.status-badge i {
	width: 8px;
	height: 8px;
}

.order-date .date-main {
	font-weight: 500;
	color: var(--text-primary);
	font-size: 0.75rem;
	letter-spacing: -0.01em;
	margin-bottom: 0.15rem;
}

.order-date .date-time {
	font-size: 0.65rem;
	color: var(--text-secondary);
	font-weight: 500;
}

.action-buttons {
	display: flex;
	gap: 0.2rem;
	justify-content: flex-end;
	align-items: center;
}

.action-buttons .btn {
	padding: 0.15rem 0.3rem;
	font-size: 0.65rem;
	font-weight: 500;
	border-radius: 3px;
	transition: all 0.2s ease;
	font-family: 'Inter', sans-serif;
}

.action-buttons .btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.action-buttons .btn i {
	width: 10px;
	height: 10px;
}

.action-buttons .dropdown-menu {
	border: 1px solid var(--border-light);
	border-radius: 8px;
	box-shadow: var(--shadow-lg);
	padding: 0.5rem 0;
	background: var(--bg-white);
	animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.action-buttons .dropdown-item {
	padding: 0.75rem 1rem;
	font-weight: 500;
	font-family: 'Inter', sans-serif;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.action-buttons .dropdown-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 100%;
	background: var(--primary-50);
	transition: width 0.2s ease;
}

.action-buttons .dropdown-item:hover::before {
	width: 4px;
}

.action-buttons .dropdown-item i {
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.action-buttons .dropdown-item:hover {
	background: var(--primary-50);
	color: var(--primary-700);
}

.action-buttons .dropdown-item.text-danger:hover {
	background: var(--error-50);
	color: var(--error-700);
}

/* ===== ESTILOS PARA ESTADOS VAZIOS ===== */
.modern-table tbody tr td.text-center.text-muted {
	padding: 3rem 1rem;
	font-size: 1rem;
	font-weight: 500;
	color: var(--text-secondary);
}

.modern-table tbody tr td.text-center.text-muted i {
	display: block;
	margin: 0 auto 1rem;
	color: var(--neutral-400);
}

/* ===== ESTILOS PARA PAGINAÇÃO ===== */
.dataTables_wrapper .dataTables_paginate {
	margin-top: 1rem;
	padding: 0.75rem 0;
	background: var(--bg-white);
	border-radius: 8px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
	padding: 0.5rem 0.75rem;
	margin: 0 0.2rem;
	border: 1px solid var(--border-light);
	border-radius: 6px;
	background: var(--bg-white);
	color: var(--text-primary);
	font-weight: 600;
	font-size: 0.8rem;
	font-family: 'Inter', sans-serif;
	transition: all 0.2s ease;
	cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	background: var(--primary-50);
	border-color: var(--primary-300);
	color: var(--primary-700);
	transform: translateY(-1px);
	box-shadow: var(--shadow-sm);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
	background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
	border-color: var(--primary-600);
	color: white;
	box-shadow: var(--shadow-md);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
	background: var(--neutral-100);
	color: var(--neutral-400);
	cursor: not-allowed;
	border-color: var(--neutral-200);
}

.dataTables_wrapper .dataTables_info {
	padding: 1rem 1.5rem;
	font-weight: 500;
	color: var(--text-secondary);
	font-size: 0.9rem;
	font-family: 'Inter', sans-serif;
}

.dataTables_wrapper .dataTables_length {
	padding: 1rem 1.5rem;
	font-weight: 500;
	color: var(--text-secondary);
	font-size: 0.9rem;
	font-family: 'Inter', sans-serif;
}

.dataTables_wrapper .dataTables_length select {
	padding: 0.5rem 1rem;
	border: 1px solid var(--border-light);
	border-radius: 8px;
	background: var(--bg-white);
	font-weight: 600;
	font-family: 'Inter', sans-serif;
	margin: 0 0.5rem;
}

/* ===== ESTILOS PARA BUSCA ===== */
.dataTables_wrapper .dataTables_filter {
	margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_filter input {
	padding: 0.375rem 0.6rem;
	border: 1px solid var(--border-light);
	border-radius: 4px;
	background: var(--bg-white);
	font-weight: 500;
	font-family: 'Inter', sans-serif;
	transition: all 0.2s ease;
	width: 250px;
	font-size: 0.8rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
	border-color: var(--primary-400);
	box-shadow: 0 0 0 3px var(--primary-100);
	outline: none;
}

/* ===== ESTILOS PARA PROCESSING ===== */
.dataTables_processing {
	background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
	color: white;
	border-radius: 8px;
	padding: 1rem 2rem;
	font-weight: 600;
	font-family: 'Inter', sans-serif;
	box-shadow: var(--shadow-lg);
}

/* ===== MELHORIAS GERAIS DA TABELA ===== */
.dataTables_wrapper {
	background: var(--bg-white);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-light);
}

.dataTables_wrapper .row {
	margin: 0;
}

.dataTables_wrapper .col-sm-12,
.dataTables_wrapper .col-md-5,
.dataTables_wrapper .col-md-6,
.dataTables_wrapper .col-md-7 {
	padding: 0.5rem;
}

/* ===== ESTILOS PARA SELETOR CENTRALIZADO ===== */
.select-all-container {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.select-all-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--text-secondary);
	font-family: 'Inter', sans-serif;
	transition: all 0.2s ease;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
}

.select-all-label:hover {
	color: var(--text-primary);
	background: var(--primary-25);
}

.select-all-label .form-check-input {
	width: 14px;
	height: 14px;
	border: 1px solid var(--border-light);
	border-radius: 2px;
	cursor: pointer;
	transition: all 0.2s ease;
	background-color: var(--bg-white);
}

.select-all-label .form-check-input:checked {
	background-color: var(--primary-500);
	border-color: var(--primary-500);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
	background-size: 6px;
	background-position: center;
	background-repeat: no-repeat;
}

.select-all-text {
	font-size: 0.8rem;
	font-weight: 500;
}

.selected-count {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--primary-600);
	margin-left: 0.25rem;
}

/* ===== ESTILOS PARA RESPONSIVIDADE ===== */
@media (max-width: 768px) {
	.modern-table {
		font-size: 0.85rem;
	}
	
	.modern-table thead th,
	.modern-table tbody td {
		padding: 0.75rem 0.5rem;
	}
	
	.action-buttons {
		flex-direction: column;
		gap: 0.25rem;
	}
	
	.action-buttons .btn {
		padding: 0.375rem 0.5rem;
		font-size: 0.8rem;
	}
	
	.status-badge {
		padding: 0.375rem 0.75rem;
		font-size: 0.7rem;
	}
}

/* ===== ESTILOS PARA FILTROS ATIVOS ===== */
.filter-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.6rem;
	margin: 0.15rem;
	border: 1px solid var(--border-light);
	border-radius: 4px;
	background: var(--bg-white);
	color: var(--text-secondary);
	font-size: 0.7rem;
	font-weight: 500;
	font-family: 'Inter', sans-serif;
	cursor: pointer;
	transition: all 0.2s ease;
}

.filter-chip:hover {
	background: var(--primary-50);
	border-color: var(--primary-300);
	color: var(--primary-700);
	transform: translateY(-1px);
	box-shadow: var(--shadow-sm);
}

.filter-chip.active {
	background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
	border-color: var(--primary-600);
	color: white;
	box-shadow: var(--shadow-md);
}

.active-filters {
    background: var(--bg-secondary);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    display: none;
}

.active-filters.show {
    display: block;
}

.active-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.active-filters-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.025em;
}

.active-filters-clear {
    font-size: 0.75rem;
    color: var(--error-600);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
    font-weight: 500;
}

.active-filters-clear:hover {
    color: var(--error-700);
}

.active-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.active-filter-tag {
    background: var(--success-500);
    color: var(--text-inverse);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.025em;
}

.active-filter-tag:hover {
    background: var(--success-600);
    transform: scale(1.05);
}

.active-filter-tag .remove-filter {
	font-size: 0.8rem;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s ease;
}

.active-filter-tag .remove-filter:hover {
	color: var(--error-600);
	transform: scale(1.1);
}

/* Card moderno */
.modern-card {
    border: none;
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.modern-card .card-header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
}

/* Caixa de busca */
.search-box {
    position: relative;
    max-width: 300px;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    z-index: 10;
    font-size: 0.9rem;
}

.search-input {
    padding-left: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    font-size: 0.85rem;
    height: 36px;
    font-weight: 400;
    letter-spacing: 0.025em;
}

.search-input:focus {
    background: var(--bg-elevated);
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Tabela moderna */
.modern-table {
    margin: 0;
}

.modern-table thead th {
    background: var(--bg-secondary);
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modern-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-light);
}

.modern-table tbody tr:hover {
    background: var(--primary-50);
    transform: scale(1.005);
}

.modern-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border: none;
}

/* Coluna de checkbox */
.checkbox-column {
    width: 40px;
    text-align: center;
}

/* Informações do pedido */
.order-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.order-number {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    letter-spacing: -0.01em;
}

.order-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.order-badge.archived {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

/* Informações do cliente */
.customer-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.customer-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    letter-spacing: -0.01em;
}

.customer-email {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Valor do pedido */
.order-value {
    text-align: right;
}

.value-amount {
    font-weight: 700;
    color: var(--success-600);
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-success {
    background: var(--success-50);
    color: var(--success-700);
}

.status-primary {
    background: var(--primary-50);
    color: var(--primary-700);
}

.status-warning {
    background: var(--warning-50);
    color: var(--warning-700);
}

.status-danger {
    background: var(--error-50);
    color: var(--error-700);
}

.status-info {
    background: var(--primary-50);
    color: var(--primary-700);
}

.status-secondary {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

/* Data do pedido */
.order-date {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.date-main {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
    letter-spacing: -0.01em;
}

.date-time {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Botões de ação */
.action-buttons {
    display: flex;
    gap: 0.3rem;
    justify-content: flex-end;
}

.action-buttons .btn {
    border-radius: 4px;
    padding: 0.35rem;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Alertas modernos */
.alert {
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.alert-success {
    background: var(--success-50);
    color: var(--success-700);
    border-left: 3px solid var(--success-500);
}

.alert-danger {
    background: var(--error-50);
    color: var(--error-700);
    border-left: 3px solid var(--error-500);
}

/* Modal de filtros */
.modal-content {
    border: none;
    border-radius: 6px;
    box-shadow: var(--shadow-xl);
}

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

.modal-header .modal-title {
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.modal-body {
    padding: 1rem 1.5rem;
}

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

/* Status checkboxes */
.status-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-checkboxes .form-check {
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.status-checkboxes .form-check:hover {
    background: var(--primary-50);
}

.status-checkboxes .form-check-label {
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-primary);
    letter-spacing: 0.025em;
}

/* Responsividade */
@media (max-width: 768px) {
    .page-header {
        padding: 0.75rem 1rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-card-value {
        font-size: 1.25rem;
    }
    
    .filter-chip {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .modern-table thead th,
    .modern-table tbody td {
        padding: 0.5rem 0.75rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.2rem;
    }
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.avatar-inicial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #272727;
    /* fundo claro */
    border: 1px solid rgb(97, 97, 97);
    /* borda cinza */
    color: #f8f9fa;
    font-weight: bold;
    font-size: 16px;
    font-family: Arial, sans-serif;
    text-align: center;
    line-height: 40px;
    display: inline-block;
}

/*Alertas*/
.alert {
    padding: 20px !important;
    padding: 5px !important;
    color: #000000;
}

.alert {
    padding: 15px !important;
    display: flex;
    padding: 0;
}

.alert-danger { 
    color: #e30000 !important;
}

.alert-success {
    --bs-alert-color: var(--bs-success-text-emphasis);
    --bs-alert-bg: var(--bs-success-bg-subtle);
    --bs-alert-border-color: var(--bs-success-border-subtle);
    --bs-alert-link-color: var(--bs-success-text-emphasis);
}

.alert-warning {
    --bs-alert-color: var(--bs-warning-text-emphasis);
    --bs-alert-bg: var(--bs-warning-bg-subtle);
    --bs-alert-border-color: var(--bs-warning-border-subtle);
    --bs-alert-link-color: var(--bs-warning-text-emphasis);
}

.alert-info {
    --bs-alert-color: var(--bs-info-text-emphasis);
    --bs-alert-bg: var(--bs-info-bg-subtle);
    --bs-alert-border-color: var(--bs-info-border-subtle);
    --bs-alert-link-color: var(--bs-info-text-emphasis);
}

.alert-primary {
    --bs-alert-color: var(--bs-primary-text-emphasis);
    --bs-alert-bg: var(--bs-primary-bg-subtle);
    --bs-alert-border-color: var(--bs-primary-border-subtle);
    --bs-alert-link-color: var(--bs-primary-text-emphasis);
}

.alert-secondary {
    --bs-alert-color: var(--bs-secondary-text-emphasis);
    --bs-alert-bg: var(--bs-secondary-bg-subtle);
    --bs-alert-border-color: var(--bs-secondary-border-subtle);
    --bs-alert-link-color: var(--bs-secondary-text-emphasis);
}
/*Alerta*/

.product-thumbnail {
    height: 60px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
}

.menu-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background-color: currentColor;
    /* Usa a cor do texto */
}

.category-list-item .action-buttons, tr.category-row .action-buttons {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    visibility: hidden;
}

.category-list-item:hover .action-buttons, tr.category-row:hover .action-buttons {
    opacity: 1;
    visibility: visible;
}

.category-actions {
  opacity: 0.2;
  transition: opacity 0.2s ease-in-out;
}

li:hover > .category-actions {
  opacity: 1;
}

/* ===== CLASSES DE TEXTO GLOBAIS ===== */
.text-white {
    color: #ffffff !important;
}

.text-black {
    color: #000000 !important;
}

.text-dark {
    color: #212529 !important;
}

.text-light {
    color: #f8f9fa !important;
}

.text-primary {
    color: #0d6efd !important;
}

.text-secondary {
    color: #6c757d !important;
}

.text-success {
    color: #198754 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

/* ===== CLASSES DE FUNDO GLOBAIS ===== */
.bg-dark {
    background-color: #212529 !important;
}

.bg-white {
    background-color: #ffffff !important;
}

.bg-black {
    background-color: #000000 !important;
}

.bg-primary {
    background-color: #0d6efd !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.bg-success {
    background-color: #198754 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

.bg-info {
    background-color: #0dcaf0 !important;
}

/* ===== MODAL RESPONSIVA ===== */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100% - 1rem) !important;
    }
    
    .modal-footer {
        padding: 1rem !important;
    }
    
    .modal-footer .btn {
        padding: 12px 16px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }
    
    .modal-body {
        padding: 1.5rem 1rem !important;
    }
    
    .modal-header {
        padding: 1rem !important;
    }
    
    .modal-title {
        font-size: 1.1rem !important;
    }
}

.alert-info:not(.alert-outline):not(.alert-outline-coloured) {
    background: #f1f6f1!important;
    color: #6d8673!important;
    font-weight: 300!important;
}

/* Filtros Ativos */
#active-filters {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    animation: fadeInUp 0.3s ease-out;
}

#active-filter-tags .badge {
    transition: all 0.2s ease;
    cursor: default;
    font-weight: 500;
    letter-spacing: 0.025em;
}

#active-filter-tags .badge:hover {
    background: var(--primary-100) !important;
    border-color: var(--primary-300) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#active-filter-tags .btn-close {
    opacity: 0.6;
    transition: opacity 0.2s ease;
    padding: 2px;
    margin-left: 6px;
}

#active-filter-tags .btn-close:hover {
    opacity: 1;
    background: var(--error-100);
    border-radius: 50%;
}

#clear-all-filters {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#clear-all-filters:hover {
    background: var(--error-50);
    border-color: var(--error-300);
    color: var(--error-700);
}

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

/* Melhorias nos filtros do modal */
.status-checkbox:checked + label {
    color: var(--primary-700);
    font-weight: 500;
}

.status-checkbox:checked {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
}

.status-checkbox:focus {
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25);
}

/* ===== ESTILOS PARA ATRIBUTOS SIMPLES ===== */
.attributes-container {
    max-width: 180px;
    width: 180px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
}

/* Badges de atributos */
.attribute-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-weight: 500;
    letter-spacing: 0.025em;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

/* Indicador de mais atributos */
.attributes-more-indicator {
    color: var(--primary-600);
    font-weight: 600;
    font-size: 0.7rem;
    background: var(--primary-50);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    border: 1px solid var(--primary-200);
    white-space: nowrap;
}

/* Responsividade para tablets */
@media (max-width: 992px) {
    .attributes-container {
        max-width: 150px;
    }
    
    .attributes-tooltip-content {
        max-width: 250px;
        font-size: 0.75rem;
    }
}

/* Tabela de produtos com layout fixo */
#datatables-products {
    table-layout: fixed;
    width: 100%;
}

/* Coluna de atributos com largura fixa */
#datatables-products th:nth-child(6),
#datatables-products td:nth-child(6) {
    width: 180px;
    max-width: 180px;
    overflow: hidden;
    padding: 0.5rem 0.25rem;
}

/* Outras colunas com larguras otimizadas */
#datatables-products th:nth-child(1),
#datatables-products td:nth-child(1) {
    width: 40px;
    max-width: 40px;
}

#datatables-products th:nth-child(2),
#datatables-products td:nth-child(2) {
    width: auto;
    min-width: 200px;
}

#datatables-products th:nth-child(3),
#datatables-products td:nth-child(3) {
    width: 100px;
    max-width: 100px;
}

#datatables-products th:nth-child(4),
#datatables-products td:nth-child(4) {
    width: 80px;
    max-width: 80px;
}

#datatables-products th:nth-child(5),
#datatables-products td:nth-child(5) {
    width: 120px;
    max-width: 120px;
}

#datatables-products th:nth-child(7),
#datatables-products td:nth-child(7) {
    width: 120px;
    max-width: 120px;
}

/* Responsividade para tablets */
@media (max-width: 992px) {
    .attributes-container {
        max-width: 140px;
        width: 140px;
    }
    
    #datatables-products th:nth-child(6),
    #datatables-products td:nth-child(6) {
        width: 140px;
        max-width: 140px;
    }
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .attributes-container {
        max-width: 100px;
        width: 100px;
    }
    
    #datatables-products th:nth-child(6),
    #datatables-products td:nth-child(6) {
        width: 100px;
        max-width: 100px;
    }
}