:root {
    --olist-blue: #002d4b;
    --olist-blue-sub: color-mix(in srgb, var(--olist-blue), white 5%);
    --olist-blue-dark: #001b2d;
    --olist-blue-medium: #003e67;
    --olist-green: #0091FF;
    --bg-gray: #f4f7f9;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #dce2e6;
    --card-bg: #ffffff;
    --sidebar-primary-width: 65px;
    --sidebar-secondary-width: 240px;
    --olist-orange: #ff922b;
}

:root.dark-theme {
    --bg-gray: #0f111a;
    --text-dark: #e6e6e6;
    --text-light: #a0a0a0;
    --border-color: #1e2130;
    --card-bg: #161925;
    --olist-blue: #0a0c14;
    --olist-blue-sub: #131620; /* Midpoint based on provided image */
    --glass-bg: rgba(22, 25, 37, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --tab-active: #ffffff;
    --tab-inactive: #a0a0a0;
    --input-bg: #1e2130;
}

* {
    box-sizing: border-box;
    transition: all 0.2s ease;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-gray);
    margin: 0;
    color: var(--text-dark);
    display: flex;
    height: 100vh;
    overflow: hidden;
    font-size: 15px;
}

/* Sidebar Styling */
nav#primary-side {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-primary-width);
    height: 100vh;
    background: var(--olist-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    z-index: 1001;
    transition: width 0.3s ease, padding 0.3s ease;
    overflow-x: visible;
    overflow-y: clip;
}

nav#primary-side:hover,
body.sidebar-open nav#primary-side {
    width: var(--sidebar-secondary-width);
    align-items: stretch;
    padding: 20px 10px;
}

nav#secondary-side {
    position: fixed;
    left: var(--sidebar-primary-width);
    top: 0;
    width: var(--sidebar-secondary-width);
    height: 100vh;
    background: var(--olist-blue-sub);
    display: none; /* Hidden by default */
    flex-direction: column;
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0,0,0,0.3);
    transition: left 0.3s ease;
}

body.sidebar-open nav#secondary-side {
    display: flex;
    left: var(--sidebar-secondary-width);
}

main {
    margin-left: var(--sidebar-primary-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-gray);
}

.secondary-header {
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.secondary-header h3 {
    margin: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    opacity: 0.8;
}

.secondary-header i.pin-icon {
    font-size: 12px;
    opacity: 0.5;
    cursor: pointer;
}

.sub-menu-container {
    padding: 10px 0;
}

.sub-menu-item {
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.sub-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sub-menu-item:hover, .sub-menu-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sub-menu-item.active {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    border-right: 4px solid var(--olist-green);
}

.nav-icon {
    width: 100%;
    height: 46px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    padding: 0 10px;
}

.nav-icon i {
    font-size: 20px;
    min-width: 26px;
    text-align: center;
}

.nav-icon span {
    margin-left: 15px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: none;
}

nav#primary-side:hover .nav-icon span,
body.sidebar-open .nav-icon span {
    opacity: 1;
    display: block;
}

nav#primary-side:hover .nav-icon,
body.sidebar-open .nav-icon {
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.05);
}

.nav-icon:hover, .nav-icon.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-icon.active {
    background: var(--olist-blue-sub);
    color: var(--olist-green);
    border-radius: 12px;
    z-index: 1002;
}

.nav-icon.active::before {
    content: '';
    position: absolute;
    left: -10px; /* Alinhado à borda da sidebar se houver padding */
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--olist-green);
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 0 10px var(--olist-green);
}

.nav-icon.active i {
    color: var(--olist-green);
}

/* Main Content Area */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    height: 50px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb-item {
    cursor: pointer;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    opacity: 0.5;
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

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

.user-profile, .store-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.store-selector {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 8px;
}

.store-selector option {
    background: var(--card-bg);
    color: var(--text-dark);
}


#moduleArea {
    flex: 1;
    padding: 15px 25px;
    overflow-y: auto;
}

