/* YJ 生产管理系统 - 基础样式 */

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

:root {
    /* ===== 设计系统 (参考 shadcn-admin) ===== */

    /* 颜色系统 - OKLCH 风格蓝色 */
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #eff6ff;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fef2f2;

    /* 灰阶 */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* 布局 */
    --sidebar-w: 240px;
    --sidebar-collapsed: 56px;

    /* 圆角 - 统一 10px (参考 shadcn-admin) */
    --radius: 10px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    /* 阴影 - 多层立体感 */
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-800);
    background: var(--gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 登录页 - 新版 shadcn-admin 风格 ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.login-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.login-header h1 {
    font-size: 24px;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.login-header p {
    font-size: 14px;
    color: var(--gray-500);
}

/* 表单 */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--spacing-xs);
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-error {
    color: var(--danger);
    font-size: 13px;
    margin-bottom: var(--spacing-md);
    min-height: 20px;
}

/* 按钮 */
.btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

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

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--gray-700);
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.btn-secondary:hover { background: var(--gray-200); }

.btn-danger {
    padding: 8px 16px;
    font-size: 14px;
    color: white;
    background: var(--danger);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* 底部链接 */
.login-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}
.login-footer a:hover { text-decoration: underline; }

/* ========== 管理后台布局 - shadcn-admin 风格 ========== */
.yjsm-app {
    min-height: 100vh;
    background: var(--gray-100);
}

.yjsm-layout {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 - 更精致的设计 */
.yjsm-sidebar {
    width: var(--sidebar-collapsed);
    background: var(--gray-900);
    color: white;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: all 0.2s ease;
    overflow: hidden;
    white-space: nowrap;
}
.yjsm-sidebar:hover {
    width: var(--sidebar-w);
}

/* sidebar fixed后，main左移留出空间 */
.yjsm-layout {
    padding-left: var(--sidebar-collapsed);
}
.yjsm-sidebar:hover ~ .yjsm-main {
    padding-left: calc(var(--sidebar-w) - var(--sidebar-collapsed));
}

.yjsm-sidebar__logo {
    padding: 20px 12px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}
/* 收起时logo区 */
.yjsm-sidebar:not(:hover) .yjsm-sidebar__logo {
    padding-left: 12px;
    padding-right: 0;
    gap: 0;
}
/* hover展开时恢复 */
.yjsm-sidebar:hover .yjsm-sidebar__logo {
    padding-left: 12px;
    padding-right: 12px;
    gap: 10px;
}

.yjsm-sidebar__logo::before {
    content: "🏭";
}

.yjsm-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}
/* 收起时减少nav padding */
.yjsm-sidebar:not(:hover) .yjsm-nav {
    padding-left: 0;
    padding-right: 0;
}

/* 收起时导航项只显示图标 */
.yjsm-sidebar:not(:hover) .yjsm-nav__item {
    padding: 0;
    justify-content: center;
    width: var(--sidebar-collapsed);
    height: 44px;
    border-radius: 0;
}
.yjsm-sidebar:not(:hover) .yjsm-nav__icon {
    padding-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--sidebar-collapsed);
    margin: 0;
}
.yjsm-sidebar:not(:hover) .yjsm-nav__label {
    display: none;
}
/* 收起时active项左边框适配 */
.yjsm-sidebar:not(:hover) .yjsm-nav__item--active {
    margin-left: 0;
    border-left-width: 2px;
    padding-left: 0;
    height: 44px;
}

/* hover展开时恢复导航项padding */
.yjsm-sidebar:hover .yjsm-nav {
    padding-left: 12px;
    padding-right: 12px;
}
.yjsm-sidebar:hover .yjsm-nav__item {
    padding: 0 16px;
    gap: 12px;
    border-radius: var(--radius-sm);
    width: auto;
    height: 44px;
}
.yjsm-sidebar:hover .yjsm-nav__label {
    display: inline;
}
.yjsm-sidebar:hover .yjsm-nav__icon {
    width: 24px;
    margin: 0;
}

