/* ============================================
   Nomos Admin v3 - Aurora Style
   Modern Design System inspired by Aurora Template
   ============================================ */

/* ============================================
   CSS Variables - Aurora Light Theme
   ============================================ */
:root {
    /* Primary Colors - Nomos Brand */
    --color-primary: #4a6788;
    --color-primary-light: #6b8fad;
    --color-primary-dark: #2d4d6b;
    --color-primary-subtle: rgba(74, 103, 136, 0.08);
    --color-secondary: #0F172A;

    /* Status Colors - Aurora Style (mais vibrantes) */
    --color-success: #22C55E;
    --color-success-subtle: rgba(34, 197, 94, 0.1);
    --color-info: #06B6D4;
    --color-info-subtle: rgba(6, 182, 212, 0.1);
    --color-warning: #F59E0B;
    --color-warning-subtle: rgba(245, 158, 11, 0.1);
    --color-danger: #EF4444;
    --color-danger-subtle: rgba(239, 68, 68, 0.1);

    /* Neutral Colors - Aurora Palette */
    --color-white: #FFFFFF;
    --color-gray-50: #F8FAFC;
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-300: #CBD5E1;
    --color-gray-400: #94A3B8;
    --color-gray-500: #64748B;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1E293B;
    --color-gray-900: #0F172A;

    /* Backgrounds - Aurora Style */
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    --bg-header: #FFFFFF;
    --bg-input: #FFFFFF;
    --bg-hover: #F1F5F9;

    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;

    /* Border Colors - Aurora (mais sutis) */
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --border-subtle: rgba(226, 232, 240, 0.8);

    /* Shadows - Aurora Style (mais suaves e modernas) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-xs: 0 0 0 1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 12px rgba(74, 103, 136, 0.15);

    /* Border Radius - Aurora (mais arredondados) */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout - Aurora Style (sidebar mais fino) */
    --sidebar-width: 240px;
    --sidebar-collapsed: 72px;
    --header-height: 64px;

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================
   Base Styles - Aurora
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1, .h1 { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; }
h2, .h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; }
h3, .h3 { font-size: 1.25rem; font-weight: 600; }
h4, .h4 { font-size: 1.125rem; font-weight: 600; }
h5, .h5 { font-size: 1rem; font-weight: 600; }
h6, .h6 { font-size: 0.875rem; font-weight: 600; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* ============================================
   Typography - Aurora
   ============================================ */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-info { color: var(--color-info) !important; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }

/* ============================================
   Buttons - Aurora Style
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-body);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--color-gray-300);
}

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

.btn-success:hover {
    background: #16A34A;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

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

.btn-danger:hover {
    background: #DC2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

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

.btn-warning:hover {
    background: #D97706;
}

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

.btn-outline-primary {
    background: transparent;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
}

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

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-icon {
    padding: 10px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.btn-icon.btn-sm {
    padding: 8px;
    width: 32px;
    height: 32px;
}

/* ============================================
   Cards - Aurora Style
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-gray-300);
}

.back-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

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

.card-header,
.card .card-header,
.card-light .card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color) !important;
    border-top: none !important;
    background: transparent;
    border-radius: 0 !important;
}

.card > .card-header:first-child,
.card-light > .card-header:first-child {
    border-top-left-radius: calc(var(--radius-lg) - 1px) !important;
    border-top-right-radius: calc(var(--radius-lg) - 1px) !important;
    background: var(--color-primary-subtle) !important;
}

.card-body {
    padding: 24px;
}

.card-footer,
.card .card-footer,
.card-light .card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color) !important;
    background: var(--color-gray-50);
    border-bottom-left-radius: calc(var(--radius-lg) - 1px) !important;
    border-bottom-right-radius: calc(var(--radius-lg) - 1px) !important;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Stat Card - Aurora Style */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-primary-subtle);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}

.stat-card__icon.bg-success {
    background: var(--color-success-subtle);
    color: var(--color-success);
}

.stat-card__icon.bg-warning {
    background: var(--color-warning-subtle);
    color: var(--color-warning);
}