/* Cards and UI Elements */
.status-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.status-card:hover {
    transform: translateY(-2px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.status-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 85, 255, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.status-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.status-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.data-table-container {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 10px; /* Espaço para a scrollbar não cobrir conteúdo */
}

/* Custom Scrollbar */
.data-table-container::-webkit-scrollbar {
    height: 6px;
}
.data-table-container::-webkit-scrollbar-track {
    background: transparent;
}
.data-table-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}
.data-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Module Header Area */
.module-header {
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.data-table th {
    padding: 12px 20px;
    text-align: left;
    color: var(--text-light);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sortable-column {
    cursor: pointer;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.sort-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 18px;
    margin-left: 6px;
    opacity: 0.4;
}

.sort-icons i {
    font-size: 13px;
    height: 8px;
    display: flex;
    align-items: center;
}

.sort-icons .up {
    margin-bottom: -1px;
}

/* Quando o campo está ordenado como ascendente */
.sort-icons.asc {
    opacity: 1;
}
.sort-icons.asc .down {
    opacity: 0.2;
}
.sort-icons.asc .up {
    color: var(--olist-blue-light); /* Ou branco se preferir */
    opacity: 1;
}

/* Quando o campo está ordenado como descendente */
.sort-icons.desc {
    opacity: 1;
}
.sort-icons.desc .up {
    opacity: 0.2;
}
.sort-icons.desc .down {
    color: var(--olist-blue-light);
    opacity: 1;
}

.data-table tbody tr {
    background: var(--card-bg);
    border-radius: 12px;
}

.data-table td {
    padding: 12px 10px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.data-table td:first-child {
    border-left: 1px solid var(--border-color);
    border-radius: 12px 0 0 12px;
}

.data-table td:last-child {
    border-right: 1px solid var(--border-color);
    border-radius: 0 12px 12px 0;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-concluido { background: rgba(81, 207, 102, 0.1); color: var(--olist-green); }
.badge-erro { background: rgba(250, 82, 82, 0.1); color: #fa5252; }
.badge-pendente { background: rgba(255, 146, 43, 0.1); color: var(--olist-orange); }

.price-warning {
    color: #ff4d4d;
    font-weight: 700;
    text-decoration: underline dotted;
    cursor: help;
    background: rgba(255, 77, 77, 0.05);
    padding: 2px 5px;
    border-radius: 4px;
}

/* Buttons */
.btn-blue {
    background: linear-gradient(135deg, #0055ff, #0044cc);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 85, 255, 0.3);
}

/* Module Header and Search */
.module-header {
    margin-bottom: 15px;
}

.module-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.module-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.search-bar-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.advanced-search {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.advanced-search input {
    width: 100%;
    height: 36px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 45px 0 15px;
    color: var(--text-dark);
    font-size: 15px;
}

.advanced-search .search-icons {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    color: var(--text-light);
}

.clear-icon {
    cursor: pointer;
    transition: color 0.2s;
    font-size: 14px;
}

.clear-icon:hover {
    color: var(--olist-orange);
}

.search-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.search-filter-btn:hover {
    background: rgba(255,255,255,0.05);
}

.search-filter-btn.active {
    background: rgba(81, 207, 102, 0.1);
    color: var(--olist-green);
    border-color: var(--olist-green);
}

/* Module Tabs */
.module-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tab {
    position: relative;
    padding: 10px 0;
    color: var(--tab-inactive);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tab span {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
}

.tab:hover {
    color: var(--text-dark);
}

.tab.active {
    color: var(--text-dark);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--olist-green);
    border-radius: 3px 3px 0 0;
}

/* Enhanced Table */
.data-table-container {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.data-table {
    border-spacing: 0;
}

.data-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.data-table th {
    background: rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    border-top: none;
    border-bottom: 1px solid var(--border-color);
}

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

.checkbox-col {
    width: 35px;
    text-align: center;
    padding-left: 15px !important;
    padding-right: 0 !important;
}

.action-col {
    width: 80px;
    text-align: center;
}

.row-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0.3;
}

tr:hover .row-actions {
    opacity: 1;
}

.row-actions i {
    cursor: pointer;
    font-size: 14px;
}

.row-actions i:hover {
    color: var(--olist-green);
}

/* Pagination Bar */
.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
}

.pagination-info {
    font-size: 14px;
    color: var(--text-light);
}

.pagination-pages {
    display: flex;
    gap: 8px;
}

.page-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-light);
}

.page-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-dark);
}

.page-item.active {
    background: var(--olist-green);
    color: #fff;
    font-weight: 700;
}

.nav-separator { font-size: 10px; text-transform: uppercase; color: var(--text-light); margin: 20px 0 10px 0; opacity: 0.6; letter-spacing: 1px; text-align: center; width: 100%; }
/* Action Buttons Styling */
.module-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 0;
}

.btn-pill {
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    width: auto;
    min-width: 140px;
    transition: all 0.2s ease;
}

.btn-pill-primary {
    background: #0061ff;
    color: white;
}

.btn-pill-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-pill-outline .dots-circle {
    width: 24px;
    height: 24px;
    background: #0061ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

.btn-tune {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.tabs-row-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-color);
}


/* Column Panel Drawer */
.column-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    z-index: 2100; /* Acima de tudo */
    box-shadow: -10px 0 50px rgba(0,0,0,0.3);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.column-panel.form-panel {
    width: 550px;
    right: -550px;
}

.column-panel.open {
    right: 0 !important;
}

.column-panel-header {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.column-panel-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.column-panel-header .btn-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.column-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 30px;
}

.column-panel-info {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.5;
}

.column-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.column-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
    cursor: grab;
    background: var(--card-bg);
    user-select: none;
}

.column-item:active {
    cursor: grabbing;
}

.column-item.dragging {
    opacity: 0.5;
    background: var(--olist-blue-sub);
    border: 1px dashed var(--olist-green);
}

.drag-handle {
    color: var(--text-light);
    font-size: 14px;
    opacity: 0.5;
    cursor: grab;
}

.column-item label {
    font-size: 14px;
    cursor: pointer;
    order: 2;
}

.column-item .switch {
    order: 1;
}

/* Toggle Switch Styling - Clean Pill from Image */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #f8fafc;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: #0091FF;
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: #fff;
}



