:root { --dist-primary:#287c83; --dist-primary-soft:#e7f4f4; --dist-bg:#f6f8fa; --dist-panel:#fff; --dist-text:#17212b; --dist-muted:#667789; --dist-border:#e4e9ef; --dist-danger:#b54747; }
html.distributor-mode { height:auto!important; min-height:100%; overflow-x:hidden!important; overflow-y:auto!important; }
html.distributor-mode body { height:auto!important; min-height:100%; overflow:visible!important; }
html.distributor-mode, html.distributor-mode body { margin:0; background:var(--dist-bg); font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif; }
.dist-shell { min-height:100vh; display:flex; color:var(--dist-text); background:var(--dist-bg); }
.dist-shell.is-dark { --dist-bg:#0f1115; --dist-panel:#181b21; --dist-text:#edf1f6; --dist-muted:#9aa7b5; --dist-border:#2a3039; --dist-primary-soft:#16363a; }
.dist-sidebar { width:244px; position:fixed; inset:0 auto 0 0; background:var(--dist-panel); border-right:1px solid var(--dist-border); padding:24px 14px; box-sizing:border-box; z-index:10; }
.dist-brand { display:flex; align-items:center; gap:12px; height:44px; padding:0 14px 22px; font-size:19px; font-weight:700; }
.dist-brand-mark { display:block; width:32px; height:32px; flex:0 0 32px; border-radius:9px; object-fit:cover; }
.dist-sidebar nav { display:grid; gap:8px; }
.dist-sidebar nav button { border:0; background:transparent; color:var(--dist-muted); padding:13px 16px; border-radius:9px; text-align:left; font-size:15px; cursor:pointer; display:flex; gap:12px; align-items:center; }
.dist-sidebar nav button:hover,.dist-sidebar nav button.active { color:var(--dist-primary); background:var(--dist-primary-soft); }
.dist-sidebar nav button.active { font-weight:700; }
.dist-mobile-nav-next { display:none; }
.dist-main { margin-left:244px; min-width:0; flex:1; }
.dist-topbar { height:72px; position:sticky; top:0; z-index:8; background:color-mix(in srgb,var(--dist-panel) 92%,transparent); border-bottom:1px solid var(--dist-border); backdrop-filter:blur(12px); display:flex; align-items:center; justify-content:flex-end; padding:0 34px; }
.dist-topbar.has-promo { justify-content:space-between; gap:24px; }
.dist-mobile-title { display:none; font-weight:700; }
.dist-topbar-promo { min-width:0; display:grid; gap:5px; }
.dist-topbar-promo>strong { display:flex; align-items:center; gap:22px; color:var(--dist-primary); font-size:19px; font-weight:850; letter-spacing:.08em; white-space:nowrap; }
.dist-topbar-steps { display:flex; align-items:center; flex-wrap:wrap; gap:4px 18px; color:var(--dist-muted); }
.dist-topbar-steps small { display:inline-flex; align-items:center; gap:5px; font-size:10px; white-space:nowrap; }
.dist-topbar-steps b { color:var(--dist-primary); font-size:10px; }
.dist-top-actions { display:flex; align-items:center; gap:10px; }
.dist-top-actions button { border:1px solid var(--dist-border); color:var(--dist-text); background:var(--dist-panel); border-radius:8px; min-height:36px; padding:0 12px; cursor:pointer; }
.dist-account { color:var(--dist-muted); padding:0 8px; }
.dist-logout { color:var(--dist-danger)!important; }
.dist-content { max-width:1420px; margin:0 auto; padding:36px; }
.dist-page-head { margin-bottom:28px; }
.dist-page-head h1 { font-size:30px; margin:0 0 8px; }
.dist-page-head p { margin:0; color:var(--dist-muted); }
.dist-order-toolbar { display:flex; justify-content:flex-end; align-items:end; gap:10px; margin:-8px 0 14px; }.dist-order-toolbar label { display:grid; gap:5px; color:var(--dist-muted); font-size:12px; }.dist-order-toolbar select,.dist-order-search input { min-width:150px; border:1px solid var(--dist-border); border-radius:8px; padding:9px 12px; color:var(--dist-text); background:var(--dist-panel); }.dist-order-toolbar button { border:0; border-radius:8px; padding:10px 18px; color:#fff; background:var(--dist-primary); cursor:pointer; font-weight:700; }.dist-order-toolbar button.secondary { border:1px solid var(--dist-border); color:var(--dist-text); background:var(--dist-panel); }.dist-order-toolbar button:disabled { opacity:.55; cursor:default; }.dist-order-search { display:flex; gap:8px; margin-right:auto; }.dist-order-search input { width:min(420px,36vw); }
.dist-order-insights { display:grid; gap:16px; margin:0 0 26px; }
.dist-insights-heading,.dist-trend-heading { display:flex; align-items:end; justify-content:space-between; gap:18px; }.dist-insights-heading h1 { margin:0 0 8px; font-size:30px; }.dist-trend-heading h2 { margin:0 0 5px; font-size:19px; }.dist-insights-heading p,.dist-trend-heading p { margin:0; color:var(--dist-muted); font-size:12px; line-height:1.5; }
.dist-summary-range,.dist-trend-custom { display:flex; align-items:end; gap:8px; }.dist-summary-range label,.dist-trend-custom label { display:grid; gap:5px; color:var(--dist-muted); font-size:11px; }.dist-summary-range input,.dist-trend-custom input { min-height:38px; box-sizing:border-box; border:1px solid var(--dist-border); border-radius:8px; padding:8px 10px; color:var(--dist-text); background:var(--dist-panel); }.dist-summary-range button,.dist-trend-custom button { min-height:38px; border:0; border-radius:8px; padding:8px 16px; color:#fff; background:var(--dist-primary); font-weight:750; cursor:pointer; }
.dist-order-summary-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.dist-order-summary-cards article { position:relative; overflow:hidden; display:grid; gap:7px; min-height:108px; box-sizing:border-box; border:1px solid var(--dist-border); border-radius:14px; padding:19px 22px; background:var(--dist-panel); box-shadow:0 8px 28px rgba(15,23,42,.04); }.dist-order-summary-cards article:before { content:''; position:absolute; inset:0 auto 0 0; width:4px; background:var(--dist-primary); }.dist-order-summary-cards span,.dist-order-summary-cards small { color:var(--dist-muted); }.dist-order-summary-cards span { font-size:13px; font-weight:650; }.dist-order-summary-cards strong { color:var(--dist-primary); font-size:28px; line-height:1.15; }.dist-order-summary-cards small { font-size:11px; }
.dist-trend-panel { border:1px solid var(--dist-border); border-radius:14px; padding:20px 22px; background:var(--dist-panel); box-shadow:0 8px 28px rgba(15,23,42,.04); }.dist-trend-presets { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }.dist-trend-presets button { border:1px solid var(--dist-border); border-radius:999px; padding:7px 12px; color:var(--dist-muted); background:transparent; cursor:pointer; }.dist-trend-presets button.active { border-color:var(--dist-primary); color:var(--dist-primary); background:var(--dist-primary-soft); font-weight:750; }.dist-trend-custom { display:none; justify-content:flex-end; margin-top:14px; }.dist-trend-custom.is-open { display:flex; }
.dist-chart-stack { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:15px; }.dist-chart { min-width:0; border:1px solid var(--dist-border); border-radius:11px; padding:14px; background:color-mix(in srgb,var(--dist-bg) 45%,var(--dist-panel)); }.dist-chart-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }.dist-chart h3 { margin:0; font-size:14px; }.dist-chart-value { color:var(--dist-primary); font-size:12px; font-weight:700; }.dist-chart svg { display:block; width:100%; height:180px; overflow:visible; touch-action:pan-y; }.dist-chart-axis { stroke:var(--dist-border); }.dist-chart-line { fill:none; stroke:var(--dist-primary); stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round; }.dist-chart-dates { fill:var(--dist-muted); font-size:9px; }.dist-chart-points circle { fill:var(--dist-panel); stroke:var(--dist-primary); stroke-width:2; cursor:pointer; transform-box:fill-box; transform-origin:center; }.dist-chart-points circle:hover,.dist-chart-points circle:focus,.dist-chart-points circle.is-active { fill:var(--dist-primary); outline:none; transform:scale(1.45); }
.dist-order-filters { margin:-2px 0 14px; border:1px solid var(--dist-border); border-radius:12px; padding:16px; background:var(--dist-panel); }.dist-order-filters[hidden] { display:none; }.dist-filter-grid { display:grid; grid-template-columns:repeat(5,minmax(130px,1fr)); gap:12px; }.dist-filter-grid label { display:grid; gap:5px; color:var(--dist-muted); font-size:12px; }.dist-filter-grid input,.dist-filter-grid select { min-width:0; box-sizing:border-box; border:1px solid var(--dist-border); border-radius:8px; padding:9px 10px; color:var(--dist-text); background:var(--dist-panel); }.dist-order-filters fieldset { margin:14px 0 0; border:0; padding:0; }.dist-order-filters legend { margin-bottom:8px; color:var(--dist-muted); font-size:12px; }.dist-period-filter-options { display:flex; flex-wrap:wrap; gap:8px; }.dist-period-filter-options label { position:relative; cursor:pointer; }.dist-period-filter-options input { position:absolute; opacity:0; pointer-events:none; }.dist-period-filter-options span { display:block; border:1px solid var(--dist-border); border-radius:999px; padding:7px 11px; color:var(--dist-muted); font-size:12px; }.dist-period-filter-options input:checked+span { border-color:var(--dist-primary); color:var(--dist-primary); background:var(--dist-primary-soft); font-weight:700; }.dist-period-filter-options input:focus-visible+span { outline:2px solid var(--dist-primary); outline-offset:2px; }.dist-filter-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:14px; }.dist-filter-actions button,.dist-desktop-pagination button,.dist-load-more { border:0; border-radius:8px; padding:9px 16px; color:#fff; background:var(--dist-primary); cursor:pointer; font-weight:700; }.dist-filter-actions button.secondary { border:1px solid var(--dist-border); color:var(--dist-text); background:var(--dist-panel); }
.dist-catalog-topbar { margin-bottom:20px; padding:18px 20px; border:1px solid var(--dist-border); border-radius:14px; background:var(--dist-panel); box-shadow:0 8px 28px rgba(15,23,42,.04); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.dist-plan-filters { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:8px; }
.dist-plan-filters button { border:1px solid var(--dist-border); border-radius:999px; padding:8px 14px; color:var(--dist-muted); background:var(--dist-panel); cursor:pointer; font-size:13px; }
.dist-plan-filters button:hover,.dist-plan-filters button.active { border-color:var(--dist-primary); color:var(--dist-primary); background:var(--dist-primary-soft); }
.dist-plan-filters button.active { font-weight:750; }
.dist-price-privacy-toggle { flex:0 0 auto; min-width:44px; min-height:44px; border:1px solid var(--dist-border); border-radius:10px; padding:8px 12px; display:inline-flex; align-items:center; justify-content:center; gap:7px; color:var(--dist-primary); background:var(--dist-panel); cursor:pointer; font-weight:700; }
.dist-price-privacy-toggle svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.dist-price-privacy-toggle:hover,.dist-price-privacy-toggle[aria-pressed="true"] { border-color:var(--dist-primary); background:var(--dist-primary-soft); }
.dist-plan-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(410px,1fr)); gap:22px; align-items:stretch; }
@media (min-width:901px) { .dist-plan-grid>.dist-plan-card:only-child { width:min(680px,100%); justify-self:start; } }
.dist-plan-card,.dist-panel,.dist-table-wrap,.dist-stat-card { background:var(--dist-panel); border:1px solid var(--dist-border); border-radius:13px; box-shadow:0 8px 28px rgba(15,23,42,.04); }
.dist-plan-card { position:relative; overflow:hidden; display:flex; flex-direction:column; border-radius:16px; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.dist-plan-card:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--dist-primary) 38%,var(--dist-border)); box-shadow:0 16px 38px rgba(15,23,42,.08); }
.dist-plan-card.is-featured { border-color:color-mix(in srgb,var(--dist-primary) 52%,var(--dist-border)); }
.dist-plan-card.is-featured:before { content:''; position:absolute; inset:0 0 auto; height:3px; background:linear-gradient(90deg,var(--dist-primary),#63b9ac); }
.dist-plan-body { padding:25px 26px 22px; flex:1; }
.dist-plan-tags { display:flex; flex-wrap:wrap; gap:7px; min-height:27px; margin-bottom:13px; }
.dist-plan-tags span { align-self:flex-start; padding:4px 9px; border-radius:999px; color:var(--dist-muted); background:color-mix(in srgb,var(--dist-bg) 76%,var(--dist-panel)); font-size:11px; font-weight:700; }
.dist-plan-tags span.primary { color:#fff; background:var(--dist-primary); }
.dist-plan-heading { display:flex; justify-content:space-between; gap:22px; align-items:flex-start; }
.dist-plan-heading h2 { margin:0 0 8px; font-size:22px; }
.dist-plan-heading p { max-width:520px; min-height:44px; margin:0; color:var(--dist-muted); font-size:13px; line-height:1.65; }
.dist-plan-current-price { flex:0 0 auto; display:grid; justify-items:end; gap:2px; }
.dist-plan-current-price small { color:var(--dist-muted); font-size:11px; }
.dist-plan-current-price strong { color:var(--dist-primary); font-size:27px; line-height:1.1; white-space:nowrap; }
.dist-plan-specs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; overflow:hidden; margin:21px 0; border:1px solid var(--dist-border); border-radius:11px; background:var(--dist-border); }
.dist-plan-specs div { min-width:0; padding:12px; background:var(--dist-panel); }
.dist-plan-specs span,.dist-plan-specs strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dist-plan-specs span { margin-bottom:5px; color:var(--dist-muted); font-size:11px; }
.dist-plan-specs strong { font-size:13px; }
.dist-plan-period-label { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.dist-plan-period-label>span { font-size:13px; font-weight:750; }
.dist-plan-period-label small { color:var(--dist-muted); font-size:11px; text-align:right; }
.dist-period-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(92px,1fr)); gap:8px; }
.dist-period-options button { display:grid; align-content:start; gap:4px; min-width:0; min-height:79px; border:1px solid var(--dist-border); border-radius:9px; padding:9px 10px; color:var(--dist-muted); background:var(--dist-panel); text-align:left; cursor:pointer; }
.dist-period-options button span { font-size:11px; }
.dist-period-options button .dist-period-days { display:block; color:var(--dist-muted); font-size:10px; line-height:1.3; }
.dist-period-options button strong { overflow:hidden; color:var(--dist-text); font-size:13px; text-overflow:ellipsis; }
.dist-period-options button small { color:#b7791f; font-size:10px; font-weight:750; line-height:1.3; }
.dist-period-options button:hover,.dist-period-options button.active { border-color:var(--dist-primary); background:var(--dist-primary-soft); }
.dist-period-options button.active span,.dist-period-options button.active strong { color:var(--dist-primary); }
.dist-period-options button.active .dist-period-days { color:var(--dist-muted); }
.dist-plan-actions { display:grid; gap:10px; padding:17px 26px 19px; background:color-mix(in srgb,var(--dist-bg) 70%,var(--dist-panel)); border-top:1px solid var(--dist-border); }
.dist-transfer input { flex:1; min-width:0; border:1px solid var(--dist-border); border-radius:8px; padding:10px 12px; color:var(--dist-text); background:var(--dist-panel); }
.dist-plan-actions button,.dist-panel-head button,.dist-transfer button { border:0; border-radius:9px; padding:12px 18px; color:#fff; background:var(--dist-primary); cursor:pointer; font-weight:750; }
.dist-plan-actions button { display:flex; align-items:baseline; justify-content:center; flex-wrap:wrap; gap:4px 8px; }
.dist-plan-actions button span { font-size:12px; font-weight:650; }
.dist-plan-actions button strong { font-size:18px; font-weight:900; line-height:1; }
.dist-plan-actions button:disabled { opacity:.48; cursor:not-allowed; }
.dist-table-wrap { overflow:auto; }
.dist-table-wrap table { width:100%; border-collapse:collapse; min-width:960px; }
.dist-orders-table { min-width:1540px; }
.dist-table-wrap th,.dist-table-wrap td { padding:16px 18px; border-bottom:1px solid var(--dist-border); text-align:left; }
.dist-table-wrap th { color:var(--dist-muted); font-size:13px; font-weight:600; }
.dist-table-wrap td small { display:block; color:var(--dist-muted); margin-top:5px; }
.dist-order-identity strong,.dist-order-identity small,.dist-delivery-identity { overflow-wrap:anywhere; }
.dist-delivery-identity strong,.dist-delivery-identity small { display:block; }
.dist-renewal-modal dd { min-width:0; overflow-wrap:anywhere; }
.dist-order-time { min-width:150px; white-space:nowrap; color:var(--dist-muted); font-size:13px; }
.dist-order-customer { min-width:140px; }.dist-order-plan { min-width:150px; }.dist-order-period { min-width:72px; }.dist-order-amount { min-width:105px; }.dist-order-settlement { min-width:92px; }.dist-order-remark-cell { min-width:180px; }
.dist-order-bound-devices { min-width:220px; max-width:280px; white-space:normal; }.dist-order-used-traffic { min-width:105px; white-space:nowrap; }
.dist-order-list .dist-orders-table>thead>tr>th:first-child,.dist-order-list .dist-orders-table>tbody>tr:not(.dist-entitlement-row)>td:first-child { position:sticky; left:0; z-index:2; min-width:285px; }.dist-order-list .dist-orders-table>thead>tr>th:last-child,.dist-order-list .dist-orders-table>tbody>tr:not(.dist-entitlement-row)>td:last-child { position:sticky; right:0; z-index:2; min-width:150px; box-shadow:-8px 0 14px rgba(15,23,42,.05); }.dist-order-list .dist-orders-table>thead>tr>th:first-child,.dist-order-list .dist-orders-table>thead>tr>th:last-child { z-index:4; background:var(--dist-panel); }.dist-order-list .dist-origin-order-row>td:first-child,.dist-order-list .dist-origin-order-row>td:last-child { background:var(--dist-panel); }.dist-order-list .dist-renewal-order-row>td:first-child,.dist-order-list .dist-renewal-order-row>td:last-child { background:color-mix(in srgb,var(--dist-primary-soft) 26%,var(--dist-panel)); }
.dist-table-wrap tbody tr:last-child td { border-bottom:0; }
.dist-entitlement-row[hidden] { display:none; }.dist-entitlement-row td { padding-top:0; background:color-mix(in srgb,var(--dist-primary-soft) 38%,transparent); }.dist-entitlement-row>td>div { padding:14px 16px; border:1px solid color-mix(in srgb,var(--dist-primary) 25%,var(--dist-border)); border-radius:10px; }.dist-entitlement-row strong { display:block; margin-bottom:10px; color:var(--dist-primary); font-size:13px; }.dist-entitlement-row dl { display:grid; grid-template-columns:repeat(4,minmax(125px,1fr)); gap:10px 16px; margin:0; }.dist-entitlement-row dl span { min-width:0; }.dist-entitlement-row dt { margin-bottom:3px; color:var(--dist-muted); font-size:11px; }.dist-entitlement-row dd { margin:0; overflow-wrap:anywhere; font-size:13px; font-weight:600; }
.dist-origin-order-row td { background:var(--dist-panel); }.dist-renewal-order-row td { background:color-mix(in srgb,var(--dist-primary-soft) 26%,var(--dist-panel)); }.dist-renewal-order-row td:first-child { position:relative; padding-left:48px; }.dist-renewal-order-row td:first-child:before { content:'↳'; position:absolute; top:17px; left:23px; color:var(--dist-primary); font-size:17px; font-weight:800; }.dist-renewal-order-row td:first-child strong { color:color-mix(in srgb,var(--dist-text) 82%,var(--dist-primary)); }
.dist-bound-device-list { display:grid; gap:5px; }.dist-bound-device-list code { display:block; max-width:100%; color:var(--dist-text); font:600 12px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:normal; word-break:break-word; overflow-wrap:anywhere; }.dist-bound-device-list .is-device-extra { display:none; }.dist-bound-device-list.is-expanded .is-device-extra { display:block; }.dist-device-toggle { justify-self:start; border:0; padding:2px 0; color:var(--dist-primary); background:transparent; font-size:11px; font-weight:750; cursor:pointer; }.dist-device-state,.dist-action-disabled { color:var(--dist-muted); font-size:12px; font-weight:500; }
.dist-free { color:#168466!important; font-weight:700; }
.dist-badge { display:inline-block; border-radius:999px; padding:5px 10px; font-size:12px; font-weight:700; }
.settle-0 { color:#956312; background:#fff3d8; }.settle-1 { color:#187159; background:#dff5eb; }
.dist-link-btn { border:0; background:transparent; color:var(--dist-primary); font-weight:700; cursor:pointer; }
.dist-entitlement-toggle[aria-expanded="true"] { color:var(--dist-muted); }
.dist-order-actions { display:grid; justify-items:start; gap:7px; min-width:128px; }
.dist-renew-btn { color:#fff!important; background:var(--dist-primary)!important; border-radius:7px!important; padding:7px 12px!important; }
.dist-order-remark { min-width:150px; max-width:300px; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--dist-text); line-height:1.55; }
.dist-desktop-pagination { display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:14px 2px 0; color:var(--dist-muted); font-size:12px; }.dist-desktop-pagination label { display:flex; align-items:center; gap:6px; }.dist-desktop-pagination select { border:1px solid var(--dist-border); border-radius:7px; padding:7px 9px; color:var(--dist-text); background:var(--dist-panel); }.dist-desktop-pagination button { padding:8px 12px; }.dist-desktop-pagination button:disabled { opacity:.45; cursor:default; }.dist-desktop-pagination strong { color:var(--dist-text); }.dist-load-more,.dist-mobile-order-total { display:none; }
.dist-stats { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-bottom:22px; }
.dist-stat-card { padding:20px; display:grid; gap:8px; }.dist-stat-card span { color:var(--dist-muted); font-size:13px; }.dist-stat-card strong { font-size:24px; }
.dist-two-column { display:grid; grid-template-columns:1.3fr 1fr; gap:22px; margin-bottom:22px; }
.dist-panel { padding:22px; margin-bottom:22px; }.dist-panel h2 { margin:0 0 18px; font-size:19px; }
.dist-panel-head { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.dist-code { display:flex; justify-content:space-between; gap:20px; align-items:center; border-top:1px solid var(--dist-border); padding:15px 0; }.dist-code small { display:block;color:var(--dist-muted); }.dist-code strong { font-size:18px; }
.dist-code button { border:1px solid var(--dist-border); border-radius:7px; color:var(--dist-primary); background:transparent; padding:8px 12px; cursor:pointer; }
.dist-transfer { display:flex; gap:10px; }
.dist-knowledge-toolbar { display:flex; gap:10px; margin-bottom:18px; }.dist-knowledge-toolbar input { flex:1; min-width:0; border:1px solid var(--dist-border); border-radius:9px; padding:11px 14px; color:var(--dist-text); background:var(--dist-panel); }.dist-knowledge-toolbar button { border:0; border-radius:9px; padding:11px 20px; color:#fff; background:var(--dist-primary); cursor:pointer; font-weight:700; }.dist-knowledge-toolbar button.secondary { border:1px solid var(--dist-border); color:var(--dist-text); background:var(--dist-panel); }.dist-knowledge-toolbar button:disabled { opacity:.5; cursor:default; }
.dist-knowledge-groups { display:grid; gap:18px; }.dist-knowledge-category { overflow:hidden; border:1px solid var(--dist-border); border-radius:13px; background:var(--dist-panel); box-shadow:0 8px 28px rgba(15,23,42,.04); }.dist-knowledge-category h2 { margin:0; padding:16px 20px; border-bottom:1px solid var(--dist-border); font-size:17px; }.dist-knowledge-list { display:grid; }.dist-knowledge-item { display:flex; align-items:stretch; border-bottom:1px solid var(--dist-border); background:transparent; }.dist-knowledge-item:last-child { border-bottom:0; }.dist-knowledge-item:hover { background:var(--dist-primary-soft); }.dist-knowledge-open { min-width:0; flex:1; display:flex; align-items:center; justify-content:space-between; gap:20px; border:0; padding:16px 20px; color:var(--dist-text); background:transparent; font:inherit; text-align:left; cursor:pointer; }.dist-knowledge-open span { min-width:0; display:grid; gap:5px; }.dist-knowledge-open strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; }.dist-knowledge-open small,.dist-knowledge-open>b,.dist-knowledge-updated { color:var(--dist-muted); }.dist-knowledge-open>b { font-size:24px; font-weight:400; }.dist-knowledge-copy { align-self:center; flex:0 0 auto; min-width:92px; margin-right:18px; border:1px solid var(--dist-primary); border-radius:8px; padding:8px 13px; color:var(--dist-primary); background:var(--dist-panel); font:inherit; font-size:14px; font-weight:700; cursor:pointer; transition:color .16s ease,background .16s ease,opacity .16s ease; }.dist-knowledge-copy:hover { background:var(--dist-primary-soft); }.dist-knowledge-copy.copied { color:#fff; background:var(--dist-primary); }.dist-knowledge-copy:disabled { opacity:.85; cursor:default; }
.dist-empty,.dist-loading,.dist-error { color:var(--dist-muted); padding:46px; text-align:center; }
.dist-loading span { display:inline-block; width:17px;height:17px;border:2px solid var(--dist-border);border-top-color:var(--dist-primary);border-radius:50%;animation:dist-spin .8s linear infinite;margin-right:9px;vertical-align:-4px; }
@keyframes dist-spin { to { transform:rotate(360deg); } }
#dist-modal-root { display:none; } #dist-modal-root.open { display:block; position:fixed; inset:0; z-index:10000; }
.dist-modal-backdrop { position:absolute; inset:0; display:grid; place-items:center; padding:20px; background:rgba(3,8,15,.64); backdrop-filter:blur(4px); }
.dist-modal { position:relative; width:min(520px,100%); max-height:calc(100vh - 40px); overflow:auto; box-sizing:border-box; border-radius:15px; padding:28px; color:var(--dist-text); background:var(--dist-panel); box-shadow:0 24px 80px rgba(0,0,0,.28); }
.dist-entitlement-modal { width:min(480px,100%); }
.dist-modal h2 { margin:0 38px 20px 0; }.dist-modal p { color:var(--dist-muted); line-height:1.6; }
.dist-modal.dist-knowledge-modal { width:min(900px,100%); }.dist-knowledge-updated { margin:-10px 0 22px; font-size:12px; }.dist-knowledge-body { overflow-wrap:anywhere; color:var(--dist-text); font-size:14px; line-height:1.75; }.dist-knowledge-body h1,.dist-knowledge-body h2,.dist-knowledge-body h3,.dist-knowledge-body h4 { margin:1.3em 0 .65em; line-height:1.35; }.dist-knowledge-body img { max-width:100%; height:auto; }.dist-knowledge-body pre { overflow:auto; padding:14px; border-radius:9px; background:color-mix(in srgb,var(--dist-bg) 82%,var(--dist-panel)); }.dist-knowledge-body code { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }.dist-knowledge-body table { display:block; max-width:100%; overflow:auto; border-collapse:collapse; }.dist-knowledge-body th,.dist-knowledge-body td { border:1px solid var(--dist-border); padding:8px 10px; }.dist-knowledge-body a { color:var(--dist-primary); }
.dist-modal-x { position:absolute; top:18px; right:18px; border:0; background:transparent; color:var(--dist-muted); font-size:26px; cursor:pointer; }
.dist-modal dl { margin:0; }.dist-modal dl div { display:flex; justify-content:space-between; gap:24px; padding:13px 0; border-bottom:1px solid var(--dist-border); }.dist-modal dt { color:var(--dist-muted); }.dist-modal dd { margin:0; font-weight:700; text-align:right; }
.dist-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }.dist-modal-actions button { border:1px solid var(--dist-border); border-radius:8px; padding:10px 18px; color:var(--dist-text); background:var(--dist-panel); cursor:pointer; }.dist-modal-actions button.primary { border-color:var(--dist-primary); color:white; background:var(--dist-primary); }.dist-modal-actions button:disabled { opacity:.55; cursor:wait; }
.dist-renewal-modal { width:min(560px,100%); }.dist-renewal-hint { margin:0 0 18px; padding:12px 14px; border-radius:9px; color:var(--dist-primary); background:var(--dist-primary-soft); line-height:1.55; }.dist-renewal-period { display:grid; gap:7px; margin-top:20px; color:var(--dist-muted); font-size:13px; }.dist-renewal-period select { width:100%; border:1px solid var(--dist-border); border-radius:8px; padding:11px 12px; color:var(--dist-text); background:var(--dist-panel); }
.dist-qr-modal { width:min(620px,100%); text-align:center; }.dist-qr { width:320px; max-width:100%; margin:18px auto; padding:12px; box-sizing:border-box; border-radius:12px; background:#fff; }.dist-qr img { display:block; width:100%; height:auto; }
.dist-subscription-qr-modal { width:min(620px,100%); text-align:center; }.dist-subscription-qr-preview { display:block; width:min(460px,100%); height:auto; margin:0 auto; border:1px solid var(--dist-border); border-radius:12px; background:#fff; }.dist-image-actions { justify-content:center; }
.dist-order-ref { color:var(--dist-muted); font-size:13px; word-break:break-all; }.dist-warning { margin-top:16px; padding:12px; border-radius:8px; color:#9d4e0a; background:#fff1d9; }
.dist-delivery-result { display:grid; place-items:center; gap:10px; margin:30px auto; font-size:42px; color:var(--dist-primary); }.dist-delivery-result strong { font-size:18px; }
.dist-delivery-result .dist-network-status { font-size:14px; font-weight:400; color:var(--dist-muted); }
#dist-toast-root { position:fixed; top:22px; right:22px; z-index:11000; display:grid; gap:9px; }.dist-toast { min-width:220px; padding:12px 16px; border-radius:9px; color:#fff; background:#207a64; box-shadow:0 10px 30px rgba(0,0,0,.2); }.dist-toast.error { background:#ad4545; }
html.distributor-mode.dist-modal-open,html.distributor-mode.dist-modal-open body { overflow:hidden!important; }
@media (max-width:900px) { .dist-sidebar { width:78px; padding:20px 9px; }.dist-brand span:last-child,.dist-sidebar nav button:not(.active) span+*,.dist-sidebar nav button { font-size:0; }.dist-brand { padding-left:13px; }.dist-sidebar nav button { justify-content:center; padding:14px; }.dist-sidebar nav button span { font-size:19px; }.dist-main { margin-left:78px; }.dist-content { padding:24px 18px; }.dist-stats { grid-template-columns:repeat(2,1fr); }.dist-two-column { grid-template-columns:1fr; }.dist-entitlement-row dl { grid-template-columns:repeat(2,minmax(125px,1fr)); }.dist-account { display:none; }.dist-chart-stack { grid-template-columns:1fr; }.dist-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .dist-sidebar { position:fixed; width:auto; height:64px; inset:auto 0 0; border-right:0; border-top:1px solid var(--dist-border); padding:7px 48px 7px 10px; }.dist-brand { display:none; }.dist-sidebar nav { display:flex; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; }.dist-sidebar nav::-webkit-scrollbar { display:none; }.dist-sidebar nav button,.dist-sidebar nav button:not(.active) { flex:0 0 78px; min-height:44px; font-size:11px; display:grid; justify-items:center; gap:2px; padding:4px; }.dist-sidebar nav button span { font-size:17px; }.dist-mobile-nav-next { position:absolute; right:7px; top:9px; display:flex; width:38px; height:44px; align-items:center; justify-content:center; border:0; border-left:1px solid var(--dist-border); color:var(--dist-primary); background:var(--dist-panel); font-size:24px; font-weight:800; cursor:pointer; }.dist-mobile-nav-next:disabled { opacity:.35; cursor:default; }.dist-main { margin-left:0; padding-bottom:calc(64px + env(safe-area-inset-bottom) + 12px); }.dist-topbar { height:60px; padding:0 12px; justify-content:space-between; }.dist-topbar.has-promo { height:72px; gap:8px; }.dist-topbar.has-promo .dist-mobile-title { display:none; }.dist-mobile-title { display:block; }.dist-topbar-promo>strong { gap:10px; font-size:14px; }.dist-topbar-steps { flex-wrap:nowrap; gap:5px; }.dist-topbar-steps small,.dist-topbar-steps b { gap:2px; font-size:8px; }.dist-top-actions { flex:0 0 auto; gap:5px; }.dist-top-actions button { min-height:32px; padding:0 9px; }.dist-logout { font-size:0; }.dist-logout:after { content:'↪'; font-size:17px; }.dist-content { padding:20px 12px; }.dist-page-head h1 { font-size:25px; }.dist-order-toolbar { justify-content:stretch; flex-wrap:wrap; }.dist-order-search { flex:1 0 100%; }.dist-order-search input { min-width:0; width:100%; }.dist-order-search button { padding-inline:12px; }.dist-order-toolbar label { flex:1; }.dist-order-toolbar select { width:100%; min-width:0; }.dist-plan-grid { grid-template-columns:1fr; }.dist-plan-actions { flex-direction:column; }.dist-stats { grid-template-columns:1fr 1fr; }.dist-stat-card { padding:15px; }.dist-stat-card strong { font-size:19px; }.dist-modal { padding:22px 18px; }.dist-qr { width:280px; }.dist-knowledge-toolbar { flex-wrap:wrap; }.dist-knowledge-toolbar input { flex:1 0 100%; }.dist-knowledge-toolbar button { flex:1; padding-inline:12px; }.dist-knowledge-category h2 { padding-inline:14px; }.dist-knowledge-open { padding-inline:14px 8px; }.dist-knowledge-copy { min-width:78px; margin-right:10px; padding:7px 9px; font-size:13px; } }
@media (max-width:640px) {
  .dist-content { padding:0 10px 10px; }
  .dist-catalog-topbar { margin-bottom:0; padding:6px 8px; border-radius:12px; }
  .dist-plan-filters { gap:6px; }
  .dist-plan-filters button { padding:7px 11px; }
  .dist-plan-grid { gap:0; }
  .dist-plan-card { border-radius:13px; }
  .dist-plan-body { padding:16px 14px 14px; }
  .dist-plan-tags { min-height:22px; margin-bottom:8px; gap:5px; }
  .dist-plan-tags span { padding:3px 7px; font-size:10px; }
  .dist-plan-heading { display:block; }
  .dist-plan-heading h2 { margin-bottom:5px; font-size:20px; }
  .dist-plan-heading p { min-height:0; font-size:12px; line-height:1.5; }
  .dist-plan-current-price { justify-items:start; margin-top:7px; gap:0; }
  .dist-plan-current-price strong { font-size:24px; }
  .dist-plan-specs { grid-template-columns:repeat(2,minmax(0,1fr)); margin:10px 0 0; border-radius:9px; }
  .dist-plan-specs div { padding:9px; }
  .dist-plan-specs span { margin-bottom:3px; }
  .dist-plan-period-label { margin-bottom:4px; }
  .dist-period-options { gap:6px; }
  .dist-period-options button { min-height:68px; padding:7px 8px; }
  .dist-plan-actions { padding:6px 14px; }
}
@media (max-width:560px) {
  .dist-topbar.has-promo { height:64px; }
  .dist-topbar-promo { gap:2px; }
}
.dist-knowledge-share { margin: 10px 0 4px; padding: 7px 12px; border: 1px solid #25858b; border-radius: 8px; color: #19777d; background: #fff; font-weight: 600; cursor: pointer; }
.dist-knowledge-share:hover { background: #edf8f8; }

@keyframes dist-sheet-in { from { transform:translateY(18px); opacity:.75; } to { transform:translateY(0); opacity:1; } }
@media (max-width:640px), (max-width:900px) and (hover:none) and (pointer:coarse) {
  .dist-page-head { margin:18px 4px 20px; }
  .dist-order-insights { gap:12px; margin-bottom:20px; }
  .dist-insights-heading { display:grid; align-items:stretch; }
  .dist-summary-range { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:end; }
  .dist-summary-range button { grid-column:1/-1; min-height:44px; }
  .dist-order-summary-cards { gap:10px; }
  .dist-order-summary-cards article { min-height:104px; padding:16px; }
  .dist-order-summary-cards strong { font-size:23px; }
  .dist-trend-panel { padding:16px 12px; }
  .dist-trend-heading { display:grid; align-items:start; }
  .dist-trend-presets { justify-content:flex-start; overflow-x:auto; flex-wrap:nowrap; padding:2px 0; scrollbar-width:none; }
  .dist-trend-presets button { flex:0 0 auto; min-height:38px; }
  .dist-trend-custom.is-open { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; }
  .dist-trend-custom button { grid-column:1/-1; min-height:44px; }
  .dist-chart-stack { gap:10px; }.dist-chart { padding:11px 8px; }.dist-chart svg { height:160px; }.dist-chart-heading { padding:0 4px; }.dist-chart-value { font-size:11px; }
  .dist-order-toolbar { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:end; gap:9px; margin-bottom:10px; }
  .dist-order-list { overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; }
  .dist-order-list .dist-orders-table { width:100%; min-width:0; display:block; }
  .dist-orders-table thead { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
  .dist-orders-table tbody { width:100%; display:grid; gap:12px; }
  .dist-origin-order-row,.dist-renewal-order-row { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"identity settlement" "time time" "customer customer" "plan period" "amount amount" "bound-devices used-traffic" "remark remark" "actions actions"; min-width:0; overflow:hidden; border:1px solid var(--dist-border); border-radius:14px; background:var(--dist-panel); box-shadow:0 8px 24px rgba(15,23,42,.05); }
  .dist-orders-table .dist-origin-order-row>td,.dist-orders-table .dist-renewal-order-row>td { min-width:0; border-bottom:0; background:transparent; }
  .dist-order-list .dist-orders-table>thead>tr>th:first-child,.dist-order-list .dist-orders-table>tbody>tr:not(.dist-entitlement-row)>td:first-child,.dist-order-list .dist-orders-table>thead>tr>th:last-child,.dist-order-list .dist-orders-table>tbody>tr:not(.dist-entitlement-row)>td:last-child { position:static; min-width:0; box-shadow:none; }
  .dist-order-identity { grid-area:identity; padding:16px 8px 3px 16px!important; }
  .dist-order-identity strong { display:block; overflow-wrap:anywhere; font-size:16px; line-height:1.35; }
  .dist-order-identity small { display:inline-block; margin:6px 6px 0 0; color:var(--dist-muted); font-size:11px; line-height:1.4; }
  .dist-order-time { grid-area:time; min-width:0; padding:4px 16px 13px!important; white-space:normal; color:var(--dist-muted); font-size:12px; }
  .dist-order-time:before { content:attr(data-label) ' · '; }
  .dist-order-customer { grid-area:customer; padding:13px 16px 6px!important; border-top:1px solid var(--dist-border)!important; }
  .dist-order-plan { grid-area:plan; padding:7px 8px 7px 16px!important; }
  .dist-order-period { grid-area:period; padding:7px 16px 7px 8px!important; }
  .dist-order-amount { grid-area:amount; padding:7px 16px!important; }
  .dist-order-bound-devices { grid-area:bound-devices; padding:7px 8px 7px 16px!important; }
  .dist-order-used-traffic { grid-area:used-traffic; padding:7px 16px 7px 8px!important; }
  .dist-order-settlement { grid-area:settlement; align-self:start; justify-self:end; padding:16px 16px 3px 4px!important; }
  .dist-order-remark-cell { grid-area:remark; padding:7px 16px 14px!important; }
  .dist-order-action-cell { grid-area:actions; padding:12px 16px 16px!important; border-top:1px solid var(--dist-border)!important; }
  .dist-order-action-cell:not(.has-actions) { display:none; }
  .dist-order-customer,.dist-order-plan,.dist-order-period,.dist-order-amount,.dist-order-bound-devices,.dist-order-used-traffic,.dist-order-remark-cell { min-width:0; display:grid; align-content:start; gap:3px; overflow-wrap:anywhere; white-space:normal; font-size:13px; font-weight:650; }
  .dist-order-customer:before,.dist-order-plan:before,.dist-order-period:before,.dist-order-amount:before,.dist-order-bound-devices:before,.dist-order-used-traffic:before,.dist-order-remark-cell:before { content:attr(data-label); color:var(--dist-muted); font-size:11px; font-weight:500; }
  .dist-order-amount .dist-free { display:inline; margin:0 0 0 6px; }
  .dist-order-remark { min-width:0; max-width:none; font-weight:500; }
  .dist-order-actions { width:100%; min-width:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); justify-items:stretch; gap:10px; }
  .dist-order-actions>* { min-width:0; min-height:44px; box-sizing:border-box; display:flex; align-items:center; justify-content:center; border:1px solid var(--dist-primary); border-radius:9px; padding:9px 8px; color:var(--dist-primary); background:var(--dist-panel); font-size:13px; font-weight:750; line-height:1.3; text-align:center; }
  .dist-order-actions>.dist-renew-btn { grid-column:1/-1; min-height:46px; }
  .dist-order-actions>*:only-child { grid-column:1/-1; }
  .dist-order-actions.utility-count-1>:not(.dist-renew-btn) { grid-column:1/-1; }
  .dist-order-actions>button:disabled { opacity:.58; cursor:wait; }
  .dist-order-actions>.dist-action-disabled { border-color:var(--dist-border); color:var(--dist-muted); background:var(--dist-bg); cursor:not-allowed; }
  .dist-renewal-order-row { margin-left:14px; border-left:3px solid color-mix(in srgb,var(--dist-primary) 55%,var(--dist-border)); }
  .dist-renewal-order-row .dist-order-identity { padding-left:34px!important; }
  .dist-renewal-order-row .dist-order-identity:before { top:16px; left:12px; }
  .dist-origin-order-row.is-entitlement-open { border-radius:14px 14px 0 0; }
  .dist-entitlement-row { display:block; margin-top:-12px; overflow:hidden; border:1px solid color-mix(in srgb,var(--dist-primary) 28%,var(--dist-border)); border-top:0; border-radius:0 0 14px 14px; background:color-mix(in srgb,var(--dist-primary-soft) 38%,var(--dist-panel)); }
  .dist-entitlement-row[hidden] { display:none; }
  .dist-entitlement-row td { display:block; padding:0!important; background:transparent; }
  .dist-entitlement-row>td>div { border:0; border-radius:0; padding:15px 16px 17px; }
  .dist-entitlement-row dl { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .dist-entitlement-row dd { overflow-wrap:anywhere; }
  .dist-orders-empty { display:block; border:1px solid var(--dist-border); border-radius:14px; background:var(--dist-panel); }
  .dist-orders-empty td { display:block; border:0; padding:36px 18px; text-align:center; }
  .dist-order-toolbar .dist-order-search { width:100%; min-width:0; display:grid; grid-template-columns:minmax(0,1fr) auto auto; margin-right:0; }
  .dist-order-toolbar .dist-order-search { grid-column:1/-1; }
  .dist-order-toolbar .dist-order-search input { width:100%; min-width:0; box-sizing:border-box; }
  .dist-order-toolbar>label { min-width:0; }
  .dist-order-toolbar>.dist-filter-toggle,.dist-order-toolbar>[data-action="export-orders"] { min-height:44px; padding-inline:9px; }.dist-order-toolbar>[data-action="export-orders"] { grid-column:1/-1; }
  .dist-order-filters { margin:0 0 12px; padding:13px; }.dist-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.dist-filter-grid input { width:100%; min-height:42px; }.dist-period-filter-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }.dist-period-filter-options span { text-align:center; }.dist-filter-actions button { flex:1; min-height:44px; }
  .dist-bound-device-list { min-width:0; }.dist-bound-device-list code { font-size:11px; }.dist-device-toggle { min-height:36px; text-align:left; }
  .dist-desktop-pagination { display:none; }.dist-load-more { display:block; width:100%; min-height:46px; margin:12px 0 4px; }.dist-mobile-order-total { display:block; margin:14px 0 4px; color:var(--dist-muted); font-size:12px; text-align:center; }
  .dist-order-action-backdrop { box-sizing:border-box; place-items:end center; padding:16px 0 0; }
  .dist-subscription-qr-modal,.dist-renewal-modal { width:100%; max-height:calc(100dvh - 16px); border-radius:18px 18px 0 0; padding:24px 16px 0; animation:dist-sheet-in .18s ease-out; }
  .dist-order-action-backdrop .dist-modal-x { top:16px; right:16px; min-width:44px; min-height:44px; }
  .dist-order-action-backdrop .dist-modal h2 { margin-right:48px; }
  .dist-order-action-backdrop .dist-subscription-qr-preview { width:min(460px,100%); max-height:calc(100dvh - 205px); object-fit:contain; }
  .dist-order-action-backdrop .dist-modal-actions { position:sticky; bottom:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:20px -16px 0; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--dist-border); background:var(--dist-panel); }
  .dist-order-action-backdrop .dist-modal-actions button { min-width:0; min-height:44px; padding:10px 8px; }
  .dist-order-action-backdrop .dist-modal-actions button:only-child { grid-column:1/-1; }
  .dist-renewal-modal dl div { align-items:start; }
}
@media (prefers-reduced-motion:reduce) {
  .dist-subscription-qr-modal,.dist-renewal-modal { animation:none; }
}

/* Compact distributor order table: the sequence and actions columns stay visible while the data columns scroll. */
.dist-order-toolbar { align-items:center; gap:8px; margin:0; }
.dist-order-toolbar select,.dist-order-search input { height:32px; min-height:32px; padding:0 10px; border-radius:0; font-size:12px; }
.dist-order-toolbar button { height:32px; min-height:32px; padding:0 10px; border-radius:0; font-size:12px; }
.dist-order-column-controls { display:flex; gap:4px; }
.dist-order-list { max-height:calc(100vh - 210px); border-radius:0; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-x pan-y; }
.dist-order-list .dist-orders-table { width:100%; min-width:1517px; table-layout:fixed; border-collapse:separate; border-spacing:0; }
.dist-orders-table .dist-col-sequence { width:36px; }.dist-orders-table .dist-col-actions { width:128px; }.dist-orders-table .dist-col-order-no { width:190px; }.dist-orders-table .dist-col-order-time { width:132px; }.dist-orders-table .dist-col-order-type { width:60px; }.dist-orders-table .dist-col-original { width:170px; }.dist-orders-table .dist-col-customer { width:96px; }.dist-orders-table .dist-col-plan { width:108px; }.dist-orders-table .dist-col-period { width:62px; }.dist-orders-table .dist-col-amount { width:78px; }.dist-orders-table .dist-col-devices { width:190px; }.dist-orders-table .dist-col-traffic { width:82px; }.dist-orders-table .dist-col-settlement { width:80px; }.dist-orders-table .dist-col-remark { width:105px; }
.dist-order-list .dist-orders-table th,.dist-order-list .dist-orders-table td { height:44px; min-width:0; padding:0 6px; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dist-order-list .dist-orders-table th { position:sticky; top:0; z-index:3; height:36px; padding-top:0; padding-bottom:0; background:var(--dist-panel); font-size:10px; }
.dist-order-list .dist-orders-table>thead>tr>th:first-child,.dist-order-list .dist-orders-table>tbody>tr:not(.dist-entitlement-row)>td:first-child { position:sticky; left:0; z-index:4; width:36px; min-width:36px; background:var(--dist-panel); box-shadow:1px 0 0 var(--dist-border),12px 0 18px -18px #000; }
.dist-order-list .dist-orders-table>thead>tr>th:nth-child(2),.dist-order-list .dist-orders-table>tbody>tr:not(.dist-entitlement-row)>td:nth-child(2) { position:sticky; left:36px; z-index:4; width:128px; min-width:128px; background:var(--dist-panel); box-shadow:1px 0 0 var(--dist-border),12px 0 18px -18px #000; }
.dist-order-list .dist-orders-table>thead>tr>th:last-child,.dist-order-list .dist-orders-table>tbody>tr:not(.dist-entitlement-row)>td:last-child { position:static; right:auto; min-width:0; box-shadow:none; }
.dist-order-list .dist-orders-table>tbody>tr>td:first-child,.dist-order-list .dist-orders-table>tbody>tr>td:nth-child(2) { background:var(--dist-panel); }
.dist-order-list .dist-orders-table>tbody>tr.dist-renewal-order-row>td:first-child,.dist-order-list .dist-orders-table>tbody>tr.dist-renewal-order-row>td:nth-child(2) { background:color-mix(in srgb,var(--dist-primary-soft) 26%,var(--dist-panel)); }
.dist-order-list .dist-orders-table.is-order-columns-collapsed { min-width:1353px; }
.dist-order-list .dist-orders-table.is-order-columns-collapsed col:nth-child(-n+2),.dist-order-list .dist-orders-table.is-order-columns-collapsed>thead>tr>th:nth-child(-n+2),.dist-order-list .dist-orders-table.is-order-columns-collapsed>tbody>tr:not(.dist-entitlement-row)>td:nth-child(-n+2) { display:none!important; }
.dist-order-list .dist-orders-table .dist-order-sequence { color:var(--dist-muted); font-weight:700; text-align:center; font-variant-numeric:tabular-nums; }
.dist-order-list .dist-orders-table .dist-order-identity,.dist-order-list .dist-orders-table .dist-order-time,.dist-order-list .dist-orders-table .dist-order-customer,.dist-order-list .dist-orders-table .dist-order-plan,.dist-order-list .dist-orders-table .dist-order-period,.dist-order-list .dist-orders-table .dist-order-amount,.dist-order-list .dist-orders-table .dist-order-bound-devices,.dist-order-list .dist-orders-table .dist-order-used-traffic,.dist-order-list .dist-orders-table .dist-order-settlement,.dist-order-list .dist-orders-table .dist-order-remark-cell { min-width:0; max-width:none; }
.dist-order-list .dist-orders-table .dist-order-actions { display:flex; align-items:center; gap:2px; min-width:0; }
.dist-order-list .dist-orders-table .dist-order-actions>* { display:inline-flex; align-items:center; justify-content:center; min-width:0; min-height:27px; height:27px; padding:0 4px; border:1px solid var(--dist-primary); border-radius:0; color:var(--dist-primary); background:var(--dist-panel); font-size:11px; line-height:1; white-space:nowrap; }
.dist-order-list .dist-orders-table .dist-order-actions>.dist-renew-btn { color:#fff!important; background:var(--dist-primary)!important; border-radius:0!important; padding:0 4px!important; }
.dist-order-list .dist-orders-table .dist-bound-device-list { display:flex; align-items:center; gap:4px; overflow:hidden; white-space:nowrap; }
.dist-order-list .dist-orders-table .dist-bound-device-list code { display:inline; flex:0 0 auto; white-space:nowrap; }
.dist-order-list .dist-orders-table .dist-device-toggle { flex:0 0 auto; }
.dist-renewal-order-row>td:first-child { padding-left:6px!important; }.dist-renewal-order-row>td:first-child:before { content:none!important; }
.dist-desktop-pagination { align-items:center; gap:6px; flex-wrap:wrap; padding:0; margin-top:0; font-size:12px; }
.dist-desktop-pagination select,.dist-desktop-pagination button,.dist-page-jump input { height:32px; min-height:32px; border-radius:0; }
.dist-desktop-pagination select { padding:0 8px; }.dist-desktop-pagination button { padding:0 10px; }.dist-page-jump { align-items:center; }.dist-page-jump input { width:64px; box-sizing:border-box; padding:0 7px; border:1px solid var(--dist-border); color:var(--dist-text); background:var(--dist-panel); }

@media (max-width:900px) {
  .dist-order-toolbar select,.dist-order-search input,.dist-order-toolbar button,.dist-order-search button { height:32px; min-height:32px; padding-top:0; padding-bottom:0; border-radius:0; font-size:12px; }
  .dist-order-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .dist-order-toolbar .dist-order-search { grid-column:1/-1; gap:6px; }
  .dist-order-toolbar>.dist-order-column-controls { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .dist-order-toolbar>.dist-order-column-controls>button,.dist-order-toolbar>.dist-filter-toggle,.dist-order-toolbar>[data-action="export-orders"] { width:100%; height:32px; min-height:32px; }
  .dist-filter-grid input,.dist-filter-grid select { width:100%; min-height:42px; }
  .dist-order-list { max-height:calc(100vh - 250px); overflow:auto; border-radius:0; }
  .dist-order-list .dist-orders-table { display:table!important; width:100%; min-width:1517px!important; }
  .dist-order-list .dist-orders-table.is-order-columns-collapsed { min-width:1353px!important; }
  .dist-order-list .dist-orders-table thead { position:sticky; top:0; z-index:3; display:table-header-group; width:auto; height:auto; margin:0; padding:0; overflow:visible; clip:auto; white-space:nowrap; border:0; }
  .dist-order-list .dist-orders-table tbody { display:table-row-group; width:auto; }
  .dist-order-list .dist-orders-table .dist-origin-order-row,.dist-order-list .dist-orders-table .dist-renewal-order-row { display:table-row; min-width:0; overflow:visible; border:0; border-radius:0; box-shadow:none; }
  .dist-order-list .dist-orders-table .dist-origin-order-row>td,.dist-order-list .dist-orders-table .dist-renewal-order-row>td { display:table-cell!important; min-width:0; height:42px; padding:0 5px!important; border-bottom:1px solid var(--dist-border); background:var(--dist-panel); white-space:nowrap; }
  .dist-order-list .dist-orders-table .dist-renewal-order-row>td { background:color-mix(in srgb,var(--dist-primary-soft) 26%,var(--dist-panel)); }
  .dist-order-list .dist-orders-table .dist-order-identity strong { font-size:11px; }
  .dist-order-list .dist-orders-table .dist-order-time { white-space:nowrap; }
  .dist-order-list .dist-orders-table .dist-order-time:before,.dist-order-list .dist-orders-table .dist-order-customer:before,.dist-order-list .dist-orders-table .dist-order-plan:before,.dist-order-list .dist-orders-table .dist-order-period:before,.dist-order-list .dist-orders-table .dist-order-amount:before,.dist-order-list .dist-orders-table .dist-order-bound-devices:before,.dist-order-list .dist-orders-table .dist-order-used-traffic:before,.dist-order-list .dist-orders-table .dist-order-remark-cell:before { content:none; }
  .dist-order-list .dist-orders-table .dist-order-actions>* { min-height:27px; height:27px; padding-inline:4px; font-size:11px; }
  .dist-order-list .dist-orders-table .dist-entitlement-row { display:table-row!important; margin:0; border:0; border-radius:0; }
  .dist-order-list .dist-orders-table .dist-entitlement-row[hidden] { display:none!important; }
  .dist-order-list .dist-orders-table .dist-entitlement-row>td { display:table-cell!important; padding:0!important; }
  .dist-order-list .dist-orders-table .dist-orders-empty { display:table-row; }
  .dist-order-list .dist-orders-table .dist-orders-empty>td { display:table-cell!important; }
  .dist-desktop-pagination { display:flex; justify-content:flex-start; margin-bottom:12px; }
  .dist-load-more,.dist-mobile-order-total { display:none!important; }
}

@media (max-width:560px) {
  .dist-order-list { max-height:calc(100vh - 270px); }
}

.dist-order-list .dist-sequence-header{position:sticky!important}.dist-order-list .dist-orders-table.is-order-columns-collapsed>thead>tr>th.dist-sequence-header,.dist-order-list .dist-orders-table.is-order-columns-collapsed>thead>tr>th:nth-child(2){display:none!important}

.dist-order-list .dist-order-columns-toggle{position:fixed!important;top:84px;left:8px;display:inline-flex!important;align-items:center;justify-content:center;transform:none!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:24px!important;padding:0!important;border:1px solid var(--dist-primary);border-radius:999px;background:var(--dist-panel);color:var(--dist-primary);font-size:10px;line-height:22px;z-index:20}

/* The order list is a real scroll viewport on every supported order-table layout. */
.dist-order-list { overflow:auto!important; }
.dist-order-list .dist-orders-table { display:table!important; }
.dist-order-list .dist-orders-table thead { position:sticky!important; top:0!important; z-index:5!important; display:table-header-group!important; width:auto!important; height:auto!important; margin:0!important; overflow:visible!important; clip:auto!important; }
.dist-order-list .dist-orders-table th { position:sticky!important; top:0!important; z-index:5!important; }
.dist-order-list .dist-orders-table>thead>tr>th:first-child { position:sticky!important; left:0!important; z-index:6!important; }
.dist-order-list .dist-orders-table>thead>tr>th:nth-child(2) { position:sticky!important; left:36px!important; z-index:6!important; }
.dist-order-toolbar>.dist-order-columns-toggle { position:static!important; display:inline-flex!important; align-items:center; justify-content:center; width:auto!important; min-width:44px!important; max-width:none!important; height:32px!important; padding:0 9px!important; transform:none!important; }
.dist-order-search>.dist-order-columns-toggle { position:static!important; display:inline-flex!important; flex:0 0 auto; align-items:center; justify-content:center; width:auto!important; min-width:44px!important; height:32px!important; padding:0 9px!important; transform:none!important; }
.dist-order-columns-toggle-mobile { display:none!important; }
.dist-mobile-order-controls { display:none!important; }
@media (max-width:900px) {
  .dist-order-search>.dist-order-columns-toggle { width:auto!important; min-width:58px!important; height:32px!important; }
  .dist-order-toolbar>.dist-order-columns-toggle { display:none!important; }
  .dist-order-toolbar>[data-action="export-orders"] { grid-column:2!important; grid-row:3; width:100%!important; }
  .dist-order-search>.dist-order-columns-toggle,.dist-order-toolbar>.dist-filter-toggle,.dist-order-toolbar>[data-action="export-orders"] { display:none!important; }
  .dist-order-list { position:relative; padding-top:0; }
  .dist-mobile-order-controls { position:relative; z-index:7; display:grid!important; grid-template-columns:36px minmax(0,1fr) minmax(0,1fr); gap:6px; align-items:stretch; height:36px; margin:0 0 0; background:var(--dist-panel); }
  .dist-mobile-order-controls button { width:100%; height:36px; min-height:36px; min-width:0; padding:0 6px; border:1px solid var(--dist-primary); border-radius:0; color:#fff; background:var(--dist-primary); font-size:12px; font-weight:700; white-space:nowrap; }
  .dist-mobile-order-controls .dist-order-columns-toggle-mobile { position:static!important; top:auto!important; left:auto!important; display:inline-flex!important; align-items:center; justify-content:center; width:36px!important; min-width:36px!important; max-width:36px!important; height:36px!important; padding:0!important; border-radius:0!important; z-index:auto!important; }
  .dist-order-list .dist-orders-table th { top:0!important; }
}
.dist-notices { display:flex; align-items:center; gap:10px; min-width:0; margin-bottom:16px; padding:9px 14px; border:1px solid var(--dist-border); border-radius:10px; background:var(--dist-panel); color:var(--dist-primary); }
.dist-notices strong { flex-shrink:0; font-size:13px; }
.dist-notices button { border:0; background:transparent; color:inherit; cursor:pointer; min-height:32px; }
.dist-notices .dist-notice-title { flex:1; min-width:0; text-align:left; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.dist-notice-body { display:block; width:100%; max-height:55vh; overflow:auto; overflow-wrap:anywhere; line-height:1.7; }
.dist-notice-body img { max-width:100%; height:auto; }