.stat-card__icon.bg-danger {
    background: var(--color-danger-subtle);
    color: var(--color-danger);
}

.stat-card__icon.bg-info {
    background: var(--color-info-subtle);
    color: var(--color-info);
}

.stat-card__label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: 0;
}

.stat-card__value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.stat-card__trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-top: 12px;
}

.stat-card__trend.up {
    color: var(--color-success);
    background: var(--color-success-subtle);
}

.stat-card__trend.down {
    color: var(--color-danger);
    background: var(--color-danger-subtle);
}

/* ============================================
   Forms - Aurora Style
   ============================================ */
.form-control,
.form-select {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.form-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid var(--color-gray-300);
    border-radius: 4px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-group-text {
    background-color: var(--color-gray-50);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    padding: 12px 16px;
    font-weight: 500;
}

/* ============================================
   Tables - Aurora Style
   ============================================ */
.table {
    width: 100%;
    color: var(--text-primary);
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--color-gray-50);
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 20px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.table thead th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.table thead th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

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

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

.table tbody td {
    padding: 16px 20px;
    border: none;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    font-size: 14px;
}

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

/* ============================================
   Badges - Aurora Style
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: none;
    letter-spacing: 0;
}

.badge-primary {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}

.badge-success {
    background: var(--color-success-subtle);
    color: var(--color-success);
}

.badge-warning {
    background: var(--color-warning-subtle);
    color: var(--color-warning);
}

.badge-danger {
    background: var(--color-danger-subtle);
    color: var(--color-danger);
}

.badge-info {
    background: var(--color-info-subtle);
    color: var(--color-info);
}

.badge-secondary {
    background: var(--color-gray-100);
    color: var(--text-secondary);
}

.tag-carreiras-produtos {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: var(--color-gray-100);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    line-height: 1.5;
    white-space: nowrap;
    margin: 3px 4px 3px 0;
}

/* ============================================
   Alerts - Aurora Style
   ============================================ */
.alert {
    position: relative;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-primary {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    border-left: 4px solid var(--color-primary);
}

.alert-success {
    background: var(--color-success-subtle);
    color: var(--color-success);
    border-left: 4px solid var(--color-success);
}

.alert-warning {
    background: var(--color-warning-subtle);
    color: var(--color-warning);
    border-left: 4px solid var(--color-warning);
}

.alert-danger {
    background: var(--color-danger-subtle);
    color: var(--color-danger);
    border-left: 4px solid var(--color-danger);
}

.alert-info {
    background: var(--color-info-subtle);
    color: var(--color-info);
    border-left: 4px solid var(--color-info);
}

/* ============================================
   Dropdown - Aurora Style
   ============================================ */
.dropdown-menu {
    min-width: 200px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.2s ease;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--color-gray-50);
    color: var(--color-primary);
}

.dropdown-item.active,
.dropdown-item:active {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}

.dropdown-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 14px 8px;
}

.dropdown-divider {
    border-color: var(--border-light);
    margin: 4px 0;
}

/* ============================================
   Pagination - Aurora Style
   ============================================ */
.pagination {
    gap: 4px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.page-link:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
    color: var(--text-primary);
}

.page-link:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.page-item.active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.page-item.disabled .page-link {
    background: var(--color-gray-50);
    border-color: var(--border-light);
    color: var(--text-tertiary);
    cursor: not-allowed;
}

/* ============================================
   Modal - Aurora Style
   ============================================ */

/* Modal acima do sidebar */
.modal {
    z-index: 9999 !important;
}
.modal-backdrop {
    z-index: 9998 !important;
}

