/* ������ʽ���� */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ====================================
   ��ǩ����ģ̬����ʽ - ������ǿ��
   ==================================== */
.tag-manager-modal {
    max-width: 500px;
    width: 95%;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    padding: 20px;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tag-manager-modal h2 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f5;
    text-align: center;
}

.tag-manager-actions {
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-end;
}

/* ====================================
   һ����布局样式
   ==================================== */
.header-section.unified {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #dee2e6;
    display: block;
}

/* 头部布局：三列布局 */
.header-layout {
    display: grid;
    grid-template-columns: 200px 1fr 500px;
    gap: 20px;
    align-items: start;
}

/* 左侧：标题和用户信息（占据两行高度） */
.header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.header-left .app-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

/* 中间：统计信息 */
.stats-section {
    min-width: 0;
}

/* 右侧：上传区域 */
.upload-section.unified {
    min-width: 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dee2e6;
}

.app-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

/* 简洁用户信息：位于标题右侧 */
.simple-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    padding: 0;
}

.simple-user-info .username {
    font-weight: 600;
    color: #495057;
}

.simple-user-info .user-role {
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
}

.simple-user-info .user-role.role-admin {
    background: #28a745;
    color: white;
}

.simple-user-info .user-role.role-user {
    background: #6c757d;
    color: white;
}

.simple-user-info .logout-link {
    color: #6c757d;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.simple-user-info .logout-link:hover {
    color: #dc3545;
}

/* 紧凑型上传数据模块 */
.upload-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 32px;
}

.upload-section.unified {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-radius: 6px;
    padding: 10px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    display: block;
    backdrop-filter: blur(10px);
}

.upload-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 12px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.week-input {
    padding: 4px 6px;
    border: 1px solid #ced4da;
    border-radius: 2px;
    font-size: 10px;
    background: white;
    height: 24px;
    min-width: 80px;
}

.week-input.unified {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 3px;
    min-width: 100px;
    height: 26px;
}

