/* Shared merchant-console skin. Presentation only; no permissions, data or handlers. */
:root { --c-bg: #f5f5f5; --c-text: #181818; --c-text2: #595959; --c-border: #dedede; --c-blue: #087789; --c-red: #ae5149; --c-green: #52765b; }
body { font-family: "Bahnschrift", "Microsoft YaHei", "PingFang SC", sans-serif; background: #f5f5f5; }
.app-shell { font-variant-numeric: tabular-nums; }
.app-shell .app-header { background: #fff; backdrop-filter: none; }
.app-shell .header-inner { height: 52px; }
.app-shell .btn-logout { color: #303030; min-height: 44px; }
.app-shell .main-content { min-width: 0; max-width: none; padding: 16px; }
.app-shell .main-content :is(.panel, .filter-bar, .sub-panel, .table-wrap, .kpi-card, .upload-zone, .modal-box) { border-radius: 2px; box-shadow: none; }
.app-shell .main-content .panel { border: 1px solid #dedede; padding: 16px; }
.app-shell .main-content :is(h2, h3) { color: #181818; }
.app-shell .main-content h2 { font-size: 20px; }
.app-shell .main-content :is(.input, .input-sm, .ed-input, .btn, .btn-outline, .btn-query, .btn-reset, .btn-scan, .btn-clear) { border-radius: 2px; min-height: 36px; font-family: inherit; }
.app-shell .main-content :is(.btn, .btn-query, .btn-save) { background: #087789; color: #fff; }
.app-shell .main-content :is(.btn-outline, .btn-reset, .btn-scan) { border-color: #b0b0b0; }
.app-shell .main-content :is(input, select, button):focus-visible { outline: 2px solid #087789; outline-offset: 2px; }
.app-shell .main-content :is(.tabs, .import-tabs) { overflow-x: auto; }
.app-shell .main-content :is(.tabs, .import-tabs) button { min-height: 44px; flex-shrink: 0; white-space: nowrap; }
.app-shell .main-content :is(.kpi-label, .kpi-sub, .breadcrumb, .sum, .note) { color: #595959; }
.app-shell .dashboard .kpi-grid { gap: 6px; }
.app-shell .dashboard .kpi-card { padding: 12px; border-color: #dedede; }
.app-shell .dashboard .kpi-card:first-child { background: #eff8fa; border-color: #38b9cb; }
.app-shell .dashboard .kpi-value { font-size: 22px; }
.app-shell .dashboard .trend-row { gap: 8px; }
.app-shell .dashboard .trend-row > * { min-width: 0; }
.app-shell .dashboard :is(.chart-box, .pie-box, .pie-wrap) { min-width: 0; max-width: 100%; }
.app-shell .dashboard .filter-bar { border: 1px solid #dedede; padding: 10px 12px; }
.app-shell .main-content :is(th, .summary-table th) { color: #595959; background: #f0f0f0; }
.app-shell .main-content table { font-variant-numeric: tabular-nums; }
.app-shell .main-content :is(.table-wrap, .batch-detail) { max-width: 100%; overflow-x: auto; }
.app-shell .main-content :is(.modal-overlay, .modal) { z-index: 2100; }
.app-shell .app-footer { color: #595959; }
.app-layout { background: #f5f5f5; font-variant-numeric: tabular-nums; }
body .app-layout .sidebar { background: #181818; }
.app-layout .nav-item.active { background: #252f32; color: #8ddbe6; box-shadow: inset 2px 0 0 #38b9cb; }
.app-layout :is(.panel, .card, .table-wrap, .modal-box, .input, .btn, .btn-primary, .btn-outline) { border-radius: 2px; box-shadow: none; }
.app-layout :is(.btn-primary, .btn-blue) { background: #087789; color: #fff; }
.app-layout :is(input, select, button, a):focus-visible { outline: 2px solid #087789; outline-offset: 2px; }
.app-layout .inventory-page :is(.inventory-overview, .inventory-list, .product-tile, .edit-dialog, .scan-panel) { border-radius: 2px; box-shadow: none; border-color: #dedede; }
.app-layout .inventory-page :is(.outline-button, .scan-submit, .entry-control button) { border-radius: 2px; }
.app-layout .inventory-page .primary-stat { background: #eff8fa; border-color: #38b9cb; }
.app-shell .nav-inner button.active { color: #087789; box-shadow: inset 0 -2px 0 #087789; }
body .login-page .login-bg { background: #f5f5f5; }
body .login-page .login-card { background: #fff; border: 1px solid #dedede; border-radius: 2px; box-shadow: none; backdrop-filter: none; }
body .login-page :is(.role-btn, .pwd-section input, .login-btn) { border-radius: 2px; min-height: 44px; transition: background-color 160ms ease-out, border-color 160ms ease-out; }
body .login-page .role-btn.active { border-color: #087789; background: #eff8fa; box-shadow: none; }
body .login-page .role-btn.active :is(.role-name, .role-desc) { color: #087789; }
body .login-page .login-btn { background: #087789; }
body .login-page .login-btn:hover { background: #065d6c; }
body .login-page .pwd-section input:focus { border-color: #087789; box-shadow: 0 0 0 2px #08778922; }
body .login-page :is(.brand-sub, .role-label, .role-desc, .footer) { color: #595959; }
@media (min-width: 900px) {
  body .app-layout .sidebar { width: 184px; flex-basis: 184px; }
  .app-shell .app-header { margin-left: 184px; }
  .app-shell .header-inner { max-width: none; padding: 0 20px; justify-content: flex-end; }
  .app-shell .header-brand { position: fixed; left: 18px; top: 18px; z-index: 102; gap: 8px; }
  .app-shell .header-title { color: #fff; font-size: 17px; }
  .app-shell .header-logo { background: #fff; border-radius: 2px; }
  .app-shell .app-nav { position: fixed; inset: 0 auto 0 0; width: 184px; background: #181818; z-index: 90; padding-top: 76px; border: 0; }
  .app-shell .nav-inner { height: 100%; padding: 0 10px 20px; flex-direction: column; overflow-y: auto; gap: 4px; }
  .app-shell .nav-inner::before { content: '商家工作台'; color: #bdbdbd; font-size: 12px; padding: 12px 14px; border-top: 1px solid #383838; margin-bottom: 8px; }
  .app-shell .nav-inner button { color: #d5d5d5; min-height: 44px; text-align: left; padding: 10px 14px; border-radius: 2px; font-size: 14px; flex-shrink: 0; }
  .app-shell .nav-inner button:hover { background: #2b2b2b; color: #fff; }
  .app-shell .nav-inner button.active { background: #252f32; color: #8ddbe6; box-shadow: inset 2px 0 0 #38b9cb; }
  .app-shell .nav-inner button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
  .app-shell .main-content { width: calc(100% - 184px); margin-left: 184px; }
  .app-shell .app-footer { margin-left: 184px; }
  body:has(.app-shell) > div:has(+ #app) { padding-left: 204px !important; background: #f0f0f0 !important; color: #202020 !important; }
}
@media (max-width: 600px) {
  .app-shell .main-content { padding: 12px; }
  .app-shell .main-content .panel { padding: 12px; }
  .app-shell .main-content :is(.input, .input-sm, .btn, .btn-outline, .btn-query, .btn-reset, .btn-scan, .btn-clear) { min-height: 44px; }
  .app-shell .main-content .form-grid { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell *, body .login-page * { animation: none !important; transition: none !important; }
}