.modal-content {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--color-gray-50);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--color-gray-50);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-close {
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.btn-close:hover {
    opacity: 1;
}

/* ============================================
   Tabs - Aurora Style
   ============================================ */
.nav-tabs {
    border-bottom: 2px solid var(--border-light);
    gap: 8px;
    padding-bottom: 0;
}

.nav-tabs .nav-link {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: background var(--transition-fast);
}

.nav-tabs .nav-link:hover {
    color: var(--color-primary);
    background: var(--color-gray-50);
}

.nav-tabs .nav-link.active {
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
}

.nav-pills .nav-link {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-pills .nav-link:hover {
    color: var(--text-primary);
    background: var(--color-gray-200);
}

.nav-pills .nav-link.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ============================================
   Progress - Aurora Style
   ============================================ */
.progress {
    height: 8px;
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

/* ============================================
   Sidebar - Aurora Style Compact
   ============================================ */
.sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - 64px);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.collapsed {
    left: -240px;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: var(--color-gray-200);
    border-radius: 2px;
}

.sidebar-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 12px;
}

.sidebar-content > ul.nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar .nav-item {
    margin-bottom: 4px;
}

.sidebar .nav-item > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.sidebar .nav-item > a:hover {
    background: var(--color-gray-50);
    color: var(--text-primary);
}

.sidebar .nav-item.active > a {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-weight: 600;
}

.sidebar .nav-item > a i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar .nav-item > a p {
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .nav-item > a .caret {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.sidebar .nav-item > a[aria-expanded="true"] .caret {
    transform: rotate(90deg);
}

.sidebar .nav-item .collapse {
    padding-left: 24px;
}

.sidebar .nav-item .collapse .nav-item {
    margin-bottom: 2px;
}

.sidebar .nav-item .collapse .nav-item > a {
    padding: 8px 14px;
    font-size: 12px;
    color: var(--text-secondary);
}

.sidebar .nav-item .collapse .nav-item > a:hover {
    color: var(--color-primary);
    background: transparent;
}

.sidebar .nav-item .collapse .nav-item > a .sub-item {
    position: relative;
    padding-left: 12px;
}

.sidebar .nav-item .collapse .nav-item > a .sub-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-gray-300);
    transition: all var(--transition-fast);
}

.sidebar .nav-item .collapse .nav-item > a:hover .sub-item::before {
    background: var(--color-primary);
}

/* User Sidebar - Compact */
.user-sidebar {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-gray-50), var(--color-white));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

[data-theme="dark"] .user-sidebar {
    background: linear-gradient(135deg, var(--bg-input), var(--bg-card));
}

.user-sidebar .avatar-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--color-primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.user-sidebar .info {
    flex: 1;
    margin-left: 12px;
    min-width: 0;
}

.user-sidebar .info > a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-sidebar .info .user-level {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: capitalize;
    margin-top: 2px;
}

.user-sidebar .info .caret {
    font-size: 10px;
    margin-left: 4px;
}

.user-sidebar .collapse {
    margin-top: 8px;
}

.user-sidebar .collapse .nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-sidebar .collapse .nav li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 12px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.user-sidebar .collapse .nav li a:hover {
    color: var(--color-primary);
}

/* Sidebar Logo Area */
.sidebar .sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.sidebar .sidebar-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .sidebar-header .logo img {
    height: 32px;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

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

.sidebar-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 16px;
}

.sidebar-content > ul.nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar .nav-item {
    margin-bottom: 4px;
}

.sidebar .nav-item > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.sidebar .nav-item > a:hover {
    background: var(--color-gray-50);
    color: var(--text-primary);
}

.sidebar .nav-item.active > a {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-weight: 600;
}