/* ͳ����Ϣ�o�ܲ�局 */
.inventory-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-item {
    min-width: 120px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-item.total-stat {
    background: linear-gradient(135deg, #6f42c1 0%, #6610f2 100%);
    color: white;
    border: 2px solid #5a32a3;
    box-shadow: 0 2px 6px rgba(111, 66, 193, 0.3);
}

.stat-item.total-stat .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.stat-item.total-stat .stat-sku,
.stat-item.total-stat .stat-style,
.stat-item.total-stat .stat-amount {
    color: white;
}

.stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-numbers-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.stat-sku, .stat-style {
    font-size: 10px;
    font-weight: 600;
    color: #495057;
}

.stat-amount {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
}

.inventory-bg {
    background: #d1ecf1;
    color: #0c5460;
}

.sales-bg {
    background: #d4edda;
    color: #155724;
}

.user-welcome {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.username {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.user-role {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.role-admin {
    background: #fff3cd;
    color: #856404;
}

.role-user {
    background: #d1ecf1;
    color: #0c5460;
}

.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.logout-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* ====================================
   款式SKU详情工具提示样式
   ==================================== */
.style-sku-tooltip {
    position: fixed;
    z-index: 1000;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    max-width: 400px;
    max-height: 500px;
    overflow-y: auto;
    font-size: 12px;
    animation: tooltipFadeIn 0.2s ease-out;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f3f5;
}

.tooltip-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.tooltip-week {
    font-size: 11px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
}

.tooltip-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.summary-item span {
    font-size: 11px;
    color: #6c757d;
}

.summary-item strong {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
}

.sku-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sku-detail-item {
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: white;
}

.sku-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.sku-code {
    font-weight: 600;
    color: #2c3e50;
    font-size: 12px;
}

.sku-sales {
    font-size: 11px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
}

.sku-ratios {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.ratio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ratio-label {
    font-size: 10px;
    color: #6c757d;
}

.ratio-value {
    font-size: 11px;
    font-weight: 600;
}

.ratio-value.positive {
    color: #28a745;
}

.ratio-value.negative {
    color: #dc3545;
}

/* 鼠标悬停样式 */
.style-code-main {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.style-code-main:hover {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 2px 4px;
}

.logout-btn:active {
    transform: translateY(0);
}

/* ====================================
   ���ɸѡ��ʽ
   ==================================== */
.combined-filter-group {
    position: relative;
    min-width: 300px;
    margin-bottom: 10px;
}

.combined-filter-container {
    position: relative;
    display: inline-block;
}

.combined-filter-input {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    min-width: 300px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.combined-filter-input:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.combined-filter-input .active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 280px;
}

.filter-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
}

.combined-filter-arrow {
    margin-left: auto;
    font-size: 12px;
    color: #666;
}

.combined-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 700px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
    margin-top: 4px;
}

.combined-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.filter-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    gap: 6px;
}

.clear-all-btn,
.close-btn {
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    font-size: 12px;
}

.clear-all-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.close-btn:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.combined-filter-content {
    padding: 12px;
}

.filter-dimension {
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.3s ease;
}

.dimension-header:hover {
    background: #f0f0f0;
}

.dimension-title {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
}

.dimension-arrow {
    font-size: 10px;
    color: #666;
}

.dimension-content {
    padding: 12px;
    background: white;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.option-item:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.option-item:has(.option-radio:checked) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.option-radio {
    margin-right: 8px;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.option-label {
    font-size: 12px;
    cursor: pointer;
    flex: 1;
}

/* ˮƽ����ѡ����ʽ */
.horizontal-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.multi-column-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 6px;
    margin-top: 6px;
    max-height: 180px;
    overflow-y: auto;
    padding: 3px;
}

.horizontal-options .option-item {
    flex: 0 0 auto;
    min-width: 70px;
    text-align: center;
    justify-content: center;
    padding: 4px 8px;
}

/* ѡ�ť��ʽ */
.option-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.option-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.option-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* ���۵�ѡ������ */
.collapsible-options {
    position: relative;
}

.collapsible-options .options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-options .options-container.expanded {
    max-height: none;
}

/* �۵��л���ť */
.collapse-toggle-btn {
    margin-top: 8px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    color: #6c757d;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    display: inline-block;
}

.collapse-toggle-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* ���۵�ѡ����ʽ */
.collapsible-options {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-options.collapsed {
    max-height: 0;
}

/* ˮƽ���۵����ݹ��� */
.horizontal-options.collapsible-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.horizontal-options.collapsible-options.collapsed {
    max-height: 0;
}

/* �۵���ť��ʽ */
.collapse-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #6c757d;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.collapse-toggle:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.collapse-toggle .arrow {
    transition: transform 0.3s ease;
}

.collapse-toggle.collapsed .arrow {
    transform: rotate(180deg);
}

/* ��ǩɸѡ��������ʽ */
.tag-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 400px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    margin-top: 2px;
    max-height: 300px;
    overflow-y: auto;
}

.tag-filter-options {
    padding: 8px;
}

.tag-filter-option {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.tag-filter-option:hover {
    background: #f8f9fa;
}

.tag-filter-option input[type="checkbox"] {
    margin-right: 8px;
}

.tag-filter-actions {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.tag-filter-actions button {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.tag-filter-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.dimension-content .filter-select {
    width: 100%;
    max-width: none;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.dimension-content .tag-filter-container {
    position: relative;
    width: 100%;
}

.dimension-content .tag-filter-input {
    width: 100%;
    max-width: none;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: white;
    cursor: pointer;
}

.dimension-content .tag-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 400px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    margin-top: 2px;
    max-height: 300px;
}

/* ��Ӧʽ���� */
@media (max-width: 768px) {
    .combined-filter-group {
        min-width: 250px;
    }

    .combined-filter-input {
        min-width: 250px;
    }

    .combined-filter-dropdown {
        width: 400px;
        left: -50px;
        right: -50px;
    }

    .dimension-content .tag-filter-dropdown {
        width: 300px;
    }
}

/* ====================================
   ��¼������ʽ - �������
   ==================================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: cyberGlow 6s ease-in-out infinite alternate;
}

.login-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        linear-gradient(45deg, transparent 48%, rgba(0, 255, 255, 0.1) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 0, 255, 0.1) 50%, transparent 52%);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes cyberGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.7;
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-60px, -60px);
    }
}

.login-box {
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(25px);
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(0, 255, 255, 0.3),
        0 0 30px rgba(0, 255, 255, 0.2),
        0 0 60px rgba(255, 0, 255, 0.1);
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: cyberSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

@keyframes cyberSlideIn {
    0% {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.login-box h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #00ffff 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.login-subtitle {
    color: #8b8b9d;
    font-size: 14px;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.input-group {
    position: relative;
}

.input-group::before {
    content: '?';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
    font-size: 12px;
    z-index: 2;
}

.login-input {
    width: 100%;
    padding: 16px 20px 16px 35px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    font-family: 'Courier New', monospace;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.login-input:focus {
    outline: none;
    border-color: #00ffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.2);
    transform: translateY(-1px);
}

.login-input::placeholder {
    color: #8b8b9d;
    font-weight: 400;
    font-family: 'Courier New', monospace;
}

.login-btn {
    background: linear-gradient(135deg, #00ffff 0%, #ff00ff 100%);
    color: #0f0c29;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
}

.login-btn:hover:not(:disabled)::before {
    left: 100%;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    letter-spacing: 2px;
}

.login-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    padding: 12px 16px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin-top: 8px;
    font-weight: 500;
}

.success-message {
    color: #28a745;
    font-size: 14px;
    padding: 12px 16px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin-top: 8px;
    font-weight: 500;
}

.btn-create-tag {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.btn-create-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s;
}

.btn-create-tag:hover::before {
    left: 100%;
}

.btn-create-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.45);
}

.btn-create-tag:active {
    transform: translateY(-1px);
}

.tag-list {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 6px;
}

.tag-list::-webkit-scrollbar {
    width: 8px;
}

.tag-list::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.tag-list::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.tag-list::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

.tag-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.tag-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tag-item:hover::after {
    opacity: 1;
}

/* ====================================
   �û����������ʽ
   ==================================== */

/* �û��������� */
.user-management-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

/* �û�����ͷ�� */
.user-management-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.user-management-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-management-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* ����û���� */
.add-user-form {
    padding: 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.add-user-form h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-user-form h4::before {
    content: '+';
    background: #28a745;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

.form-input {
    padding: 12px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-select {
    padding: 12px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* �û��б� */
.user-list-container {
    padding: 0;
}

.user-list-header {
    padding: 16px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-list-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.user-count {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    font-size: 14px;
}

.user-table td {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.user-table tr:hover {
    background: #f8f9fa;
}

/* �û�״̬ */
.user-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-active .status-dot {
    background: #28a745;
}

.status-inactive .status-dot {
    background: #dc3545;
}

/* �û���ɫ */
.user-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.role-admin {
    background: #fff3cd;
    color: #856404;
}

.role-user {
    background: #d1ecf1;
    color: #0c5460;
}

/* ������ť */
.user-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-toggle-status {
    background: #17a2b8;
    color: white;
}

.btn-toggle-status:hover {
    background: #138496;
    transform: translateY(-1px);
}

.btn-reset-password {
    background: #ffc107;
    color: #212529;
}

.btn-reset-password:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* ����״̬ */
.loading-users {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ��״̬ */
.empty-users {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.empty-users-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ��Ӧʽ��� */
@media (max-width: 768px) {
    .user-management-container {
        margin: 10px;
        border-radius: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .user-table {
        display: block;
        overflow-x: auto;
    }

    .user-actions {
        flex-direction: column;
        gap: 4px;
    }

    .btn-action {
        justify-content: center;
    }
}

.tag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: #007bff;
}

.tag-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.tag-color-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.tag-item:hover .tag-color-dot {
    transform: scale(1.2) rotate(15deg);
}

.tag-item:hover .tag-color-dot::before {
    width: 80%;
    height: 80%;
}

.tag-item-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.tag-item:hover .tag-item-name {
    color: #007bff;
}

.tag-item-actions {
    display: flex;
    gap: 10px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.tag-item:hover .tag-item-actions {
    opacity: 1;
}

.tag-item-actions .btn-edit,
.tag-item-actions .btn-delete {
    padding: 7px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.btn-edit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s;
}

.btn-edit:hover::before {
    left: 100%;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.45);
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.btn-delete::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s;
}

.btn-delete:hover::before {
    left: 100%;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.45);
}

/* ��״̬��ʽ */
.empty-tag-list {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 14px;
}

.empty-tag-list p {
    margin-bottom: 16px;
}

.empty-tag-list .btn-create-tag {
    margin: 0 auto;
}

/* ����/�༭��ǩģ̬����ʽ���� - ��ǿ�� */
.create-edit-tag-modal {
    max-width: 450px;
    width: 90%;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    border: 1px solid #e9ecef;
    padding: 28px;
    animation: modalSlideIn 0.3s ease-out;
}

.create-edit-tag-modal h2 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f5;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tag-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.form-group input[type="text"] {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.3s ease;
    background: white;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.form-group input[type="text"]::placeholder {
    color: #adb5bd;
}

.form-group input[type="color"] {
    width: 60px;
    height: 60px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    padding: 4px;
    background: white;
    transition: all 0.3s ease;
}

.form-group input[type="color"]:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.form-group input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.tag-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.tag-form-actions .btn-save,
.tag-form-actions .btn-cancel {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 80px;
}

.tag-form-actions .btn-save {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.tag-form-actions .btn-save::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s;
}

.tag-form-actions .btn-save:hover::before {
    left: 100%;
}

.tag-form-actions .btn-save:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.45);
}

.tag-form-actions .btn-save:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tag-form-actions .btn-cancel {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

.tag-form-actions .btn-cancel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s;
}

.tag-form-actions .btn-cancel:hover::before {
    left: 100%;
}

.tag-form-actions .btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.45);
}

.create-edit-tag-modal h2 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f5;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tag-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tag-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tag-form .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.tag-form .form-group input[type="text"] {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.tag-form .form-group input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.tag-form .form-group input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    background: none;
    padding: 2px;
}



/* ɾ��ȷ��ģ̬����ʽ���� - ��ǿ�� */
.delete-confirm-modal {
    max-width: 450px;
    width: 90%;
    background: linear-gradient(145deg, #ffffff 0%, #fff5f5 100%);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    border: 2px solid #f8d7da;
    padding: 28px;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.delete-confirm-modal::before {
    content: '??';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 100px;
    opacity: 0.05;
    pointer-events: none;
}

.delete-confirm-modal h2 {
    font-size: 20px;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.delete-confirm-modal h2::before {
    content: '??';
    font-size: 24px;
}

.delete-confirm-modal p {
    font-size: 15px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 24px;
    padding: 16px;
    background: #fff5f5;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.delete-confirm-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.btn-delete-confirm,
.delete-confirm-actions .btn-cancel {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 100px;
}

.btn-delete-confirm {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.35);
}

.btn-delete-confirm::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s;
}

.btn-delete-confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.45);
}

.btn-delete-confirm:hover:not(:disabled)::before {
    left: 100%;
}

.btn-delete-confirm:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.delete-confirm-actions .btn-cancel {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 3px 8px rgba(108, 117, 125, 0.3);
}

.delete-confirm-actions .btn-cancel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s;
}

.delete-confirm-actions .btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

.delete-confirm-actions .btn-cancel:hover::before {
    left: 100%;
}



/* ģ̬��رհ�ť���� */
.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-close-btn:hover {
    background: #dc3545;
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* ģ̬�򱳾����� */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

/* ��Ӧʽ���� - ��ǿ�� */
@media (max-width: 768px) {

    .tag-manager-modal,
    .create-edit-tag-modal,
    .delete-confirm-modal {
        max-width: 400px;
        padding: 24px;
        border-radius: 14px;
    }

    .tag-manager-modal h2,
    .create-edit-tag-modal h2,
    .delete-confirm-modal h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .tag-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .tag-item-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 12px;
    }

    .tag-item-actions .btn-edit,
    .tag-item-actions .btn-delete {
        flex: 1;
        min-width: 0;
    }

    .tag-form-actions,
    .delete-confirm-actions {
        gap: 12px;
    }

    .delete-confirm-modal p {
        font-size: 14px;
        padding: 14px;
    }
}

@media (max-width: 480px) {

    .tag-manager-modal,
    .create-edit-tag-modal,
    .delete-confirm-modal {
        max-width: 320px;
        padding: 20px;
        border-radius: 12px;
    }

    .tag-manager-modal h2,
    .create-edit-tag-modal h2,
    .delete-confirm-modal h2 {
        font-size: 16px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .tag-manager-actions,
    .tag-item-actions,
    .tag-form-actions,
    .delete-confirm-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-create-tag,
    .btn-edit,
    .btn-delete,
    .tag-form-actions .btn-save,
    .tag-form-actions .btn-cancel,
    .btn-delete-confirm,
    .delete-confirm-actions .btn-cancel {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    .tag-item-name {
        font-size: 14px;
    }

    .tag-color-dot {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }

    .tag-list {
        max-height: 280px;
    }

    .form-group input[type="text"] {
        padding: 10px 14px;
        font-size: 14px;
    }

    .form-group input[type="color"] {
        width: 50px;
        height: 50px;
    }

    .delete-confirm-modal p {
        font-size: 13px;
        padding: 12px;
        line-height: 1.5;
    }
}

/* ͨ��ģ̬�򱳾���ʽ��ǿ - �Ѻϲ���ǰ�涨�� */

/* ����Ч����ǿ */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.btn-create-tag:active,
.btn-edit:active,
.btn-delete:active,
.tag-form-actions .btn-save:active,
.tag-form-actions .btn-cancel:active,
.btn-delete-confirm:active,
.delete-confirm-actions .btn-cancel:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, -apple-system, BlinkMacSystemFont;
    background: #f4f7f9;
    color: #333;
    font-size: 12px;
    line-height: 1.4;
}

.container {
    max-width: 2400px;
    margin: 0 auto;
    padding: 20px;
}

/* ====================================
   ͷ������ (Header)
   ==================================== */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e1e4e8;
    gap: 20px;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex: 1;
}

.app-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    white-space: nowrap;
}

/* ���ͳ����Ϣ */
.inventory-stats {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.stat-item {
    background: white;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #e1e4e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-width: 120px;
}

.stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
    white-space: nowrap;
}

.stat-numbers {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-sku,
.stat-style,
.stat-amount {
    font-size: 10px;
    color: #495057;
    white-space: nowrap;
}

.stat-sku {
    color: #007bff;
    font-weight: 600;
}

.stat-style {
    color: #28a745;
}

.stat-amount {
    color: #dc3545;
    font-weight: 600;
}

.inventory-bg {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white !important;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 10px !important;
    margin: 0;
}

.sales-bg {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white !important;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 10px !important;
    margin: 0;
}

.total-stat {
    background: linear-gradient(135deg, #6f42c1 0%, #6610f2 100%);
    border: 2px solid #5a32a3;
    box-shadow: 0 2px 6px rgba(111, 66, 193, 0.3);
}

.total-stat .stat-label {
    color: white;
    font-weight: 700;
}

.total-stat .stat-sku,
.total-stat .stat-style {
    color: #e9ecef !important;
}

.total-stat .inventory-bg {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 10px !important;
    font-weight: 700;
}

.total-stat .sales-bg {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 10px !important;
    font-weight: 700;
}

.stat-numbers-compact {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.stat-row .stat-sku,
.stat-row .stat-style,
.stat-row .stat-amount {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.stat-row .stat-sku,
.stat-row .stat-style {
    font-size: 9px;
    color: #495057;
    white-space: nowrap;
}

.stat-row .stat-sku {
    color: #007bff;
}

.stat-row .stat-style {
    color: #28a745;
}

/* 紧凑文件输入区域 */
.file-inputs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-inputs.unified {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.file-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.file-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 50px;
}

.file-group.unified {
    gap: 4px;
    min-height: 48px;
}

.file-group label {
    font-size: 10px;
    color: #6a737d;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
}

.file-group.unified label {
    font-size: 10px;
    color: #495057;
    margin-bottom: 2px;
}

.file-group.required label {
    color: #007bff;
}

.file-group input[type="file"] {
    font-size: 9px;
    padding: 5px 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 100%;
    background: white;
    height: 28px;
    line-height: 1.2;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    box-sizing: border-box;
}

.file-group.unified input[type="file"] {
    font-size: 9px;
    padding: 5px 6px;
    width: 110px;
    height: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
}

.file-group.required label::after,
.file-group.unified.required label::after {
    content: " *";
    color: #dc3545;
    font-size: 8px;
}

/* 紧凑上传按钮 */
.upload-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.btn-upload {
    padding: 5px 10px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    height: 26px;
    min-width: 65px;
    box-shadow: 0 1px 3px rgba(0, 123, 255, 0.3);
}

.btn-upload.unified {
    padding: 6px 14px;
    font-size: 11px;
    min-width: 75px;
    height: 28px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 1px 4px rgba(40, 167, 69, 0.3);
}

.btn-upload:hover:not(:disabled) {
    background: #0056b3;
}

.btn-upload:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}

.btn-loading {
    background: #ffc107;
    color: #333;
}

/* ====================================
   ��Ϣ�ͼ���״̬
   ==================================== */
.message-box {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.message-box.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-box.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ====================================
   ɸѡ���� (Filter)
   ==================================== */
.filter-section {
    background: white;
    padding: 10px 12px;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.filter-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 2px 0;
}

.filter-group-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.filter-group-row:last-child {
    margin-bottom: 0;
}

.filter-group-row .filter-group {
    margin-bottom: 0;
}

.search-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.search-section .search-input-container {
    flex: 1;
    max-width: 300px;
}

.search-section .search-input {
    width: 100%;
    min-width: 200px;
}

/* ͳһɸѡ�������ʽ - �����߶��� */
.filter-section .filter-controls .search-input {
    width: 200px !important;
    min-width: 200px !important;
    height: 28px !important;
    line-height: 18px !important;
    display: flex !important;
    align-items: center !important;
}

.filter-section .filter-controls .combined-filter-group {
    min-width: 200px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
}

.filter-section .filter-controls .combined-filter-input {
    min-width: 200px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    line-height: 18px !important;
}

.filter-section .filter-controls .filter-select {
    width: 120px !important;
    min-width: 120px !important;
    height: 28px !important;
    line-height: 18px !important;
    display: flex !important;
    align-items: center !important;
}

.filter-section .filter-controls .sort-order-btn {
    width: 60px !important;
    min-width: 60px !important;
    height: 28px !important;
    line-height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.filter-section .filter-controls .stats-info {
    margin-left: auto;
    white-space: nowrap;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    line-height: 18px !important;
}

/* ��Ӧʽ��� - �ֻ��� */
@media (max-width: 768px) {
    .filter-section .filter-controls {
        gap: 8px;
    }

    .filter-section .filter-controls .filter-group {
        flex-wrap: wrap;
    }

    .filter-section .filter-controls .search-input {
        width: 100% !important;
        min-width: 100% !important;
    }

    .filter-section .filter-controls .filter-select {
        width: 100% !important;
        min-width: 100% !important;
    }

    .filter-section .filter-controls .sort-order-btn {
        width: 100% !important;
        min-width: 100% !important;
    }

    .filter-section .filter-controls .stats-info {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
}

.filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.filter-select {
    padding: 5px 8px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 11px;
    background: white;
    min-width: 110px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 8px;
    line-height: 18px !important;
    display: flex !important;
    align-items: center !important;
}

/* ��������ʽ */
.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 5px 24px 5px 8px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 11px;
    width: 140px;
    transition: all 0.2s ease;
    line-height: 18px !important;
    display: flex !important;
    align-items: center !important;
}

.search-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.2);
}

.clear-search-btn {
    position: absolute;
    right: 6px;
    background: transparent;
    color: #6c757d;
    border: none;
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.clear-search-btn:hover {
    color: #343a40;
}

.sort-order-btn {
    padding: 5px 8px;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    min-width: 60px;
    transition: background-color 0.2s;
}

.sort-order-btn:hover {
    background: #e9ecef;
}

.stats-info {
    font-size: 11px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 3px;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-info {
    color: #007bff;
    font-weight: 600;
}

/* ====================================
   ����� (Table)
   ==================================== */
.data-table-section {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table-header {
    display: flex;
    background: #343a40;
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-header>div {
    padding: 10px 8px;
    border-right: 1px solid #495057;
    white-space: nowrap;
    text-align: center;
}

.table-header>div:last-child {
    border-right: none;
}

/* �п���� */
.image-col {
    width: 80px;
    flex-shrink: 0;
}

.sku-col {
    width: 120px;
    flex-shrink: 0;
    text-align: left;
}

.style-col {
    width: 120px;
    flex-shrink: 0;
    text-align: left;
}

.quantity-col {
    width: 80px;
    flex-shrink: 0;
}

.transit-col {
    width: 80px;
    flex-shrink: 0;
}

.inventory-col {
    width: 90px;
    flex-shrink: 0;
}

.week-col {
    flex: 1;
    min-width: 280px;
}

.week-header {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
}

/* ������ݹ��� */
.table-body {
    max-height: 70vh;
    overflow-y: auto;
    will-change: transform;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.1s;
    contain: layout style;
}

.table-row:hover {
    background: #f8f9fa;
}

.table-row>div {
    padding: 8px 8px;
    border-right: 1px solid #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-row>div:last-child {
    border-right: none;
}

/* ����ͼ */
.sku-image-container {
    width: 50px;
    height: 50px;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f9fa;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.sku-image-container:hover {
    box-shadow: 0 0 0 2px #007bff;
}

.sku-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: #adb5bd;
    font-size: 10px;
    text-align: center;
    display: none;
    /* Ĭ�����أ�ͼƬ����ʧ��ʱ��ʾ */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* SKU��Ϣ */
.sku-col {
    justify-content: flex-start;
}

.sku-code {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 12px;
    cursor: pointer;
}

.sku-code:hover {
    color: #007bff;
}

/* ��ʽ������ʽ */
.style-col {
    justify-content: flex-start;
}

.style-code {
    font-size: 11px;
    color: #495057;
    font-weight: 500;
    word-break: break-all;
    line-height: 1.3;
}

/* 新品标签样式 */
.new-badge {
    background: #e74c3c;
    color: white;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

/* 成本缺失警告标签样式 */
.cost-warning-badge {
    color: #ff6b35;
    font-size: 12px;
    font-weight: bold;
    margin-left: 4px;
    cursor: pointer;
    display: inline-block;
    animation: pulse 2s infinite;
}

.cost-warning-badge:hover {
    color: #ff4500;
    transform: scale(1.2);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.quantity-badge,
.transit-badge,
.inventory-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.inventory-badge.stopped {
    background: #6c757d;
    color: white;
}

/* ���������� */
.week-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100px;
}

.week-data {
    flex: 1;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #e1e4e8;
}

.shop-list {
    margin-bottom: 5px;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    padding: 1px 0;
}

.shop-name {
    font-weight: 500;
    color: #555;
    font-size: 11px;
    min-width: 50px;
}

.shop-stats {
    display: flex;
    gap: 10px;
}

.shop-stats .stat {
    font-size: 11px;
    min-width: 40px;
    text-align: right;
    font-weight: 500;
}

.stat {
    font-size: 11px;
    min-width: 45px;
    text-align: right;
    font-weight: 500;
}

.week-total {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    background: #f1f3f5;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #343a40;
}

.week-shipping-ratio {
    display: flex;
    justify-content: center;
    padding: 2px 8px;
    margin-top: 4px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.shipping-ratio {
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.no-data-cell {
    color: #adb5bd;
    font-style: italic;
    text-align: center;
    padding: 10px 0;
    font-size: 11px;
}

/* ��ע�������Ƴ� */

/* ����ϵͳ��ʽ */
.week-comments {
    padding-top: 5px;
}

.comments-list {
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.style-sku-comments {
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 8px;
    border-left: 3px solid #e9ecef;
    padding-left: 8px;
}

.comment-item {
    padding: 6px;
    margin-bottom: 4px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e1e4e8;
    font-size: 11px;
    line-height: 1.4;
}

.comment-item.sku-comment {
    background: #f0f8ff;
    border-color: #cce5ff;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 10px;
}

.comment-user {
    font-weight: 600;
    color: #495057;
}

.comment-sku {
    color: #6c757d;
    font-style: italic;
}

.comment-time {
    color: #adb5bd;
    font-size: 9px;
}

.comment-content {
    color: #343a40;
    word-break: break-word;
    white-space: pre-wrap;
}

/* 媒体链接样式 */
.media-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    margin-right: 10px;
    font-size: 12px;
}

.media-link:hover {
    color: #0056b3;
    text-decoration: none;
}

/* 媒体弹窗样式 - 类似淘宝小弹窗 */
.media-modal {
    max-width: 600px;
    max-height: 500px;
    width: auto;
    height: auto;
    padding: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.media-modal .modal-body {
    padding: 0;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    height: 100%;
}

.image-item img {
    max-width: 500px;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    border-radius: 4px;
}

.video-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    height: 100%;
}

.video-item video {
    max-width: 500px;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.media-modal .modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* 评论媒体区域样式 */
.comment-media {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f3f5;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 10px;
}

.comment-stats {
    color: #6c757d;
}

.comment-details-btn {
    padding: 2px 6px;
    border: 1px solid #007bff;
    border-radius: 3px;
    background: transparent;
    color: #007bff;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-details-btn:hover {
    background: #007bff;
    color: white;
}

/* ����ɾ����ť��ʽ */
.comment-delete-btn {
    padding: 0 4px;
    border: 1px solid #dc3545;
    border-radius: 3px;
    background: transparent;
    color: #dc3545;
    font-size: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 4px;
    line-height: 1;
    height: 14px;
    width: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-delete-btn:hover {
    background: #dc3545;
    color: white;
}

/* ����ģ̬��ɾ����ť��ʽ */
.comment-modal-delete-btn {
    padding: 4px 8px;
    border: 1px solid #dc3545;
    border-radius: 4px;
    background: transparent;
    color: #dc3545;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.comment-modal-delete-btn:hover {
    background: #dc3545;
    color: white;
}

/* ��ʽά����������ʽ */
.comments-col {
    width: 80px;
    min-width: 80px;
    text-align: center;
    padding: 0 4px;
}

.comments-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comments-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.week-comment-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
}

.comment-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.count-badge {
    background: #007bff;
    color: white;
    border-radius: 8px;
    padding: 1px 5px;
    font-size: 9px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.no-comments {
    color: #adb5bd;
    font-size: 10px;
}

/* ====================================
   ���ۿ���ʽ - ������ǿ��
   ==================================== */
.comment-input-section {
    margin-top: 8px;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-input-section:focus-within {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.comment-input {
    width: 100%;
    font-size: 12px;
    line-height: 1.5;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    resize: vertical;
    min-height: 36px;
    max-height: 80px;
    font-family: inherit;
    outline: none;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comment-input:focus {
    border-color: #667eea;
    box-shadow: inset 0 1px 3px rgba(102, 126, 234, 0.1), 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.comment-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px;
    gap: 8px;
}

.comment-submit-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.comment-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
}

.comment-submit-btn:hover:not(:disabled)::before {
    left: 100%;
}

.comment-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.comment-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.comment-submit-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* �����б����� */
.comment-item {
    padding: 8px 10px;
    margin-bottom: 6px;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-item:hover {
    background: linear-gradient(145deg, #f0f8ff 0%, #ffffff 100%);
    border-color: #cce5ff;
    transform: translateX(2px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.comment-user {
    font-weight: 600;
    color: #495057;
    font-size: 11px;
}

.comment-time {
    color: #adb5bd;
    font-size: 9px;
}

.comment-content {
    color: #343a40;
    word-break: break-word;
    white-space: pre-wrap;
    font-size: 11px;
    line-height: 1.4;
}

/* ����ͳ������ */
.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 10px;
}

.comment-stats {
    color: #6c757d;
    font-weight: 500;
}

.comment-details-btn {
    padding: 4px 8px;
    border: 1px solid #667eea;
    border-radius: 4px;
    background: transparent;
    color: #667eea;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-details-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* ����ģ̬����ʽ */
.comment-modal {
    max-width: 600px;
    width: 95%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    padding: 20px;
    animation: modalSlideIn 0.3s ease-out;
}

.comment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.comment-modal-sku-info {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #f0f8ff;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    gap: 15px;
    margin-bottom: 0;
}

.sku-info-label {
    font-weight: 600;
    color: #495057;
}

.sku-info-value {
    color: #007bff;
    background-color: #e7f3ff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.comment-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.comment-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 4px;
}

.comment-modal-close:hover {
    color: #dc3545;
}

.comment-modal-content {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.comment-modal-item {
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e4e8;
}

.comment-modal-item.sku-comment {
    background: #f0f8ff;
    border-color: #cce5ff;
}

.comment-modal-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-modal-user {
    font-weight: 600;
    color: #495057;
}

.comment-modal-sku {
    color: #6c757d;
    font-style: italic;
}

.comment-modal-time {
    color: #adb5bd;
    font-size: 11px;
}

.comment-modal-text {
    color: #343a40;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

/* �������������ʽ */
.load-more-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #6c757d;
    font-size: 12px;
    gap: 8px;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.load-complete {
    text-align: center;
    padding: 15px;
    color: #28a745;
    font-size: 12px;
    font-weight: 500;
    background: #f8f9fa;
    border-top: 1px solid #e1e4e8;
}

.no-filtered-data {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e4e8;
}

.search-no-result {
    margin-top: 10px;
    color: #dc3545;
    font-weight: 500;
}

.no-data-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e4e8;
}

/* ====================================
   ��ɫϵͳ (Color System)
   ==================================== */
/* ������ */
.positive {
    color: #28a745;
}

.negative {
    color: #dc3545;
}

.high {
    background: #d4edda;
    color: #155724;
}

.medium {
    background: #fff3cd;
    color: #856404;
}

.low {
    background: #f8d7da;
    color: #721c24;
}

.critical {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
}

.infinite {
    background: #e9ecef;
    color: #6c757d;
}

/* �˷�ռ�� */
.shipping-ratio.high {
    background: #d4edda;
    color: #155724;
}

.shipping-ratio.medium {
    background: #fff3cd;
    color: #856404;
}

.shipping-ratio.low {
    background: #f8d7da;
    color: #721c24;
}

.shipping-ratio.critical {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
}

/* ������� */
.quantity-normal {
    background: #e9ecef;
    color: #343a40;
}

.quantity-high {
    background: #d4edda;
    color: #155724;
}

.quantity-low {
    background: #f8d7da;
    color: #721c24;
}

/* ��;���� */
.transit-normal {
    background: #e9ecef;
    color: #343a40;
}

.transit-high {
    background: #cce5ff;
    color: #004085;
}

/* ====================================
   �ײ�״̬��
   ==================================== */
.status-bar {
    margin-top: 20px;
    padding: 8px 15px;
    background: #e9ecef;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}

/* ====================================
   ����ͼģ̬�� (Modal)
   ==================================== */
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.modal-close-btn:hover {
    color: #343a40;
}

.modal-content h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 10px;
}

.chart-container {
    width: 100%;
    height: 350px;
    margin-bottom: 20px;
}

.modal-details {
    font-size: 14px;
    color: #495057;
}

.modal-details p {
    margin-bottom: 5px;
}

/* ���������� */
.table-body::-webkit-scrollbar {
    width: 6px;
}

.table-body::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.table-body::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 3px;
}

.table-body::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* ====================================
   ��ͼ�л�
   ==================================== */
.view-toggle-section {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.view-toggle {
    display: flex;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 4px;
    border: 1px solid #e1e4e8;
}

.view-toggle-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.view-toggle-btn.active {
    background: #007bff;
    color: white;
}

.view-toggle-btn:hover:not(.active) {
    background: #e9ecef;
}

/* ====================================
   ����ά�ȱ����ʽ
   ==================================== */
.shop-col {
    width: 150px;
    flex-shrink: 0;
    text-align: left;
}

.shop-sku-col {
    width: 80px;
    flex-shrink: 0;
}

.sales-quantity-col {
    width: 100px;
    flex-shrink: 0;
    text-align: center;
}

.sales-quantity-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 12px;
}

/* �������� */
.shop-name-main {
    font-weight: 600;
    color: #2c3e50;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 0;
}

.shop-name-main:hover {
    color: #007bff;
}

/* �������ݻ��� */
.sku-count-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    background: #e9ecef;
    color: #343a40;
}

/* ���������� */
.week-data-shop {
    padding: 8px;
}

.shop-week-stats {
    margin-bottom: 8px;
}

.shop-week-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 11px;
}

.stat-label {
    color: #6c757d;
    font-weight: 500;
}

.stat-value {
    font-weight: 600;
    color: #343a40;
}

/* ====================================
   ������ʽ��ʽ
   ==================================== */
.top-styles {
    border-top: 1px dashed #e1e4e8;
    padding-top: 8px;
}

.top-styles-title {
    font-size: 10px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 4px;
}

.top-style-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.top-style-item {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    background: #f8f9fa;
    gap: 4px;
    align-items: center;
}

.top-style-item.highlight {
    background: #fff3cd;
    font-weight: 600;
}

.top-style-name {
    color: #495057;
    flex: 1;
    min-width: 60px;
    font-weight: 500;
}

.top-style-sales {
    color: #28a745;
    font-weight: 600;
    min-width: 30px;
    text-align: right;
}

.top-style-price {
    color: #007bff;
    min-width: 40px;
    text-align: right;
    font-weight: 500;
}

.top-style-margin {
    min-width: 35px;
    text-align: right;
    font-weight: 600;
}

.top-style-ratio {
    min-width: 35px;
    text-align: right;
    font-weight: 600;
    color: #6f42c1;
}

/* ��ʽ����չ�� */
.style-detail-toggle {
    font-size: 10px;
    color: #007bff;
    cursor: pointer;
    text-align: center;
    padding: 4px;
    margin-top: 4px;
    border: 1px dashed #007bff;
    border-radius: 3px;
    background: #e9f5ff;
    transition: all 0.2s ease;
}

.style-detail-toggle:hover {
    background: #d1ecff;
    border-color: #0056b3;
    color: #0056b3;
}

/* ��ϸ��ʽ�б� */
.style-detail-list {
    margin-top: 8px;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    background: #f8f9fa;
}

.style-detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    padding: 2px 4px;
    border-bottom: 1px solid #e9ecef;
    gap: 4px;
    align-items: center;
    transition: background-color 0.1s;
}

.style-detail-item:hover {
    background: #e9ecef;
}

.style-detail-item:last-child {
    border-bottom: none;
}

.style-detail-index {
    color: #6c757d;
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 8px;
}

.style-detail-name {
    color: #495057;
    flex: 1;
    min-width: 60px;
    font-weight: 500;
}

.style-detail-sales {
    color: #28a745;
    font-weight: 600;
    min-width: 25px;
    text-align: right;
}

.style-detail-price {
    color: #007bff;
    min-width: 35px;
    text-align: right;
    font-weight: 500;
}

.style-detail-margin {
    min-width: 30px;
    text-align: right;
    font-weight: 600;
}

.style-detail-ratio {
    min-width: 30px;
    text-align: right;
    font-weight: 600;
    color: #6f42c1;
}

/* ��ʽά���ض���ʽ */
.style-col-main {
    width: 120px;
    flex-shrink: 0;
    text-align: left;
}

.sku-count-col {
    width: 80px;
    flex-shrink: 0;
}

.style-code-main {
    font-weight: 600;
    color: #2c3e50;
    font-size: 12px;
    cursor: pointer;
    word-break: break-all;
    line-height: 1.3;
}

.style-code-main:hover {
    color: #007bff;
}

/* ��ʽ��������ʽ */
.style-week-summary {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e1e4e8;
}

.style-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    font-size: 11px;
}

.total-label {
    color: #6c757d;
    font-weight: 500;
}

.total-value {
    font-weight: 600;
    color: #343a40;
}

.shop-distribution {
    margin-top: 5px;
}

.distribution-title {
    font-size: 10px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 3px;
}

/* ���ɸѡ����ʽ */
.filter-group .clear-search-btn {
    position: static;
    margin-left: 5px;
    padding: 2px 6px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    background: #f8f9fa;
}

.filter-group .clear-search-btn:hover {
    background: #e9ecef;
}

/* ��Ӧʽ��Ƶ��� */
@media (max-width: 1200px) {
    .week-col {
        min-width: 250px;
    }

    .sku-col,
    .style-col {
        width: 100px;
    }

    .shop-col {
        width: 120px;
    }

    .style-col-main {
        width: 100px;
    }

    .sku-count-col {
        width: 60px;
    }

    .inventory-stats {
        gap: 10px;
    }

    .stat-item {
        min-width: 120px;
    }
}

@media (max-width: 992px) {
    .header-section {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .header-main {
        flex-direction: column;
        gap: 15px;
    }

    .upload-section {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .upload-buttons {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .file-inputs {
        flex-wrap: wrap;
    }

    .filter-controls {
        gap: 15px;
    }

    .stats-info {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .table-header>div,
    .table-row>div {
        padding: 6px 4px;
    }

    .week-col {
        min-width: 200px;
    }

    .sku-col,
    .style-col {
        width: 90px;
    }

    .shop-col {
        width: 100px;
    }

    .shop-stats {
        gap: 10px;
    }

    .stat {
        min-width: 35px;
    }

    .top-style-item,
    .style-detail-item {
        font-size: 9px;
    }

    .top-style-name,
    .style-detail-name {
        min-width: 50px;
    }

    .style-col-main {
        width: 90px;
    }

    .sku-count-col {
        width: 50px;
    }

    .top-style-item,
    .style-detail-item {
        font-size: 9px;
    }

    .top-style-ratio,
    .style-detail-ratio {
        min-width: 30px;
    }

    .inventory-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .app-title {
        font-size: 20px;
    }

    .upload-section {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .upload-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .btn-upload {
        width: 100%;
    }

    .file-inputs {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .file-group input[type="file"] {
        width: 100%;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        justify-content: space-between;
    }

    .filter-select,
    .search-input {
        width: 60%;
        min-width: unset;
    }

    .sort-order-btn {
        min-width: 60px;
    }

    .image-col {
        width: 60px;
    }

    .sku-col,
    .style-col {
        width: 80px;
    }

    .quantity-col {
        width: 60px;
    }

    .transit-col {
        width: 60px;
    }

    .inventory-col {
        width: 70px;
    }

    .shop-col {
        width: 80px;
    }

    .shop-sku-col {
        width: 60px;
    }

    .sku-image-container {
        width: 40px;
        height: 40px;
    }

    .week-col {
        min-width: 180px;
    }

    .modal-content {
        padding: 20px;
    }

    .chart-container {
        height: 300px;
    }

    .top-style-item,
    .style-detail-item {
        flex-wrap: wrap;
        gap: 2px;
    }

    .top-style-name,
    .style-detail-name {
        min-width: 40px;
        font-size: 8px;
    }

    .top-style-sales,
    .top-style-price,
    .top-style-margin,
    .style-detail-sales,
    .style-detail-price,
    .style-detail-margin {
        min-width: 25px;
        font-size: 8px;
    }

    .style-col-main {
        width: 80px;
    }

    .sku-count-col {
        width: 40px;
    }

    .top-style-item,
    .style-detail-item {
        flex-wrap: wrap;
        gap: 2px;
    }

    .top-style-ratio,
    .style-detail-ratio {
        min-width: 25px;
        font-size: 8px;
    }

    .inventory-stats {
        gap: 8px;
    }

    .stat-item {
        min-width: 110px;
        padding: 6px 6px;
    }
}

@media (max-width: 480px) {
    .file-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select,
    .search-input {
        width: 70%;
    }

    .sku-col,
    .style-col {
        width: 70px;
    }

    .shop-col {
        width: 70px;
    }

    .style-code {
        font-size: 10px;
    }

    .top-style-list,
    .style-detail-list {
        max-height: 150px;
    }

    .top-style-item,
    .style-detail-item {
        font-size: 8px;
        padding: 1px 2px;
    }

    .inventory-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .stat-item {
        min-width: auto;
    }
}

/* ====================================
   ��ǩ�����ʽ
   ==================================== */
.tags-col {
    width: 120px;
    min-width: 120px;
    flex-shrink: 0;
}

.tags-container {
    padding: 4px;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.tag-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1.2;
}

.tag-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.no-tags {
    color: #6c757d;
    font-size: 10px;
    cursor: pointer;
    padding: 6px 8px;
    border: 1px dashed #adb5bd;
    border-radius: 4px;
    text-align: center;
    transition: all 0.2s ease;
}

.no-tags:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

/* ====================================
   ��ǩѡ����ģ̬����ʽ - ������
   ==================================== */
.tag-modal {
    max-width: 600px;
    width: 95%;
    max-height: 85vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
}

.tag-modal h2 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f3f5;
}

.tag-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 4px;
    margin: 10px 0;
    max-height: 450px;
    overflow-y: auto;
    padding: 6px;
    background: #f8f9fa;
    border-radius: 6px;
}

.tag-selector::-webkit-scrollbar {
    width: 4px;
}

.tag-selector::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 2px;
}

.tag-selector::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 2px;
}

.tag-option {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: white;
    min-height: 28px;
}

.tag-option:hover {
    background-color: #f0f8ff;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 123, 255, 0.15);
}

.tag-option.selected {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border-color: #007bff;
    box-shadow: 0 1px 2px rgba(0, 123, 255, 0.2);
}

.tag-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    border: 1px solid white;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.tag-name {
    flex: 1;
    font-size: 11px;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.2;
    word-break: break-word;
}

.tag-check {
    color: #007bff;
    font-weight: bold;
    font-size: 10px;
    margin-left: 2px;
    flex-shrink: 0;
}

.tag-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.tag-actions .btn-manage {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.tag-actions .btn-manage:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
}

.tag-actions .btn-save {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.tag-actions .btn-save:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
}

.tag-actions .btn-save:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tag-actions .btn-cancel {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.tag-actions .btn-cancel:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
}

/* ��Ӧʽ���� */
@media (max-width: 1024px) {
    .tags-col {
        width: 100px;
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .tags-col {
        width: 80px;
        min-width: 80px;
    }

    .tag-badge {
        font-size: 9px;
        padding: 1px 4px;
    }

    .tag-modal {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .tags-col {
        width: 70px;
        min-width: 70px;
    }

    .tag-selector {
        max-height: 250px;
    }
}

/* ====================================
   品类维度样式优化
   ==================================== */
.category-analysis-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e4e8;
    margin-top: 16px;
    overflow: hidden;
}

.category-table-group {
    padding: 20px;
    border-bottom: 1px solid #f1f3f5;
}

.category-table-group:last-child {
    border-bottom: none;
}

.category-table-group h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

.category-table-container {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #e1e4e8;
}

.category-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.category-table th {
    background: #343a40;
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid #495057;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.category-table th:hover {
    background: #495057;
    color: #ffffff;
}

.category-table th.sortable {
    cursor: pointer;
}

.category-table th.sortable::after {
    content: '';
    display: inline-block;
    margin-left: 4px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 0.5;
}

.category-table th.sortable.asc::after {
    border-bottom: 4px solid #cccccc;
}

.category-table th.sortable.desc::after {
    border-top: 4px solid #cccccc;
}

.category-table th.sortable.active::after {
    opacity: 1;
}

.category-table th.sortable.active.asc::after {
    border-bottom-color: #ffffff;
}

.category-table th.sortable.active.desc::after {
    border-top-color: #ffffff;
}

.category-table th:first-child {
    border-radius: 6px 0 0 0;
}

.category-table th:last-child {
    border-radius: 0 6px 0 0;
}

.category-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    text-align: center;
}

.category-table tr:last-child td {
    border-bottom: none;
}

.category-table tr:hover {
    background: #f8f9fa;
}

/* 可展开组别表格样式 */
.category-table .group-header-row {
    cursor: pointer;
    background: #f8f9fa;
    transition: background-color 0.2s ease;
}

.category-table .group-header-row:hover {
    background: #e9ecef;
}

.category-table .group-header-row.expanded {
    background: #e3f2fd;
    border-bottom: 2px solid #007bff;
}

.category-table .expand-icon {
    width: 40px;
    text-align: center;
    padding: 0;
}

.category-table .expand-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    color: #007bff;
    font-size: 12px;
}

.category-table .expand-arrow.expanded {
    transform: rotate(90deg);
}

.category-table .sub-category {
    padding-left: 40px;
    font-weight: 500;
    color: #495057;
    background: #fafbfc;
    border-left: 3px solid #007bff;
}

.category-table .category-detail-row {
    background: #fafbfc;
}

.category-table .category-detail-row:hover {
    background: #f1f3f5;
}

/* 表格单元格样式 */
.group-name, .category-name {
    font-weight: 600;
    color: #2c3e50;
    min-width: 120px;
    text-align: center;
}

.quantity {
    text-align: center;
    color: #495057;
    font-family: 'Courier New', monospace;
    min-width: 100px;
}

.amount, .profit {
    text-align: center;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    min-width: 120px;
}

.amount {
    color: #28a745;
}

.profit {
    color: #17a2b8;
}

.margin, .coverage {
    text-align: center;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    min-width: 100px;
}

/* 毛利率样式 */
.margin.high {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

.margin.medium {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

.margin.low {
    color: #fd7e14;
    background: rgba(253, 126, 20, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

.margin.negative {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

/* 成本覆盖率样式 */
.coverage.high {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

.coverage.medium {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

.coverage.low {
    color: #fd7e14;
    background: rgba(253, 126, 20, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

.coverage.critical {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

/* 汇率信息样式 */
.exchange-rate-info {
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e1e4e8;
    text-align: center;
    font-size: 13px;
    color: #6c757d;
}

.exchange-rate-info p {
    margin: 0;
}

/* 品类维度统计信息样式 */
.inventory-stats.category-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.inventory-stats.category-stats .stat-item {
    background: white;
    border-radius: 6px;
    padding: 12px 16px;
    border: 1px solid #e1e4e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.inventory-stats.category-stats .stat-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 4px;
}

.inventory-stats.category-stats .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #343a40;
}

.inventory-stats.category-stats .highlight-profit {
    color: #28a745;
}

/* 加载状态样式 */
.dimension-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.dimension-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-table-group {
        padding: 12px;
    }
    
    .category-table {
        font-size: 12px;
        min-width: 500px;
    }
    
    .category-table th,
    .category-table td {
        padding: 8px 12px;
    }
    
    .inventory-stats.category-stats {
        padding: 12px;
    }
    
    .inventory-stats.category-stats .stat-item {
        padding: 8px 12px;
    }
    
    .inventory-stats.category-stats .stat-value {
        font-size: 14px;
    }
}

    .tag-option {
        padding: 8px 10px;
    }

    .tag-color {
        width: 14px;
        height: 14px;
        margin-right: 8px;
    }

/* ====================================
   ��ǩɸѡ�ؼ���ʽ - ������ѡ��
   ==================================== */
.tag-filter-group {
    position: relative;
    min-width: 180px;
}

.tag-filter-container {
    position: relative;
    display: inline-block;
}

.tag-filter-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    min-width: 180px;
    transition: all 0.2s ease;
    font-size: 11px;
}

.tag-filter-input:hover {
    border-color: #007bff;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
}

.selected-tag {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.tag-filter-arrow {
    color: #6c757d;
    font-size: 12px;
    margin-left: 8px;
}

.tag-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 3px;
    min-width: 200px;
}

.tag-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 4px 4px 0 0;
}

.filter-title {
    font-weight: 600;
    font-size: 10px;
    color: #495057;
}

.filter-actions {
    display: flex;
    gap: 4px;
}

.select-all-btn,
.clear-btn {
    padding: 2px 4px;
    border: 1px solid #ced4da;
    border-radius: 2px;
    background: white;
    cursor: pointer;
    font-size: 8px;
    transition: all 0.15s ease;
}

.select-all-btn:hover,
.clear-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.tag-filter-options {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 2px;
}

.tag-filter-option {
    display: flex;
    align-items: center;
    padding: 3px 4px;
    transition: background-color 0.15s ease;
    border-radius: 2px;
    margin: 0 2px;
}

.tag-filter-option:hover {
    background: #f0f8ff;
}

.tag-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    font-size: 9px;
}

.tag-checkbox-input {
    margin-right: 4px;
    cursor: pointer;
    transform: scale(0.8);
}

.tag-color-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

.tag-name {
    font-size: 10px;
    color: #495057;
    flex: 1;
    line-height: 1.2;
    word-break: break-word;
}

.tag-filter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-top: 1px solid #e9ecef;
}

.selected-count {
    font-size: 10px;
    color: #6c757d;
}

.close-btn {
    padding: 3px 6px;
    border: 1px solid #ced4da;
    border-radius: 2px;
    background: white;
    cursor: pointer;
    font-size: 10px;
    color: #6c757d;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #6c757d;
    color: white;
}

/* ��Ӧʽ���� */
@media (max-width: 768px) {
    .tag-filter-group {
        min-width: 100%;
    }

    .tag-filter-input {
        min-width: 100%;
        padding: 10px;
    }

    .tag-filter-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }

    .tag-filter-options {
        max-height: 150px;
    }

    .selected-tag {
        font-size: 9px;
        padding: 2px 5px;
    }

    .tag-filter-header {
        padding: 10px;
    }

    .tag-filter-footer {
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .tag-filter-input {
        padding: 8px;
    }

    .tag-filter-options {
        max-height: 120px;
    }

    .tag-filter-header {
        padding: 8px;
        flex-direction: column;
        gap: 8px;
    }

    .filter-actions {
        width: 100%;
        justify-content: space-between;
    }

    .tag-filter-footer {
        padding: 4px 8px;
        flex-direction: column;
        gap: 6px;
    }

    .selected-tag {
        font-size: 8px;
        padding: 1px 3px;
    }

    .tag-name {
        font-size: 11px;
    }
}

/* ====================================
   ��ʽά�ȱ�ǩ����ʽ
   ==================================== */
.style-dimension .tags-col {
    width: 120px;
    min-width: 120px;
    flex-shrink: 0;
}

.style-dimension .tags-container {
    padding: 4px;
    min-height: 40px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
}

.style-dimension .tag-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    color: white;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.style-dimension .no-tags {
    color: #6c757d;
    font-size: 10px;
    padding: 6px 8px;
    border: 1px dashed #adb5bd;
    border-radius: 4px;
    text-align: center;
}

/* ��Ӧʽ���� */
@media (max-width: 1024px) {
    .style-dimension .tags-col {
        width: 100px;
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .style-dimension .tags-col {
        width: 80px;
        min-width: 80px;
    }

    .style-dimension .tag-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .style-dimension .tags-col {
        width: 70px;
        min-width: 70px;
    }
}

/* ====================================
   �����仯ɫ������ʽ
   ==================================== */
.shop-name-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sales-change-indicator {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    cursor: help;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    line-height: 1;
    font-family: Arial, sans-serif !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sales-change-indicator:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.sales-up {
    color: #dc3545;
    /* ��ɫ��ʾ���� */
    font-weight: bold;
}

.sales-down {
    color: #28a745;
    /* ��ɫ��ʾ�µ� */
    font-weight: bold;
}

.no-change {
    color: #6c757d;
    /* ��ɫ��ʾ�ޱ仯 */
}

.trend-arrow {
    margin-left: 4px;
    font-size: 12px;
    cursor: help;
    /* �����ͣ��ʾ��ʾ */
}

/* ��Ӧʽ���� */
@media (max-width: 768px) {
    .sales-change-indicator {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }

    .shop-name-container {
        gap: 3px;
    }
}

@media (max-width: 480px) {
    .sales-change-indicator {
        width: 12px;
        height: 12px;
        font-size: 8px;
    }

    .shop-name-container {
        gap: 2px;
    }
}

/* ====================================
   ͼƬ��������ʽ
   ==================================== */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.lazy-image.loaded {
    opacity: 1;
}

.sales-change-slider-container {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
}

.slider-section {
    margin-bottom: 18px;
}

.slider-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 13px;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.range-number-input {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    transition: border-color 0.2s;
}

.range-number-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.range-separator {
    color: #6c757d;
    font-size: 13px;
}

.quick-presets {
    display: flex;
    gap: 8px;
    margin: 15px 0 12px 0;
}

.preset-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.preset-btn:active {
    transform: translateY(0);
}

.preset-btn.reset-btn {
    border-color: #6c757d;
    color: #6c757d;
}

.preset-btn.reset-btn:hover {
    background: #6c757d;
    color: white;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #495057;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}


.checkbox-label span {
    cursor: pointer;
}

.enable-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #007bff;
    cursor: pointer;
    user-select: none;
    margin-left: auto;
}

.enable-filter-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.enable-filter-checkbox span {
    cursor: pointer;
    font-weight: 500;
}


/* ====================================
   Sales Change Range Slider Styles
   ==================================== */
.sales-change-slider-container {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
}

.slider-section {
    margin-bottom: 18px;
}

.slider-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 13px;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.range-number-input {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    transition: border-color 0.2s;
}

.range-number-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.range-separator {
    color: #6c757d;
    font-size: 13px;
}

.quick-presets {
    display: flex;
    gap: 8px;
    margin: 15px 0 12px 0;
}

.preset-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.preset-btn:active {
    transform: translateY(0);
}

.preset-btn.reset-btn {
    border-color: #6c757d;
    color: #6c757d;
}

.preset-btn.reset-btn:hover {
    background: #6c757d;
    color: white;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #495057;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.checkbox-label span {
    cursor: pointer;
}

.enable-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #007bff;
    cursor: pointer;
    user-select: none;
    margin-left: auto;
}

.enable-filter-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.enable-filter-checkbox span {
    cursor: pointer;
    font-weight: 500;
}

/* Sales Change Slider Style - New Version
   ==================================== */
.sales-change-slider-container {
    padding: 10px 5px;
}

.slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.slider-value-display {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    min-width: 80px;
    text-align: center;
}

.slider-value-display.positive {
    color: #28a745;
    background: #d4edda;
    border-color: #c3e6cb;
}

.slider-value-display.negative {
    color: #dc3545;
    background: #f8d7da;
    border-color: #f5c6cb;
}

.reset-slider-btn {
    font-size: 12px;
    color: #6c757d;
    background: none;
    border: 1px solid #dee2e6;
    padding: 2px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-slider-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.slider-track-container {
    position: relative;
    padding: 0 10px;
    height: 40px;
}

.sales-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #dc3545 0%, #e9ecef 50%, #28a745 100%);
    outline: none;
    margin: 10px 0;
    cursor: pointer;
}

.sales-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #6c757d;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease;
}

.sales-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    border-color: #495057;
}

.sales-range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #6c757d;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease;
}

.sales-range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    border-color: #495057;
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: -5px;
    color: #adb5bd;
    font-size: 10px;
    position: relative;
}

.tick-mark {
    position: relative;
}

.tick-center {
    font-weight: 600;
    color: #6c757d;
}

.tick-center::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: #adb5bd;
}