/**
 * 管理后台样式
 */

/* CSS 变量 */
:root {
    --primary: #07C160;
    --primary-dark: #059F4D;
    --primary-light: #E7F8EE;
    --success: #52c41a;
    --warning: #faad14;
    --danger: #ff4d4f;
    --info: #1890ff;
    --text: #333;
    --text-secondary: #666;
    --text-light: #999;
    --border: #e8e8e8;
    --bg: #f5f7fa;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --sidebar-width: 240px;
    --topbar-height: 60px;
    --radius: 12px;
    --radius-sm: 8px;
}

/* 重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    /* 默认隐藏，防止 auth 检查期间闪现内容 */
    visibility: hidden;
}
/* auth 检查通过后，显示页面 */
body.auth-ready {
    visibility: visible;
}

/* 应用容器 */
#app {
    display: flex;
    min-height: 100vh;
}

/* ==================== 侧边栏 ==================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header .logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.sidebar-header .logo svg {
    width: 20px;
    height: 20px;
    color: white;
}

.sidebar-header .logo-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 4px;
    transition: all 0.3s;
    position: relative;
}

.nav-item:hover {
    background: var(--bg);
    color: var(--text);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.nav-item span:not(.nav-badge) {
    font-size: 14px;
    white-space: nowrap;
}

.nav-badge {
    position: absolute;
    right: 12px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.logout-btn {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #fff2f0;
    color: var(--danger);
}

/* ==================== 主内容区 ==================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s;
}

.sidebar.collapsed + .main-content {
    margin-left: 0;
}

/* 顶部栏 */
.topbar {
    height: var(--topbar-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.sidebar-toggle:hover {
    background: var(--bg);
}

.sidebar-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--text);
}

.topbar-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.user-name {
    font-size: 14px;
    color: var(--text);
}

/* 页面内容 */
.page-content {
    flex: 1;
    padding: 24px;
}

.page-panel {
    display: none;
}

.page-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 统计卡片 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-icon-blue {
    background: #e6f7ff;
    color: var(--info);
}

