/* ===============================================
   SELLER ORDERS, COMMISSIONS & REPORTS STYLES
   =============================================== */

/* ================= SHARED HEADER STYLES ================= */
.seller_orders_header,
.seller_commissions_header,
.seller_reports_header {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.seller_orders_title,
.seller_commissions_title,
.seller_reports_title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seller_orders_subtitle,
.seller_commissions_subtitle,
.seller_reports_subtitle {
    font-size: 1rem;
    color: #9ca3af;
}

/* ================= COMMISSIONS HEADER SPECIAL ================= */
.seller_commissions_header_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.seller_commissions_total_card {
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    text-align: right;
}

.seller_commissions_total_label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.seller_commissions_total_amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.seller_commissions_percentage {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ================= STATS GRID ================= */
.seller_orders_stats,
.seller_commissions_stats,
.seller_reports_metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .seller_orders_stats,
    .seller_commissions_stats,
    .seller_reports_metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .seller_orders_stats,
    .seller_commissions_stats,
    .seller_reports_metrics {
        grid-template-columns: repeat(4, 1fr);
    }
}

.seller_orders_stat_card,
.seller_commissions_stat_card,
.seller_reports_metric_card {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.seller_orders_stat_card:hover,
.seller_commissions_stat_card:hover,
.seller_reports_metric_card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.seller_orders_stat_icon,
.seller_commissions_stat_icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(6, 182, 212, 0.2);
}

.seller_orders_stat_info h3,
.seller_commissions_stat_info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.seller_orders_stat_info p,
.seller_commissions_stat_info p {
    font-size: 0.875rem;
    color: #9ca3af;
}

.stat_trend {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.stat_trend.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.stat_trend.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ================= FILTERS ================= */
.seller_orders_filters,
.seller_commissions_filters {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.seller_orders_filters_left,
.seller_commissions_filters_left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
}

.seller_orders_search {
    padding: 0.625rem 1rem;
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.875rem;
    min-width: 250px;
}

.seller_orders_search:focus {
    outline: none;
    border-color: #06b6d4;
}

.seller_orders_filter_group,
.seller_commissions_filter_group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.seller_orders_filter_btn,
.seller_commissions_filter_btn {
    padding: 0.5rem 1rem;
    background: rgba(55, 65, 81, 0.5);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    text-decoration: none;
}

.seller_orders_filter_btn:hover,
.seller_commissions_filter_btn:hover {
    background: #374151;
}

.seller_orders_filter_btn.active,
.seller_commissions_filter_btn.active {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: white;
    border-color: transparent;
}

.seller_orders_select,
.seller_commissions_select {
    padding: 0.625rem 1rem;
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.875rem;
    cursor: pointer;
}

/* ================= TABLES ================= */
.seller_orders_table_container,
.seller_commissions_table_container,
.seller_reports_table_container {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.seller_orders_table,
.seller_commissions_table,
.seller_reports_table {
    width: 100%;
    border-collapse: collapse;
}

.seller_orders_table thead,
.seller_commissions_table thead,
.seller_reports_table thead {
    background: rgba(55, 65, 81, 0.5);
}

.seller_orders_table th,
.seller_commissions_table th,
.seller_reports_table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.seller_orders_table td,
.seller_commissions_table td,
.seller_reports_table td {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.875rem;
}

.seller_order_row:hover,
.seller_commission_row:hover {
    background: rgba(55, 65, 81, 0.3);
}

.seller_order_id,
.seller_commission_order {
    font-family: 'Courier New', monospace;
    color: #06b6d4;
    font-weight: 600;
}

.seller_order_customer strong,
.seller_commission_customer strong {
    display: block;
    color: #fff;
    margin-bottom: 0.25rem;
}

.seller_order_customer small {
    color: #9ca3af;
    font-size: 0.75rem;
}

.seller_order_date,
.seller_commission_date {
    display: block;
    color: #fff;
    margin-bottom: 0.25rem;
}

.seller_order_time,
.seller_commission_time {
    display: block;
    color: #9ca3af;
    font-size: 0.75rem;
}

.seller_order_amount,
.seller_commission_amount {
    font-weight: 700;
    color: #06b6d4;
}

.seller_order_commission {
    font-weight: 700;
    color: #10b981;
}

.seller_order_status,
.seller_commission_status {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.seller_order_status.status_pending,
.seller_commission_status.status_pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.seller_order_status.status_processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.seller_order_status.status_completed,
.seller_commission_status.status_paid {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.seller_order_status.status_cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.seller_order_btn_view {
    padding: 0.5rem 0.75rem;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.seller_order_btn_view:hover {
    background: rgba(6, 182, 212, 0.3);
}

/* ================= EMPTY STATE ================= */
.seller_orders_empty,
.seller_commissions_empty {
    padding: 4rem 2rem;
}

.seller_orders_empty_state,
.seller_commissions_empty_state {
    text-align: center;
}

.seller_orders_empty_icon,
.seller_commissions_empty_icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.seller_orders_empty_state h3,
.seller_commissions_empty_state h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.seller_orders_empty_state p,
.seller_commissions_empty_state p {
    color: #9ca3af;
}

/* ================= PAGINATION ================= */
.seller_orders_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.seller_orders_page_btn,
.seller_orders_page_number {
    padding: 0.625rem 1rem;
    background: rgba(30, 30, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.seller_orders_page_btn:hover,
.seller_orders_page_number:hover {
    background: rgba(55, 65, 81, 0.7);
}

.seller_orders_page_number.active {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    border-color: transparent;
}

/* ================= MODAL ================= */
.seller_orders_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.seller_orders_modal {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.seller_orders_modal_header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seller_orders_modal_title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.seller_orders_modal_close {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller_orders_modal_body {
    padding: 1.5rem;
}

.seller_orders_loading {
    text-align: center;
    padding: 2rem;
}

.seller_orders_spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(6, 182, 212, 0.2);
    border-top-color: #06b6d4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================= CHART CARDS ================= */
.seller_commissions_chart_card,
.seller_reports_chart_card {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.seller_commissions_chart_header,
.seller_reports_chart_header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seller_commissions_chart_title,
.seller_reports_chart_title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
}

.seller_commissions_chart_subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
}

.seller_commissions_chart_body,
.seller_reports_chart_body {
    padding: 1.5rem;
    height: 300px;
}

/* ================= COMMISSIONS SUMMARY ================= */
.seller_commissions_summary {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}

.seller_commissions_summary_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #9ca3af;
}

.seller_commissions_summary_row:last-child {
    border-bottom: none;
}

.seller_commissions_summary_row.highlight {
    color: #fff;
    font-size: 1.125rem;
}

.seller_commissions_summary_row strong {
    color: #fff;
    font-weight: 700;
}

/* ================= REPORTS SPECIFIC ================= */
.seller_reports_date_selector {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.seller_reports_date_options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.seller_reports_date_btn {
    padding: 0.625rem 1.25rem;
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.seller_reports_date_btn:hover {
    background: #374151;
}

.seller_reports_date_btn.active {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: white;
    border-color: transparent;
}

.seller_reports_export_btn {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(90deg, #10b981, #059669);
    border: none;
    border-radius: 0.75rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 600;
}

.seller_reports_export_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.seller_reports_metric_card {
    flex-direction: column;
    gap: 0.75rem;
}

.seller_reports_metric_header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seller_reports_metric_icon {
    font-size: 1.5rem;
}

.seller_reports_metric_header h3 {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
}

.seller_reports_metric_value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.seller_reports_metric_footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.metric_trend {
    font-weight: 600;
}

.metric_trend.positive {
    color: #10b981;
}

.metric_trend.negative {
    color: #ef4444;
}

.seller_reports_charts_row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .seller_reports_charts_row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.seller_reports_section_header {
    margin-bottom: 1.5rem;
}

.seller_reports_section_header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.seller_reports_section_header p {
    font-size: 0.875rem;
    color: #9ca3af;
}

.seller_reports_top_products {
    margin-bottom: 2rem;
}

.seller_reports_products_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .seller_reports_products_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.seller_reports_product_item {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.seller_reports_product_rank {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.seller_reports_product_image {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller_reports_product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller_reports_product_placeholder {
    font-size: 24px;
}

.seller_reports_product_info {
    flex: 1;
}

.seller_reports_product_info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.seller_reports_product_info p {
    font-size: 0.75rem;
    color: #9ca3af;
}

.seller_reports_product_stats {
    text-align: right;
}

.seller_reports_product_sales {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #06b6d4;
    margin-bottom: 0.25rem;
}

.seller_reports_product_commission {
    display: block;
    font-size: 0.75rem;
    color: #10b981;
}

.seller_reports_performance {
    margin-bottom: 2rem;
}

.seller_reports_table .total_row {
    background: rgba(6, 182, 212, 0.1);
    font-weight: 700;
}

.seller_reports_table .highlight {
    color: #10b981;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .seller_orders_table,
    .seller_commissions_table,
    .seller_reports_table {
        font-size: 0.75rem;
    }
    
    .seller_orders_table th,
    .seller_orders_table td,
    .seller_commissions_table th,
    .seller_commissions_table td,
    .seller_reports_table th,
    .seller_reports_table td {
        padding: 0.75rem 0.5rem;
    }
}
