/* ERP shared visual system. Presentation only; business rules remain in app.js. */
:root {
  --bg:#f2f5fa; --panel:#fff; --soft:#f5f7fb; --line:#e5eaf2;
  --text:#253249; --muted:#8290a5; --primary:#2878f0; --primary-dark:#1c62d1;
  --primary-soft:#edf4ff; --green:#169b72; --amber:#b97716; --red:#dc4b58;
  --radius:12px; --radius-sm:7px; --shadow:0 3px 14px rgba(31,50,86,.045);
  --shadow-sm:0 1px 4px rgba(31,50,86,.035); --ui-nav:#192b42; --ui-nav-text:#b9c7da;
  --ui-space:20px; --ui-control:35px;
}
body {font-family:Inter,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;font-size:13px;line-height:1.55; background:var(--bg);color:var(--text);font-variant-numeric:tabular-nums;}
button,input,select,textarea {font-size:13px;}
button {min-height:var(--ui-control);border-radius:var(--radius-sm);font-weight:500;box-shadow:none;transition:background-color .12s,border-color .12s;}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline:3px solid #b4d2ff;outline-offset:2px;}
button:disabled {opacity:.48;cursor:not-allowed;}
button.secondary {border-color:var(--line);color:#506079;background:#fff;}
button.secondary:hover {color:var(--primary);background:var(--primary-soft);border-color:#bdd5fa;}
button.danger,.mini.danger {color:var(--red);}
input,select,textarea {min-height:var(--ui-control);border-radius:var(--radius-sm);border-color:#dce4ef;background:#fff;color:var(--text);box-shadow:none;}
input::placeholder,textarea::placeholder {color:#a0abba;}
input:focus,select:focus,textarea:focus {border-color:#82aff5;box-shadow:0 0 0 3px rgba(40,120,240,.07);}
input[type=checkbox],input[type=radio] {accent-color:var(--primary);}
.app {grid-template-columns:218px minmax(0,1fr);transition:none;}
.app.sidebar-collapsed {grid-template-columns:68px minmax(0,1fr);}
.sidebar {background:var(--ui-nav);color:#fff;border:0;padding:18px 10px 14px;gap:14px;position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#42536a transparent;}
.brand {border-color:#304056;padding:3px 6px 17px;min-height:54px;}
.brand-title {color:#f7faff;font-size:19px;font-weight:700;letter-spacing:.3px;white-space:nowrap;}
.brand-title::before {content:"";display:inline-block;width:9px;height:20px;border-radius:3px;background:#65a3ff;margin-right:10px;vertical-align:-3px;}
.brand-subtitle {color:#91a4be;}
.sidebar-toggle {background:#253a54;border:1px solid #42536c;color:#c5d5eb;box-shadow:none;}
.sidebar-toggle:hover {background:#344e6d;color:#fff;}
#sideNav {gap:7px;}
.sidebar .nav,.sidebar .nav-group-toggle {color:var(--ui-nav-text);border-radius:7px;font-size:13px;min-height:37px;}
.sidebar .nav:hover,.sidebar .nav-group-toggle:hover {background:#243c59;color:#fff;}
.sidebar .nav.active {color:#fff;background:var(--primary);box-shadow:0 3px 9px rgba(0,0,0,.08);font-weight:600;}
.sidebar .nav.active::before {display:none;}
.sidebar .nav-home-icon,.sidebar .nav-group-icon {color:#9db2ce;}
.sidebar .nav.active .nav-home-icon {color:#fff;}
.sidebar .nav-group-toggle {color:#849bb9;letter-spacing:.4px;font-size:12px;}
.sidebar .nav-group-items {gap:3px;}
.sidebar .nav-group-items .nav {padding-left:16px;gap:11px;font-size:13px;}
.nav-item-icon {display:inline-flex;align-items:center;justify-content:center;width:18px;min-width:18px;color:#91a9c8;}
.nav.active .nav-item-icon {color:#fff;}
.nav-item-icon svg {width:17px;height:17px;}
.nav-item-label {overflow:hidden;text-overflow:ellipsis;}
.sidebar-foot {margin-top:auto;border-top:1px solid #304056;padding:14px 8px 0;color:#9bb0cc;font-size:11px;}
.topbar {background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;border-color:var(--line);padding:14px 24px;min-height:78px;gap:16px;align-items:center;flex-wrap:wrap;}
.topbar-title {min-width:180px;flex:1;}
.topbar h1 {font-size:20px;letter-spacing:.2px;font-weight:700;color:#1c2c43;}
.topbar p {color:var(--muted);font-size:11px;margin:3px 0 0;}
.top-actions {gap:7px;flex-wrap:wrap;}
.top-actions input {background:#f6f8fc;border-color:#edf0f5;width:208px;}
.account-toolbar {display:flex;align-items:center;gap:9px;border-left:1px solid var(--line);padding-left:16px;}
.account-identity {display:flex;align-items:center;gap:9px;}
.account-avatar {display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e6f0ff;color:var(--primary);}
#currentUser {font-size:12px;font-weight:600;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.account-toolbar button {font-size:11px;min-height:30px;padding:4px 8px;background:#fff;border:1px solid var(--line);color:#6f7d92;}
.account-toolbar button:hover {color:var(--primary);background:var(--primary-soft);}
.main {min-width:0;background:var(--bg);}
.content {padding:22px 24px 32px;}
.dashboard-welcome {display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:0 2px;}
.dashboard-welcome h2 {margin:0;font-size:21px;font-weight:700;color:#1f3049;}
.dashboard-welcome p {margin:4px 0 0;font-size:12px;color:var(--muted);}
.dashboard-date {font-size:12px;color:#73849c;background:#fff;border:1px solid var(--line);border-radius:7px;padding:8px 12px;white-space:nowrap;}
.metrics {gap:14px;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));}
#metricGrid {grid-template-columns:repeat(5,minmax(0,1fr));margin:0;}
.metric {padding:18px 18px 16px;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);background:#fff;min-width:0;}
#metricGrid .metric {position:relative;min-height:118px;padding:20px 14px 16px 65px;}
.metric .label {color:#728198;font-size:12px;font-weight:500;line-height:1.4;}
.metric .value {font-size:27px;line-height:1.3;margin:7px 0;color:#1f3049;font-weight:700;letter-spacing:-.5px;overflow-wrap:anywhere;}
#metricGrid .value {font-size:clamp(19px,1.5vw,27px);margin:6px 0;}
.metric .note {font-size:11px;color:#8c98ab;line-height:1.5;}
.metric-symbol {display:grid;place-items:center;position:absolute;left:16px;top:21px;width:36px;height:36px;border-radius:9px;color:#fff;background:var(--primary);}
.metric-symbol svg {width:20px;height:20px;}
#metricGrid .metric:nth-child(2) .metric-symbol {background:#20b68c;}
#metricGrid .metric:nth-child(3) .metric-symbol {background:#f5a623;}
#metricGrid .metric:nth-child(4) .metric-symbol {background:#8d68dc;}
#metricGrid .metric:nth-child(5) .metric-symbol {background:#ed6976;}
#shopStats {grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:14px;margin:18px 0;}
.shop-card {border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;background:#fff;}
.shop-name {display:flex;align-items:center;font-size:13px;line-height:1.5;font-weight:650;margin-bottom:13px;color:#293e5b;}
.shop-name::before {content:"";width:4px;height:15px;border-radius:2px;background:var(--primary);margin-right:9px;flex-shrink:0;}
.shop-data {gap:9px;}
.shop-data span {display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px dashed #edf0f6;padding-bottom:7px;font-size:12px;color:#8a96aa;}
.shop-data span:last-child {border:0;padding:0;}
.shop-data b {font-weight:600;font-size:14px;color:#334762;font-variant-numeric:tabular-nums;}
.panel {border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);background:#fff;overflow:visible;}
.panel-head {min-height:51px;padding:15px 18px;border-bottom:1px solid #eef1f6;gap:12px;}
.panel-head h2 {font-size:14px;color:#273a55;font-weight:650;margin:0;}
.split {gap:16px;margin-top:18px;grid-template-columns:1.2fr 1fr;}
.task-list {padding:2px 18px;gap:0;}
.task {border:0;border-bottom:1px solid #edf1f6;border-radius:0;padding:14px 0;gap:16px;}
.task:last-child {border:0;}
.task b {font-size:13px;font-weight:550;color:#3b4e68;}
.task span {display:block;margin-top:3px;font-size:11px;color:#91a0b4;}
.task .task-link {border-radius:6px;min-width:56px;font-size:12px;font-weight:650;padding:4px 10px;}
.quick-grid {padding:18px;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr));}
.quick-grid button {background:#f7faff;border:1px solid #e5edfb;color:#41658e;min-height:76px;border-radius:9px;display:flex;flex-direction:column;justify-content:center;gap:8px;font-size:12px;}
.quick-grid button::before {content:"+";font-size:22px;line-height:1;color:var(--primary);font-weight:400;}
.quick-grid button:hover {background:#edf4ff;border-color:#b9d4fc;box-shadow:none;}
.dashboard-orders {margin-top:18px;}
.table-wrap {border-color:var(--line);border-radius:0 0 var(--radius) var(--radius);box-shadow:none;scrollbar-width:thin;scrollbar-color:#c8d4e5 #f7f9fc;}
table {font-size:12px;font-variant-numeric:tabular-nums;}
.table-wrap thead th {background:#f6f8fc;color:#61718a;letter-spacing:0;font-size:12px;font-weight:550;border-bottom:1px solid #e7edf6;white-space:nowrap;padding:12px 11px;}
.table-wrap td {padding:11px;line-height:1.5;color:#354861;border-bottom:1px solid #edf1f7;}
.table-wrap tbody tr:nth-child(even) {background:#fcfdff;}
.table-wrap tbody tr:hover,.table-wrap tbody tr:nth-child(even):hover {background:#f0f6ff;}
.table-wrap td.money,.table-wrap td.number {text-align:right;}
.table-wrap .strong {color:#2866ba;}
.table-wrap th.actions-sticky,.table-wrap td.actions-sticky {background:#fff;border-left:1px solid #edf1f6;}
.table-wrap tbody tr:hover td.actions-sticky {background:#f0f6ff;}
.table-wrap td .mini {min-height:27px;border-radius:5px;padding:3px 8px;font-size:11px;}
.badge {font-size:11px;border-radius:5px;padding:3px 8px;font-weight:500;}
.badge.green {background:#e8f7f0;color:#16855f;}
.badge.amber {background:#fff5df;color:#b77819;}
.badge.red {background:#fff0f1;color:#d94b5d;}
.badge.teal {background:#eaf2ff;color:#3676d6;}
.list-head {padding:18px;gap:16px;}
.filters,.filters.top-filters {gap:12px 18px;}
.filters {background:#f9fbfe;border:1px solid #e8edf5;border-radius:9px;padding:16px;}
.filters .filter-item label,.filters label {color:#7988a0;font-size:12px;font-weight:400;}
.filters .filter-query {background:var(--primary);color:white;min-width:75px;}
.filters .filter-reset {border-color:var(--line);}
.active-filters {border-color:var(--line);font-size:11px;}
.active-filter-tag {background:var(--primary-soft);color:#477ebd;border-color:#d2e3fb;border-radius:5px;}
.pagination {padding:13px 18px;border-top:1px solid var(--line);background:#fff;border-radius:0 0 var(--radius) var(--radius);gap:12px;font-size:12px;}
.pagination button {min-height:29px;padding:4px 10px;font-size:12px;background:#fff;color:#687a94;border:1px solid var(--line);}
.pagination select {min-height:30px;padding:4px 8px;}
.summary-blocks {margin-bottom:18px;}
.finance-shop-stats {gap:16px;}
.finance-period-table th {color:#8090a6;background:#f7f9fd;font-size:11px;}
dialog {border:1px solid #e2e9f3;border-radius:14px;box-shadow:0 20px 70px rgba(18,36,65,.18);padding:24px;max-height:calc(100dvh - 48px);overflow-y:auto;}
dialog::backdrop {background:rgba(17,33,56,.38);backdrop-filter:blur(2px);}
.dialog-head {border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:18px;}
.dialog-head h2 {font-size:18px;font-weight:650;color:#283b56;}
.dialog-head p {font-size:12px;color:#8b98aa;}
.dialog-actions {border-top:1px solid var(--line);padding-top:16px;gap:10px;}
.form-grid {gap:16px;}
.form-grid label {font-size:12px;color:#6f819a;}
.permission-matrix th,.permission-matrix td {border-color:var(--line);}
.account-section-head,.account-editor-head {border-color:var(--line);}
.account-tabs {border-color:var(--line);gap:18px;}
.account-tabs button.active {color:var(--primary);border-color:var(--primary);}
.login-view {background:#eff4fb;}
.login-box {border-radius:16px;box-shadow:0 12px 48px rgba(26,54,94,.08);padding:36px;border:1px solid #e1e9f4;}
.login-brand {color:#203652;font-size:25px;}
@media(min-width:761px) {
  .app.sidebar-collapsed .nav-group-items {display:none;}
  .app.sidebar-collapsed .nav-group.open .nav-group-items {display:grid;}
  .app.sidebar-collapsed .nav-group-items .nav {padding:0;justify-content:center;}
  .app.sidebar-collapsed .nav-item-label {display:none;}
  .app.sidebar-collapsed .nav-item-icon {width:20px;}
  .app.sidebar-collapsed .sidebar-foot {display:none;}
}
@media(min-width:1500px) {.topbar {flex-wrap:nowrap;}.top-actions {flex-wrap:nowrap;}.content {padding:24px 28px 36px;}}
@media(min-width:761px) and (max-width:1450px) {
 .topbar {gap:10px 16px;padding:12px 20px;}.topbar-title {flex:1;}.top-actions {order:3;flex-basis:100%;justify-content:flex-start;}.account-toolbar {margin-left:auto;border:0;}.top-actions input {flex:1;max-width:340px;}
 .content {padding:18px 20px 28px;}#metricGrid .metric {padding:16px 12px 14px 54px;} .metric-symbol {left:12px;top:18px;width:31px;height:31px;}#metricGrid .value {font-size:20px;}
}
@media(max-width:1100px) and (min-width:761px) {#metricGrid {grid-template-columns:repeat(3,minmax(0,1fr));}#shopStats {grid-template-columns:repeat(2,minmax(0,1fr));}.split {grid-template-columns:1fr;}}
@media(max-width:760px) {
 .app,.app.sidebar-collapsed {display:block;grid-template-columns:none;}.sidebar {position:fixed;height:100dvh;overflow-y:auto;}.app.sidebar-collapsed .nav-item-label {display:inline;}.topbar {padding:12px;gap:10px;}.topbar-title {min-width:0;}.topbar h1 {font-size:17px;}.account-toolbar {padding:0;border:0;gap:5px;}.account-avatar {display:none;}.account-toolbar button {font-size:10px;padding:4px 6px;}#currentUser {max-width:70px;}.top-actions {order:4;width:100%;justify-content:flex-start;}.top-actions input {width:100%;}.content {padding:14px 12px 24px;}.dashboard-welcome {align-items:flex-start;flex-direction:column;gap:9px;}.dashboard-welcome h2 {font-size:19px;}.dashboard-date {font-size:11px;padding:5px 9px;}#metricGrid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}#metricGrid .metric {min-height:102px;padding:16px 10px 12px 49px;}.metric-symbol {left:11px;top:18px;width:28px;height:28px;}.metric-symbol svg {width:17px;}.metric .value,#metricGrid .value {font-size:21px;}.metric .label {font-size:11px;}.metric .note {font-size:10px;}#shopStats {grid-template-columns:1fr;gap:12px;}.split {grid-template-columns:1fr;gap:14px;}.quick-grid {gap:8px;padding:14px;}.filters {padding:12px;}.panel-head {padding:13px 14px;}.table-wrap th,.table-wrap td {padding:10px;font-size:12px;}dialog {padding:18px;max-height:calc(100dvh - 24px);}.pagination {padding:12px;flex-wrap:wrap;}.account-toolbar #currentUser {display:block;}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {transition:none!important;scroll-behavior:auto!important;}}
/* Remove empty summary spacing without altering populated financial summaries. */
#summaryBlocks:empty {display:none;margin:0;}
#listPage > .panel {margin-top:0;}
body:has(#dashboardPage.active) .top-actions {display:none;}
@media(min-width:1200px) {
  #shopStats {grid-template-columns:repeat(5,minmax(0,1fr));}
  #shopStats .shop-card {padding:16px;}
  #shopStats .shop-name {font-size:12px;}
  #shopStats .shop-data b {font-size:13px;}
}
.table-wrap td:is([data-column$="_amount"],[data-column$="_fee"],[data-column$="_price"],[data-column$="_profit"],[data-column$="_count"],[data-column="amount"],[data-column="quantity"],[data-column="average_freight"],[data-column="balance_amount"]) {text-align:right;}
.table-wrap td:is([data-column="status"],[data-column="negative_margin"],[data-column="valid_status"]) {text-align:center;}
.table-wrap td:is([data-column$="_date"],[data-column$="_time"],[data-column$="_at"]) {white-space:nowrap;font-variant-numeric:tabular-nums;color:#6b7d95;}
#latestOrdersTable td[data-column="product_name"] {max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* Align top-level navigation icon and label tracks. */
.sidebar .nav-home,
.sidebar .nav-group-toggle {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  align-items: center;
  justify-content: normal;
  column-gap: 8px;
  padding: 0 10px;
}
.sidebar .nav-home-icon,
.sidebar .nav-group-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 761px) {
  .app.sidebar-collapsed .sidebar #sideNav,
  .app.sidebar-collapsed .sidebar .nav-group,
  .app.sidebar-collapsed .sidebar .nav-group-items {
    width: 100%;
    min-width: 0;
  }
  .app.sidebar-collapsed .sidebar .nav-home,
  .app.sidebar-collapsed .sidebar .nav-group-toggle,
  .app.sidebar-collapsed .sidebar .nav-group-items .nav {
    display: flex;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
    padding: 0;
    column-gap: 0;
  }
  .app.sidebar-collapsed .sidebar .nav-home-icon,
  .app.sidebar-collapsed .sidebar .nav-group-icon,
  .app.sidebar-collapsed .sidebar .nav-item-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .app.sidebar-collapsed .sidebar #sideNav svg {
    display: block;
    width: 18px;
    height: 18px;
  }
  .app.sidebar-collapsed .sidebar .brand {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Offset the standalone home button to match the group-heading icon column. */
.app:not(.sidebar-collapsed) .sidebar .nav-home {
  padding-left: 2px;
  padding-right: 18px;
}

/* Dashboard charts and reference composition, scoped to the homepage. */
#dashboardPage {--chart-blue:#3182ff;padding:0;}
.main:has(#dashboardPage.active) > .topbar {min-height:64px;padding-top:8px;padding-bottom:8px;}
#dashboardPage .dashboard-welcome {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;}
#dashboardPage .dashboard-greeting {display:flex;align-items:center;gap:14px;}
#dashboardPage .dashboard-sun {font-size:38px;line-height:1;color:#ffb800;}
#dashboardPage .dashboard-welcome h2 {font-size:20px;margin:0 0 4px;color:#1e2d43;}
#dashboardPage .dashboard-welcome p {margin:0;color:var(--muted);font-size:12px;}
#dashboardPage .dashboard-today-note {font-size:12px;color:var(--muted);}
#dashboardPage #metricGrid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px;}
#dashboardPage #metricGrid .metric {min-height:108px;margin:0;padding:18px 16px 16px 65px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow);position:relative;}
#dashboardPage #metricGrid .metric-symbol {position:absolute;top:19px;left:15px;width:37px;height:37px;border-radius:9px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#4797ff,#2167f3);box-shadow:0 4px 9px #3182ff24;}
#dashboardPage #metricGrid .metric:nth-child(2) .metric-symbol {background:linear-gradient(135deg,#39d5ac,#16b283);box-shadow:0 4px 9px #23c89d24;}
#dashboardPage #metricGrid .metric:nth-child(3) .metric-symbol {background:linear-gradient(135deg,#ffbc39,#ff9900);box-shadow:0 4px 9px #ffab2424;}
#dashboardPage #metricGrid .metric:nth-child(4) .metric-symbol {background:linear-gradient(135deg,#a879fa,#8551e5);box-shadow:0 4px 9px #9271ef24;}
#dashboardPage #metricGrid .metric:nth-child(5) .metric-symbol {background:linear-gradient(135deg,#ff7b8b,#f4516c);box-shadow:0 4px 9px #fa6b8224;}
#dashboardPage .metric-symbol svg {width:23px;height:23px;}
#dashboardPage #metricGrid .label {font-size:12px;color:#69778e;margin-bottom:4px;}
#dashboardPage #metricGrid .value {font-size:clamp(18px,1.45vw,26px);font-weight:700;line-height:1.4;white-space:nowrap;color:#233147;}
#dashboardPage #metricGrid .note {margin-top:5px;font-size:10px;color:#8a97aa;}
#dashboardPage .dashboard-chart-filters {display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:14px;font-size:12px;color:#748299;}
#dashboardPage .dashboard-chart-filters input {width:139px;min-height:30px;padding:4px 7px;font-size:12px;}
#dashboardPage .dashboard-chart-filters select {width:185px;min-height:30px;padding:4px 7px;font-size:12px;}
#dashboardPage .dashboard-chart-filters button {min-height:30px;padding:4px 11px;border:1px solid var(--line);background:#fff;font-size:12px;color:#5a6b84;}
#dashboardPage .dashboard-chart-filters button.active,#dashboardPage .dashboard-chart-filters button[type=submit] {background:#2878f0;color:#fff;border-color:#2878f0;}
#dashboardPage .dashboard-chart-filters small {margin-left:auto;font-size:11px;}
#dashboardPage .dashboard-chart-message:not(:empty) {padding:9px 12px;background:#edf4ff;color:#316cbb;border-radius:7px;margin-bottom:12px;}
#dashboardPage .dashboard-grid-top {display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:14px;align-items:stretch;}
#dashboardPage .dashboard-grid-middle {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch;margin-top:14px;}
#dashboardPage .panel {margin:0;border-radius:10px;border:1px solid var(--line);box-shadow:var(--shadow);min-width:0;overflow:hidden;}
#dashboardPage .panel-head {min-height:46px;padding:11px 16px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #eff2f7;}
#dashboardPage .panel-head h2 {font-size:14px;font-weight:650;margin:0;color:#253147;}
#dashboardPage .dashboard-more {border:0;background:transparent;color:#3182ff;min-height:22px;padding:0;font-size:11px;}
#dashboardPage .dashboard-muted {color:#94a0b3;font-size:11px;}
#dashboardPage .chart-key {display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end;font-size:10px;color:#7c8aa0;}
#dashboardPage .chart-key span {display:inline-flex;align-items:center;gap:4px;white-space:nowrap;}
#dashboardPage .chart-key i {width:12px;height:3px;border-radius:2px;}
#dashboardPage .dashboard-trend-body {padding:10px 9px 0;}
#dashboardPage .dashboard-line-chart {width:100%;display:block;min-height:190px;max-height:255px;}
#dashboardPage .dashboard-line-chart text {fill:#90a0b7;font:11px "Segoe UI","Microsoft YaHei",sans-serif;}
#dashboardPage .chart-grid {stroke:#edf1f7;stroke-width:1;}
#dashboardPage .dashboard-chart-data {font-size:11px;color:#8a98ad;padding:0 7px 8px;}
#dashboardPage .dashboard-chart-data summary {cursor:pointer;}
#dashboardPage .dashboard-chart-data .table-wrap {max-height:250px;overflow:auto;}
#dashboardPage #dashboardRanking {padding:5px 13px 12px;max-height:286px;overflow:auto;}
#dashboardPage .dashboard-ranking-table {width:100%;min-width:0;table-layout:fixed;}
#dashboardPage .dashboard-ranking-table th,#dashboardPage .dashboard-ranking-table td {font-size:11px;padding:10px 5px;border-bottom:1px solid #f0f3f8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#dashboardPage .dashboard-ranking-table th {background:#f6f8fc;color:#8a97ab;font-weight:400;}
#dashboardPage .dashboard-ranking-table th:first-child {width:30px;}
#dashboardPage .dashboard-ranking-table th:nth-child(3) {width:99px;text-align:right;}
#dashboardPage .dashboard-ranking-table th:last-child {width:50px;text-align:right;}
#dashboardPage .dashboard-ranking-table td:nth-child(3),#dashboardPage .dashboard-ranking-table td:last-child {text-align:right;}
#dashboardPage .dashboard-ranking-table td:last-child {color:#3182ff;}
#dashboardPage .rank-number {display:inline-grid;place-items:center;background:#eef2f8;color:#94a0b1;width:18px;height:18px;border-radius:5px;font-size:10px;}
#dashboardPage .rank-1 {background:#fff1cc;color:#e6a21a;}#dashboardPage .rank-2 {background:#dfedff;color:#4b95f3;}#dashboardPage .rank-3 {background:#ffead9;color:#eaa064;}
#dashboardPage .dashboard-distribution {display:flex;align-items:center;justify-content:center;gap:18px;padding:24px 17px;min-height:194px;}
#dashboardPage .dashboard-donut {width:124px;height:124px;flex:0 0 124px;border-radius:50%;display:grid;place-items:center;}
#dashboardPage .dashboard-donut>div {width:86px;height:86px;background:#fff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;}
#dashboardPage .dashboard-donut strong {font-size:22px;color:#243249;line-height:1.3;}
#dashboardPage .dashboard-donut span {font-size:10px;color:#91a0b4;}
#dashboardPage .dashboard-donut-legend {list-style:none;margin:0;padding:0;display:grid;gap:11px;flex:1;min-width:0;max-width:220px;}
#dashboardPage .dashboard-donut-legend li {display:flex;align-items:center;gap:6px;font-size:11px;}
#dashboardPage .dashboard-donut-legend i {width:7px;height:7px;border-radius:50%;flex:none;}
#dashboardPage .dashboard-donut-legend span {flex:1;white-space:nowrap;}
#dashboardPage .dashboard-donut-legend b {font-weight:500;}
#dashboardPage .dashboard-donut-legend small {width:38px;text-align:right;color:#8b99ad;font-size:10px;}
#dashboardPage .dashboard-count {font-size:10px;background:#fa6b82;color:#fff;padding:1px 5px;border-radius:9px;margin-left:5px;}
#dashboardPage .task-list {padding:0 16px;}
#dashboardPage .task {padding:10px 0;min-height:45px;}
#dashboardPage .task b {font-size:12px;font-weight:500;}
#dashboardPage .task span {display:none;}
#dashboardPage .task-link {background:transparent!important;color:#f26c5d!important;min-height:24px;padding:1px 0 1px 8px;border:0;font-size:12px;}
#dashboardPage .dashboard-quick-title {font-size:10px;color:#94a0b3;padding:2px 16px;}
#dashboardPage .quick-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:7px 14px 13px;}
#dashboardPage .quick-grid button {min-height:29px;padding:4px 3px;text-align:center;font-size:10px;color:#3177d2;background:#f5f9ff;border:1px solid #e9f0fb;border-radius:5px;}
#dashboardPage .quick-grid button::before {display:none;}
#dashboardPage .dashboard-orders {margin-top:14px;}
#dashboardPage .dashboard-tabs {display:flex;gap:24px;align-items:stretch;}
#dashboardPage .dashboard-tabs button {border:0;border-radius:0;background:transparent;color:#8a97ab;min-height:24px;padding:0 0 4px;font-size:13px;position:relative;}
#dashboardPage .dashboard-tabs button[aria-selected=true] {color:#243249;font-weight:650;}
#dashboardPage .dashboard-tabs button[aria-selected=true]::after {content:"";height:3px;border-radius:3px;background:#3182ff;position:absolute;bottom:-12px;left:0;right:0;}
#dashboardPage .dashboard-orders .table-wrap {max-height:340px;overflow:auto;}
#dashboardPage .dashboard-orders th,#dashboardPage .dashboard-orders td {font-size:11px;padding:10px 12px;}
#dashboardPage .dashboard-orders td {height:40px;}
#dashboardPage .dashboard-orders td[data-column=product_name] {max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#dashboardPage .dashboard-shop-details {margin-top:14px;}
#dashboardPage .dashboard-shop-details>summary {padding:14px 16px;cursor:pointer;font-size:13px;font-weight:600;}
#dashboardPage .dashboard-shop-details>summary span {font-size:11px;font-weight:400;color:#94a0b3;margin-left:15px;}
#dashboardPage #shopStats {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:0 14px 14px;margin:0;}
#dashboardPage #shopStats .shop-card {min-width:0;padding:13px;background:#f9fbfe;border:1px solid #edf1f7;border-radius:8px;}
#dashboardPage .shop-name {font-size:11px;margin-bottom:12px;}
#dashboardPage .shop-data {display:grid;gap:8px;font-size:11px;}
#dashboardPage .dashboard-empty {display:grid;place-items:center;color:#98a5b8;font-size:12px;min-height:185px;width:100%;}
#dashboardPage [aria-busy=true] {opacity:.65;}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
@media (min-width:1600px) {#dashboardPage .dashboard-line-chart {max-height:280px;}#dashboardPage .dashboard-distribution {min-height:218px;gap:26px;}#dashboardPage .dashboard-donut {width:144px;height:144px;flex-basis:144px;}#dashboardPage .dashboard-donut>div {width:100px;height:100px;}}
@media (max-width:1250px) {#dashboardPage #metricGrid {gap:10px;}#dashboardPage #metricGrid .metric {padding-left:53px;padding-right:8px;}#dashboardPage #metricGrid .metric-symbol {left:11px;width:32px;height:32px;}#dashboardPage .dashboard-distribution {flex-direction:column;gap:16px;padding:18px 12px;}#dashboardPage .dashboard-donut-legend {width:100%;max-width:230px;}#dashboardPage .dashboard-chart-filters small {width:100%;margin:0;}#dashboardPage #shopStats {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:1000px) {#dashboardPage .dashboard-grid-top {grid-template-columns:1fr;}#dashboardPage .dashboard-grid-middle {grid-template-columns:repeat(2,minmax(0,1fr));}#dashboardPage .dashboard-tasks {grid-column:1/-1;}#dashboardPage .dashboard-distribution {flex-direction:row;}#dashboardPage #metricGrid {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:760px) {#dashboardPage .dashboard-welcome {align-items:flex-start;flex-direction:column;gap:8px;}#dashboardPage .dashboard-sun {font-size:30px;}#dashboardPage .dashboard-welcome h2 {font-size:18px;}#dashboardPage #metricGrid {grid-template-columns:repeat(2,minmax(0,1fr));}#dashboardPage #metricGrid .metric {min-height:98px;}#dashboardPage .dashboard-grid-middle {grid-template-columns:1fr;}#dashboardPage .dashboard-chart-filters input {width:131px;}#dashboardPage .dashboard-chart-filters select {width:165px;}#dashboardPage #shopStats {grid-template-columns:1fr;}#dashboardPage .dashboard-orders .panel-head {align-items:flex-start;}#dashboardPage .dashboard-orders .dashboard-muted {font-size:9px;}#dashboardPage .dashboard-line-chart {min-height:150px;}#dashboardPage .chart-key {gap:7px;}#dashboardPage .dashboard-shop-details>summary span {display:none;}}