.sidebar .nav-item > a i {
    font-size: 22px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar .nav-item > a p {
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .nav-item > a .caret {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.sidebar .nav-item > a[aria-expanded="true"] .caret {
    transform: rotate(90deg);
}

.sidebar .nav-item .collapse {
    padding-left: 28px;
}

.sidebar .nav-item .collapse .nav-item {
    margin-bottom: 2px;
}

.sidebar .nav-item .collapse .nav-item > a {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.sidebar .nav-item .collapse .nav-item > a:hover {
    color: var(--color-primary);
    background: transparent;
}

.sidebar .nav-item .collapse .nav-item > a .sub-item {
    position: relative;
    padding-left: 12px;
}

.sidebar .nav-item .collapse .nav-item > a .sub-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-gray-300);
    transition: all var(--transition-fast);
}

.sidebar .nav-item .collapse .nav-item > a:hover .sub-item::before {
    background: var(--color-primary);
}

/* User Sidebar - Aurora */
.user-sidebar {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-gray-50), var(--color-white));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.user-sidebar .avatar-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--color-primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.user-sidebar .info {
    flex: 1;
    margin-left: 12px;
    min-width: 0;
}

.user-sidebar .info > a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-sidebar .info .user-level {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: capitalize;
    margin-top: 2px;
}

.user-sidebar .info .caret {
    font-size: 10px;
    margin-left: 4px;
}

.user-sidebar .collapse {
    margin-top: 8px;
}

.user-sidebar .collapse .nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-sidebar .collapse .nav li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.user-sidebar .collapse .nav li a:hover {
    color: var(--color-primary);
}

/* ============================================
   Header - Aurora Style Compact
   ============================================ */
.header-top {
    position: sticky;
    top: 0;
    right: 0;
    left: 240px;
    height: 64px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    z-index: 1020;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: var(--shadow-sm);
}

.main-content {
    margin-left: 0;
    margin-top: 0;
    padding: 0;
    min-height: calc(100vh - 64px);
    transition: all var(--transition-base);
    overflow: visible;
}

/* Layout adjustments - reducing gaps */
.wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.wrapper .sidebar {
    width: 240px;
    flex-shrink: 0;
    position: fixed;
    top: 64px;
    left: 0;
    height: calc(100vh - 64px);
    z-index: 1000;
}

.wrapper .main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    min-height: 100vh;
    background: var(--bg-body);
}

.wrapper .main-panel .main-content {
    flex: 1;
    padding: 0;
    background: var(--bg-body);
}

.main-panel {
    width: 100%;
    padding: 0;
    min-height: calc(100vh - 64px);
    box-sizing: border-box;
    overflow: visible;
}

.main-panel .content {
    padding: 0;
}

