:root {
  font-family: "Inter", "Microsoft YaHei", sans-serif;
  color: #193437;
  background: #f2f5f3;
  font-synthesis: none;
  --ink: #193437;
  --muted: #708180;
  --line: #d9e3df;
  --panel: #ffffff;
  --nav: #163d3d;
  --teal: #16857d;
  --teal-dark: #0f6b66;
  --teal-soft: #edf7f3;
  --teal-border: #a8cbc5;
  --teal-border-strong: #7fb3ab;
  --teal-shadow: rgba(22, 133, 125, .18);
  --page-bg: #f2f5f3;
  --surface-soft: #f7f9f8;
  --table-head-bg: #fafcfb;
  --table-line: #edf1ef;
  --field-bg: #ffffff;
  --field-border: #c7d6d2;
  --nav-active: #245352;
  --nav-accent: #f2bc8c;
  --nav-hover: rgba(255,255,255,.07);
  --orange: #d5834e;
  --blue: #2f6f88;
}
html { height: 100%; overflow: hidden; scrollbar-gutter: stable; }
* { box-sizing: border-box; }
body { height: 100%; margin: 0; min-width: 1080px; overflow: hidden; background: #f2f5f3; }
.is-hidden { display: none !important; }
.auth-gate { height: 100vh; min-height: 100vh; overflow-y: auto; display: grid; place-items: center; padding: 24px; background: #f2f5f3; }
.auth-card { width: min(720px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 34px; box-shadow: 0 18px 55px rgba(24, 52, 55, .12); }
.auth-brand { padding: 0; margin-bottom: 34px; color: var(--ink); }
.auth-card h1 { font-size: 24px; margin-top: 5px; }
.auth-copy { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-form { display: grid; gap: 14px; margin-top: 25px; }
.auth-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.auth-form input { height: 40px; width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 0 11px; color: var(--ink); background: #fff; }
.auth-form textarea { min-height: 70px; width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 5px; padding: 9px 11px; color: var(--ink); background: #fff; }
.supplier-register-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.supplier-register-form > label:nth-of-type(8), .supplier-register-form > label:nth-of-type(9), .supplier-register-form > .command, .supplier-register-form > .auth-hint { grid-column: 1 / -1; }
.supplier-invite-summary { display: grid; grid-template-columns: 220px minmax(320px, 1fr) auto; gap: 14px; align-items: end; padding: 18px 20px 20px; }
.supplier-invite-summary label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.supplier-invite-summary input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 5px; padding: 0 10px; background: #f7f9f8; color: var(--ink); }
.password-field { position: relative; width: 100%; }
.password-field input { padding-right: 42px; }
.password-toggle { position: absolute; top: 50%; right: 5px; width: 32px; height: 30px; transform: translateY(-50%); border: 0; border-radius: 4px; background: transparent; color: var(--muted); display: grid; place-items: center; font-size: 15px; line-height: 1; }
.password-toggle:hover, .password-toggle:focus-visible { background: #edf3f0; color: var(--ink); outline: none; }
.auth-form .command { min-height: 40px; margin-top: 3px; }
.auth-mode-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; margin-top: 22px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9f8; }
.auth-mode-tabs button { min-height: 32px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; }
.auth-mode-tabs button:hover, .auth-mode-tabs button.active { background: var(--nav-active); color: #fff; }
.auth-hint { color: #91a09e; font-size: 10px; line-height: 1.5; }
.auth-error { color: #a24e4c; font-size: 11px; }
.login-identifier-shell { position: relative; }
.login-history { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; left: 0; display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; box-shadow: 0 8px 22px rgba(24, 52, 55, .14); }
.login-history[hidden] { display: none; }
.login-history-item { min-width: 0; padding: 9px 11px; overflow: hidden; border: 0; border-bottom: 1px solid #edf1ef; background: #fff; color: var(--ink); text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; font: inherit; font-size: 11px; }
.login-history-item:last-child { border-bottom: 0; }
.login-history-item:hover, .login-history-item:focus-visible { background: var(--teal-soft); color: var(--teal); outline: none; }
.login-directory { display: grid; gap: 10px; max-height: 300px; margin-top: 12px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.login-directory.is-hidden { display: none; }
.login-directory-group { display: grid; gap: 5px; }
.login-directory-group h3 { margin: 0; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 0; }
.login-directory-list { display: grid; gap: 4px; }
.login-directory-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 8px 10px; border: 1px solid #e0e9e5; border-radius: 5px; background: #fafcfb; color: var(--ink); text-align: left; cursor: pointer; }
.login-directory-item:hover, .login-directory-item:focus-visible { border-color: var(--teal-border-strong); background: var(--teal-soft); color: var(--teal); outline: none; }
.login-directory-copy { display: grid; min-width: 0; gap: 2px; }
.login-directory-copy strong, .login-directory-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-directory-copy strong { font-size: 11px; font-weight: 650; }
.login-directory-copy small { color: var(--muted); font-size: 10px; }
.login-directory-role { flex: 0 0 auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.tenant-credential-note { margin-top: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: #f7f9f8; color: var(--muted); font-size: 11px; line-height: 1.6; }
.tenant-credential-note.success { border-color: #a7d2c4; background: #edf7f3; color: #1f6858; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { height: 100%; min-height: 0; overflow: hidden; display: flex; }
.sidebar { width: 236px; min-height: 0; flex: 0 0 236px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; background: var(--nav); color: #d5e3df; display: flex; flex-direction: column; padding: 28px 16px 18px; }
.sidebar::-webkit-scrollbar { width: 0; height: 0; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px 26px; font-size: 17px; letter-spacing: .04em; color: #fff; font-weight: 700; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; background: #d5834e; border-radius: 8px; color: #fff; font-weight: 800; }
.brand-mark.has-image { overflow: hidden; padding: 3px; background: rgba(255,255,255,.08); }
.brand-mark.has-image img { display: block; width: 100%; height: 100%; border-radius: 5px; object-fit: contain; }
nav { display: flex; flex-direction: column; gap: 4px; }
.nav-group { margin: 15px 12px 7px; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: #8eafaa; }
.nav-item { border: 0; border-radius: 6px; background: transparent; color: #c8d9d5; padding: 11px 12px; text-align: left; display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.nav-item #productNavLabel, .nav-item #financeNavLabel { white-space: nowrap; word-break: keep-all; text-align: left; flex: 1 1 auto; min-width: 0; }
.nav-item #productNavLabel.product-nav-label-emphasis { font-size: 15px; font-weight: 700; }
.nav-item #productNavLabel.product-nav-label-vertical { writing-mode: vertical-rl; text-orientation: upright; line-height: 1; letter-spacing: 0; flex: 0 0 auto; }
.nav-item span { width: 17px; text-align: center; color: #91bbb4; }
.nav-item:hover, .nav-item.active { background: var(--nav-active); color: #fff; }
.nav-item.active span { color: var(--nav-accent); }
.nav-submenu { display: grid; gap: 2px; margin: 0 0 6px 18px; padding-left: 10px; border-left: 1px solid rgba(203, 227, 220, .22); }
.nav-subitem { margin-left: 12px; padding: 8px 13px; border: 0; border-left: 2px solid rgba(203, 227, 220, .18); border-radius: 4px; background: transparent; color: #91b5ae; text-align: left; font-size: 11px; }
.nav-subitem.nav-subchild { margin-left: 12px; padding-left: 13px; color: #91b5ae; }
.nav-subitem:hover, .nav-subitem.active { background: var(--nav-active); color: #fff; }
.nav-count { margin-left: auto; min-width: 20px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 9px; background: #d5834e; color: #fff; font-size: 9px; }
.sidebar-foot { margin-top: auto; padding: 16px 12px 0; color: #8eafaa; font-size: 11px; border-top: 1px solid rgba(255,255,255,.1); }
.presence { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #65c39b; margin-right: 7px; }
.workspace { min-width: 0; min-height: 0; height: 100%; flex: 1; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; background: var(--page-bg); }
.workspace-tabs { position: sticky; top: 88px; z-index: 9; display: flex; align-items: stretch; gap: 2px; min-height: 42px; padding: 5px 22px 0; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--surface-soft); scrollbar-width: thin; }
.workspace-tab { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-width: 128px; max-width: 240px; min-height: 36px; padding: 0 8px 0 13px; border: 1px solid transparent; border-bottom: 0; border-radius: 5px 5px 0 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.workspace-tab:hover { background: var(--teal-soft); color: var(--ink); }
.workspace-tab.active { border-color: var(--line); background: #fff; color: var(--ink); font-weight: 650; box-shadow: 0 -1px 0 #fff; }
.workspace-tab-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-tab-close { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.workspace-tab-close:hover, .workspace-tab-close:focus-visible { background: var(--teal-soft); color: var(--ink); outline: none; }
.workspace-tab.active .workspace-tab-close { color: #6d807b; }
@media (max-width: 760px) { .workspace-tabs { padding-left: 14px; padding-right: 14px; } .workspace-tab { min-width: 112px; max-width: 190px; } }
.topbar { position: sticky; top: 0; z-index: 10; height: 88px; border-bottom: 1px solid var(--line); background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 0 36px; }
.topbar-subtitle { display: none; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin: 0; }
h1 { font-size: 23px; line-height: 1.15; letter-spacing: 0; }
h2 { font-size: 16px; letter-spacing: 0; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.language-select { height: 32px; border: 1px solid var(--line); border-radius: 5px; padding: 0 8px; background: #fff; color: var(--ink); font-size: 11px; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 6px; }
.notification-button { position: relative; }
.notification-badge { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: #d75151; color: #fff; font-size: 9px; line-height: 16px; font-weight: 700; }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.notification-list { display: grid; gap: 8px; max-height: min(58vh, 520px); overflow-y: auto; }
.notification-item { border: 1px solid var(--line); border-radius: 7px; padding: 12px 14px; background: #fff; }
.notification-item.unread { border-color: rgba(22, 133, 125, .5); background: #f3faf8; }
.notification-item h3 { margin: 0; font-size: 13px; }
.notification-item p { margin: 7px 0 0; color: var(--ink); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.notification-item small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.notification-item .table-actions { margin-top: 8px; }
.security-button { min-height: 32px; padding: 7px 10px; }
.session-menu { position: relative; }
.user-button { min-height: 44px; border: 0; border-radius: 5px; padding: 3px 6px 3px 9px; background: transparent; color: var(--ink); display: flex; align-items: center; gap: 9px; font-weight: 600; }
.user-button:hover, .user-button[aria-expanded="true"] { background: #edf3f0; }
.user-button-copy { display: grid; min-width: 0; gap: 1px; text-align: right; }
.user-button-copy strong, .user-button-copy small { display: block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-button-copy strong { color: var(--ink); font-size: 12px; }
.user-button-copy small { color: var(--muted); font-size: 9px; font-weight: 500; }
.user-button .user-avatar { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 50%; background: #dcebe7; color: #27615f; font-size: 11px; }
.session-menu-arrow { width: 0; height: 0; border-top: 5px solid var(--muted); border-right: 4px solid transparent; border-left: 4px solid transparent; }
.session-menu-panel { position: absolute; z-index: 30; top: calc(100% + 7px); right: 0; width: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 12px 30px rgba(24, 52, 55, .16); }
.session-menu-panel[hidden] { display: none; }
.session-menu-summary { display: grid; gap: 3px; padding: 12px 13px; border-bottom: 1px solid var(--line); }
.session-menu-summary strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.session-menu-summary span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.session-menu-summary .session-menu-tier { color: var(--teal); font-weight: 700; }
.account-tier-note { margin-top: 3px; color: var(--teal); font-size: 10px; font-weight: 700; line-height: 1.35; }
.session-menu-panel > button { width: 100%; min-height: 36px; padding: 8px 13px; border: 0; border-bottom: 1px solid #edf1ef; background: #fff; color: var(--ink); text-align: left; font-size: 11px; }
.session-menu-panel > button:last-child { border-bottom: 0; color: #9b4848; }
.session-menu-panel > button:hover, .session-menu-panel > button:focus-visible { background: var(--teal-soft); color: var(--teal); outline: none; }
.session-menu-panel > button:last-child:hover, .session-menu-panel > button:last-child:focus-visible { background: #fff2f1; color: #9b4848; }
.content { max-width: none; margin: 0; padding: 30px 0 48px 36px; }
.page-view { display: none; }
.page-view.active { display: block; }
.form-panel { max-width: 980px; }
.form-panel .inline-form { padding: 20px 22px 22px; }
.form-panel .dialog-actions { margin-top: 2px; }
#warehouseCenterView .table-scroll, #financeCenterView .table-scroll { margin-right: 24px; }
#warehouseCenterView .panel, #financeCenterView .panel, #overseasView .panel, #warehouseCenterView .metrics, #financeCenterView .metrics, #overseasView .metrics, #overseasView .catalog-tabs { margin-right: 24px; }
#warehouseCenterView .panel-heading, #financeCenterView .panel-heading, #overseasView .panel-heading { gap: 16px; }
.page-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.page-actions { display: flex; align-items: center; gap: 8px; }
.page-intro h2 { font-size: 23px; line-height: 1.2; }
.page-intro > div > p:last-child { margin-top: 7px; color: var(--muted); font-size: 12px; }
.customer-panel { min-width: 0; }
.customer-panel .page-intro, .customer-panel > .metrics, .customer-panel > .prepaid-alert { margin-right: 24px; }
.customer-panel .panel-heading h2 { font-size: 16px; }
.customer-panel .table-actions { flex-wrap: nowrap; }
.customer-order-workflow-panel .customer-request-product-cell { width: 260px; min-width: 190px; max-width: 260px; white-space: normal; vertical-align: top; }
.customer-request-product-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: start; line-height: 1.5; }
.customer-request-product-row + .customer-request-product-row { margin-top: 7px; padding-top: 7px; border-top: 1px solid #edf1ef; }
.customer-request-product-row span { color: var(--muted); font-size: 10px; }
.customer-request-product-row strong, .customer-request-product-row b { min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.customer-request-product-row strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.customer-tracking-history { margin-top: 7px; color: var(--muted); font-size: 10px; }
.customer-tracking-history summary { width: fit-content; color: var(--teal); cursor: pointer; }
.customer-tracking-history > div { display: grid; gap: 5px; max-height: 180px; margin-top: 7px; overflow-y: auto; }
.customer-tracking-history p { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 8px; line-height: 1.45; white-space: normal; }
.customer-tracking-history time { color: #879694; }
.customer-tracking-history span { color: var(--ink); overflow-wrap: anywhere; }
.after-sales-summary-cell { min-width: 220px; max-width: 360px; white-space: normal; overflow-wrap: anywhere; line-height: 1.55; }
.customer-panel .after-sales-request-actions { min-width: 174px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.customer-panel .after-sales-request-actions button { min-width: 0; padding: 6px 5px; white-space: normal; }
#storeAuthorizationRows .table-actions { flex-wrap: wrap; min-width: 128px; }
#storeAuthorizationRows .table-actions button { border-radius: 4px; cursor: pointer; transition: color .14s ease, background-color .14s ease, box-shadow .14s ease, transform .14s ease; }
#storeAuthorizationRows .table-actions button:hover, #storeAuthorizationRows .table-actions button:focus-visible { color: #fff; background: var(--teal); box-shadow: 0 3px 9px rgba(35, 111, 105, .22); outline: none; }
#storeAuthorizationRows .table-actions button.danger:hover, #storeAuthorizationRows .table-actions button.danger:focus-visible { color: #fff; background: #b35b57; box-shadow: 0 3px 9px rgba(179, 91, 87, .22); }
#storeAuthorizationRows .table-actions button:active { transform: translateY(1px); box-shadow: none; }
#customerDashboardBalance { font-size: 23px; }
.connector-metrics { margin-bottom: 24px; }
.ai-gateway-form { padding: 18px 22px 0; }
.ai-gateway-form .dialog-actions { grid-column: 1 / -1; justify-content: flex-end; margin: 0; padding: 2px 0 0; }
#aiGatewayPanel .credential-note { margin: 14px 22px 20px; }
#aiGatewayStatus { white-space: nowrap; }
.cloud-forecast-workspace { padding: 22px; }
.cloud-forecast-workspace .metrics { margin: 0 0 24px; }
.cloud-forecast-panel { border-top: 1px solid var(--line); }
.cloud-forecast-panel .panel-heading { padding: 0 0 16px; border-bottom: 0; }
.cloud-forecast-panel .panel-heading h3 { margin: 0; font-size: 14px; }
.cloud-pending-workspace { padding: 22px; }
.task-queue-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 26px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.cloud-pending-workspace .task-queue-heading { margin: 0 0 16px; padding-top: 0; border-top: 0; align-items: flex-start; }
.task-queue-heading h2 { margin: 0; font-size: 16px; }
.task-queue-heading p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.task-queue-meta { display: flex; align-items: center; gap: 12px; }
.workspace-migration-note { display: grid; gap: 6px; padding: 22px; color: var(--ink); background: #f7faf8; }
.workspace-migration-note span { color: var(--muted); font-size: 12px; }
.cloud-platform-panel { overflow: hidden; }
.cloud-platform-grid { display: grid; grid-template-columns: repeat(6, minmax(112px, 1fr)); gap: 8px; min-height: 0; padding: 12px 22px; align-content: stretch; }
.cloud-platform-card { min-height: 80px; border: 1px solid var(--line); border-radius: 7px; padding: 10px; background: #fff; color: var(--ink); text-align: left; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 8px; }
.cloud-platform-card:hover, .cloud-platform-card.active { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal-shadow); }
.platform-mark, .cloud-platform-mark { position: relative; width: 36px; height: 36px; border: 1px solid rgba(25, 52, 55, .12); border-radius: 7px; display: grid; place-items: center; overflow: hidden; background: #eef3f1; color: var(--ink); font-size: 14px; font-weight: 800; }
.platform-mark img, .cloud-platform-mark img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 5px; object-fit: contain; background: #fff; }
.cloud-platform-card b, .cloud-platform-card small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-platform-card b { font-size: 11px; }
.cloud-platform-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.cloud-carrier-field { border-top: 1px solid var(--line); padding: 17px 22px 21px; background: #fbfdfc; }
.cloud-carrier-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.cloud-carrier-heading .compact-action { min-width: 58px; }
.cloud-carrier-heading h3 { margin: 0; font-size: 14px; }
.cloud-carrier-heading p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.cloud-carrier-options { display: flex; flex-wrap: wrap; gap: 8px; min-height: 38px; margin-top: 13px; }
.cloud-carrier-options label { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-size: 11px; cursor: pointer; }
.cloud-carrier-options label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.cloud-carrier-options input { accent-color: var(--teal); }
.cloud-warehouse-picker { border-top: 1px solid var(--line); padding: 15px 22px 17px; background: #fff; }
.cloud-warehouse-picker .filters { padding: 10px 0 0; }
.cloud-warehouse-result { display: inline-flex; flex-wrap: wrap; gap: 7px; align-items: center; min-height: 32px; }
.cloud-warehouse-result .compact-action { white-space: nowrap; }
.layout-label-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px 22px 22px; }
.layout-label-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.layout-label-grid input, #layoutPlatformRows input, #layoutPlatformRows select, #layoutCarrierRows input { width: 100%; min-width: 120px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); padding: 8px 9px; font-size: 11px; }
.layout-carrier-summary-table { table-layout: fixed; }
.layout-carrier-summary-table .platform-short-col { width: 33.333%; }
.layout-carrier-summary-table .layout-action-col { width: 110px; }
.layout-carrier-summary-table th:nth-child(2), .layout-carrier-summary-table td:nth-child(2) { transform: translateX(-113px); }
.layout-carrier-summary-table td { vertical-align: top; }
.layout-carrier-summary-table .platform-short-name { color: var(--ink); }
.layout-row-actions { white-space: nowrap; }
.layout-row-actions button { margin-right: 5px; }
.layout-row-actions { min-width: 95px; }
.layout-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 12px 18px; color: var(--muted); font-size: 11px; }
.layout-pagination button { border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); padding: 5px 9px; cursor: pointer; }
.layout-pagination button:disabled { opacity: .45; cursor: default; }
#layoutPlatformRows select[multiple] { min-width: 190px; height: 72px; padding: 5px; }
.layout-carrier-picker { display: flex; flex-wrap: wrap; gap: 5px; min-width: 260px; }
.layout-carrier-picker label { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); font-size: 10px; }
.layout-carrier-picker label:has(input:checked) { background: #eef7f4; border-color: #b7d9ce; color: var(--ink); }
.layout-carrier-picker input { accent-color: var(--teal); }
.layout-carrier-picker.is-editing label { border-color: var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.layout-carrier-picker.is-editing label:hover { border-color: var(--teal); }
.layout-inline-carrier-list { min-width: 260px; max-height: 86px; overflow-y: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 4px; }
.layout-inline-carrier { display: grid; grid-template-columns: minmax(110px, 1fr) 70px 42px; gap: 4px; align-items: center; min-height: 25px; }
.layout-inline-carrier input { min-width: 0 !important; padding: 4px 5px !important; font-size: 10px !important; }
.layout-inline-carrier button { padding: 3px 4px; font-size: 10px; }
.layout-inline-add { margin-top: 5px; padding: 4px 7px; font-size: 10px; }
.layout-carrier-list { width: 190px; min-width: 190px; height: 72px; color: var(--ink); }
.layout-carrier-list:disabled { opacity: 1; color: var(--ink); background: #fff; -webkit-text-fill-color: var(--ink); }
.layout-carrier-list option { color: var(--ink); }
.layout-carrier-control { display: flex; align-items: flex-start; gap: 5px; }
.layout-carrier-tools { width: 22px; min-width: 22px; height: 22px; padding: 0; line-height: 18px; font-size: 16px; }
.layout-carrier-inline-editor { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.layout-carrier-inline-editor[hidden] { display: none; }
.layout-carrier-inline-editor input { width: 110px !important; min-width: 0 !important; padding: 4px 5px !important; font-size: 10px !important; }
.layout-carrier-tool-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.layout-carrier-inline-editor button { padding: 4px 6px; font-size: 10px; }
#layoutPlatformRows td:nth-child(4) input { min-width: 220px; }
#layoutPlatformRows td:last-child, #layoutCarrierRows td:last-child { width: 64px; }
.prepaid-alert { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -8px 0 24px; padding: 14px 18px; border: 1px solid #e5bf91; border-radius: 7px; background: #fff8ef; color: #835126; }
.prepaid-alert strong { font-size: 13px; }
.prepaid-alert p { margin-top: 4px; font-size: 12px; color: #986532; }
.forecast-context { margin: 12px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--teal); background: var(--teal-soft); color: var(--ink); font-size: 13px; line-height: 1.6; }
.forecast-items { margin: 12px 0 16px; border: 1px solid var(--line); border-radius: 6px; overflow: auto; background: #fbfdfc; }
.forecast-items-heading { padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.forecast-item-row { display: grid; grid-template-columns: 42px minmax(180px, 1.5fr) 90px minmax(150px, 1fr) minmax(150px, 1fr); gap: 10px; align-items: center; padding: 10px 13px; border-bottom: 1px solid #edf1ef; min-width: 700px; }
.forecast-item-row:last-child { border-bottom: 0; }
.forecast-item-row small, .forecast-item-row .muted { color: var(--muted); font-size: 10px; }
.forecast-item-row.is-invalid { background: #fff8f5; }
.forecast-item-row.is-conflict { background: #fff8ef; }
.forecast-source-cell, .forecast-product-cell { min-width: 0; }
.forecast-source-cell small, .forecast-product-cell small { display: block; margin-top: 4px; min-height: 12px; }
.forecast-source-cell small { color: var(--muted); }
.forecast-product-cell small.is-error { color: #a34b35; font-weight: 700; }
.fee-option-mandatory { color: var(--ink); font-weight: 700; }
.fee-option-mandatory input { accent-color: var(--teal); }
.forecast-item-thumb { width: 34px; height: 34px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: #eef3f0; }
.forecast-image-cell { display: grid; justify-items: center; gap: 3px; color: var(--muted); font-size: 9px; cursor: pointer; }
.forecast-image-cell input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.forecast-item-row select, .forecast-item-row input { width: 100%; min-width: 0; height: 34px; border: 1px solid var(--line); border-radius: 4px; padding: 0 7px; background: #fff; color: var(--ink); font-size: 11px; }
.forecast-detail-cell { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-column: span 2; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.forecast-detail-cell:last-child { grid-column: span 1; }
.cloud-forecast-filters { flex-wrap: wrap; align-items: center; }
.cloud-forecast-filters input[type="search"] { min-width: 170px; flex: 1 1 170px; }
.cloud-forecast-filters input[type="date"] { min-width: 145px; }
.cloud-forecast-filters select { min-width: 140px; }
.cloud-forecast-panel .table-scroll { overflow-x: hidden; }
.cloud-forecast-panel .table-scroll table { width: 100%; min-width: 0; table-layout: fixed; }
.cloud-forecast-panel th, .cloud-forecast-panel td { white-space: normal; overflow-wrap: anywhere; }
.cloud-forecast-panel th:nth-child(1), .cloud-forecast-panel td:nth-child(1) { width: 14%; }
.cloud-forecast-panel th:nth-child(2), .cloud-forecast-panel td:nth-child(2) { width: 19%; }
.cloud-forecast-panel th:nth-child(3), .cloud-forecast-panel td:nth-child(3) { width: 12%; }
.cloud-forecast-panel th:nth-child(4), .cloud-forecast-panel td:nth-child(4) { width: 22%; }
.cloud-forecast-panel th:nth-child(5), .cloud-forecast-panel td:nth-child(5) { width: 15%; }
.cloud-forecast-panel th:nth-child(6), .cloud-forecast-panel td:nth-child(6) { width: 184px; min-width: 184px; vertical-align: top; }
.cloud-forecast-waybill { color: var(--ink); font-weight: 600; line-height: 1.45; }
.cloud-forecast-sku { display: grid; gap: 2px; margin-top: 2px; color: var(--muted); font-size: 10px; }
.cloud-forecast-sku b { color: var(--ink); font-size: 11px; font-weight: 600; }
.cloud-forecast-platform { display: grid; gap: 4px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.cloud-forecast-platform b { color: var(--ink); font-size: 12px; }
.cloud-forecast-platform small { display: block; color: var(--muted); font-size: 10px; line-height: 1.45; }
.cloud-international-label { display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; gap: 7px; margin-top: 7px; color: var(--muted); font-size: 10px; }
.cloud-international-label img, .cloud-international-label-file { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 4px; background: #fff; object-fit: contain; }
.cloud-international-label-file { display: grid; place-items: center; color: var(--ink); font-size: 9px; font-weight: 700; }
.cloud-international-label > span:not(.cloud-international-label-file) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-international-label .compact-action { justify-self: start; padding: 3px 7px; font-size: 10px; line-height: 1.2; }
.cloud-international-label.is-empty { display: grid; margin-top: 5px; }
.cloud-label-upload-box { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px dashed var(--teal); border-radius: 4px; background: #fff; color: var(--teal); font-size: 8px; font-weight: 700; cursor: pointer; }
.cloud-label-upload-box:hover, .cloud-label-upload-box:focus-visible { border-style: solid; background: var(--teal-soft); outline: none; }
.cloud-forecast-quantity-cell { display: grid; gap: 4px; line-height: 1.45; }
.cloud-forecast-quantity-cell b { color: var(--ink); font-size: 12px; font-weight: 600; }
.cloud-forecast-quantity-cell small { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.cloud-forecast-quantity-cell .cloud-forecast-fees { color: var(--ink); }
.cloud-forecast-panel .table-actions { display: block; }
.cloud-order-select { display: flex; align-items: flex-start; gap: 7px; min-width: 0; color: inherit; font-size: inherit; cursor: pointer; }
.cloud-order-select input { flex: 0 0 auto; width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--teal); }
.cloud-order-select span { min-width: 0; overflow-wrap: anywhere; }
.cloud-forecast-panel tbody tr.is-selected { background: var(--teal-soft); box-shadow: inset 3px 0 0 var(--teal); }
.cloud-forecast-panel .panel-heading-actions { flex-wrap: wrap; }
.cloud-forecast-panel #cloudPackingBundleStart { min-height: 34px; }
.cloud-operation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; width: 100%; }
.cloud-operation-grid button { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 30px; padding: 4px 5px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-size: 10px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; cursor: pointer; transition: color .14s ease, background-color .14s ease, border-color .14s ease; }
.cloud-operation-grid button:hover, .cloud-operation-grid button:focus-visible { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); outline: none; }
.cloud-operation-grid button.secondary { color: var(--teal); }
.cloud-operation-grid button:disabled { border-color: var(--line); background: #f5f7f6; color: #99a6a2; cursor: not-allowed; }
.cloud-operation-grid .muted { grid-column: 1 / -1; padding: 6px 0; font-size: 10px; }
.local-device-status { display: grid; gap: 9px; margin: 0 0 15px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: #f8fbfa; }
.local-device-status-heading, .local-device-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.local-device-heading-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.local-device-status-heading b { display: block; color: var(--ink); font-size: 12px; }
.local-device-status-heading small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.local-device-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.local-device-item { min-width: 0; padding: 0; border: 1px solid #dce7e3; border-radius: 4px; background: #fff; overflow: hidden; }
.local-device-main-action { display: block; width: 100%; min-height: 64px; padding: 7px 8px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.local-device-main-action:hover, .local-device-main-action:focus-visible { background: var(--teal-soft); outline: none; }
.local-device-item b, .local-device-item small { display: block; overflow-wrap: anywhere; }
.local-device-item b { color: var(--ink); font-size: 10px; }
.local-device-item small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.local-device-item.is-connected { border-color: #9bcdbb; background: #f0faf5; }
.local-device-item.is-manual { border-color: #e1d4a7; background: #fffaf0; }
.local-device-item.is-offline { border-color: #e1c3c0; background: #fff8f7; }
.local-device-subactions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 0 5px 5px; }
.local-device-subactions button { min-width: 0; padding: 4px 2px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--teal); font-size: 9px; line-height: 1.2; cursor: pointer; overflow-wrap: anywhere; }
.local-device-subactions button:hover, .local-device-subactions button:focus-visible { border-color: var(--teal); background: var(--teal-soft); outline: none; }
.local-device-actions { justify-content: flex-start; min-height: 26px; }
.local-printer-dialog { width: min(560px, calc(100vw - 28px)); }
.local-printer-options { display: grid; gap: 7px; min-height: 70px; max-height: 300px; overflow-y: auto; padding: 2px; }
.local-printer-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; }
.local-printer-option:hover, .local-printer-option:has(input:focus-visible) { border-color: var(--teal); background: var(--teal-soft); }
.local-printer-option.is-selected { border-color: #8fc5b1; background: #eff9f4; }
.local-printer-option input { accent-color: var(--teal); }
.local-printer-option b, .local-printer-option small { min-width: 0; overflow-wrap: anywhere; }
.local-printer-option b { color: var(--ink); font-size: 12px; }
.local-printer-option small { color: var(--muted); font-size: 10px; text-align: right; }
.local-printer-option small.is-unavailable { color: #a13c34; }
.local-device-actions .field-hint { margin: 0; }
.local-device-test-dialog { width: min(520px, calc(100vw - 32px)); }
.local-device-test-result { display: block; min-height: 44px; margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: #f7faf9; color: var(--muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.local-device-test-result.is-success { border-color: #8fc5b1; background: #eff9f4; color: #176453; }
.local-device-test-result.is-error { border-color: #d8aaa5; background: #fff5f4; color: #a13c34; }
.local-controller-test { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 12px; }
.local-controller-step { padding: 9px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--muted); font-size: 10px; text-align: center; }
.local-controller-step b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 11px; }
.local-controller-step.is-active { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.local-controller-step.is-complete { border-color: #8fc5b1; background: #eff9f4; color: #176453; }
.local-camera-dialog { width: min(760px, calc(100vw - 32px)); }
.local-camera-stage { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #182220; }
.local-camera-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.local-camera-stage video:not([srcObject]) { min-height: 260px; }
.international-label-preview-dialog { width: min(1080px, calc(100vw - 32px)); height: min(840px, calc(100vh - 32px)); padding: 22px; overflow: hidden; }
.international-label-preview-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.international-label-preview-stage { display: grid; place-items: center; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); }
.international-label-preview-stage iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.international-label-preview-stage img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.international-label-print-options { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(140px, 1fr); gap: 10px; margin-top: 12px; }
.international-label-print-options label { min-width: 0; color: var(--muted); font-size: 10px; }
.international-label-print-options select { width: 100%; margin-top: 5px; }
.international-label-preview-dialog .dialog-actions { margin-top: 14px; }
@media (max-width: 640px) { .international-label-print-options { grid-template-columns: 1fr; } }
.cloud-packing-bundle-dialog { width: min(620px, calc(100vw - 32px)); }
.cloud-bundle-order { display: grid; gap: 4px; margin-bottom: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: #f7faf9; }
.cloud-bundle-order b { color: var(--ink); font-size: 13px; }
.cloud-bundle-order span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.cloud-bundle-steps { display: grid; gap: 7px; margin: 0 0 14px; }
.cloud-bundle-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 48px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.cloud-bundle-step-index { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #edf1ef; color: var(--muted); font-size: 10px; font-weight: 700; }
.cloud-bundle-step b { display: block; color: var(--ink); font-size: 12px; }
.cloud-bundle-step small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.cloud-bundle-step.is-running { border-color: var(--teal); background: var(--teal-soft); }
.cloud-bundle-step.is-running .cloud-bundle-step-index { background: var(--teal); color: #fff; }
.cloud-bundle-step.is-success { border-color: #8fc5b1; background: #eff9f4; }
.cloud-bundle-step.is-success .cloud-bundle-step-index { background: #22806a; color: #fff; }
.cloud-bundle-step.is-error { border-color: #d8aaa5; background: #fff5f4; }
.cloud-bundle-step.is-error .cloud-bundle-step-index { background: #a13c34; color: #fff; }
@media (max-width: 760px) { .local-device-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cloud-forecast-recent-cell { min-width: 0; }
.cloud-forecast-recent-scroll { width: 144px; max-width: 144px; min-width: 0; max-height: 86px; overflow-x: hidden; overflow-y: auto; white-space: normal; line-height: 1.5; scrollbar-width: thin; }
.cloud-forecast-recent-scroll > div { width: 100%; }
.cloud-forecast-time { margin-top: 6px; color: var(--muted); font-size: 11px; }
.cloud-forecast-status-line { margin-top: 7px; }
.cloud-forecast-panel tbody td { padding-top: 10px; padding-bottom: 10px; }
.cloud-forecast-panel .cloud-product-image-cell { padding: 8px 12px; }
.cloud-product-image-frame { position: relative; z-index: 1; width: 100%; height: 128px; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #f4f7f5; cursor: zoom-in; }
.cloud-product-thumb { width: 100%; height: 100%; display: block; object-fit: cover; background: #f4f7f5; transition: transform .2s ease; transform-origin: center; }
.cloud-product-thumb[data-image-download-preview], .catalog-product-thumb[data-image-download-preview], .forecast-item-thumb[data-image-download-preview], .process-photo-gallery [data-image-download-preview] { cursor: zoom-in; }
.cloud-product-image-frame:hover .cloud-product-thumb:not(.empty) { transform: scale(1.2); }
.cloud-product-thumb.empty { display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.cloud-order-pool-panel .table-scroll { overflow-x: auto; scrollbar-width: thin; }
.cloud-order-pool-panel table { width: 100%; min-width: 980px; table-layout: fixed; }
.cloud-order-pool-panel th:nth-child(1) { width: 10%; }
.cloud-order-pool-panel th:nth-child(2) { width: 14%; }
.cloud-order-pool-panel th:nth-child(3) { width: 76px; }
.cloud-order-pool-panel th:nth-child(4) { width: 22%; }
.cloud-order-pool-panel th:nth-child(5) { width: 5%; }
.cloud-order-pool-panel th:nth-child(6) { width: 11%; }
.cloud-order-pool-panel th:nth-child(7) { width: 9%; }
.cloud-order-pool-panel th:nth-child(8) { width: 7%; }
.cloud-order-pool-panel th:nth-child(9) { width: 112px; }
.cloud-order-pool-panel td { min-width: 0; overflow-wrap: anywhere; }
.cloud-order-pool-panel th:last-child, .cloud-order-pool-panel td:last-child { padding-left: 8px; padding-right: 12px; }
.cloud-order-product-image { width: 72px; min-width: 72px; padding: 8px 10px !important; }
.cloud-order-product-image img { display: block; width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: #f4f7f5; }
.cloud-order-product-image-empty { display: grid; place-items: center; width: 56px; height: 56px; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); background: #f8faf9; font-size: 10px; line-height: 1.25; text-align: center; }
.cloud-order-product-cell { white-space: normal; }
.cloud-order-product-title, .cloud-order-product-sku { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 5px; min-width: 0; line-height: 1.45; }
.cloud-order-product-title > span, .cloud-order-product-sku > span { color: var(--muted); font-size: 10px; font-weight: 400; }
.cloud-order-product-title b, .cloud-order-product-sku strong { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.cloud-order-product-sku { margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--line); }
.cloud-order-product-sku strong { color: var(--muted); font-size: 10px; font-weight: 600; }
.cloud-order-reference-cell > b { display: block; overflow-wrap: anywhere; }
.cloud-order-label-status { display: grid; gap: 2px; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); color: #8a6640; font-size: 10px; line-height: 1.35; }
.cloud-order-label-status.is-saved { color: var(--teal); }
.cloud-order-label-status.is-unavailable { color: #8f1717; }
.cloud-order-label-status small { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.customer-panel .cloud-order-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; align-items: start; min-width: 92px; }
.customer-panel .cloud-order-actions button { width: 100%; min-width: 0; padding: 5px 3px; white-space: normal; line-height: 1.25; }
.cloud-order-generated { display: grid; gap: 3px; min-width: 0; color: var(--muted); line-height: 1.3; }
.cloud-order-generated > span, .cloud-order-generated > strong { display: block; min-width: 0; }
.cloud-order-generated > strong { color: var(--teal); font-size: 10px; font-weight: 600; overflow-wrap: anywhere; }
.status.cloud-order-overdue { border-color: #8f1717; background: #8f1717; color: #fff; font-weight: 700; }
.process-product-line { display: flex; align-items: flex-start; gap: 10px; }
.process-product-line > img { flex: 0 0 48px; width: 48px; height: 48px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: #f4f7f5; }
.process-product-line > span { min-width: 0; }
.process-photo-gallery { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 2px; }
.process-photo-gallery a { display: block; width: 52px; height: 52px; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #f4f7f5; }
.process-photo-gallery a:hover, .process-photo-gallery a:focus-visible { border-color: var(--teal); outline: none; }
.process-photo-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.table-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 12px 22px; color: var(--muted); font-size: 11px; }
.cloud-inventory-summary { padding: 16px 22px 22px; border-top: 1px solid var(--line); }
.cloud-inventory-summary h3 { margin: 0 0 10px; font-size: 13px; }
.arrival-forecast-items { display: grid; gap: 10px; margin: 14px 0; max-height: 48vh; overflow: auto; }
.arrival-forecast-row { display: grid; grid-template-columns: minmax(160px, 1.3fr) minmax(130px, 1fr) minmax(160px, 1.2fr) minmax(120px, .8fr); gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: #fafcfb; }
.arrival-forecast-row > div { min-width: 0; }
.arrival-forecast-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.arrival-forecast-row input { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; background: #fff; }
.compact-dialog.pick-review-dialog { width: min(780px, calc(100vw - 32px)); }
.pick-review-items { display: grid; margin-top: 14px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fbfdfc; }
.pick-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--line); background: #f4f8f6; }
.pick-review-heading b, .pick-review-heading small { display: block; }
.pick-review-heading b { font-size: 12px; }
.pick-review-heading small, .pick-review-heading span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.pick-review-row { display: grid; grid-template-columns: minmax(170px, 1.5fr) 62px minmax(160px, 1fr) 95px; gap: 10px; align-items: end; padding: 11px 13px; border-bottom: 1px solid #edf1ef; }
.pick-review-row:last-child { border-bottom: 0; }
.pick-review-product, .pick-review-row label { min-width: 0; }
.pick-review-product b, .pick-review-product small, .pick-review-expected span, .pick-review-expected b { display: block; }
.pick-review-product b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.pick-review-product small, .pick-review-expected span { margin-top: 4px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.pick-review-expected b { margin-top: 4px; font-size: 11px; }
.pick-review-row label { color: var(--muted); font-size: 10px; }
.pick-review-row input { width: 100%; height: 34px; margin-top: 5px; border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; background: #fff; color: var(--ink); }
.quality-check-items { display: grid; margin-top: 14px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fbfdfc; }
.quality-check-row { display: grid; grid-template-columns: minmax(165px, 1.4fr) 58px minmax(145px, 1fr) 86px 104px; gap: 10px; align-items: end; padding: 11px 13px; border-bottom: 1px solid #edf1ef; }
.quality-check-row:last-child { border-bottom: 0; }
.quality-check-row label { min-width: 0; color: var(--muted); font-size: 10px; }
.quality-check-row input, .quality-check-row select { width: 100%; height: 34px; margin-top: 5px; border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; background: #fff; color: var(--ink); }
.quality-check-note { grid-column: 3 / -1; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.metrics article { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 18px 19px; min-height: 116px; }
.metrics span { display: block; color: var(--muted); font-size: 12px; }
.metrics strong { display: block; margin-top: 7px; font-size: 29px; line-height: 1; color: var(--ink); }
.metrics small { display: block; margin-top: 10px; color: #91a09e; font-size: 11px; }
.overview-section-anchor { scroll-margin-top: 92px; }
.overview-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 12px; }
.overview-section-heading .eyebrow { margin-bottom: 4px; color: var(--teal); font-size: 10px; }
.overview-section-heading h2 { margin: 0; font-size: 17px; font-weight: 650; }
.overview-section-heading > span { color: var(--muted); font-size: 11px; text-align: right; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.service-card { border: 1px solid var(--line); border-radius: 7px; padding: 16px 17px; min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; background: #fff; }
.service-card.logistics { border-top: 3px solid var(--teal); }
.service-card.cloud { border-top: 3px solid var(--blue); }
.service-card.parcel { border-top: 3px solid var(--orange); }
.service-card.overseas { border-top: 3px solid #8e6aa5; }
.service-icon { color: var(--muted); font-size: 18px; }
.service-card h2 { margin-top: 8px; font-size: 15px; }
.service-card p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.service-state-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.service-state { padding: 4px 7px; background: #f4f7f5; border-radius: 4px; color: #7b8988; font-size: 10px; }
.service-state-actions { display: inline-flex; align-items: center; gap: 3px; }
.service-state-button { box-sizing: border-box; height: 22px; border: 1px solid var(--teal-border); border-radius: 4px; padding: 4px 7px; background: #fff; color: var(--teal); font-size: 10px; cursor: pointer; }
.service-state-button:hover, .service-state-button:focus-visible { border-color: var(--teal); background: var(--teal-soft); outline: none; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 7px; margin-bottom: 24px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-heading p { color: var(--muted); font-size: 12px; margin-top: 6px; }
.panel-heading-actions { display: flex; align-items: center; gap: 12px; }
.command, .secondary { border-radius: 5px; padding: 9px 14px; font-size: 12px; }
.command { border: 1px solid var(--teal); background: var(--teal); color: #fff; }
.command:hover, .command:focus-visible, .command:active { border-color: var(--teal-dark); background: var(--teal-dark); }
.dialog-actions .command.danger { border-color: #a24e4c; background: #b35b57; }
.dialog-actions .command.danger:hover { background: #9f4d49; }
.secondary { border: 1px solid var(--line); background: #fff; color: var(--muted); }
.partner-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 16px 22px 22px; }
.partner-types button { min-height: 82px; border: 1px solid var(--line); background: #fbfcfb; border-radius: 6px; padding: 12px; text-align: left; color: var(--ink); }
.partner-types button:hover, .partner-types button.selected { border-color: var(--teal); background: var(--teal-soft); }
.partner-types b, .partner-types span { display: block; }
.partner-types b { font-size: 13px; }
.partner-types span { margin-top: 7px; color: var(--muted); font-size: 10px; }
.filters { padding: 16px 22px; display: flex; gap: 9px; border-bottom: 1px solid var(--line); }
.filters input, .filters select { height: 36px; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 0 10px; color: var(--ink); font-size: 12px; }
.filters input { min-width: 280px; }
.finance-business-filter { align-items: center; }
.finance-business-filter label { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 12px; font-weight: 600; }
.finance-business-filter select { min-width: 190px; }
.point-rules-strip { padding: 14px 18px; }
.point-rules-strip > div { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.point-rules-strip span { color: var(--muted); line-height: 1.65; }
.point-positive { color: #167455; }
.point-negative { color: #b14949; }
#pointsView .table-scroll { margin-right: 24px; }
#pointsView .panel, #pointsView .metrics { margin-right: 24px; }
#catalogPointSettingsForm .dialog-actions { align-self: end; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; background: #fafcfb; }
th, td { padding: 13px 22px; border-bottom: 1px solid #edf1ef; white-space: nowrap; }
td { color: var(--ink); }
td .muted { color: var(--muted); font-size: 11px; margin-top: 4px; }
.status { display: inline-flex; align-items: center; border-radius: 4px; padding: 4px 7px; font-size: 10px; background: var(--teal-soft); color: var(--teal-dark); }
.status.pending { background: #fff5e8; color: #a5682f; }
.status.rejected { background: #fceeed; color: #a24e4c; }
.status-select { border: 0; border-radius: 4px; padding: 5px 7px; color: var(--teal-dark); background: var(--teal-soft); font-size: 10px; }
.status-select.pending { color: #a5682f; background: #fff5e8; }
.status-select.rejected { color: #a24e4c; background: #fceeed; }
.service-tag { display: inline-block; margin: 2px 3px 2px 0; padding: 3px 6px; border: 1px solid var(--teal-border); border-radius: 4px; background: var(--teal-soft); color: var(--teal-dark); font-size: 10px; }
.method-badge { display: inline-flex; align-items: center; min-width: 38px; justify-content: center; padding: 4px 6px; border-radius: 4px; background: #eaf3f6; color: var(--blue); font-size: 10px; font-weight: 700; }
.panel-heading code { padding: 2px 4px; border-radius: 3px; background: var(--surface-soft); color: var(--teal-dark); font-family: Consolas, "SFMono-Regular", monospace; }
.quota-cell { min-width: 112px; }
.quota-cell b { display: block; font-size: 11px; }
.quota-track { display: block; width: 104px; height: 5px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: #e9efec; }
.quota-track i { display: block; height: 100%; border-radius: 3px; background: var(--teal); }
.quota-track.warning i { background: var(--orange); }
.quota-track.full i { background: #b55d59; }
.table-actions { display: flex; gap: 6px; }
.table-actions button { border: 0; background: transparent; color: var(--teal); font-size: 11px; padding: 4px; }
.table-actions button.danger { color: #b35b57; }
.table-actions button:disabled { color: #aab6b3; cursor: not-allowed; }
.anti-theft-trace-cell { min-width: 220px; white-space: normal; vertical-align: top; }
.anti-theft-product-link { display: block; max-width: 280px; margin-top: 5px; color: var(--ink); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.anti-theft-protected-link { display: block; max-width: 280px; margin-top: 5px; color: var(--teal); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.anti-theft-protected-link-empty { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; white-space: normal; }
.store-authorization-confirm-summary { display: grid; gap: 8px; margin: 0; }
.store-authorization-confirm-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fafcfb; }
.store-authorization-confirm-summary dt { color: var(--muted); font-size: 11px; }
.store-authorization-confirm-summary dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.catalog-approval-actions-header { min-width: 210px; }
.catalog-approval-actions-cell .table-actions { min-width: 200px; flex-wrap: wrap; align-items: center; }
.catalog-approval-actions-cell .table-actions button { white-space: nowrap; }
.catalog-product-detail-dialog { position: relative; width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 22px; }
.catalog-product-detail { display: grid; gap: 16px; min-width: 0; }
.catalog-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 10px 18px; margin: 0; }
.catalog-detail-grid div { min-width: 0; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.catalog-detail-grid dt { color: var(--muted); font-size: 11px; line-height: 1.35; margin-bottom: 4px; }
.catalog-detail-grid dd { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.catalog-detail-long h3 { margin: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.catalog-detail-description { margin: 0; padding: 12px; background: #f2f5f3; border-radius: 6px; white-space: pre-wrap; color: var(--ink); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.catalog-detail-images { display: grid; grid-template-columns: repeat(5, minmax(72px, 1fr)); gap: 8px; }
.catalog-source-description-images { margin-top: 10px; }
.catalog-source-description-images .catalog-detail-image-frame { cursor: zoom-in; }
.catalog-detail-image-frame { position: relative; z-index: 1; min-width: 0; aspect-ratio: 1; margin: 0; overflow: visible; border: 1px solid var(--line); border-radius: 5px; background: #f2f5f3; cursor: zoom-in; transform-origin: center; transition: transform .16s ease, box-shadow .16s ease, z-index .16s step-end; }
.catalog-detail-image-frame:hover { z-index: 3; box-shadow: 0 10px 22px rgba(24, 52, 55, .18); }
.catalog-detail-image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; background: #f2f5f3; transition: transform .16s ease; user-select: none; }
.catalog-detail-image-frame:hover img { transform: scale(1.16); }
.customer-market { margin-right: 24px; border-top: 3px solid var(--orange); background: #fff; }
.customer-market-toolbar { min-height: 66px; display: flex; align-items: center; gap: 18px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.customer-market-search { flex: 1 1 440px; max-width: 620px; display: grid; grid-template-columns: minmax(0, 1fr) 76px; }
.customer-market-search input { width: 100%; height: 38px; min-width: 0; padding: 0 12px; border: 2px solid var(--teal); border-right: 0; border-radius: 4px 0 0 4px; color: var(--ink); outline: none; }
.customer-market-search .command { height: 38px; border-radius: 0 4px 4px 0; }
.customer-market-sort { display: flex; flex: 0 0 auto; align-items: center; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.customer-market-sort button { min-height: 34px; padding: 0 11px; border: 0; border-right: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 11px; white-space: nowrap; }
.customer-market-sort button:last-child { border-right: 0; }
.customer-market-sort button:hover, .customer-market-sort button.active { background: var(--teal-soft); color: var(--teal); font-weight: 650; }
.customer-market-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 620px; }
.customer-market-sidebar { border-right: 1px solid var(--line); background: #f7f9f8; }
.customer-market-sidebar h3 { height: 48px; display: flex; align-items: center; margin: 0; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.customer-market-categories { display: grid; gap: 0; padding: 6px 0 18px; }
.customer-market-categories button { min-height: 38px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 16px; border: 0; border-left: 3px solid transparent; background: transparent; color: var(--ink); text-align: left; font-size: 12px; }
.customer-market-categories button span { color: #91a09e; font-size: 10px; }
.customer-market-categories button:hover, .customer-market-categories button.active { border-left-color: var(--orange); background: #fff; color: var(--teal); font-weight: 650; }
.customer-market-main { min-width: 0; padding: 18px; }
.customer-market-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 12px; }
.customer-product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.customer-product-card:hover, .customer-product-card:focus-within { border-color: var(--teal-border-strong); box-shadow: 0 7px 18px var(--teal-shadow); transform: translateY(-2px); }
.customer-product-image-button { position: relative; width: 100%; aspect-ratio: 1; display: block; overflow: hidden; padding: 0; border: 0; border-bottom: 1px solid #edf1ef; background: #f2f5f3; }
.customer-product-image-button img { width: 100%; height: 100%; display: block; object-fit: cover; }
.customer-product-image-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.customer-product-stock { position: absolute; right: 7px; bottom: 7px; padding: 4px 6px; border-radius: 3px; background: rgba(25, 52, 55, .82); color: #fff; font-size: 9px; }
.customer-product-body { min-height: 128px; display: grid; grid-template-rows: 40px auto 24px; gap: 7px; padding: 10px; }
.customer-product-name { display: -webkit-box; overflow: hidden; margin: 0; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 20px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.customer-product-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.customer-product-price { color: #c84f3a; white-space: nowrap; }
.customer-product-price small { font-size: 12px; font-weight: 700; }
.customer-product-price strong { font-size: 21px; line-height: 1; }
.customer-product-meta { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.customer-product-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.customer-product-actions button { min-width: 0; min-height: 28px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-size: 10px; white-space: nowrap; }
.customer-product-actions button:first-child { grid-column: 1 / -1; }
.customer-product-actions button:first-child { border-color: var(--teal); color: var(--teal); }
.customer-product-actions button:hover { background: var(--teal-soft); }
.customer-product-actions button:disabled { border-color: var(--line); color: #aab6b3; cursor: not-allowed; }
.customer-market-empty { min-height: 360px; place-items: center; color: var(--muted); font-size: 13px; }
.customer-market-empty:not(.is-hidden) { display: grid; }
.customer-market-pagination { justify-content: center; padding: 20px 0 4px; }
.customer-catalog-detail .dialog-heading { position: sticky; top: -22px; z-index: 5; margin: -22px -22px 18px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.customer-catalog-detail { width: min(1260px, calc(100vw - 36px)); padding: 22px; }
.customer-detail-top { display: grid; grid-template-columns: 74px minmax(380px, 1fr) minmax(310px, 380px); gap: 18px; min-height: 520px; }
.customer-detail-thumbnails { max-height: 520px; display: grid; grid-auto-rows: 66px; align-content: start; gap: 8px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.customer-detail-thumbnail { width: 66px; height: 66px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #f2f5f3; }
.customer-detail-thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; }
.customer-detail-thumbnail:hover, .customer-detail-thumbnail.active { border: 2px solid var(--orange); }
.customer-detail-stage { position: relative; min-width: 0; height: 520px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); background: #f7f9f8; }
.customer-detail-stage img { width: 100%; height: 100%; display: block; object-fit: contain; background: #fff; }
.customer-detail-stage-empty { color: var(--muted); font-size: 12px; }
.customer-detail-image-nav { position: absolute; top: 50%; width: 36px; height: 48px; transform: translateY(-50%); border: 0; background: rgba(25, 52, 55, .68); color: #fff; font-size: 22px; }
.customer-detail-image-nav:hover { background: rgba(25, 52, 55, .88); }
.customer-detail-image-prev { left: 10px; }
.customer-detail-image-next { right: 10px; }
.customer-detail-summary { min-width: 0; padding: 6px 0; }
.customer-detail-summary h3 { margin: 0; color: var(--ink); font-size: 21px; line-height: 1.45; font-weight: 650; }
.customer-detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.customer-detail-badges span { padding: 4px 7px; border: 1px solid #cbdcd7; border-radius: 3px; background: #f5faf8; color: #476a66; font-size: 10px; }
.customer-detail-price-panel { margin-top: 18px; padding: 18px 16px; border-left: 3px solid var(--orange); background: #f8faf9; }
.customer-detail-price-panel span { color: var(--muted); font-size: 11px; }
.customer-detail-price-panel strong { display: block; margin-top: 5px; color: #c84f3a; font-size: 30px; line-height: 1.15; }
.customer-detail-fulfillment { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; margin: 20px 0; color: var(--ink); font-size: 12px; line-height: 1.6; }
.customer-detail-fulfillment dt { color: var(--muted); }
.customer-detail-fulfillment dd { margin: 0; overflow-wrap: anywhere; }
.customer-detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.customer-detail-actions button { min-height: 42px; }
.customer-detail-reviews { display: grid; gap: 10px; }
.customer-detail-review { padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.customer-detail-review div { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.customer-detail-review b { color: #d39028; letter-spacing: 0; }
.customer-detail-review time { margin-left: auto; }
.customer-detail-review p { margin: 8px 0 0; color: var(--ink); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.customer-detail-content { margin-top: 30px; border-top: 1px solid var(--line); }
.customer-detail-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.customer-detail-section h3 { margin: 0 0 16px; font-size: 16px; }
.customer-detail-parameters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.customer-detail-parameters div { min-width: 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.customer-detail-parameters dt, .customer-detail-parameters dd { min-width: 0; margin: 0; padding: 10px; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.customer-detail-parameters dt { background: #f5f7f6; color: var(--muted); }
.customer-detail-parameters dd { color: var(--ink); }
.customer-detail-copy { white-space: pre-wrap; color: var(--ink); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.customer-detail-long-images { max-width: 880px; display: grid; gap: 0; margin: 0 auto; }
.customer-detail-long-images img { width: 100%; height: auto; display: block; background: #f2f5f3; }
@media (max-width: 1399px) { .customer-market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .customer-market-sort button { padding: 0 8px; } }
@media (max-width: 1150px) { .customer-market-layout { grid-template-columns: 172px minmax(0, 1fr); } .customer-market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .customer-market-toolbar { flex-wrap: wrap; } .customer-market-search { max-width: none; } .customer-detail-top { grid-template-columns: 64px minmax(330px, 1fr) 300px; } .customer-detail-parameters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.catalog-image-context-menu { position: absolute; z-index: 20; display: grid; min-width: 154px; padding: 6px; border: 1px solid #c9dad5; border-radius: 6px; background: #fff; box-shadow: 0 12px 30px rgba(24, 52, 55, .2); }
.catalog-image-context-title { padding: 5px 8px 6px; border-bottom: 1px solid #e6eeeb; color: var(--muted); font-size: 10px; }
.catalog-image-context-menu button { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 28px; padding: 5px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font-size: 11px; text-align: left; cursor: pointer; }
.catalog-image-context-menu button:hover, .catalog-image-context-menu button:focus-visible { outline: 0; background: var(--teal-soft); color: var(--teal); }
.catalog-image-editor-dialog { width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 22px; }
.catalog-image-editor-layout { display: grid; grid-template-columns: 94px minmax(0, 1fr) 270px; gap: 14px; min-height: 560px; }
.catalog-image-editor-gallery { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; height: 550px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fafcfb; }
.catalog-image-editor-gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 2px 9px; color: var(--muted); font-size: 10px; }
.catalog-image-editor-gallery-heading output { color: var(--teal); font-variant-numeric: tabular-nums; white-space: nowrap; }
.catalog-image-editor-thumbnails { display: grid; grid-auto-rows: 70px; align-content: start; gap: 8px; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; outline: 0; }
.catalog-image-editor-thumbnail { display: grid; place-items: center; width: 100%; height: 70px; padding: 3px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; }
.catalog-image-editor-thumbnail:hover { border-color: #87aaa1; }
.catalog-image-editor-thumbnail.active { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.catalog-image-editor-thumbnail:focus-visible { outline: 2px solid #87aaa1; outline-offset: -2px; }
.catalog-image-editor-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; background: #f2f5f3; pointer-events: none; }
.catalog-image-editor-stage { position: relative; display: grid; place-items: center; min-width: 0; min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #172826; }
.catalog-image-editor-stage img { display: block; max-width: 100%; max-height: 520px; object-fit: contain; transform-origin: center; transition: transform .16s ease, filter .16s ease; user-select: none; }
.catalog-image-editor-nav { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 34px; height: 54px; margin: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; background: rgba(5, 24, 22, .62); color: #fff; font-size: 28px; line-height: 1; transform: translateY(-50%); cursor: pointer; }
.catalog-image-editor-nav:hover, .catalog-image-editor-nav:focus-visible { background: rgba(19, 101, 82, .86); outline: 2px solid rgba(255,255,255,.8); outline-offset: 2px; }
.catalog-image-editor-nav:disabled { opacity: .25; cursor: not-allowed; }
.catalog-image-editor-nav-prev { left: 12px; }
.catalog-image-editor-nav-next { right: 12px; }
.catalog-image-editor-controls { display: grid; align-content: start; gap: 18px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fafcfb; }
.catalog-image-editor-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.catalog-image-editor-action-grid button { min-height: 34px; padding: 6px 8px; font-size: 11px; }
.catalog-image-editor-range-list { display: grid; gap: 16px; }
.catalog-image-editor-range-list label { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; color: var(--muted); font-size: 11px; }
.catalog-image-editor-range-list output { color: var(--teal); font-variant-numeric: tabular-nums; }
.catalog-image-editor-range-list input { grid-column: 1 / -1; width: 100%; accent-color: var(--teal); }
@media (max-width: 760px) { .catalog-product-detail-dialog { padding: 16px; } .catalog-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .catalog-detail-images { grid-template-columns: repeat(3, minmax(72px, 1fr)); } }
@media (max-width: 760px) { .catalog-image-editor-dialog { padding: 16px; } .catalog-image-editor-layout { grid-template-columns: 1fr; min-height: 0; } .catalog-image-editor-gallery { height: 184px; } .catalog-image-editor-thumbnails { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 70px; } .catalog-image-editor-stage { min-height: 320px; } .catalog-image-editor-stage img { max-height: 320px; } .catalog-image-editor-nav { width: 30px; height: 46px; } }
#cloudFeeConfigRows input { width: 100%; min-width: 110px; height: 34px; border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; background: #fff; color: var(--ink); font-size: 11px; }
#cloudFeeConfigRows input[data-cloud-fee-rule] { min-width: 240px; }
#cloudFeeConfigRows input:disabled { border-color: transparent; background: transparent; color: var(--ink); opacity: 1; }
#cloudFeeConfigRows td:last-child { min-width: 190px; }
.table-select-all { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
#cloudFeeConfigRows td:first-child label { display: flex; align-items: center; gap: 7px; }
#cloudFeeConfigRows input[type="checkbox"], #cloudFeeSelectAll { width: 15px; min-width: 15px; height: 15px; accent-color: var(--teal); }
.fee-type-toggle { display: inline-flex; align-items: center; gap: 3px; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: #f7faf8; }
.fee-type-toggle button { border: 0; border-radius: 3px; padding: 4px 7px; color: var(--muted); background: transparent; font-size: 10px; }
.fee-type-toggle button.active { color: #fff; background: var(--teal); }
dialog { width: min(650px, calc(100vw - 32px)); border: 0; border-radius: 8px; padding: 0; color: var(--ink); box-shadow: 0 22px 70px rgba(24, 52, 55, .22); }
.compact-dialog { width: min(470px, calc(100vw - 32px)); }
.compact-dialog.forecast-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 28px); overflow-y: auto; }
.process-dialog { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
.process-dialog-body { padding: 22px; }
.process-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.process-summary > div { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fafcfb; }
.process-summary span, .process-summary b { display: block; }
.process-summary span { color: var(--muted); font-size: 10px; }
.process-summary b { margin-top: 5px; overflow-wrap: anywhere; font-size: 12px; }
.process-section { margin-top: 16px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.process-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fafcfb; }
.process-section-heading h3 { font-size: 13px; }
.process-section-heading span { color: var(--muted); font-size: 10px; }
.process-fee-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.process-fee-heading-actions .compact-action { padding: 5px 9px; font-size: 10px; }
.process-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.process-step { position: relative; display: flex; gap: 9px; min-width: 0; padding: 13px; border-right: 1px solid #edf1ef; border-bottom: 1px solid #edf1ef; }
.process-step-index { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #edf1ef; color: var(--muted); font-size: 10px; }
.process-step.complete .process-step-index { background: #dcefe8; color: #1d6d5b; }
.process-step.active .process-step-index { background: #fff0dc; color: #9b622b; }
.process-step b { display: block; font-size: 11px; }
.process-step p { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.process-fees > div, .process-events > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 11px 14px; border-bottom: 1px solid #edf1ef; }
.process-fees > div:last-child, .process-events > div:last-child { border-bottom: 0; }
.process-fees span, .process-events span { min-width: 0; }
.process-fees b, .process-events b { display: block; font-size: 11px; }
.process-fees small, .process-events small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.process-fees strong { flex: 0 0 auto; font-size: 12px; }
.process-fee-edit-row { display: grid !important; grid-template-columns: minmax(160px, 1fr) 100px 120px 76px; align-items: end !important; }
.process-fee-edit-row label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; }
.process-fee-edit-row input { width: 100%; min-height: 34px; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; color: var(--ink); background: #fff; font-size: 11px; }
.process-fee-edit-row input:disabled { background: #f1f4f3; color: var(--muted); }
.process-fee-edit-row strong { align-self: center; text-align: right; }
.process-fee-edit-row.is-unselected { opacity: .68; }
.process-fee-edit-row .process-fee-select { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 8px; color: var(--ink); }
.process-fee-edit-row .process-fee-select > input { width: 15px; min-height: 15px; margin-top: 2px; accent-color: var(--teal); }
.process-fee-edit-form { padding: 12px 14px; border-top: 1px solid var(--line); background: #fafcfb; }
.process-fee-edit-form > label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.process-fee-edit-form textarea { min-height: 64px; resize: vertical; }
.process-fee-edit-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.process-events time { flex: 0 0 126px; color: var(--muted); font-size: 10px; }
.process-events em { display: inline-block; margin-left: 5px; font-style: normal; vertical-align: middle; }
.process-inline-actions { display: flex; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--line); background: #fafcfb; }
.process-inline-actions button { border: 1px solid var(--teal); border-radius: 4px; background: white; color: var(--teal); padding: 7px 11px; font-size: 11px; }
.handover-order-options { display: grid; gap: 7px; max-height: 190px; overflow: auto; padding: 10px 0 2px; }
.handover-order-options label { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fafcfb; font-size: 11px; line-height: 1.45; }
.handover-order-options label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
#handoverBatchPanel .panel-heading { align-items: flex-start; }
#newHandoverBatch { white-space: nowrap; }
dialog::backdrop { background: rgba(14, 35, 36, .38); }
@media (max-width: 760px) {
  .process-fee-heading-actions { align-items: flex-end; flex-direction: column; gap: 5px; }
  .process-fee-edit-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-fee-edit-row > span { grid-column: 1 / -1; }
}
dialog form { padding: 22px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 21px; }
.dialog-heading h2 { font-size: 19px; }
.dialog-copy { margin: -9px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.marketplace-publish-steps { margin: -6px 0 18px; padding: 10px 14px 10px 30px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); color: var(--muted); font-size: 10px; line-height: 1.7; }
.marketplace-publish-steps li::marker { color: var(--teal); font-weight: 700; }
.marketplace-publish-platform-note { margin: -8px 0 16px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.marketplace-publish-platform-note strong { color: var(--ink); }
.marketplace-field-required { color: var(--ink) !important; }
.cloud-operation-inventory-check { margin: -7px 0 14px; padding: 9px 11px; border: 1px solid #d9e5e0; border-radius: 5px; background: #f7fbf9; color: var(--muted); font-size: 10px; line-height: 1.5; }
.cloud-operation-inventory-check b { color: var(--ink); font-size: 11px; }
.cloud-operation-inventory-check.is-insufficient { border-color: #d8aaa5; background: #fff5f4; color: #9b3b34; }
.cloud-operation-inventory-check.is-insufficient b { color: #8d2e28; }
.cloud-operation-inventory-check .inventory-check-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.password-grid { grid-template-columns: 1fr; }
.form-grid label, .wide-label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 11px; }
.field-label { display: inline-flex; align-items: baseline; gap: 3px; width: fit-content; }
.required { color: #b25b4c; }
.form-grid input, .form-grid select, .wide-label input, .wide-label select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 5px; min-height: 37px; padding: 8px 10px; color: var(--ink); background: #fff; }
#serviceRequestForm .form-grid > label { display: block; }
#serviceRequestForm .form-grid > label > input,
#serviceRequestForm .form-grid > label > select,
#serviceRequestForm .form-grid > label > .password-field,
#serviceRequestForm .form-grid > label > .field-with-action { display: block; margin-top: 6px; }
#serviceRequestForm .product-image-preview { margin-top: 6px; }
#serviceRequestForm .international-label-file-name { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.field-note { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.international-label-upload input[type="file"] { padding: 7px 8px; font-size: 10px; }
.platform-label-status-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 11px; }
.platform-label-status-field strong { min-height: 38px; display: flex; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9fb; color: var(--ink); font-size: 12px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.field-with-action { display: flex; align-items: center; gap: 7px; }
.field-with-action select { min-width: 0; flex: 1; }
.compact-action { flex: 0 0 auto; padding: 8px 10px; white-space: nowrap; }
.sku-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 6px; }
.sku-input-row input[readonly] { cursor: pointer; background: #f7faf8; }
.sku-input-row .compact-action { min-height: 37px; }
#serviceRequestSkuNote.is-valid { color: #177260; font-weight: 600; }
#serviceRequestSkuNote.is-error { color: #a33d36; font-weight: 600; }
.sku-mode-dialog { width: min(520px, calc(100vw - 32px)); }
.sku-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sku-mode-options button { min-height: 112px; border: 1px solid var(--line); border-radius: 7px; padding: 16px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.sku-mode-options button:hover, .sku-mode-options button:focus-visible { border-color: var(--teal); background: var(--teal-soft); outline: none; box-shadow: inset 0 0 0 1px var(--teal-shadow); }
.sku-mode-options b, .sku-mode-options span { display: block; }
.sku-mode-options b { font-size: 13px; }
.sku-mode-options span { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.field-hint { color: var(--muted); font-size: 10px; line-height: 1.4; }
.range-select { height: 36px; border: 1px solid var(--line); border-radius: 5px; padding: 0 10px; background: #fff; color: var(--ink); font-size: 12px; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.analytics-panel { min-height: 300px; }
.trend-chart, .bar-list { display: grid; gap: 14px; padding: 22px; }
.trend-row, .bar-row { display: grid; grid-template-columns: 64px minmax(120px, 1fr) 130px; gap: 12px; align-items: center; font-size: 11px; }
.bar-row { grid-template-columns: 110px minmax(100px, 1fr) 34px; }
.trend-row > span, .bar-row > span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.trend-row > b, .bar-row > b { text-align: right; font-size: 11px; }
.trend-track, .bar-track { height: 9px; border-radius: 3px; background: #e9efec; overflow: hidden; }
.trend-track i, .bar-track i { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.bar-track i { background: var(--orange); }
.empty-note, .empty-cell { color: var(--muted); text-align: center; padding: 28px; }
textarea { min-height: 82px; resize: vertical; }
fieldset { margin: 18px 0; border: 1px solid var(--line); border-radius: 5px; padding: 13px 14px 14px; }
legend { padding: 0 5px; color: var(--muted); font-size: 11px; }
.service-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.service-options.cloud-mode-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-options label { color: var(--ink); font-size: 12px; }
.service-options input { margin-right: 7px; accent-color: var(--teal); }
.line-route-scope-group { display: grid; gap: 7px; margin-top: 8px; }
.line-route-scope-group:first-child { margin-top: 0; }
.line-route-scope-group > strong { color: var(--ink); font-size: 11px; font-weight: 650; }
.line-route-scope-group .service-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; }
.tenant-feature-options { display: grid; gap: 12px; }
.tenant-feature-group { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.tenant-feature-group h4 { margin: 0 0 8px; font-size: 13px; }
.tenant-feature-group .service-options { gap: 6px 14px; }
.tenant-feature-group label.is-disabled { opacity: .45; }
#warehouseCarrierOptions { display: grid; grid-template-columns: 1fr; gap: 0; max-height: 156px; overflow-y: auto; padding-right: 8px; scrollbar-gutter: stable; }
.warehouse-carrier-group { display: grid; grid-template-columns: 126px minmax(0, 1fr); align-items: start; gap: 12px; padding: 8px 0; }
.warehouse-carrier-group + .warehouse-carrier-group { border-top: 1px solid var(--line); }
.warehouse-carrier-platform { color: var(--ink); font-size: 12px; line-height: 1.6; }
.warehouse-carrier-list { display: flex; flex-wrap: wrap; gap: 8px 22px; min-width: 0; }
.warehouse-carrier-list label { min-width: 0; white-space: nowrap; }
.forecast-fieldset { margin: 16px 0; }
.forecast-fieldset .form-grid { gap: 12px 14px; }
.forecast-wide-field { grid-column: 1 / -1; }
.product-image-upload-field input[type="file"] { padding: 7px 8px; font-size: 10px; }
.product-image-preview { display: flex; align-items: center; gap: 8px; min-height: 34px; color: var(--muted); font-size: 10px; }
.product-image-preview img { width: 48px; height: 48px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; }
.topup-receipt-upload input[type="file"] { padding: 7px 8px; font-size: 10px; }
.topup-receipt-file-name { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.prepaid-receipt-preview { min-height: 240px; padding: 16px; display: grid; place-items: center; background: #f4f8f6; }
.prepaid-receipt-preview img { display: block; max-width: 100%; max-height: 70vh; object-fit: contain; }
.prepaid-receipt-preview iframe { width: min(720px, 100%); height: 70vh; border: 1px solid var(--line); background: #fff; }
.goods-attribute-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #edf1ef; color: var(--ink); font-size: 11px; }
.goods-attribute-group > span { margin-right: 4px; color: var(--muted); }
.goods-attribute-group label { display: inline-flex; align-items: center; color: var(--ink); font-size: 11px; }
.goods-attribute-group input { margin: 0 6px 0 0; accent-color: var(--teal); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.command:disabled { cursor: not-allowed; opacity: .55; }
.credential-note { margin-top: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: #f7f9f8; color: var(--muted); font-size: 11px; line-height: 1.6; }
.credential-note.success { border-color: #a7d2c4; background: #edf7f3; color: #1f6858; }
.secret-reveal { display: flex; align-items: center; gap: 9px; margin-top: 8px; }
.secret-reveal code { min-width: 0; flex: 1; overflow-wrap: anywhere; padding: 8px 9px; border: 1px solid #cfe0da; border-radius: 4px; background: #fff; color: #174f47; font-size: 11px; }
td code { font-family: Consolas, "SFMono-Regular", monospace; font-size: 10px; }
.url-cell { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.webhook-event-options { grid-template-columns: repeat(3, 1fr); }
.toast { position: fixed; right: 25px; bottom: 25px; padding: 11px 15px; background: var(--teal-dark); color: #fff; border-radius: 5px; opacity: 0; transform: translateY(8px); transition: .2s ease; pointer-events: none; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }
.line-workspace { min-height: 720px; margin-bottom: 24px; overflow-anchor: none; }
#lineView { position: relative; min-height: 720px; overflow-anchor: none; }
#lineView .line-workspace[data-line-panel].is-hidden { display: block !important; position: absolute; inset: 0 0 auto; width: 100%; visibility: hidden; pointer-events: none; }
#lineSubnav { max-height: calc(100vh - 170px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.warehouse-scope-tree { display: grid; gap: 3px; }
.warehouse-scope-parent { display: flex; align-items: center; width: calc(100% - 12px); margin-left: 0; font-weight: 650; }
.warehouse-scope-parent::after { content: '›'; margin-left: auto; color: #8eafaa; font-size: 15px; line-height: 1; transition: transform .16s ease; }
.warehouse-scope-parent.active::after { transform: rotate(90deg); color: var(--nav-accent); }
.warehouse-scope-panel { display: grid; gap: 2px; margin: 0 0 5px 13px; padding: 2px 0 2px 9px; border-left: 1px solid rgba(203, 227, 220, .22); }
.warehouse-scope-panel .nav-subitem { width: 100%; margin-left: 0; padding-left: 12px; }
.warehouse-scope-panel .warehouse-menu-heading { margin-left: 2px; }
.warehouse-menu-heading { margin: 10px 12px 3px; color: #8eafaa; font-size: 10px; letter-spacing: .12em; }
.finance-scope-switch { display: grid; gap: 2px; margin-bottom: 5px; }
.finance-menu-heading { margin: 12px 12px 3px; color: #8eafaa; font-size: 10px; letter-spacing: .12em; }
.line-type-switch { display: grid; gap: 2px; margin-bottom: 5px; }
.line-menu-heading { margin: 12px 12px 3px; color: #8eafaa; font-size: 10px; letter-spacing: .12em; }
.line-task-item { width: calc(100% - 12px); }
.line-workbench-heading { overflow: hidden; }
.line-workbench-heading .panel-heading { border-bottom: 0; }
.line-task-tabs { display: flex; flex-wrap: wrap; gap: 0; padding: 0 22px; border-top: 1px solid var(--line); background: #fafcfb; }
.line-task-tabs button { height: 40px; border: 0; border-bottom: 2px solid transparent; padding: 0 12px; background: transparent; color: var(--muted); font-size: 11px; }
.line-task-tabs button.active { border-bottom-color: var(--teal); color: var(--teal); font-weight: 650; }
.catalog-tabs { display: flex; gap: 0; margin: 0 22px 16px; padding-left: 78px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; scroll-padding-left: 78px; }
.catalog-tabs > button, .catalog-tab-dropdown > button { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13px; }
.catalog-tabs > button:hover, .catalog-tabs > button.active, .catalog-tab-dropdown > button:hover, .catalog-tab-dropdown > button.active { border-bottom-color: var(--teal); color: var(--teal); font-weight: 650; }
.catalog-tab-dropdown { position: relative; display: flex; flex: 0 0 auto; align-items: stretch; }
.catalog-subtabs { display: flex; gap: 8px; margin: 0 22px 16px; padding: 6px; border: 1px solid var(--line); background: var(--surface); overflow-x: auto; scrollbar-width: thin; }
.catalog-subtabs button { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 12px; }
.catalog-subtabs button:hover, .catalog-subtabs button.active { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); font-weight: 650; }
.anti-theft-package-link { max-width: 260px; overflow-wrap: anywhere; }
.anti-theft-dropdown-menu { position: fixed; z-index: 40; min-width: 250px; padding: 4px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 10px 22px rgba(24, 52, 55, .12); }
.anti-theft-dropdown-menu button { display: block; width: 100%; min-height: 32px; padding: 0 10px; border: 1px solid transparent; background: transparent; color: var(--muted); text-align: left; font-size: 12px; cursor: pointer; }
.anti-theft-dropdown-menu button:hover, .anti-theft-dropdown-menu button.active { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); font-weight: 650; }
.catalog-upstream-product-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; max-height: 220px; overflow-y: auto; padding: 10px; border: 1px solid var(--line); background: #fff; }
.catalog-upstream-product-options label { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 8px; margin: 0; font-size: 12px; line-height: 1.45; }
.catalog-upstream-product-options input { width: 16px; height: 16px; margin: 1px 0 0; }
.catalog-product-list { display: grid; gap: 3px; min-width: 180px; }
.catalog-product-list span { display: block; }
.catalog-price-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px 10px; min-width: 0; }
.catalog-price-grid label { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.3; }
.catalog-price-grid input { width: 100%; min-width: 0; min-height: 32px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; font-size: 11px; line-height: 1.2; }
#productDialog fieldset { min-width: 0; }
.product-image-fieldset { margin-top: 14px; }
#productDialog .product-image-preview { display: grid; grid-template-columns: repeat(5, minmax(86px, 1fr)); gap: 10px; margin-top: 10px; min-height: 28px; }
.product-image-card { position: relative; border: 1px solid var(--line); border-radius: 5px; background: #f8faf9; padding: 6px; min-width: 0; }
.product-image-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; background: #e9efed; }
.product-image-card figcaption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 5px; color: var(--muted); font-size: 10px; }
.product-image-card .image-index { position: absolute; left: 9px; top: 9px; border-radius: 3px; padding: 2px 4px; color: #fff; background: rgba(30, 67, 57, .82); font-size: 9px; }
.product-image-card .image-remove { position: absolute; right: 7px; top: 7px; min-width: 22px; min-height: 22px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(171, 65, 54, .9); cursor: pointer; }
.product-image-empty { grid-column: 1 / -1; color: var(--muted); font-size: 11px; padding: 8px 0; }
.catalog-product-thumb { width: 38px; height: 38px; object-fit: cover; border: 1px solid transparent; border-radius: 4px; vertical-align: middle; margin-right: 8px; background: #edf3f1; transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease; }
.catalog-product-thumb[data-catalog-product-id] { cursor: zoom-in; }
.catalog-product-thumb[data-catalog-product-id]:hover { border-color: var(--teal); box-shadow: 0 3px 10px rgba(22, 133, 125, .2); transform: scale(1.06); }
.catalog-antitheft-preview { min-height: 120px; display: grid; place-items: center; padding: 12px; border: 1px dashed var(--line); background: #f7f9f8; }
.catalog-antitheft-preview img,
.catalog-antitheft-preview video { display: block; max-width: min(420px, 100%); max-height: 220px; object-fit: contain; background: #fff; }
.catalog-product-link { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 10px; }
.catalog-product-link a { color: var(--teal); text-decoration: none; }
.catalog-product-link a:hover, .catalog-product-link a:focus-visible { text-decoration: underline; }
.catalog-product-link .link-button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.catalog-product-link .link-button:hover, .catalog-product-link .link-button:focus-visible { color: var(--teal); text-decoration: underline; }
.catalog-product-link .link-button:disabled { color: #aab6b3; cursor: not-allowed; text-decoration: none; }
.external-tool-link { color: var(--teal); text-decoration: none; }
.external-tool-link:hover, .external-tool-link:focus-visible { color: var(--teal-dark); text-decoration: underline; }
.operations-tool-primary { display: flex; align-items: center; gap: 12px; }
.external-tool-brand { display: block; flex: 0 0 auto; line-height: 0; }
.external-tool-brand:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.operations-tool-logo { display: block; width: 112px; height: 58px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: #050505; }
.operations-tool-logo-light { background: #fff; }
.operations-tool-primary > div { min-width: 0; }
.operations-tool-card { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
.operations-tool-card-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.operations-tool-card-copy { display: grid; gap: 4px; min-width: 0; }
.operations-tool-card-copy > span { color: var(--muted); font-size: 11px; }
.operations-tool-card-copy strong { display: block; min-width: 0; font-size: 19px; line-height: 1.05; }
.operations-tool-card-copy small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.operations-tool-card-meta { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 10px; }
.operations-tool-card-meta > span:last-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operations-tool-edit-button { margin-left: auto; padding: 0; border: 0; background: transparent; color: var(--teal); font-size: 10px; cursor: pointer; }
.operations-tool-edit-button:hover, .operations-tool-edit-button:focus-visible { text-decoration: underline; }
.operations-tool-logo-placeholder { display: grid; place-items: center; width: 112px; height: 58px; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); background: var(--surface-soft); font-size: 11px; }
.operations-tool-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.operations-tool-edit-column { width: 72px; white-space: nowrap; }
.operations-tool-edit-column button { padding: 0; border: 0; background: transparent; color: var(--teal); font-size: 11px; cursor: pointer; }
.operations-tool-edit-column button:hover, .operations-tool-edit-column button:focus-visible { text-decoration: underline; }
.operations-tool-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 28px); overflow-y: auto; }
.operations-tool-dialog .form-grid { padding: 0 22px 22px; }
.operations-tool-dialog .dialog-actions { padding: 0 22px 22px; }
.operations-tool-table-name { display: inline-flex; align-items: center; gap: 8px; min-width: 180px; }
.operations-tool-table-logo { display: block; width: 72px; height: 30px; object-fit: contain; border-radius: 3px; background: #050505; }
.operations-tool-table-logo-light { background: #fff; }
.catalog-price-cell { min-width: 150px; line-height: 1.65; white-space: nowrap; }
.review-content-cell { min-width: 220px; max-width: 420px; white-space: normal; }
.empty-table-cell { padding: 28px; text-align: center; color: var(--muted); }
.line-workbench-frame { display: block; width: 100%; min-height: 720px; height: 720px; border: 0; background: #eef3f2; overflow: hidden; }
.line-task-panel { min-width: 0; }
.line-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.line-quick-actions button { border: 1px solid var(--line); border-radius: 5px; padding: 8px 11px; background: #fff; color: var(--teal); font-size: 11px; }
.line-quick-actions .command { border-color: var(--teal); background: var(--teal); color: #fff; }
.line-split-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.line-split-panels .panel { min-width: 0; }
.line-isolation-note { display: grid; gap: 6px; padding: 18px 22px 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.line-isolation-note b { color: var(--teal); font-size: 12px; }
.merchant-role-feature-panel { max-width: 1180px; }
.merchant-role-feature-toolbar { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: #fafcfb; }
.merchant-role-feature-toolbar label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.merchant-role-feature-toolbar select { min-width: 150px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-size: 12px; }
.merchant-role-feature-toolbar p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.merchant-role-feature-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.merchant-role-feature-group { padding: 18px 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.merchant-role-feature-group:nth-child(2n) { border-right: 0; }
.merchant-role-feature-group:nth-last-child(-n + 2) { border-bottom: 0; }
.merchant-role-feature-group h3 { margin: 0; color: var(--ink); font-size: 14px; }
.merchant-role-feature-group p { margin: 5px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.merchant-role-feature-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.merchant-role-feature-options label { display: flex; align-items: flex-start; gap: 7px; min-width: 0; padding: 8px 9px; border: 1px solid #d8e4e1; border-radius: 4px; background: #fff; color: var(--ink); font-size: 11px; line-height: 1.4; cursor: pointer; }
.merchant-role-feature-options label:hover { border-color: var(--teal-border-strong); background: var(--teal-soft); }
.merchant-role-feature-options label span { min-width: 0; }
.merchant-role-feature-options input { margin: 1px 0 0; accent-color: var(--teal); }
.enterprise-verification-card { display: grid; gap: 6px; margin: 14px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 5px; background: var(--teal-soft); color: var(--ink); }
.enterprise-verification-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.enterprise-verification-heading strong { font-size: 12px; }
.enterprise-verification-card p { margin: 0; color: var(--ink); font-size: 11px; line-height: 1.5; }
.enterprise-verification-card small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.enterprise-verification-card button { justify-self: start; min-height: 30px; padding: 5px 9px; }
@media (max-width: 760px) { .merchant-role-feature-toolbar { display: grid; gap: 10px; } .merchant-role-feature-toolbar label { justify-content: space-between; } .merchant-role-feature-groups { grid-template-columns: 1fr; } .merchant-role-feature-group, .merchant-role-feature-group:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--line); } .merchant-role-feature-group:last-child { border-bottom: 0; } .merchant-role-feature-options { grid-template-columns: 1fr; } }
@media (max-width: 1180px) { body { min-width: 0; } .sidebar { width: 208px; flex-basis: 208px; } .content { padding: 24px 0 48px 28px; } .service-grid { grid-template-columns: repeat(2, 1fr); } .partner-types { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1180px) { .cloud-platform-grid { grid-template-columns: repeat(6, minmax(100px, 1fr)); } }
@media (max-width: 980px) { .cloud-platform-grid { grid-template-columns: repeat(3, minmax(110px, 1fr)); } }
@media (max-width: 760px) { .sidebar { display: none; } .topbar { padding: 0 18px; } .content { padding: 18px 0 48px 18px; } .metrics { grid-template-columns: repeat(2, 1fr); } .service-grid, .analytics-grid { grid-template-columns: 1fr; } .partner-types { grid-template-columns: repeat(2, 1fr); padding: 14px; } .panel-heading, th, td { padding-left: 14px; padding-right: 14px; } #handoverBatchPanel .panel-heading { display: grid; gap: 12px; } #handoverBatchPanel .panel-heading-actions { width: 100%; justify-content: space-between; } .filters { flex-wrap: wrap; padding: 14px; } .filters input { min-width: 100%; } .form-grid, .process-summary, .process-timeline, .layout-label-grid { grid-template-columns: 1fr; } .process-events > div { display: grid; gap: 5px; } .process-events time { flex-basis: auto; } .service-options { grid-template-columns: repeat(2, 1fr); } .cloud-platform-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); min-height: 0; padding: 10px 14px; } .cloud-platform-card { min-height: 64px; padding: 8px; grid-template-columns: 32px minmax(0, 1fr); } .platform-mark, .cloud-platform-mark { width: 32px; height: 32px; font-size: 13px; } .goods-attribute-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .goods-attribute-group > span { grid-column: 1 / -1; } }
@media (max-width: 760px) { .arrival-forecast-row { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .line-split-panels { grid-template-columns: 1fr; } .line-task-tabs { padding: 0 14px; overflow-x: auto; flex-wrap: nowrap; } .line-task-tabs button { flex: 0 0 auto; padding: 0 9px; } .catalog-tabs, .catalog-subtabs { margin-left: 14px; margin-right: 14px; } .catalog-tabs { padding-left: 56px; scroll-padding-left: 56px; } .anti-theft-dropdown { width: calc(100% - 28px); margin-left: 14px; margin-right: 14px; } .catalog-price-grid { grid-template-columns: 1fr 1fr; } #productDialog .product-image-preview { grid-template-columns: repeat(3, minmax(78px, 1fr)); } }
@media (max-width: 760px) { .catalog-upstream-product-options { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .overview-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; } .overview-section-heading > span { text-align: left; } }
@media (max-width: 760px) { .sku-mode-options { grid-template-columns: 1fr; } .sku-mode-options button { min-height: 88px; } }
@media (max-width: 760px) { .pick-review-row { grid-template-columns: 1fr 1fr; align-items: start; } .pick-review-product { grid-column: 1 / -1; } .pick-review-heading { align-items: flex-start; } }
@media (max-width: 760px) { .quality-check-row { grid-template-columns: 1fr 1fr; align-items: start; } .quality-check-row .pick-review-product, .quality-check-note { grid-column: 1 / -1; } }
.catalog-referral-link {
  min-width: 150px;
}

.catalog-referral-link > a {
  display: inline-block;
  line-height: 1.45;
  white-space: nowrap;
}

/* Keep the fixed right-side surfaces and form controls on the same theme scale
   as the operator-selected menu color. Warning, error, and amount colors above
   remain semantic and are intentionally excluded. */
body { background: var(--page-bg); }
.workspace .panel, .workspace .metrics article, .workspace .customer-market { border-color: var(--line); }
.workspace .filters, .workspace .line-task-tabs, .workspace .merchant-role-feature-toolbar { background: var(--surface-soft); }
.workspace input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
.workspace select, .workspace textarea { border-color: var(--field-border); background: var(--field-bg); }
.workspace table th { background: var(--table-head-bg); }
.workspace table th, .workspace table td { border-bottom-color: var(--table-line); }
.workspace .customer-market-sidebar, .workspace .customer-market-main,
.workspace .catalog-image-editor-gallery, .workspace .catalog-image-editor-controls { background-color: var(--surface-soft); }
.workspace .line-workbench-frame { background: var(--page-bg); }
.workspace .international-label-preview-stage { background: var(--surface-soft); }
.workspace .topbar { background: var(--surface-soft); }
.workspace input[type="checkbox"], .workspace input[type="radio"] { accent-color: var(--teal); }
.workspace .status { background: var(--teal-soft); color: var(--teal-dark); }
.workspace .status-select { background: var(--teal-soft); color: var(--teal-dark); }
.workspace .service-tag { border-color: var(--teal-border); background: var(--teal-soft); color: var(--teal-dark); }
.workspace .panel-heading code { background: var(--surface-soft); color: var(--teal-dark); }