/* 导航项样式 */
.yjsm-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.yjsm-nav__item:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}
.yjsm-nav__icon {
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.yjsm-nav__label {
    font-size: 14px;
    color: inherit;
}
.yjsm-nav__item--active {
    background: rgba(255,255,255,0.12);
    color: white;
    border-left: 2px solid var(--primary);
    padding-left: 14px;
}

/* sidebar-item（JS生成的传统导航项）收起时样式 */
.yjsm-sidebar:not(:hover) .sidebar-item {
    padding: 0;
    font-size: 0;
    width: var(--sidebar-collapsed);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yjsm-sidebar:not(:hover) .sidebar-item .icon {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--sidebar-collapsed);
    height: 44px;
    margin: 0;
}
.yjsm-sidebar:not(:hover) .sidebar-section {
    display: none;
}

/* 展开时恢复sidebar-item样式 */
.yjsm-sidebar:hover .sidebar-item {
    padding: 0 var(--spacing-lg);
    justify-content: flex-start;
    gap: 10px;
    font-size: 14px;
    width: auto;
    height: 44px;
    text-decoration: none;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.2s;
}
.yjsm-sidebar:hover .sidebar-item:hover,
.yjsm-sidebar:hover .sidebar-item.active {
    background: rgba(255,255,255,0.08);
    color: white;
}
.yjsm-sidebar:hover .sidebar-item .icon {
    width: 24px;
    font-size: 18px;
    height: auto;
    display: inline-flex;
}

.yjsm-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
}

.yjsm-nav__item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.yjsm-nav__item--active {
    background: rgba(59, 130, 246, 0.15);
    color: white;
    border-left: 3px solid var(--primary);
    margin-left: -3px;
}

.yjsm-nav__icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.yjsm-nav__label {
    font-size: 14px;
    font-weight: 500;
}

/* 主内容区 */
.yjsm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 顶部栏 */
.yjsm-topbar {
    height: 60px;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.yjsm-topbar__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.yjsm-topbar__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.yjsm-topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.yjsm-topbar__user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-700);
}

.yjsm-topbar__user:hover {
    background: var(--gray-100);
}

/* 旧版布局兼容 */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background: var(--gray-900);
    color: white;
    flex-shrink: 0;
}

.sidebar-logo {
    padding: var(--spacing-lg);
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid var(--gray-800);
}

.sidebar-menu {
    padding: var(--spacing-md) 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--gray-400);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-item:hover, .sidebar-item.active {
    background: var(--gray-800);
    color: white;
}

.sidebar-item .icon {
    width: 20px;
    margin-right: var(--spacing-sm);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 顶部栏 */
.topbar {
    height: 60px;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
}

.topbar-left { font-size: 16px; font-weight: 600; }

.topbar-right { display: flex; align-items: center; gap: var(--spacing-md); }

.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.user-info:hover { background: var(--gray-100); }

/* 内容区 */
.content-area {
    flex: 1;
    padding: var(--spacing-lg);
    overflow-y: auto;
}

/* 页面标题 */
.page-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--gray-900);
}

/* ========== 通用组件 ========== */

/* 表格 */
.table-container {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

tr:hover { background: var(--gray-50); }

/* 卡片 - 使用新阴影系统 */
.card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.2s;
}

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