.main-panel .panel-header {
    background: linear-gradient(135deg, #1978cb 0%, #2d4d6b 50%, #4a6788 100%);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.main-panel .page-inner {
    padding: 0 !important;
    margin: 0;
    width: 100%;
}

.main-panel .page-inner.mt--5 {
    margin-top: 0 !important;
}

.main-panel .py-5 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.main-panel .panel-header {
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.main-panel .bg-padrao-gradient {
    background: linear-gradient(135deg, #1978cb 0%, #2d4d6b 50%, #4a6788 100%) !important;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    width: 100%;
    box-sizing: border-box;
}

.main-panel .row {
    margin-left: 0;
    margin-right: 0;
}

.main-panel .row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

.main-panel .table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* ============================================
   Panel Header BG - Aurora Style
   ============================================ */
.panel-header-bg {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #3B82F6 100%) !important;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.panel-header-bg h2 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.panel-header-bg h5 {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin: 0;
}

.btn-periodoFiltro {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-periodoFiltro.active {
    background: white;
    color: #4a6788;
}

.span-date {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

.panel-header-bg .form-control {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    width: auto;
}

.panel-header-bg .form-control:focus {
    background: rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.4);
    color: white;
    outline: none;
}

.panel-header-bg select.form-control option {
    background: #1978cb;
    color: white;
}

.main-panel .card {
    margin-bottom: 16px;
    width: 100%;
}

/* Logo Header - style from masterAdmin layout */

/* Navbar Header */
.navbar-header {
    display: none;
}

.navbar-header[data-background-color="padrao"] {
    display: block;
}

/* Sidebar - Aurora Compact */
.sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 64px !important;
    bottom: 0;
    width: 240px !important;
    height: calc(100vh - 64px) !important;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 0;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: var(--color-gray-200);
    border-radius: 2px;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 12px;
}

.sidebar-content > ul.nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar .nav-item {
    margin-bottom: 4px;
}

.sidebar .nav-item > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.sidebar .nav-item > a:hover {
    background: var(--color-gray-50);
    color: var(--text-primary);
}

.sidebar .nav-item.active > a {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-weight: 600;
}

.sidebar .nav-item > a i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar .nav-item > a p {
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .nav-item > a .caret {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.sidebar .nav-item > a[aria-expanded="true"] .caret {
    transform: rotate(90deg);
}

.sidebar .nav-item .collapse {
    padding-left: 24px;
}

.sidebar .nav-item .collapse .nav-item {
    margin-bottom: 2px;
}

.sidebar .nav-item .collapse .nav-item > a {
    padding: 8px 14px;
    font-size: 12px;
    color: var(--text-secondary);
}

.sidebar .nav-item .collapse .nav-item > a:hover {
    color: var(--color-primary);
    background: transparent;
}

.sidebar .nav-item .collapse .nav-item > a .sub-item {
    position: relative;
    padding-left: 12px;
}

.sidebar .nav-item .collapse .nav-item > a .sub-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-gray-300);
    transition: all var(--transition-fast);
}

.sidebar .nav-item .collapse .nav-item > a:hover .sub-item::before {
    background: var(--color-primary);
}

/* User Sidebar - Compact */
.user-sidebar {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-gray-50), var(--color-white));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

[data-theme="dark"] .user-sidebar {
    background: linear-gradient(135deg, var(--bg-input), var(--bg-card));
}

.user-sidebar .avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--color-primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.user-sidebar .info {
    flex: 1;
    margin-left: 12px;
    min-width: 0;
}

.user-sidebar .info > a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-sidebar .info .user-level {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: capitalize;
    margin-top: 2px;
}

.user-sidebar .info .caret {
    font-size: 10px;
    margin-left: 4px;
}

.main-content {
    margin-left: 0;
    margin-top: var(--header-height);
    padding: 20px 24px;
    min-height: calc(100vh - var(--header-height));
    transition: all var(--transition-base);
}

/* Logo Header - Full Width Style */
.logo-header {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, #1978cb 0%, #2d4d6b 50%, #4a6788 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    height: var(--header-height);
}

.logo-header .logo img {
    height: 70px;
}

.logo-header .navbar-toggler,
.logo-header .topbar-toggler,
.logo-header .btn-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-header .navbar-toggler:hover,
.logo-header .topbar-toggler:hover,
.logo-header .btn-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.logo-header .navbar-toggler i,
.logo-header .topbar-toggler i,
.logo-header .btn-toggle i {
    font-size: 18px;
}

/* Navbar Header */
.navbar-header {
    display: none;
}

.navbar-header[data-background-color="padrao"] {
    display: block;
}

/* ============================================
   Theme Toggle - Aurora Style
   ============================================ */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: rotate(15deg);
}

.theme-toggle-btn i {
    font-size: 20px;
}

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

[data-theme="dark"] .theme-toggle-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ============================================
   Utility Classes - Aurora
   ============================================ */
.bg-white { background-color: var(--bg-card) !important; }
.bg-light { background-color: var(--color-gray-50) !important; }
.bg-primary { background-color: var(--color-primary) !important; }

.border { border: 1px solid var(--border-color) !important; }
.border-0 { border: 0 !important; }

.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-0 { border-radius: 0 !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-none { box-shadow: none !important; }

.m-0 { margin: 0 !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }

.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }

.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }

.d-flex { display: flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }

.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }

.flex-column { flex-direction: column !important; }

.w-100 { width: 100% !important; }

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease;
}

.animate-slideUp {
    animation: slideUp 0.4s ease;
}

/* ============================================
   Navbar - Aurora
   ============================================ */
.navbar {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-primary);
    background: var(--color-gray-50);
}

/* ============================================
   Responsive - Aurora
   ============================================ */
