/* ===== 商家工作台 + 运营后台 通用 ===== */
.admin-container { display: flex; min-height: calc(100vh - 200px); margin-top: 16px; }
.admin-sidebar { width: 220px; background: #fff; border-radius: var(--radius-md); padding: 0; flex-shrink: 0; overflow: hidden; }
.sidebar-user { padding: 20px; text-align: center; border-bottom: 1px solid #f0f0f0; background: linear-gradient(135deg, #ff7300, #ff4500); color: #fff; }
.sidebar-avatar { width: 64px; height: 64px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 24px; color: var(--primary); font-weight: 700; }
.sidebar-username { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.sidebar-shop-name { font-size: 12px; opacity: 0.9; }
.sidebar-menu { padding: 8px 0; }
.sidebar-menu li a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: var(--text-sub); font-size: 14px; transition: all 0.2s; border-left: 3px solid transparent; }
.sidebar-menu li a:hover { background: var(--primary-bg); color: var(--primary); }
.sidebar-menu li.active > a { background: var(--primary-bg); color: var(--primary); border-left-color: var(--primary); font-weight: 500; }
.sidebar-menu .menu-icon { width: 20px; text-align: center; }
.sidebar-menu .submenu { padding-left: 32px; }
.sidebar-menu .submenu a { padding: 8px 20px; font-size: 13px; }

.ui-svg-icon { width: 1em; height: 1em; margin-right: 0.3em; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-avatar .ui-svg-icon { width: 28px; height: 28px; margin: 0; }
.sidebar-menu .menu-icon { display: inline-flex; align-items: center; justify-content: center; }
.sidebar-menu .menu-icon .ui-svg-icon { width: 18px; height: 18px; margin: 0; }
.data-card-icon .ui-svg-icon, .todo-icon .ui-svg-icon, .quick-icon .ui-svg-icon { width: 22px; height: 22px; margin: 0; }
.chart-title .ui-svg-icon, .admin-section-header h3 .ui-svg-icon, .settle-form-header h2 .ui-svg-icon { width: 1.15em; height: 1.15em; }
.btn .ui-svg-icon { width: 1em; height: 1em; }

.admin-main { flex: 1; margin-left: 16px; }

.data-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.data-card { background: #fff; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.data-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.data-card-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.data-card-icon.blue { background: #e6f7ff; color: var(--info); }
.data-card-icon.green { background: #f6ffed; color: var(--success); }
.data-card-icon.orange { background: #fff7e6; color: var(--warning); }
.data-card-icon.purple { background: #f9f0ff; color: #722ed1; }
.data-card-trend { font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.data-card-trend.up { background: #f6ffed; color: var(--success); }
.data-card-trend.down { background: #fff1f0; color: var(--danger); }
.data-card-value { font-size: 26px; font-weight: 700; color: #333; margin-bottom: 4px; }
.data-card-label { font-size: 13px; color: var(--text-mute); }

.chart-section { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.chart-card { background: #fff; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chart-title { font-size: 16px; font-weight: 600; color: #333; }
.chart-tabs { display: flex; gap: 6px; }
.chart-tabs button { padding: 4px 12px; border: 1px solid #eee; background: #fff; border-radius: 4px; font-size: 12px; color: var(--text-sub); cursor: pointer; }
.chart-tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.chart-bars { display: flex; align-items: flex-end; justify-content: space-around; height: 200px; padding: 0 16px; }
.chart-bar-item { display: flex; flex-direction: column; align-items: center; }
.chart-bar { width: 32px; background: linear-gradient(180deg, #ff7300, #ff4500); border-radius: 4px 4px 0 0; transition: height 0.5s; }
.chart-bar-label { font-size: 12px; color: var(--text-mute); margin-top: 8px; }

.todo-list { }
.todo-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.todo-item:last-child { border-bottom: none; }
.todo-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 12px; font-size: 16px; }
.todo-content { flex: 1; }
.todo-title { font-size: 14px; color: #333; }
.todo-desc { font-size: 12px; color: var(--text-mute); margin-top: 2px; }
.todo-action { color: var(--primary); font-size: 13px; cursor: pointer; }

.quick-entry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-item { background: #fff; padding: 20px; text-align: center; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow-sm); }
.quick-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.quick-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 22px; }
.quick-item h4 { font-size: 14px; color: #333; margin-bottom: 4px; }
.quick-item p { font-size: 12px; color: var(--text-mute); }

.admin-section { background: #fff; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.admin-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.admin-section-header h3 { font-size: 16px; color: #333; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: #fafafa; padding: 12px; text-align: left; font-weight: normal; color: var(--text-sub); font-size: 13px; }
.admin-table td { padding: 12px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.admin-table tr:hover { background: #fafafa; }

.badge-tag { padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.badge-tag.success { background: #f6ffed; color: var(--success); }
.badge-tag.warning { background: #fff7e6; color: var(--warning); }
.badge-tag.danger { background: #fff1f0; color: var(--danger); }
.badge-tag.info { background: #e6f7ff; color: var(--info); }
.badge-tag.default { background: #f5f5f5; color: var(--text-sub); }

.action-btns { display: flex; gap: 6px; }
.action-btn-link { color: var(--primary); font-size: 12px; padding: 2px 6px; cursor: pointer; }
.action-btn-link:hover { text-decoration: underline; }
.action-btn-link.danger { color: var(--danger); }

.toolbar { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; }
.toolbar input, .toolbar select { padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; }

@media (max-width: 992px) {
    .data-overview { grid-template-columns: repeat(2, 1fr); }
    .chart-section { grid-template-columns: 1fr; }
    .admin-container { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .admin-main { margin-left: 0; margin-top: 16px; }
}