.stat-icon-green {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-icon-orange {
    background: #fff7e6;
    color: var(--warning);
}

.stat-icon-purple {
    background: #f9f0ff;
    color: #722ed1;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 仪表盘网格 ==================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.card-link {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

.card-body {
    padding: 20px 24px;
}

/* 快捷操作 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s;
}

.quick-action:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.quick-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.quick-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.quick-action span {
    font-size: 14px;
    color: var(--text);
}

/* 最近列表 */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.recent-item .item-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.recent-item .item-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.recent-item .item-info {
    flex: 1;
}

.recent-item .item-title {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.recent-item .item-meta {
    font-size: 12px;
    color: var(--text-light);
}

.loading-text {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
}

.empty-text {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
}

/* ==================== 工具栏 ==================== */
.panel-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Tab 导航 */
.tab-nav {
    display: flex;
    gap: 8px;
    background: var(--white);
    padding: 6px;
    border-radius: var(--radius-sm);
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-badge {
    background: var(--danger);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-default {
    background: var(--bg);
    color: var(--text);
}

.btn-default:hover {
    background: #e8e8e8;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #3dbd0d;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #d59410;
}

/* 赊账状态样式 */
.status-tag.status-pending_verify,
.status-tag.status-passed {
    background: #e6f7ff;
    color: #1890ff;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #e64545;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-sm svg {
    width: 14px;
    height: 14px;
}

/* ==================== 表单元素 ==================== */
.search-input,
.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--white);
    transition: all 0.3s;
}

.search-input {
    width: 200px;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ==================== 表格 ==================== */
.table-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.data-table td {
    font-size: 14px;
    color: var(--text-secondary);
}

.data-table tbody tr:hover {
    background: var(--bg);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.empty-cell {
    text-align: center;
    color: var(--text-light);
    padding: 60px !important;
}

/* 状态标签 */
.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-tag.status-1,
.status-tag.status-active,
.status-tag.status-passed,
.status-tag.status-verified {
    background: var(--primary-light);
    color: var(--primary);
}

.status-tag.status-0,
.status-tag.status-ended,
.status-tag.status-rejected,
.status-tag.status-cancelled,
.status-tag.status-expired {
    background: #f5f5f5;
    color: var(--text-light);
}

.status-tag.status-pending,
.status-tag.status-waiting {
    background: #fff7e6;
    color: var(--warning);
}

.status-tag.status-used {
    background: var(--primary-light);
    color: var(--primary);
}

/* 凭证码文字 */
.code-text {
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
}

/* 操作按钮 */
.action-btns {
    display: flex;
    gap: 8px;
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px;
}

.pagination button {
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== Modal 弹窗 ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--text);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

/* 弹窗表单 */
.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.modal-form .form-group input,
.modal-form .form-group select,
.modal-form .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s;
}

.modal-form .form-group input:focus,
.modal-form .form-group select:focus,
.modal-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.modal-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ==================== 确认对话框 ==================== */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
}

.confirm-dialog.show {
    display: flex;
}

.confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.confirm-box {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: modalIn 0.3s ease;
}

.confirm-icon {
    width: 60px;
    height: 60px;
    background: #fff7e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--warning);
}

.confirm-message {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 24px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ==================== Toast 提示 ==================== */
.toast {
    position: fixed;
    top: 80px;
    right: 24px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast-icon {
    font-size: 18px;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

/* ==================== 服务项目样式 ==================== */
.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.option-item input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.btn-remove-option {
    width: 32px;
    height: 32px;
    padding: 0;
    background: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-option:hover {
    background: #ff7875;
}

#btn-add-option {
    margin-top: 8px;
}

.service-item-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 12px;
    margin: 2px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .panel-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-left,
    .toolbar-right {
        flex-wrap: wrap;
    }

    .search-input {
        width: 100%;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }

    .action-btns {
        flex-direction: column;
    }

    .modal-dialog {
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }

    .tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==================== 加载状态 ==================== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== 详情面板 ==================== */
.detail-panel {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.detail-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    width: 100px;
    color: var(--text-light);
    font-size: 14px;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    color: var(--text);
    font-size: 14px;
}

/* ==================== 凭证状态流程 ==================== */
.status-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.status-flow .flow-item {
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--bg);
    color: var(--text-light);
}

.status-flow .flow-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.status-flow .flow-arrow {
    color: var(--border);
}

/* ==================== 设置页面样式 ==================== */
.settings-container {
    max-width: 800px;
}

.settings-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.settings-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.settings-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.settings-form {
    display: grid;
    gap: 20px;
}

.settings-form .form-group {
    margin-bottom: 0;
}

.settings-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.settings-form .form-group input,
.settings-form .form-group select,
.settings-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s;
    background: var(--white);
}

.settings-form .form-group input:focus,
.settings-form .form-group select:focus,
.settings-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.settings-form .form-group input[readonly] {
    background: var(--bg);
    color: var(--text-light);
    cursor: not-allowed;
}

.settings-form .form-tip {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
}

.settings-actions .btn {
    min-width: 140px;
}

/* ==================== 凭证统计小卡片 ==================== */
.stat-mini-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-mini {
    padding: 6px 14px;
    background: var(--bg);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-mini em {
    font-style: normal;
    font-weight: 600;
    color: var(--text);
}

.stat-mini.stat-pending em {
    color: var(--warning);
}

.stat-mini.stat-used em,
.stat-mini.stat-active em {
    color: var(--primary);
}

.stat-mini.stat-expired em,
.stat-mini.stat-cancelled em {
    color: var(--text-light);
}

.stat-mini.stat-active {
    background: var(--primary-light);
}

/* 凭证列表状态筛选 */
#registration-status-filter {
    min-width: 100px;
}