@media (max-width: 991px) {
    :root {
        --sidebar-width: 0px;
    }

    /* Mobile sidebar drawer */
    .sidebar {
        transform: translateX(-100%) !important;
        z-index: 2500 !important;
        width: 260px !important;
        top: 0 !important;
        height: 100vh !important;
        transition: transform 0.3s ease !important;
    }

    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    /* Overlay escuro ao abrir sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2400;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.show {
        display: block;
    }

    /* Logo header em mobile */
    .logo-header {
        width: 200px !important;
        left: 0 !important;
        z-index: 2300 !important;
        background: linear-gradient(135deg, #1978cb 0%, #2d4d6b 50%, #4a6788 100%) !important;
    }
    
    .logo-header .logo img {
        display: block !important;
        height: 70px !important;
    }
    
    .logo-header .logo-text {
        display: none;
    }

    /* Header top */
    .header-top {
        left: 0 !important;
        top: 0 !important;
    }

    .main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .main-wrapper.expanded {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 16px;
        margin-top: 64px !important;
    }

    /* Grids adaptam */
    .leis-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Tabelas scrolling */
    .table-wrap-y {
        max-height: 55vh;
    }
}

@media (max-width: 767px) {
    .stat-card {
        padding: 14px 16px;
    }

    .stat-card__value {
        font-size: 22px;
    }

    .card-body {
        padding: 14px;
    }

    .main-content {
        padding: 12px;
    }

    .btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    /* Grids single column */
    .leis-grid {
        grid-template-columns: 1fr !important;
    }
    
    .modalLeiGrid- {
        grid-template-columns: 1fr !important;
    }
    
    /* Header top compact */
    .header-top {
        height: 56px;
    }
    
    /* Panel header compact */
    .panel-header-bg {
        padding: 14px 16px;
    }
    
    .panel-header-bg h2 {
        font-size: 20px;
    }
    
    /* Tabelas ajustadas */
    .table-wrap-y {
        max-height: 50vh;
    }
    
    /* DataTables info escondido em mobile */
    .dataTables_wrapper .dataTables_info {
        display: none;
    }
}

/* ============================================
   DataTables - Aurora Enhancement
   ============================================ */

/* Wrapper externo - borda e shadow do container */
.table-wrap-outer {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Container horizontal EXTERNO - scroll X sempre visível */
.table-wrap-x {
    overflow-x: auto;
    overflow-y: hidden;
}

/* Container vertical INTERNO - scroll Y, max-height */
.table-wrap-y {
    max-height: 65vh;
    overflow-y: auto;
    min-width: max-content;
}

.table-wrap-y table {
    width: 100% !important;
    margin: 0 !important;
}

/* Cabeçalho fixo no scroll vertical */
.table-wrap-y table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-wrap-y table thead th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

/* Linhas zebradas */
.table-wrap-y table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.table-wrap-y table tbody tr:hover {
    background: var(--color-primary-subtle);
}

.table-wrap-y table tbody td {
    padding: 10px 14px;
    font-size: 13px;
    vertical-align: middle;
    border-color: var(--border-color);
}

/* Paginação melhorada */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--radius-sm) !important;
    padding: 6px 12px !important;
    margin: 0 2px !important;
    font-size: 13px !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--color-primary) !important;
    color: white !important;
    border-color: var(--color-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--color-primary) !important;
    color: white !important;
}

/* Length menu e info */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    background: var(--bg-input) !important;
    color: var(--text-primary) !important;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px var(--color-primary-subtle) !important;
    outline: none !important;
}

/* Botões de exportação */
.dataTables_wrapper .dt-buttons .btn {
    font-size: 12px !important;
    padding: 6px 12px !important;
    border-radius: var(--radius-sm) !important;
    margin-right: 4px !important;
}

.dataTables_wrapper .dataTables_info {
    font-size: 13px !important;
    color: var(--text-secondary) !important;
}

/* ============================================
   Select2 - Aurora Style
   ============================================ */
.select2-container--default .select2-selection--multiple {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    min-height: 38px !important;
    padding: 4px 8px !important;
    background: var(--bg-input) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--color-primary-subtle) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    color: var(--color-primary) !important;
    margin-top: 2px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--color-primary) !important;
    margin-right: 4px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: var(--color-danger) !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    margin-top: 4px !important;
    font-size: 13px !important;
}

.select2-dropdown {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    z-index: 9999 !important;
    max-height: 250px;
    overflow-y: auto;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--color-primary) !important;
}