/* 标签 */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.tag-pending { background: #fef3c7; color: #92400e; }
.tag-accepted { background: #dbeafe; color: #1e40af; }
.tag-producing { background: #e0e7ff; color: #3730a3; }
.tag-produced { background: #d1fae5; color: #065f46; }
.tag-shipped { background: #cffafe; color: #164e63; }
.tag-completed { background: #f3f4f6; color: #374151; }

/* 搜索栏 */
.search-bar {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.search-bar input, .search-bar select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.search-bar input[type="text"] { width: 200px; }
.search-bar select { width: 150px; }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.pagination button:hover { background: var(--gray-100); }
.pagination button.active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* 弹窗 - 支持 yjsm-modal-overlay 和 modal-overlay 两种类名 */
.yjsm-modal-overlay,
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.yjsm-modal-overlay--show,
.modal-overlay--show {
    display: flex !important;
}

.modal-box {
    background: white;
    border-radius: var(--radius-lg);
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 { font-size: 16px; font-weight: 600; }

.modal-close {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--gray-500);
}
.modal-close:hover { background: var(--gray-100); }

.modal-body { padding: var(--spacing-lg); }
.modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
}

/* 提示信息 */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: var(--gray-800);
    color: white;
    border-radius: var(--radius-md);
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 加载状态 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    color: var(--gray-500);
}

.loading::before {
    content: "";
    width: 20px; height: 20px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: var(--spacing-sm);
}

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

/* 空状态 */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--gray-500);
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: var(--spacing-xs);
}

.action-btn {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.action-btn.accept { background: #dbeafe; color: #1e40af; }
.action-btn.produce { background: #e0e7ff; color: #3730a3; }
.action-btn.complete { background: #d1fae5; color: #065f46; }
.action-btn.ship { background: #cffafe; color: #164e63; }
.action-btn.edit { background: var(--gray-100); color: var(--gray-700); }
.action-btn.delete { background: #fee2e2; color: #991b1b; }

/* 复选框 */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

input[type="checkbox"] {
    width: 16px; height: 16px;
    cursor: pointer;
}

/* 隐藏 */
.hidden { display: none !important; }

/* ===== Tab 切换 ===== */
.yjsm-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--spacing-lg);
}

.yjsm-tab {
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}

.yjsm-tab:hover { color: var(--gray-700); }

.yjsm-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ===== 面板 ===== */
.yjsm-panel { display: none; }
.yjsm-panel.active { display: block; }

/* ===== 徽章 ===== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: var(--danger);
    border-radius: var(--radius-full);
}

/* ===== 加载状态 ===== */
.loading { color: var(--gray-400); text-align: center; padding: var(--spacing-lg); }
.empty-state { color: var(--gray-400); text-align: center; padding: var(--spacing-lg); }

/* ===== 加载遮罩 ===== */
.yjsm-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius);
    backdrop-filter: blur(2px);
}
.yjsm-loading-overlay::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 卡片网格加载态 */
.yjsm-card-grid.loading-active {
    position: relative;
    min-height: 120px;
}
.yjsm-card-grid.loading-active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    z-index: 5;
    border-radius: var(--radius);
}
.yjsm-card-grid.loading-active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    z-index: 6;
}

/* ===== 选中态高亮 ===== */
.order-card.selected {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    background: var(--primary-light);
}
.order-card .card-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* ===== 批次操作栏 ===== */
.batch-bar {
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform: translateY(0);
    opacity: 1;
}
.batch-bar.hidden {
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
}

/* ===== 筛选标签指示 ===== */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--spacing-sm);
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    font-size: 12px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.15s;
}
.filter-chip:hover {
    background: #dbeafe;
}
.filter-chip .chip-close {
    font-size: 14px;
    line-height: 1;
    margin-left: 2px;
}
.filter-chip .chip-close:hover {
    color: var(--danger);
}

/* ===== 搜索输入框加载 ===== */
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-wrap.loading::after {
    content: '';
    position: absolute;
    right: 8px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ===== 按钮加载态 ===== */
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== 分组视图头（已接单） ===== */
.order-group__header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px 14px;
    cursor: pointer;
    background: #f8fafc;
    transition: background 0.15s;
    font-size: 13px;
    user-select: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 2px;
}
.order-group__header:hover {
    background: #f1f5f9;
}
.order-group__checkbox {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--primary);
}
.order-group__batch {
    font-weight: 600;
    color: var(--primary);
    min-width: 100px;
}
.order-group__mapping {
    flex: 1;
    color: var(--gray-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.order-group__stat {
    text-align: right;
    min-width: 50px;
    color: var(--gray-500);
    font-variant-numeric: tabular-nums;
}
.btn-primary.loading,
.btn-secondary.loading {
    position: relative;
    color: transparent;
}
.btn-primary.loading::after,
.btn-secondary.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
