* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f2e;
    --bg-tertiary: #252b3b;
    --bg-card: #1e2432;
    --text-primary: #ffffff;
    --text-secondary: #a0a8b8;
    --text-muted: #6b7280;
    --border-color: #2d3441;
    /* BizXHub/OmniDirect Brand Colors */
    --brand-primary: #4a5568; /* Dark Blue/Purple */
    --brand-accent: #39ff14; /* Bright Lime Green */
    --brand-sky-blue: #87ceeb; /* Sky Blue */
    --accent-primary: #39ff14; /* Lime Green for primary actions */
    --accent-secondary: #4a5568; /* Dark Blue/Purple */
    --accent-hover: #50ff2a; /* Lighter lime green on hover */
    --status-created: #3b82f6;
    --status-shipped: #10b981;
    --status-cancelled: #ef4444;
    --status-error: #f59e0b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Navigation */
.top-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger-menu {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.hamburger-menu:hover {
    background: var(--bg-tertiary);
}

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

.top-nav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.brand {
    font-weight: 700;
}

.brand-bizxhub {
    color: var(--brand-sky-blue);
}

.brand-omnidirect {
    color: var(--brand-accent);
}

.separator {
    color: var(--text-muted);
    margin: 0 8px;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

/* Main Layout */
.main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 70px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease, transform 0.3s ease;
    position: relative;
}

.sidebar:hover {
    width: 260px;
}

/* Sidebar text hidden by default, shown on hover */
.sidebar-item-text,
.sidebar-section-header-text {
    display: none;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.sidebar-nav {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
}

.sidebar-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Text will be shown on sidebar hover */

.sidebar:hover .sidebar-item {
    justify-content: flex-start;
    padding: 12px;
}

.sidebar:hover .sidebar-item-text {
    display: inline;
    opacity: 1;
}

.sidebar-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.sidebar-item.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.sidebar-item svg {
    flex-shrink: 0;
}

.sidebar-section {
    margin-top: 8px;
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

/* Section header text shown on hover */

.sidebar:hover .sidebar-section-header {
    justify-content: flex-start;
    padding: 12px;
}

.sidebar:hover .sidebar-section-header-text {
    display: inline;
    opacity: 1;
}

.sidebar-section-header .chevron-icon {
    display: none;
    margin-left: auto;
    transition: transform 0.2s;
}

.sidebar:hover .sidebar-section-header .chevron-icon {
    display: inline-block;
}

.sidebar-section-header:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.sidebar-section-header.expanded .chevron-icon {
    transform: rotate(180deg);
}

.sidebar-submenu {
    padding-left: 0;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.sidebar:hover .sidebar-submenu {
    padding-left: 8px;
}

.sidebar-submenu .sidebar-item {
    padding-left: 12px;
}

.sidebar:hover .sidebar-submenu .sidebar-item {
    padding-left: 20px;
}

.sidebar-submenu.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.sidebar-item-group {
    display: flex;
    flex-direction: column;
}

.sidebar-submenu-nested {
    padding-left: 32px;
    margin-top: 4px;
}

.beta-badge {
    background: var(--accent-primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    font-weight: 600;
}

.sidebar-item-bottom {
    margin-top: auto;
    margin-bottom: 16px;
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-primary);
    padding: 24px;
}

/* Page Sections */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-updated {
    color: var(--text-secondary);
    font-size: 14px;
}

.refresh-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(57, 255, 20, 0.2);
    border-color: var(--brand-accent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.view-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-amount {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-accent);
    margin-top: 8px;
    display: block;
    visibility: visible;
}

.card-filter {
    display: flex !important;
    gap: 8px;
    margin-bottom: 12px;
    visibility: visible;
}

.card-month-select,
.card-year-select {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.card-month-select:hover,
.card-year-select:hover {
    border-color: var(--brand-accent);
}

.card-month-select:focus,
.card-year-select:focus {
    outline: none;
    border-color: var(--brand-accent);
}

/* Dashboard Chart Section */
.dashboard-chart-section {
    margin-top: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.page-section.active .dashboard-chart-section {
    display: block !important;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* Coming Soon Message */
.coming-soon-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Order Details Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-card);
    margin: 2% auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Order Details */
.order-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detail-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.detail-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    font-size: 14px;
    color: var(--text-primary);
}

.detail-item .amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-accent);
}

.address-block {
    background: var(--bg-tertiary);
    padding: 12px;
    border-radius: 6px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Items Table */
.items-table-wrapper {
    overflow-x: auto;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.items-table thead {
    background: var(--bg-tertiary);
}

.items-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.items-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
}

.items-table tbody tr:hover {
    background: var(--bg-tertiary);
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.event-type {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.event-type-shipped {
    background: rgba(16, 185, 129, 0.2);
    color: var(--status-shipped);
}

.event-type-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: var(--status-cancelled);
}

.event-type-error {
    background: rgba(245, 158, 11, 0.2);
    color: var(--status-error);
}

.event-date {
    font-size: 12px;
    color: var(--text-muted);
}

.event-details {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-top: 8px;
}

.event-details.error {
    color: var(--status-error);
    background: rgba(239, 68, 68, 0.1);
    padding: 8px;
    border-radius: 4px;
}

.error-message {
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--status-cancelled);
    border-radius: 8px;
    color: var(--status-cancelled);
    text-align: center;
}

/* User Menu */
.top-nav-right {
    position: relative;
}

.user-avatar {
    position: relative;
    cursor: pointer;
}

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 150px;
    z-index: 1000;
    overflow: hidden;
}

.user-menu-item {
    padding: 12px 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.user-menu-item:hover {
    background: var(--bg-tertiary);
}

.user-menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.user-menu-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1);
}


.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
}

.search-bar svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--brand-accent);
    color: var(--bg-primary);
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--accent-hover);
}