.column-panel-footer {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn-apply {
    padding: 12px 35px;
    border-radius: 50px;
    background: #0061ff;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
}

.badge-ativo { background: rgba(0, 145, 255, 0.1); color: #0091FF; }
.badge-erro { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* =============================================
   VARIAÇÕES DE PRODUTO
   ============================================= */

/* Linha do produto PAI com variações ou PRODUTO SIMPLES - Cores Base */
tr.row-pai-variacao td, tr.row-produto-simples td {
    background: rgba(81, 207, 102, 0.04);
    border-top: 2px solid rgba(81, 207, 102, 0.3) !important;
}

tr.row-pai-variacao td:first-child, tr.row-produto-simples td:first-child {
    border-left: 4px solid var(--olist-green) !important;
}

/* Sobrescritas por Situação (Ativo, Inativo, Excluído) */
tr.row-status-ativo td {
    background: rgba(81, 207, 102, 0.04) !important;
    border-top: 2px solid rgba(81, 207, 102, 0.3) !important;
}
tr.row-status-ativo td:first-child {
    border-left: 4px solid #51cf66 !important;
}

tr.row-status-inativo td {
    background: rgba(255, 193, 7, 0.05) !important;
    border-top: 2px solid rgba(255, 193, 7, 0.3) !important;
}
tr.row-status-inativo td:first-child {
    border-left: 4px solid #ffc107 !important;
}

tr.row-status-excluido td {
    background: rgba(239, 68, 68, 0.05) !important;
    border-top: 2px solid rgba(239, 68, 68, 0.3) !important;
}
tr.row-status-excluido td:first-child {
    border-left: 4px solid #ef4444 !important;
}

/* Linhas das VARIAÇÕES (filhos) */
tr.row-variacao-filho td {
    background: rgba(0, 0, 0, 0.18);
    padding-top: 9px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    border-top: none !important;
}

tr.row-variacao-filho td:first-child {
    border-left: none !important;
    position: relative;
    padding-left: 45px !important;
}

tr.row-variacao-filho td:first-child::before {
    content: '';
    position: absolute;
    left: 20px; /* Jogado um pouco para a direita */
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(81, 207, 102, 0.4); /* Verde padrão */
}

/* Overrides para a barrinha das variações por status */
tr.row-variacao-filho.row-status-ativo td:first-child::before { background: rgba(81, 207, 102, 0.6) !important; }
tr.row-variacao-filho.row-status-inativo td:first-child::before { background: rgba(255, 193, 7, 0.6) !important; }
tr.row-variacao-filho.row-status-excluido td:first-child::before { background: rgba(239, 68, 68, 0.6) !important; }

/* Simbolo ↳ de indent */
.variacao-indent {
    color: #4DB8FF;
    opacity: 0.8;
    margin-right: 6px;
    font-size: 14px;
}

/* Badge de variações — mesmo visual do badge 'A' (pill escuro + texto azul) */
.badge-variacao {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 145, 255, 0.08);
    color: #4DB8FF;
    border: 1px solid rgba(0, 145, 255, 0.2);
    margin-left: 8px;
    vertical-align: middle;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.3px;
    transition: background 0.15s, border-color 0.15s;
}

.badge-variacao:hover {
    background: rgba(0, 145, 255, 0.16);
    border-color: rgba(0, 145, 255, 0.4);
}

/* Ícone de chevron ao lado do checkbox */
.variacao-toggle-icon {
    font-size: 10px;
    color: #4DB8FF;
    cursor: pointer;
    margin-left: 4px;
}

/* Animação ao expandir */
tr.row-variacao-filho {
    animation: fadeInVariacao 0.15s ease;
}

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

/* Custom Dropdown for Situacao */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 20px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    justify-content: space-between;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: none;
    z-index: 100;
    min-width: 160px;
    overflow: hidden;
}

.custom-dropdown.open .dropdown-menu {
    display: block;
    animation: fadeInDropdown 0.2s ease;
}

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

.dropdown-item {
    padding: 12px 18px;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-gray);
    color: var(--olist-green);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* Premium Labels and Badges */
.label-premium {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: rgba(81, 207, 102, 0.15);
    color: #51cf66;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.custom-select {
    background: var(--input-bg, #fff);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.input-line {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-dark);
    border-radius: 0;
}

.input-line:focus {
    outline: none;
    border-bottom-color: var(--olist-blue);
}

.search-result-item:hover {
    background: rgba(0, 145, 255, 0.1) !important;
}