.content-actions {
    display: flex;
    gap: 16px;
}

.action-link {
    color: var(--brand-accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.action-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Orders Section */
.orders-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
}

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

.section-title-bar h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.section-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.filters-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.filter-group label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.filter-input,
.filter-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--brand-accent);
}

.btn-filter {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter:hover {
    background: var(--bg-secondary);
    border-color: var(--brand-accent);
}

.btn-filter-clear {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter-clear:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-export {
    margin-left: 8px;
}

.export-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 420px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: exportNotifyIn 0.25s ease-out;
}

.export-notification.progress {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.export-notification.success {
    background: var(--success-bg, #0d3322);
    border: 1px solid var(--success-border, #1a4d32);
    color: var(--success-text, #a7f3d0);
}

.export-notification.error {
    background: var(--error-bg, #2d0d0d);
    border: 1px solid var(--error-border, #4d1a1a);
    color: var(--error-text, #fecaca);
}

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

#itemsPerPage {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.items-per-page {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.pagination-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    font-weight: 600;
}

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

.pagination-ellipsis {
    color: var(--text-secondary);
    padding: 0 8px;
    font-size: 14px;
}

.btn-sample {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 10px;
}

.btn-sample:hover {
    background: var(--bg-secondary);
    border-color: var(--brand-accent);
}

.btn-sync {
    background: var(--brand-accent);
    color: var(--bg-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-sync:hover {
    background: var(--accent-hover);
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px;
}

.orders-table thead {
    background: var(--bg-secondary);
}

/* Column widths - optimized for screen fit */
.orders-table th:nth-child(1),
.orders-table td:nth-child(1) {
    width: 11%;
}

.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
    width: 10%;
}

.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
    width: 12%;
}

.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
    width: 9%;
}

.orders-table th:nth-child(5),
.orders-table td:nth-child(5) {
    width: 11%;
}

.orders-table th:nth-child(6),
.orders-table td:nth-child(6) {
    width: 12%;
}

.orders-table th:nth-child(7),
.orders-table td:nth-child(7) {
    width: 11%;
}

.orders-table th:nth-child(8),
.orders-table td:nth-child(8) {
    width: 8%;
}

.order-link {
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.order-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.orders-table th {
    padding: 10px 8px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orders-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orders-table tbody tr {
    transition: background 0.2s;
}

.orders-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.orders-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-created {
    background: rgba(59, 130, 246, 0.2);
    color: var(--status-created);
}

.status-shipped {
    background: rgba(16, 185, 129, 0.2);
    color: var(--status-shipped);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: var(--status-cancelled);
}

.status-error {
    background: rgba(245, 158, 11, 0.2);
    color: var(--status-error);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.app-build-footer {
    position: fixed;
    bottom: 0;
    right: 0;
    font-size: 10px;
    color: var(--text-muted);
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-top-left-radius: 4px;
    z-index: 999;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 60px;
        height: calc(100vh - 60px);
        transform: translateX(-100%);
        z-index: 99;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content-area {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        max-width: 100%;
    }

    .content-actions {
        justify-content: flex-start;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}
