:root {
    --sidebar-width: 220px;
    --header-height: 52px;
    --brand: #2864b4;
    --brand-dark: #1d4f91;
    --brand-soft: #edf4fc;
    --ink: #20252b;
    --muted: #68717d;
    --line: #d9dee5;
    --line-soft: #e9edf2;
    --surface: #ffffff;
    --canvas: #f3f5f7;
    --sidebar: #22272e;
    --sidebar-deep: #191d22;
    --sidebar-hover: #2d343c;
    --success: #247348;
    --warning: #a86408;
    --danger: #bd3737;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { scrollbar-color: #b8c0ca transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #b8c0ca; border: 2px solid transparent; border-radius: 6px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #909aa6; border: 2px solid transparent; background-clip: padding-box; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}
a, a:hover { text-decoration: none; }
button, input, select, textarea { letter-spacing: 0; }
.tooltip { pointer-events: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid rgba(40, 100, 180, .38);
    outline-offset: 2px;
}

.admin-shell { min-height: 100vh; }
.admin-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(0, 0, 0, .36);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: var(--sidebar-width);
    overflow-y: auto;
    color: #e9ecef;
    background: var(--sidebar);
    border-right: 1px solid #171b20;
    transition: transform .2s ease;
    scrollbar-color: #4d5661 transparent;
}
.brand {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    height: var(--header-height);
    padding: 0 16px;
    color: #fff;
    background: var(--sidebar-deep);
    border-bottom: 1px solid #343b43;
}
.brand:hover { color: #fff; }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 11px;
    color: #fff;
    background: var(--brand);
    border-radius: 4px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 15px; font-weight: 650; }
.brand-copy small { margin-top: 3px; color: #9da6b0; font-size: 9px; }
.admin-nav { padding: 4px 0 16px; }
.nav-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 4px;
    color: #89939f;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.nav-section::after { content: ""; width: 100%; height: 1px; background: #363d46; }
.nav-item {
    display: flex;
    align-items: center;
    min-height: 36px;
    margin: 1px 8px;
    padding: 6px 10px;
    color: #c8ced5;
    border-radius: 4px;
    box-shadow: inset 3px 0 0 transparent;
    transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.nav-item .layui-icon { flex: 0 0 23px; width: 23px; margin-right: 7px; color: #9da7b2; font-size: 16px; text-align: center; }
.nav-item:hover { color: #fff; background: var(--sidebar-hover); }
.nav-item:hover .layui-icon { color: #dce7f5; }
.nav-item.active { color: #fff; background: #34404c; box-shadow: inset 3px 0 0 #76a9e6; }
.nav-item.active .layui-icon { color: #8dbbf1; }

.admin-main { min-height: 100vh; margin-left: var(--sidebar-width); }
.admin-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    height: var(--header-height);
    padding: 0 18px;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 3px rgba(32,37,43,.04);
}
.sidebar-toggle { display: none; }
.header-title { min-width: 0; overflow: hidden; color: #2b3138; font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-profile { position: relative; }
.header-user {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 4px 7px;
    color: #414952;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}
.header-user:hover, .header-user:focus, .header-profile.show .header-user {
    color: var(--brand);
    background: var(--brand-soft);
    border-color: #d4e1f1;
    outline: 0;
}
.header-user.dropdown-toggle::after { display: none; }
.profile-chevron { color: #89929c; font-size: 12px; transition: transform .15s ease; }
.header-profile.show .profile-chevron { transform: rotate(180deg); }
.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff;
    background: #347451;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
}
.logout-form { margin: 0; }
.profile-dropdown {
    width: 294px;
    margin-top: 7px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #ccd4dd;
    border-radius: 5px;
    box-shadow: 0 12px 30px rgba(24, 39, 56, .18);
}
.profile-dropdown-heading { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 14px 15px 11px; background: #f7f9fb; }
.profile-dropdown-heading > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.profile-dropdown-heading strong, .profile-dropdown-heading span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-dropdown-heading strong { color: #273646; font-size: 14px; font-weight: 600; }
.profile-dropdown-heading span { color: var(--muted); font-size: 11px; }
.profile-dropdown-avatar { width: 36px; height: 36px; flex: 0 0 36px; font-size: 15px; }
.profile-info-list { margin: 0; padding: 9px 15px 7px; }
.profile-info-list > div { display: grid; min-width: 0; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; padding: 4px 0; font-size: 12px; line-height: 18px; }
.profile-info-list dt { color: #7b858f; font-weight: 400; }
.profile-info-list dd { min-width: 0; margin: 0; overflow: hidden; color: #374553; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.profile-dropdown .dropdown-divider { margin: 2px 0; }
.profile-dropdown-action { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 8px 15px; color: #3f4c59; font-size: 13px; }
.profile-dropdown-action .layui-icon { width: 18px; color: #738191; font-size: 15px; text-align: center; }
.profile-dropdown-action:hover, .profile-dropdown-action:focus { color: var(--brand); background: var(--brand-soft); }
.profile-dropdown-action:hover .layui-icon, .profile-dropdown-action:focus .layui-icon { color: var(--brand); }
.profile-logout { color: #a33b34; }
.profile-logout .layui-icon { color: #a33b34; }
.profile-modal .modal-dialog { width: min(520px, calc(100% - 24px)); max-width: 520px; }
.profile-modal .modal-header { align-items: flex-start; background: #fafbfd; }
.profile-modal .modal-header h5 { margin: 0; color: #283746; font-size: 16px; line-height: 22px; }
.profile-modal .modal-header small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 16px; }
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #495057;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}
.icon-button:hover { color: var(--brand); background: var(--brand-soft); border-color: #d4e1f1; }
.notification-center { position: relative; }
.notification-bell { position: relative; width: 36px; height: 36px; }
.notification-bell .layui-icon { font-size: 19px; }
.notification-bell.has-new { color: #a45d00; background: #fff7e8; border-color: #e8d2aa; }
.notification-badge {
    position: absolute;
    top: -3px;
    right: -5px;
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    color: #fff;
    background: #c43542;
    border: 2px solid #fff;
    border-radius: 9px;
    font-size: 9px;
    font-weight: 700;
    line-height: 14px;
}
.notification-overlay { position: fixed; inset: 0; z-index: 1040; background: rgba(26, 34, 43, .22); }
.notification-drawer {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    right: 12px;
    z-index: 1041;
    display: flex;
    width: min(390px, calc(100vw - 24px));
    max-height: calc(100vh - var(--header-height) - 20px);
    overflow: hidden;
    flex-direction: column;
    color: #2f3944;
    background: #fff;
    border: 1px solid #cfd6dd;
    border-radius: 6px;
    box-shadow: 0 14px 36px rgba(26, 34, 43, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(calc(100% + 28px));
    transition: transform .18s ease, opacity .18s ease, visibility .18s ease;
    pointer-events: none;
}
.notification-center.is-open .notification-drawer { opacity: 1; visibility: visible; transform: translateX(0); pointer-events: auto; }
.notification-drawer-header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 9px 14px; border-bottom: 1px solid var(--line); }
.notification-drawer-header strong, .notification-drawer-header span { display: block; }
.notification-drawer-header strong { color: #253547; font-size: 15px; }
.notification-drawer-header span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.notification-toolbar { display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; background: #f8fafc; border-bottom: 1px solid var(--line-soft); }
.notification-toolbar .btn { min-height: 30px; }
.notification-toolbar .btn i { margin-right: 4px; }
.notification-toolbar .btn.is-enabled { color: #236341; background: #edf8f1; border-color: #bcdcc8; }
.notification-list { min-height: 110px; overflow-y: auto; overscroll-behavior: contain; }
.notification-item { position: relative; border-bottom: 1px solid var(--line-soft); }
.notification-item:last-child { border-bottom: 0; }
.notification-item::before { position: absolute; top: 12px; bottom: 12px; left: 0; width: 3px; background: transparent; content: ""; }
.notification-item.is-unread { background: #f7faff; }
.notification-item.severity-high::before { background: #c43542; }
.notification-item.severity-warning::before { background: #c67a13; }
.notification-item-button { display: block; width: 100%; min-height: 86px; padding: 11px 13px 10px 15px; color: inherit; background: transparent; border: 0; text-align: left; cursor: pointer; }
.notification-item-button:hover, .notification-item-button:focus { background: rgba(35, 101, 177, .06); outline: 0; }
.notification-item-heading { display: flex; min-width: 0; align-items: center; gap: 7px; }
.notification-item-heading strong { min-width: 0; color: #26384a; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-unread-dot { width: 7px; height: 7px; flex: 0 0 7px; background: #2e70bd; border-radius: 50%; }
.notification-unread-count { flex: 0 0 auto; margin-left: auto; padding: 1px 7px; border-radius: 9px; background: #c43542; color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.notification-order-line { display: flex; min-width: 0; align-items: center; gap: 6px; margin-top: 6px; color: #2e70bd; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-order-line::before { flex: 0 0 auto; padding: 0 5px; border-radius: 4px; background: #e9f1fb; color: #2e70bd; content: "订单"; font-size: 10px; line-height: 16px; }
.notification-order-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-item-content { display: -webkit-box; min-width: 0; max-height: 38px; margin-top: 5px; color: #465361; font-size: 12px; line-height: 19px; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.notification-item-meta { display: block; min-width: 0; margin-top: 5px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-empty { display: flex; min-height: 150px; align-items: center; justify-content: center; padding: 20px; color: var(--muted); font-size: 12px; text-align: center; }
.admin-content { min-height: calc(100vh - 86px); padding: 14px 18px 16px; }
.admin-content > .row { margin-right: -6px; margin-left: -6px; }
.admin-content > .row > [class*="col-"] { padding-right: 6px; padding-left: 6px; }
.admin-footer {
    display: flex;
    justify-content: space-between;
    padding: 6px 18px 10px;
    color: var(--muted);
    font-size: 12px;
}

.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.page-heading > div:first-child { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.page-heading h1 { margin: 0; padding-left: 9px; border-left: 3px solid var(--brand); font-size: 19px; line-height: 26px; font-weight: 650; }
.page-heading .subtitle { margin: 0; padding: 0; color: var(--muted); font-size: 12px; line-height: 20px; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.panel {
    margin-bottom: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(32,37,43,.035);
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 39px;
    padding: 7px 12px;
    background: #fcfcfd;
    border-bottom: 1px solid var(--line);
}
.panel-title { margin: 0; color: #2b3138; font-size: 15px; font-weight: 650; }
.panel-body { padding: 11px 12px; }
.panel-body.flush { padding: 0; }
.panel-footer { padding: 7px 12px; background: #fafbfc; border-top: 1px solid var(--line); }
.filter-panel { box-shadow: none; }
.filter-panel .panel-body { padding: 9px 12px 1px; background: #fbfcfd; }
.filter-panel .form-row { margin-right: -5px; margin-left: -5px; }
.filter-panel .form-row > .form-group { padding-right: 5px; padding-left: 5px; }
.filter-panel .form-group { margin-bottom: 8px; }
.filter-panel .form-group label { margin-bottom: 3px; color: #59626d; font-size: 12px; font-weight: 600; line-height: 17px; }
.admin-content > .alert { margin-bottom: 10px; padding: 8px 12px; }

.order-publish-modal .modal-dialog { width: min(780px, calc(100% - 24px)); max-width: 780px; }
.order-publish-modal .modal-content { max-height: calc(100vh - 24px); overflow: hidden; border: 1px solid #cfd5dc; }
.order-publish-modal .modal-header { align-items: flex-start; }
.order-publish-modal .modal-body { min-height: 300px; overflow-y: auto; background: #fff; }
.order-publish-subtitle { margin-top: 1px; color: var(--muted); font-size: 12px; }
.order-publish-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.order-publish-toolbar > div:first-child { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
.order-publish-toolbar strong { font-size: 14px; }
.order-publish-toolbar span { color: var(--muted); font-size: 12px; }
.order-publish-tools { display: flex; flex: 0 0 auto; gap: 2px; }
.order-publish-tools .btn { min-height: 28px; padding: 2px 5px; }
.order-publish-state { display: flex; min-height: 250px; align-items: center; justify-content: center; flex-direction: column; gap: 9px; color: var(--muted); text-align: center; }
.order-publish-state > .layui-icon { color: #929ca7; font-size: 28px; }
.order-publish-state-error { color: var(--danger); }
.order-publish-list { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; }
.order-publish-option { display: grid; min-width: 0; align-items: start; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; margin: 0; padding: 10px 11px; background: #fff; cursor: pointer; }
.order-publish-option + .order-publish-option { border-top: 1px solid var(--line-soft); }
.order-publish-option:hover { background: #f8fafc; }
.order-publish-option.is-selected { background: #f3f8fe; }
.order-publish-option.is-disabled { background: #f7f8f9; cursor: not-allowed; }
.order-publish-checkbox { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--brand); }
.order-publish-option-content { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.order-publish-option-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.order-publish-identity { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
.order-publish-identity strong { overflow: hidden; color: #2c333b; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.order-publish-identity small { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.order-publish-environment { flex: 0 0 auto; padding: 1px 6px; color: #21663c; background: #edf8f0; border: 1px solid #b9dfc3; border-radius: 3px; font-size: 11px; line-height: 18px; }
.order-publish-environment.is-mock,
.order-publish-environment.is-test { color: #805100; background: #fff7e6; border-color: #efd39a; }
.order-publish-environment.is-unknown { color: #8f3430; background: #fff3f2; border-color: #e5b9b5; }
.order-publish-metrics { display: grid; min-width: 0; grid-template-columns: minmax(180px, 1.5fr) minmax(90px, .7fr) minmax(80px, .7fr) minmax(120px, 1fr); gap: 8px 16px; }
.order-publish-metrics > span { display: flex; min-width: 0; flex-direction: column; }
.order-publish-metrics em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 15px; }
.order-publish-metrics strong { overflow: hidden; color: #46505b; font-size: 12px; font-weight: 600; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.order-publish-metrics .order-publish-fee { color: #b53a32; }
.order-publish-disabled-reason { color: var(--danger); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.order-publish-preflight { display: flex; min-width: 0; align-items: flex-start; gap: 6px; padding: 5px 7px; border: 1px solid #d9dee4; border-radius: 3px; color: #5e6873; background: #f7f8fa; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.order-publish-preflight .layui-icon { flex: 0 0 auto; margin-top: 1px; font-size: 14px; }
.order-publish-option.is-preflight-loading .order-publish-preflight { color: #536579; background: #f4f7fa; border-color: #ced7e0; }
.order-publish-option.is-preflight-success .order-publish-preflight { color: #25643a; background: #f0f8f2; border-color: #b9ddc3; }
.order-publish-option.is-preflight-error { background: #fffafa; }
.order-publish-option.is-preflight-error .order-publish-preflight { color: #a43636; background: #fff3f2; border-color: #e5b9b5; }
.order-publish-footer { flex-wrap: nowrap; }
.order-publish-selection { min-width: 0; margin-right: auto; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.order-publish-selection.is-success { color: #25643a; }
.order-publish-selection.is-error { color: #a43636; }
.order-publish-footer .btn { flex: 0 0 auto; }

.order-list-operation-button { display: inline-flex; min-width: 56px; align-items: center; justify-content: center; white-space: nowrap; }
.order-list-operation-button:disabled { color: #8a929b; background: #f2f3f5; border-color: #d8dce1; cursor: not-allowed; opacity: 1; }
.order-list-operation-slot { display: inline-flex; }
.order-list-operation-slot .order-list-operation-button:disabled { pointer-events: none; }
.order-list-top-scroll { position: fixed; z-index: 1040; bottom: 0; left: 0; display: none; width: 0; height: 16px; overflow-x: auto; overflow-y: hidden; background: #e1e5e9; border-top: 1px solid #c7cfd7; box-shadow: 0 -2px 7px rgba(24, 39, 56, .16); scrollbar-color: #738291 #e1e5e9; scrollbar-width: auto; overscroll-behavior-inline: contain; }
.order-list-top-scroll::-webkit-scrollbar { height: 12px; }
.order-list-top-scroll::-webkit-scrollbar-track { background: #e1e5e9; }
.order-list-top-scroll::-webkit-scrollbar-thumb { background: #82909e; border: 1px solid #e1e5e9; border-radius: 4px; }
.order-list-top-scroll-spacer { height: 1px; }
.order-list-table-scroll { position: relative; scrollbar-width: none; }
.order-list-table-scroll::-webkit-scrollbar { width: 0; height: 0; }
.order-list-table { width: max(100%, 1620px); min-width: 1620px; table-layout: fixed; }
.order-list-table th:nth-child(1), .order-list-table td:nth-child(1) { width: 190px; white-space: nowrap; }
.order-list-table th:nth-child(2), .order-list-table td:nth-child(2) { width: 180px; }
.order-list-table th:nth-child(2) { white-space: nowrap; }
.order-list-source-cell { min-width: 0; overflow: hidden; }
.order-list-source-channel, .order-list-source-store { display: block; width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-list-source-store { margin-top: 2px; line-height: 16px; }
.order-list-table th:nth-child(3), .order-list-table td:nth-child(3) { width: 135px; }
.order-list-table th:nth-child(4), .order-list-table td:nth-child(4) { width: 235px; }
.order-list-table th:nth-child(5), .order-list-table td:nth-child(5),
.order-list-table th:nth-child(6), .order-list-table td:nth-child(6) { width: 85px; white-space: nowrap; }
.order-list-table th:nth-child(7), .order-list-table td:nth-child(7) { width: 115px; white-space: nowrap; }
.order-list-table th:nth-child(8), .order-list-table td:nth-child(8) { width: 190px; white-space: nowrap; }
.order-list-table th:nth-child(9), .order-list-table td:nth-child(9) { width: 100px; white-space: nowrap; }
.order-list-table th:last-child, .order-list-table td:last-child { position: sticky; right: 0; width: 240px; min-width: 240px; max-width: 240px; box-shadow: -8px 0 12px -12px rgba(24, 39, 56, .8); }
.order-list-table thead th:last-child { z-index: 5; background: #f4f6f8; }
.order-list-table tbody td:last-child { z-index: 3; background: #fff; }
.order-list-table tbody td.order-list-actions-cell.is-more-menu-open { z-index: 1081; }

.navigation-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 1090; visibility: hidden; pointer-events: none; overflow: visible; }
.navigation-progress.is-active { visibility: visible; }
.navigation-progress-track { display: block; height: 3px; overflow: hidden; }
.navigation-progress-bar { display: block; width: 35%; height: 3px; background: #3976c7; animation: navigation-progress-slide 1.2s ease-in-out infinite; }
.navigation-progress-hint { position: absolute; top: 10px; right: 20px; padding: 5px 10px; color: #435d79; background: #fff; border: 1px solid #dfe6ef; border-radius: 6px; font-size: 12px; box-shadow: 0 2px 8px rgba(31,55,84,.08); visibility: hidden; }
.navigation-progress.is-active.is-slow .navigation-progress-hint { visibility: visible; }
@keyframes navigation-progress-slide { from { transform: translateX(-100%); } to { transform: translateX(386%); } }
@media (prefers-reduced-motion: reduce) { .navigation-progress-bar { animation: none; width: 100%; opacity: .65; } }
.navigation-content-pending { min-height: calc(100vh - 86px); }
.navigation-skeleton { display: grid; min-height: 360px; align-content: start; gap: 12px; padding: 2px 0; }
.navigation-skeleton-heading { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 16px; }
.navigation-skeleton-actions { display: flex; gap: 8px; }
.navigation-skeleton-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.navigation-skeleton-table { padding: 3px 12px; background: #fff; border: 1px solid #e2e8ef; border-radius: 6px; }
.navigation-skeleton-row { display: grid; min-height: 48px; grid-template-columns: 1.2fr 1fr 1.4fr .7fr; align-items: center; gap: 16px; border-bottom: 1px solid #edf0f4; }
.navigation-skeleton-row:last-child { border-bottom: 0; }
.navigation-skeleton-block { display: block; height: 11px; background: #eef1f5; border-radius: 4px; animation: navigation-skeleton-pulse 1.2s ease-in-out infinite alternate; }
.navigation-skeleton-block.is-heading { width: min(180px, 40%); height: 20px; }
.navigation-skeleton-block.is-action { width: 84px; height: 32px; }
.navigation-skeleton-block.is-summary { height: 72px; border: 1px solid #edf0f4; border-radius: 6px; }
.navigation-skeleton-block.is-cell { width: 82%; }
.navigation-skeleton-block.cell-1 { width: 68%; }
.navigation-skeleton-block.cell-2 { width: 90%; }
.navigation-skeleton-block.cell-3 { width: 55%; }
@keyframes navigation-skeleton-pulse { from { opacity: .48; } to { opacity: .92; } }
@media (max-width: 767.98px) { .navigation-skeleton-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .navigation-skeleton-row { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .navigation-skeleton-block { animation: none; } }
.order-list-table.table-hover tbody tr:hover > td:last-child { background: #f6f9fc; }
.order-list-table .empty-state { position: static; width: auto; min-width: 0; max-width: none; box-shadow: none; }
.table-actions.order-list-actions { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 4px; white-space: nowrap; }
.order-list-actions .order-list-operation-slot { display: inline-flex; min-width: 0; flex: 0 0 auto; }
.order-list-action-button { position: relative; display: inline-flex; width: 34px; min-width: 34px; height: 30px; flex: 0 0 34px; align-items: center; justify-content: center; padding: 3px; white-space: nowrap; }
.order-list-action-button:disabled { color: #8a929b; background: #f2f3f5; border-color: #d8dce1; cursor: not-allowed; opacity: 1; pointer-events: none; }
.order-list-action-button .layui-icon { margin: 0; }
.order-list-action-button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.order-adjustment-modal .modal-dialog { width: min(760px, calc(100% - 24px)); max-width: 760px; }
.order-adjustment-modal .modal-content { display: flex; max-height: calc(100vh - 24px); overflow: hidden; flex-direction: column; border: 1px solid #cfd5dc; }
.order-adjustment-modal .modal-header { flex: 0 0 auto; align-items: flex-start; padding: 11px 14px 9px; background: #fbfcfd; }
.order-adjustment-modal .modal-body { min-height: 300px; flex: 1 1 auto; overflow-y: auto; padding: 12px 14px; background: #fff; }
.order-adjustment-subtitle { margin-top: 1px; color: var(--muted); font-size: 12px; }
.order-adjustment-state { display: flex; min-height: 270px; align-items: center; justify-content: center; flex-direction: column; gap: 9px; color: var(--muted); text-align: center; }
.order-adjustment-state > .layui-icon { color: #929ca7; font-size: 28px; }
.order-adjustment-state.is-error { color: var(--danger); }
.order-adjustment-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 10px; overflow: hidden; background: #f8fafc; border: 1px solid var(--line); border-radius: 4px; }
.order-adjustment-summary > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; padding: 8px 10px; }
.order-adjustment-summary > div + div { border-left: 1px solid var(--line-soft); }
.order-adjustment-summary span { color: var(--muted); font-size: 11px; }
.order-adjustment-summary strong { min-width: 0; color: #2e3d4d; font-size: 14px; overflow-wrap: anywhere; }
.order-adjustment-blocked { margin-bottom: 10px; padding: 7px 9px; color: #9b3b32; background: #fff4f3; border: 1px solid #e8c3bf; border-radius: 3px; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.order-adjustment-section { margin-bottom: 11px; }
.order-adjustment-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.order-adjustment-section-heading strong { color: #344250; font-size: 13px; }
.order-adjustment-section-heading span { color: var(--muted); font-size: 11px; }
.order-adjustment-target-list, .order-adjustment-result-list { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; }
.order-adjustment-target, .order-adjustment-result { display: grid; min-width: 0; align-items: center; grid-template-columns: minmax(150px, 1.1fr) auto minmax(220px, 1.5fr); gap: 10px; padding: 8px 10px; background: #fff; }
.order-adjustment-target + .order-adjustment-target, .order-adjustment-result + .order-adjustment-result { border-top: 1px solid var(--line-soft); }
.order-adjustment-target.is-disabled { background: #f6f7f8; }
.order-adjustment-target-identity, .order-adjustment-result-identity { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.order-adjustment-target-identity strong, .order-adjustment-result-identity strong { overflow: hidden; color: #303b47; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.order-adjustment-target-identity small, .order-adjustment-result-identity small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.order-adjustment-target-status, .order-adjustment-result-badge { padding: 2px 6px; color: #245f3c; background: #edf8f1; border: 1px solid #c4dfcc; border-radius: 3px; font-size: 11px; white-space: nowrap; }
.order-adjustment-target-status.is-disabled { color: #747d87; background: #f0f2f4; border-color: #d7dce1; }
.order-adjustment-target-reason, .order-adjustment-result-message { min-width: 0; color: #55616e; font-size: 11px; line-height: 17px; overflow-wrap: anywhere; }
.order-adjustment-target.is-disabled .order-adjustment-target-reason { color: #9a4038; }
.order-adjustment-target-empty { padding: 18px 10px; color: var(--muted); font-size: 12px; text-align: center; }
.order-adjustment-form { padding: 10px; background: #fafbfc; border: 1px solid var(--line); border-radius: 4px; }
.order-adjustment-form > label { margin-bottom: 4px; font-size: 12px; font-weight: 600; }
.order-adjustment-form .input-group { max-width: 360px; }
.order-adjustment-results { margin-top: 11px; }
.order-adjustment-result-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; padding: 8px 10px; color: #334455; background: #f2f6fa; border: 1px solid #d4dfe9; border-radius: 4px; }
.order-adjustment-result-summary strong { font-size: 13px; }
.order-adjustment-result-summary span { color: var(--muted); font-size: 11px; }
.order-adjustment-result-summary[data-overall-status="ALL_SUCCEEDED"] { color: #22623f; background: #eef8f2; border-color: #c7dfd0; }
.order-adjustment-result-summary[data-overall-status="PARTIAL"] { color: #875209; background: #fff7e8; border-color: #ebd4aa; }
.order-adjustment-result-summary[data-overall-status="FAILED"] { color: #9e2633; background: #fff0f1; border-color: #ecc4c9; }
.order-adjustment-result-summary[data-overall-status="UNKNOWN"],
.order-adjustment-result-summary[data-overall-status="LOCAL_SYNC_REQUIRED"] { color: #875209; background: #fff7e8; border-color: #ebd4aa; }
.order-adjustment-result[data-result="FAILED"] .order-adjustment-result-badge { color: #9e2633; background: #fff0f1; border-color: #ecc4c9; }
.order-adjustment-result[data-result="UNKNOWN"] .order-adjustment-result-badge { color: #875209; background: #fff7e8; border-color: #ebd4aa; }
.order-adjustment-result[data-result="SKIPPED"] .order-adjustment-result-badge { color: #6f5a34; background: #f8f3ea; border-color: #e2d6c2; }
.order-adjustment-footer { flex: 0 0 auto; flex-wrap: nowrap; }
.order-adjustment-footer-status { min-width: 0; margin-right: auto; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.order-adjustment-footer .btn { flex: 0 0 auto; }

.order-sms-modal .modal-dialog { width: min(560px, calc(100% - 24px)); max-width: 560px; }
.order-sms-modal .modal-content { max-height: calc(100vh - 24px); overflow: hidden; border: 1px solid #cfd5dc; }
.order-sms-modal .modal-header { align-items: flex-start; padding: 11px 14px 9px; background: #fbfcfd; }
.order-sms-modal .close { width: 32px; height: 32px; margin: -5px -5px -5px 8px; padding: 0; }
.order-sms-modal .modal-body { overflow-y: auto; padding: 13px 14px; }
.order-sms-subtitle { margin-top: 1px; color: var(--muted); font-size: 12px; }
.order-sms-state { display: flex; min-height: 210px; align-items: center; justify-content: center; flex-direction: column; gap: 9px; color: var(--muted); text-align: center; }
.order-sms-state.is-error { color: var(--danger); }
.order-sms-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; background: #f8fafc; border: 1px solid var(--line); border-radius: 4px; }
.order-sms-summary > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; padding: 8px 10px; }
.order-sms-summary > div + div { border-left: 1px solid var(--line-soft); }
.order-sms-summary span { color: var(--muted); font-size: 11px; }
.order-sms-summary strong { min-width: 0; color: #2e3d4d; font-size: 13px; overflow-wrap: anywhere; }
.order-sms-summary .form-control { height: 34px; margin-top: 2px; font-size: 13px; }
.order-sms-blocked { margin-top: 10px; padding: 8px 9px; color: #9b3b32; background: #fff4f3; border: 1px solid #e8c3bf; border-radius: 3px; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.order-sms-form { margin-top: 11px; }
.order-sms-form label { margin-bottom: 4px; font-size: 12px; font-weight: 600; }
.order-sms-form textarea { min-height: 92px; max-height: 160px; resize: vertical; }
.order-sms-form-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; color: var(--muted); font-size: 11px; }
.order-sms-result { padding: 18px 12px; text-align: center; }
.order-sms-result .layui-icon { display: block; margin-bottom: 8px; font-size: 31px; }
.order-sms-result[data-status="SUCCESS"] .layui-icon { color: var(--success); }
.order-sms-result[data-status="FAILED"] .layui-icon { color: var(--danger); }
.order-sms-result[data-status="UNKNOWN"] .layui-icon,
.order-sms-result[data-status="PENDING"] .layui-icon { color: #ad6b08; }
.order-sms-result strong, .order-sms-result span { display: block; }
.order-sms-result strong { color: #2e3d4d; font-size: 15px; }
.order-sms-result span { margin-top: 5px; color: #596675; font-size: 12px; overflow-wrap: anywhere; }
.order-sms-footer { flex-wrap: nowrap; }
.order-sms-footer-status { min-width: 0; margin-right: auto; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.order-sms-footer .btn { flex: 0 0 auto; white-space: nowrap; }

.platform-order-workspace-modal .modal-dialog,
.order-detail-workspace-modal .modal-dialog { width: min(1160px, calc(100% - 24px)); max-width: 1180px; margin-top: 12px; margin-bottom: 12px; }
.platform-order-workspace-modal .modal-content,
.order-detail-workspace-modal .modal-content { display: flex; height: min(860px, calc(100vh - 24px)); max-height: calc(100vh - 24px); overflow: hidden; flex-direction: column; border: 1px solid #cfd5dc; border-radius: 5px; box-shadow: 0 12px 32px rgba(22, 29, 37, .18); }
.order-detail-workspace-modal .order-detail-workspace-topbar { display: flex; min-width: 0; align-items: stretch; justify-content: space-between; gap: 10px; padding: 0 14px; background: #fbfcfd; border-bottom: 1px solid #d8dee6; }
.order-detail-workspace-modal .order-detail-workspace-topbar-right { display: flex; min-width: 0; align-items: center; gap: 10px; padding-bottom: 7px; }
.order-detail-workspace-modal .order-detail-workspace-order-no { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.order-detail-workspace-modal .order-detail-workspace-topbar .nav-tabs { align-self: flex-end; }
.platform-order-workspace-modal .modal-header,
.order-detail-workspace-modal .modal-header { align-items: flex-start; padding: 10px 14px 8px; background: #fbfcfd; border-bottom: 0; }
.platform-order-workspace-modal .modal-title,
.order-detail-workspace-modal .modal-title { font-size: 16px; font-weight: 650; }
.platform-order-workspace-modal .close,
.order-detail-workspace-modal .close { width: 34px; height: 34px; margin: 0; padding: 0; }
.order-chat-subtitle { margin-top: 1px; color: var(--muted); font-size: 12px; }
.order-chat-context { display: flex; min-width: 0; align-items: center; gap: 10px 20px; padding: 6px 14px; background: #fff; border-bottom: 1px solid var(--line-soft); }
.order-chat-context > div { display: flex; min-width: 0; flex-direction: column; }
.order-chat-context > div:first-child { flex: 1 1 auto; }
.order-chat-context span { color: var(--muted); font-size: 11px; }
.order-chat-context strong { overflow: hidden; color: #30373f; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.order-chat-context strong.is-pending { color: #a15c00; }
.order-chat-context .btn { flex: 0 0 auto; margin-left: auto; }
.order-chat-history { min-height: 300px; flex: 1 1 360px; overflow-y: auto; padding: 14px 18px; background: #f6f7f9; overscroll-behavior: contain; }
.order-chat-state { display: flex; height: 100%; min-height: 230px; align-items: center; justify-content: center; flex-direction: column; gap: 9px; color: var(--muted); text-align: center; }
.order-chat-state .layui-icon { color: #929ca7; font-size: 28px; }
.order-chat-state-error { color: var(--danger); }
.order-chat-messages { display: flex; flex-direction: column; gap: 13px; }
.order-chat-message { display: flex; max-width: 78%; align-items: flex-start; flex-direction: column; }
.order-chat-message.is-mine { align-self: flex-end; align-items: flex-end; }
.order-chat-message-meta { display: flex; max-width: 100%; gap: 8px; margin-bottom: 3px; color: var(--muted); font-size: 11px; line-height: 16px; }
.order-chat-message-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-chat-message-meta time { flex: 0 0 auto; }
.order-chat-delivery-state { flex: 0 0 auto; font-weight: 600; }
.order-chat-delivery-state.is-delivery-sent { color: #487258; }
.order-chat-delivery-state.is-delivery-pending { color: #a15c00; }
.order-chat-delivery-state.is-delivery-failed { color: #b42318; }
.order-chat-event { display: flex; max-width: 90%; align-self: center; align-items: center; justify-content: center; gap: 7px; color: #75808b; font-size: 11px; line-height: 16px; text-align: center; }
.order-chat-event span { padding: 2px 7px; background: #e9edf1; border: 1px solid #dce1e6; border-radius: 3px; }
.order-chat-event.order-chat-event-fold span { background: #f4f6f8; border-style: dashed; color: #8a949e; }
.order-chat-event time { flex: 0 0 auto; color: #8a949e; }
.order-chat-bubble { max-width: 100%; padding: 7px 10px; color: #2b3138; background: #fff; border: 1px solid #d8dde4; border-radius: 4px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.order-chat-message.is-mine .order-chat-bubble { color: #183a66; background: var(--brand-soft); border-color: #bed2eb; }
.order-chat-image-bubble { width: min(260px, 42vw); padding: 4px; line-height: 0; }
.order-chat-image-bubble .order-image-preview-trigger { display: block; width: 100%; padding: 0; overflow: hidden; background: transparent; border: 0; border-radius: 2px; cursor: zoom-in; }
.order-chat-image-bubble img { display: block; width: 100%; max-height: 260px; object-fit: contain; background: #eef1f4; }
.order-chat-order-summary { display: grid; min-width: 0; grid-template-columns: minmax(180px, 1.8fr) minmax(150px, 1.2fr) minmax(170px, 1.5fr) minmax(70px, .65fr) repeat(4, minmax(65px, .7fr)); gap: 10px; padding: 5px 14px 6px; background: #fbfcfd; border-top: 1px solid var(--line); }
.order-chat-order-heading, .order-chat-order-facts { display: contents; }
.order-chat-order-heading > div, .order-chat-order-facts > div { display: flex; min-width: 0; flex-direction: column; }
.order-chat-order-heading span, .order-chat-order-facts span { color: var(--muted); font-size: 9px; line-height: 13px; }
.order-chat-order-heading strong, .order-chat-order-facts strong { overflow: hidden; color: #30373f; font-size: 11px; font-weight: 600; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.order-chat-order-content strong { font-size: 12px; }
.order-chat-order-number { text-align: left; }
.order-chat-order-facts .order-chat-money { color: #c0392b; font-variant-numeric: tabular-nums; }
.order-chat-compose { padding: 8px 14px 9px; background: #fff; border-top: 1px solid var(--line); }
.order-chat-pending { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; padding: 6px 8px; color: #805100; background: #fff8e6; border: 1px solid #efd18b; border-radius: 3px; font-size: 12px; line-height: 18px; }
.order-chat-pending .layui-icon { flex: 0 0 auto; font-size: 15px; }
.order-chat-input-shell { width: 100%; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #cbd3dc; border-radius: 4px; transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease; }
.order-chat-input-shell:focus-within { border-color: #80a9d5; box-shadow: 0 0 0 2px rgba(52, 90, 124, .12); }
.order-chat-input-shell.is-dragover { background: #f2f7fc; border-color: #4d82b5; outline: 2px solid rgba(52, 90, 124, .3); outline-offset: -2px; box-shadow: 0 0 0 3px rgba(52, 90, 124, .14); }
.order-chat-input-shell.is-dragover textarea.form-control { background: #f2f7fc; }
.order-chat-compose textarea.form-control { height: 56px; min-height: 56px; max-height: 96px; resize: vertical; border: 0; border-radius: 0; box-shadow: none; }
.order-chat-compose textarea.form-control:disabled { color: #7c858f; background: #f4f5f7; cursor: not-allowed; }
.order-chat-compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.order-chat-compose-tools { display: flex; align-items: center; gap: 9px; }
.order-chat-counter { color: var(--muted); font-size: 12px; }
.order-chat-compose-footer .btn { min-width: 88px; }
.order-chat-compose-footer .btn-icon { min-width: 32px; }
.order-chat-compose-footer label.btn { margin: 0; cursor: pointer; }
.order-chat-compose-footer label.btn.disabled { pointer-events: none; opacity: .65; }
.order-chat-image-preview { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto 32px; align-items: center; gap: 8px; padding: 7px; background: #f7f9fb; border-bottom: 1px solid #d9e0e7; }
.order-chat-image-list { display: flex; min-width: 0; overflow-x: auto; gap: 6px; padding: 1px 0 3px; }
.order-chat-image-item { position: relative; width: 58px; height: 46px; flex: 0 0 58px; overflow: hidden; background: #eef1f4; border: 1px solid #d8dde4; border-radius: 3px; }
.order-chat-image-item.is-sending { border-color: #80a9d5; box-shadow: inset 0 0 0 1px #80a9d5; }
.order-chat-image-item.is-failed { border-color: #d95c5c; box-shadow: inset 0 0 0 1px #d95c5c; }
.order-chat-image-item > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.order-chat-image-remove { position: absolute; top: 2px; right: 2px; display: flex; width: 18px; height: 18px; align-items: center; justify-content: center; padding: 0; color: #fff; background: rgba(31, 39, 48, .76); border: 0; border-radius: 2px; cursor: pointer; }
.order-chat-image-remove:disabled { cursor: not-allowed; opacity: .55; }
.order-chat-image-remove .layui-icon { font-size: 11px; }
.order-chat-image-status { position: absolute; right: 0; bottom: 0; left: 0; overflow: hidden; padding: 1px 3px; color: #fff; background: rgba(29, 76, 121, .86); font-size: 9px; line-height: 14px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.order-chat-image-item.is-failed .order-chat-image-status { background: rgba(180, 35, 24, .9); }
.order-chat-image-preview > strong { min-width: 0; color: #3b444e; font-size: 11px; white-space: nowrap; }

.platform-operation-subtitle { margin-top: 2px; color: var(--muted); font-size: 12px; }
#failureReasonModal { z-index: 1070; }
.order-detail-workspace-tabs { flex-wrap: wrap; gap: 4px; padding: 0 14px; background: #fbfcfd; border-bottom-color: #d8dee6; }
.order-detail-workspace-header-actions { display: flex; align-items: center; gap: 8px; margin-left: 14px; }
.order-detail-workspace-header-actions .btn { min-height: 30px; white-space: nowrap; }
.order-edit-inline-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.order-edit-inline-actions .text-muted { margin-right: auto; font-size: 12px; }
.order-copy-manual { display: grid; gap: 7px; margin: -4px 0 12px; padding: 9px 10px; border: 1px solid #9dc3e6; border-radius: 4px; background: #f4f9fe; }
.order-copy-manual-header { display: flex; min-width: 0; align-items: center; gap: 8px; }
.order-copy-manual-header strong { color: #1f4e78; font-size: 13px; }
.order-copy-manual-header span { overflow: hidden; color: #65717d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.order-copy-manual-header .icon-button { width: 28px; height: 28px; margin-left: auto; }
.order-copy-manual .order-copy-manual-text { min-height: 104px; font-size: 12px; line-height: 1.5; resize: vertical; }
.order-copy-manual-actions { display: flex; justify-content: flex-end; }
.order-detail-edit-form .detail-grid .form-control,
.order-detail-edit-form .detail-grid .custom-select { min-width: 0; height: 30px; padding: 3px 8px; font-size: 12.5px; }
.order-detail-edit-form .detail-grid textarea.form-control { height: 62px; resize: vertical; }
.order-detail-edit-form .detail-grid .detail-value { overflow: visible; }
.order-detail-edit-grid .detail-item { display: flex; flex-direction: column; }
.order-detail-edit-grid .detail-item .detail-label { margin-bottom: 2px; }
.detail-edit-currency { display: flex; align-items: center; gap: 4px; }
.detail-edit-currency > span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.detail-edit-currency .form-control { flex: 1 1 auto; }
.wzry-task-spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
.wzry-task-spec-field { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.wzry-task-spec-field > span { color: var(--muted); font-size: 11px; }
.wzry-task-spec-field .form-control { min-width: 0; }
.order-edit-inline-form .order-entry-workspace { grid-template-columns: minmax(0, 1fr); }
.order-edit-inline-form .order-entry-sheet { margin-bottom: 0; }
.order-detail-workspace-tabs .nav-item { margin-bottom: -1px; }
.order-detail-workspace-tabs .nav-link { position: relative; min-width: 108px; margin-bottom: 0; padding: 9px 14px 8px; color: #66717d; background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; font-size: 13px; font-weight: 600; text-align: center; }
.order-detail-workspace-tabs .nav-link:hover { color: var(--brand); background: #f1f5f9; border-color: transparent transparent #b9cde4; }
.order-detail-workspace-tabs .nav-link.active,
.order-detail-workspace-tabs .nav-item.show .nav-link { color: var(--brand); background: #fff; border-color: transparent transparent var(--brand); }
.order-detail-workspace-tabs .nav-link:focus,
.order-detail-workspace-tabs .nav-link:active { outline: none; box-shadow: none; }
.order-detail-workspace-tabs .nav-link:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(18, 119, 216, .4); }
.order-detail-workspace-tabs .layui-icon { margin-right: 5px; font-size: 14px; }
.order-detail-workspace-content { min-height: 0; flex: 1 1 auto; overflow: hidden; }
.order-detail-workspace-content > .tab-pane { height: 100%; min-height: 0; }
.order-detail-tab-pane { overflow-y: auto; padding: 13px 14px 14px; }
.order-detail-tab-pane .panel { margin-bottom: 12px; }
.order-detail-loading { display: flex; min-height: 260px; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.platform-workspace-tab-pane { overflow: hidden; }
.platform-workspace-tab-pane .platform-workspace-split { height: 100%; }
.platform-order-workspace-modal .modal-dialog { max-width: 1180px; }
.platform-workspace-split { display: grid; min-height: 0; flex: 1 1 auto; overflow: hidden; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.platform-workspace-split.is-single-column { grid-template-columns: minmax(0, 1fr); }
.platform-workspace-split > .platform-workspace-col { min-width: 0; min-height: 0; }
.platform-workspace-col-chat { display: flex; overflow: hidden; flex-direction: column; border-right: 1px solid var(--line); }
.platform-workspace-col-pictures { overflow-y: auto; padding: 12px 14px; }
.platform-workspace-col-actions { grid-column: 1 / -1; padding: 12px 14px 14px; background: #fbfcfd; border-top: 1px solid var(--line); }
.platform-workspace-col-heading { display: flex; align-items: center; gap: 5px; margin-bottom: 9px; color: #33404d; font-size: 13px; font-weight: 600; }
.platform-workspace-col-heading .layui-icon { color: var(--brand); font-size: 15px; }
.platform-workspace-col-chat .order-chat-context { padding: 8px 12px; }
.platform-workspace-col-chat .order-chat-context span { font-size: 10px; }
.platform-workspace-col-chat .order-chat-context strong { font-size: 12px; }
.platform-workspace-col-chat .order-chat-history { min-height: 0; flex: 1 1 260px; padding: 10px 12px; }
.platform-workspace-col-chat .order-chat-state { min-height: 170px; }
.platform-workspace-col-chat .order-chat-message-meta { font-size: 10.5px; }
.platform-workspace-col-chat .order-chat-bubble { padding: 5px 8px; font-size: 12.5px; line-height: 1.5; }
.platform-workspace-col-chat .order-chat-event { font-size: 10.5px; }
.platform-workspace-col-chat .order-chat-order-summary { gap: 6px; padding: 4px 12px 5px; }
.platform-workspace-col-chat .order-chat-order-heading span, .platform-workspace-col-chat .order-chat-order-facts span { font-size: 8.5px; line-height: 12px; }
.platform-workspace-col-chat .order-chat-order-heading strong, .platform-workspace-col-chat .order-chat-order-facts strong { font-size: 10.5px; line-height: 15px; }
.platform-workspace-col-chat .order-chat-order-content strong { font-size: 11.5px; }
.platform-workspace-col-chat .order-chat-compose { padding: 6px 12px 8px; }
.platform-workspace-col-chat .order-chat-compose textarea.form-control { height: 44px; min-height: 44px; max-height: 72px; font-size: 12.5px; }
.platform-workspace-col-chat .order-chat-pending { font-size: 11px; padding: 5px 7px; }
.platform-workspace-col-chat .order-chat-counter { font-size: 11px; }
.platform-workspace-col-pictures .platform-picture-state { min-height: 120px; }
.platform-workspace-col-pictures .platform-picture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 0; }
.platform-workspace-col-pictures .platform-picture-meta strong { font-size: 11px; }
.platform-workspace-col-pictures .platform-picture-meta span { font-size: 10px; }
.platform-workspace-col-pictures .order-chat-order-summary { grid-template-columns: minmax(0, 1.15fr) minmax(110px, .85fr); gap: 6px 9px; padding: 6px 10px 8px; margin-bottom: 9px; background: #fbfcfd; border: 1px solid var(--line-soft); border-radius: 3px; }
.platform-workspace-col-pictures .order-chat-order-summary span { font-size: 9px; line-height: 12px; }
.platform-workspace-col-pictures .order-chat-order-summary strong { font-size: 11px; line-height: 15px; }
.platform-workspace-col-pictures .order-chat-order-content strong { font-size: 12px; }
.platform-workspace-col-pictures .order-chat-order-facts { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 9px; padding-top: 5px; border-top: 1px dashed var(--line-soft); }
.platform-workspace-col-actions .platform-operation-state { margin-bottom: 0; }
.platform-workspace-col-actions .platform-action-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.platform-operation-state { display: flex; min-height: 34px; align-items: center; gap: 8px; margin-bottom: 10px; padding: 7px 9px; color: #33404d; background: #f4f7fa; border: 1px solid #dce3ea; border-radius: 3px; font-size: 13px; }
.platform-operation-state-error { color: var(--danger); background: #fff4f4; border-color: #efc7c7; }
.platform-action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.platform-action-button { display: inline-flex; width: 100%; min-width: 0; height: 42px; align-items: center; justify-content: flex-start; padding: 6px 9px; text-align: left; }
.platform-action-button .layui-icon { flex: 0 0 auto; font-size: 16px; }
.platform-action-button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-action-button:disabled { color: #8a929b; background: #f2f3f5; border-color: #d8dce1; cursor: not-allowed; opacity: 1; }
.platform-action-form { margin-top: 13px; padding: 11px 11px 2px; background: #fafbfc; border-top: 2px solid #8eafd4; }
.platform-action-form-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.platform-action-form-heading strong { font-size: 14px; }
.platform-action-form-heading .btn { min-height: 28px; padding: 2px 5px; }
.platform-action-submit-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-bottom: 9px; }
.platform-action-payment { margin-right: auto; color: #8a5a00; font-size: 12px; }
.platform-action-payment .layui-icon { margin-right: 4px; }
.platform-action-dialog { position: fixed; z-index: 1090; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; }
.platform-action-dialog-backdrop { position: absolute; inset: 0; border: 0; background: rgba(19, 28, 38, .48); cursor: default; }
.platform-action-dialog-panel { position: relative; display: flex; width: min(620px, calc(100vw - 36px)); max-height: calc(100vh - 36px); flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #aebbc8; border-radius: 4px; box-shadow: 0 14px 40px rgba(0, 0, 0, .24); }
.platform-action-dialog-header { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px 7px 16px; color: #fff; background: #2f78bd; }
.platform-action-dialog-header strong { font-size: 15px; }
.platform-action-dialog-header .btn { color: #fff; border-color: transparent; }
.platform-action-dialog-header .btn:hover, .platform-action-dialog-header .btn:focus { color: #fff; background: rgba(255, 255, 255, .14); }
.platform-action-dialog-body { padding: 15px 16px 3px; overflow-y: auto; }
.platform-action-dialog-footer { display: flex; min-height: 52px; align-items: center; justify-content: flex-end; gap: 8px; padding: 9px 16px; background: #f7f9fb; border-top: 1px solid var(--line-soft); }
.platform-action-dialog-footer .platform-action-payment { margin-right: auto; }
.platform-picture-upload { padding-bottom: 3px; border-bottom: 1px solid var(--line-soft); }
.platform-picture-upload .form-group { margin-bottom: 10px; }
.platform-picture-state { display: flex; min-height: 180px; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.platform-picture-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 10px; }
.platform-picture-item { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.platform-picture-preview { display: block; width: 100%; padding: 0; overflow: hidden; background: #eef1f4; border: 0; cursor: zoom-in; }
.platform-picture-item img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; }
.platform-picture-meta { display: flex; min-width: 0; flex-direction: column; gap: 2px; padding: 7px 8px; }
.platform-picture-meta strong { overflow: hidden; color: #30373f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.platform-picture-meta span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.order-image-preview[hidden] { display: none !important; }
.order-image-preview { position: fixed; z-index: 1090; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; }
.order-image-preview-backdrop { position: absolute; inset: 0; width: 100%; padding: 0; background: rgba(14, 20, 28, .78); border: 0; cursor: zoom-out; }
.order-image-preview-panel { position: relative; z-index: 1; display: flex; width: min(1120px, calc(100vw - 36px)); max-height: calc(100vh - 36px); flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #cfd5dc; border-radius: 5px; box-shadow: 0 18px 54px rgba(0, 0, 0, .35); }
.order-image-preview-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px 9px 14px; background: #fbfcfd; border-bottom: 1px solid var(--line); }
.order-image-preview-header strong { min-width: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.order-image-preview-body { display: flex; min-height: 0; flex: 1 1 auto; align-items: center; justify-content: center; padding: 12px; overflow: auto; background: #20262d; }
.order-image-preview-body img { display: block; max-width: 100%; max-height: calc(100vh - 148px); object-fit: contain; }
.order-image-preview-caption { flex: 0 0 auto; min-height: 34px; padding: 8px 14px; overflow: hidden; color: #4d5761; background: #fff; font-size: 12px; line-height: 18px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.metric-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 9px; margin-bottom: 12px; }
.finance-metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.report-date-input { width: 150px; }
.metric-item { min-height: 76px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 4px; box-shadow: 0 1px 2px rgba(32,37,43,.035); }
.metric-item.success { border-top-color: var(--success); }
.metric-item.warning { border-top-color: #e6a23c; }
.metric-item.danger { border-top-color: var(--danger); }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 500; }
.metric-value { margin-top: 5px; overflow-wrap: anywhere; font-size: 22px; line-height: 1.1; font-weight: 650; }
.metric-value.money { font-size: 19px; }

.btn { min-height: 34px; padding: .32rem .7rem; border-radius: 3px; font-size: 14px; line-height: 1.35; box-shadow: none !important; }
.btn .layui-icon { margin-right: 4px; font-size: 14px; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; min-width: 32px; height: 30px; min-height: 30px; padding: 0; }
.btn-icon .layui-icon { margin: 0; }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-group-sm > .btn, .btn-sm { min-height: 30px; padding: .22rem .48rem; border-radius: 3px; }
.form-control, .custom-select { height: 34px; min-height: 34px; padding: .3rem .65rem; border-color: #cfd5dc; border-radius: 3px; color: #2d333a; font-size: 14px; line-height: 1.35; }
.custom-select { padding-right: 1.8rem; }
textarea.form-control { height: auto; min-height: 72px; }
.form-control:focus, .custom-select:focus { border-color: #77a5df; box-shadow: 0 0 0 .15rem rgba(40, 100, 180, .12); }
.form-control[readonly] { background: #f5f6f8; }
.form-control:disabled, .custom-select:disabled { color: #737b84; background: #f0f2f4; }
.form-group label { margin-bottom: 3px; color: #343a40; font-weight: 500; line-height: 18px; }
.panel-body > .form-group, .modal-body .form-group { margin-bottom: 10px; }
.required::after { content: " *"; color: var(--danger); }
.form-text { color: var(--muted); font-size: 12px; }
.input-group-text { min-height: 34px; padding: .3rem .6rem; color: #59626d; background: #f3f5f7; border-color: #cfd5dc; }

.order-entry-workspace {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) clamp(280px, 23vw, 340px);
    gap: 12px;
}
.order-entry-sheet, .order-import-panel { min-width: 0; margin-bottom: 0; }
.order-entry-sheet-header { min-height: 40px; padding: 7px 11px; }
.order-required-note { color: var(--muted); font-size: 11px; }
.order-required-note > span { color: var(--danger); }
.order-entry-sheet-body { padding: 0 10px; }
.order-entry-section {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 9px;
    padding: 8px 0 9px;
    border-bottom: 1px solid var(--line-soft);
}
.order-entry-section:last-child { border-bottom: 0; }
.order-entry-section-heading { min-width: 0; padding-top: 20px; }
.order-entry-section-heading h3 {
    margin: 0;
    padding-left: 8px;
    color: #39424c;
    border-left: 2px solid #78a0cf;
    font-size: 13px;
    font-weight: 650;
    line-height: 18px;
}
.order-entry-section-heading span { display: block; margin: 3px 0 0 10px; color: var(--muted); font-size: 11px; line-height: 14px; }
.order-entry-grid { display: grid; align-items: start; gap: 7px 8px; min-width: 0; }
.order-entry-grid-source { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.order-entry-grid-source-new { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.order-entry-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.order-entry-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.order-entry-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.order-entry-grid-game { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.order-entry-grid-task { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.order-entry-grid-task.has-rank-range { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.order-entry-grid-task.has-peak-score { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.order-entry-grid-task [data-rank-range-field] { grid-column: span 2; }
.wzry-task-fields { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px 8px; min-width: 0; }
.wzry-task-fields .form-group { min-width: 0; margin-bottom: 0; }
.wzry-task-schedule { grid-column: 1 / -1; margin: -1px 0 0; color: var(--muted); font-size: 12px; line-height: 18px; }
.order-entry-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.order-entry-grid-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.order-entry-grid .form-group { min-width: 0; margin-bottom: 0; }
.order-entry-grid > .span-2 { grid-column: span 2; }
.order-entry-grid .form-group > label,
.order-import-body > label,
.order-import-game > label { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; line-height: 16px; }
.order-entry-grid .form-control,
.order-entry-grid .custom-select,
.order-entry-grid .input-group-text { height: 36px; min-height: 36px; padding-top: .3rem; padding-bottom: .3rem; }
.order-entry-grid textarea.form-control { height: 74px; min-height: 74px; resize: vertical; }
.order-entry-grid .form-text { margin-top: 3px; line-height: 15px; }
.order-entry-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 9px 11px; }
.order-import-panel { position: sticky; top: calc(var(--header-height) + 10px); }
.order-import-panel .panel-header { min-height: 40px; padding: 7px 11px; }
.order-import-kicker { color: var(--muted); font-size: 11px; }
.order-import-body { padding: 8px 10px 10px; }
.order-import-game { margin-bottom: 7px; }
.order-import-textarea.form-control {
    height: clamp(280px, calc(100vh - 430px), 360px);
    min-height: 260px;
    resize: vertical;
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 13px;
    line-height: 1.55;
}
.order-import-feedback { min-height: 18px; margin-top: 4px; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.order-import-actions { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 6px; margin-top: 6px; }
.order-import-actions .btn { min-width: 0; }

@media (min-width: 1280px) {
    .order-entry-sheet { height: auto; }
    .order-entry-sheet {
        display: flex;
        flex-direction: column;
    }
    .order-entry-sheet-body {
        display: block;
        flex: 1 1 auto;
        min-height: 0;
    }
    .order-entry-section {
        align-items: center;
        min-height: 0;
        padding-top: 5px;
        padding-bottom: 6px;
    }
    .order-entry-section-heading { padding-top: 0; }
    .order-entry-section:last-child { align-items: stretch; }
    .order-entry-section:last-child textarea.form-control {
        height: 62px;
        min-height: 62px;
    }
    .order-entry-actions { flex: 0 0 auto; }
    .order-import-textarea.form-control {
        height: clamp(320px, 45vh, 500px);
        min-height: 320px;
    }
}

.table { width: 100%; margin-bottom: 0; color: #30363d; font-size: 13px; }
.table th, .table td { padding: 7px 9px; text-align: center; vertical-align: middle !important; border-color: var(--line-soft); }
.table th { height: 36px; white-space: nowrap; color: #4c5661; background: #f2f4f6; border-top: 0; border-bottom: 1px solid #d7dce2 !important; font-size: 12px; font-weight: 650; }
.table td { line-height: 1.35; }
.table tbody tr { transition: background-color .12s ease, box-shadow .12s ease; }
.table-hover tbody tr:hover { background: #f5f8fc; box-shadow: inset 3px 0 0 #9abbe3; }
.table td.text-truncate, .table th.text-left, .table td.text-left,
.table td.tree-indent-1, .table td.tree-indent-2 { text-align: left !important; }
.table td:last-child, .table th:last-child { white-space: nowrap; }
.table-responsive { min-height: 80px; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.table-actions { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 5px; width: max-content; min-width: 100%; white-space: nowrap; }
.empty-state { padding: 32px 18px !important; color: var(--muted); text-align: center !important; background: #fbfcfd; }
.empty-state .layui-icon { display: block; margin-bottom: 5px; color: #9da7b2; font-size: 25px; }
.text-mono { font-family: Consolas, "SFMono-Regular", monospace; }

.status-badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 58px; min-height: 22px; padding: 1px 7px; text-align: center; white-space: nowrap; border: 1px solid transparent; border-radius: 3px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.status-badge::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; background: currentColor; border-radius: 50%; opacity: .78; }
.status-pending, .status-review, .status-draft, .status-pending_review, .status-pending_publish, .status-reconcile_required, .status-canceling { color: #8a5a00; background: #fff7e6; border-color: #f2d59c; }
.status-published, .status-processing, .status-in_progress, .status-enabled, .status-approved { color: #175ea8; background: #edf6ff; border-color: #bfddf7; }
.status-accepted { color: #5d3ca6; background: #f4efff; border-color: #d7c8f3; }
.status-waiting-acceptance { color: #0d7a7a; background: #e8fbfb; border-color: #b6e4e4; }
.status-completed, .status-confirmed { color: #1e6d35; background: #edf8f0; border-color: #b9dfc3; }
.status-cancelled, .status-canceled, .status-disabled, .status-terminated { color: #666; background: #f3f4f5; border-color: #d9dcdf; }
.status-replaced { color: #8b3733; background: #fff4f3; border-color: #e9beb9; }
.status-exception, .status-failed, .status-rejected, .status-arbitrating { color: #a72c2c; background: #fff0f0; border-color: #efc1c1; }
.status-arbitrated { color: #8a5a00; background: #fff8e6; border-color: #f0d9a8; }
.amount-positive { color: var(--success); font-weight: 600; }
.amount-negative { color: var(--danger); font-weight: 600; }
.platform-order-table { min-width: 1260px; }
.platform-records-table { table-layout: fixed; font-size: 12px; }
.platform-records-table th, .platform-records-table td { padding: 6px 5px; overflow-wrap: anywhere; }
.platform-records-table .js-open-order-chat,
.platform-records-table .js-open-platform-actions { display: none; }
.platform-records-table td:last-child, .platform-records-table th:last-child { width: 62px; min-width: 62px; }
.platform-records-table td:last-child .btn { margin: 1px 6px 1px 0; }
.platform-records-table td:last-child .btn:last-of-type { margin-right: 0; }
.platform-records-table td:nth-child(1), .platform-records-table th:nth-child(1) { width: 68px; }
.platform-records-table td:nth-child(2), .platform-records-table th:nth-child(2) { width: 118px; }
.platform-records-table td:nth-child(4), .platform-records-table th:nth-child(4),
.platform-records-table td:nth-child(7), .platform-records-table th:nth-child(7),
.platform-records-table td:nth-child(8), .platform-records-table th:nth-child(8),
.platform-records-table td:nth-child(9), .platform-records-table th:nth-child(9) { width: 74px; }
.platform-record-history { background: #f7f8f9; color: #71777d; }
.platform-record-history:hover { background: #f1f3f5 !important; }
.platform-record-current { box-shadow: inset 3px 0 0 var(--brand); }
.platform-settlement-summary { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 4px; color: #6d4e00; font-size: 11px; line-height: 1.45; }
.platform-settlement-summary strong { color: #8a5a00; }
.release-revision-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 6px; border: 1px solid #d7dce2; border-radius: 4px; font-weight: 600; white-space: nowrap; }
.release-revision-current { color: #1f5f9f; background: #edf6ff; border-color: #afd2f2; }
.release-revision-history { color: #6c7278; background: #f1f2f3; border-color: #d4d7da; }
.failure-reason-text { margin: 0; color: #6b3030; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.platform-order-detail-link { display: inline-grid; gap: 1px; color: inherit; }
.platform-order-detail-link:hover, .platform-order-detail-link:focus { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.platform-order-top-scroll, .platform-order-top-scroll-spacer { display: none; }
.platform-order-group-list { padding: 10px; background: #f4f6f8; }
.platform-order-group .dispatch-platform-table { min-width: 1260px; }
.platform-order-group-header { cursor: pointer; transition: background-color .15s ease; }
.platform-order-group-header:hover { background: #f2f6fa; }
.platform-order-group-header:focus-visible { outline: 2px solid #2d78bd; outline-offset: -2px; }
.platform-order-main-meta { display: inline-flex; min-width: 0; align-items: center; gap: 4px; padding-left: 7px; border-left: 1px solid #d9dee4; font-size: 12px; white-space: nowrap; }
.platform-order-main-meta em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 400; }
.platform-order-main-meta strong { max-width: 180px; color: #35485c; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.platform-order-header-toggle { flex: 0 0 30px; }
.platform-order-show-all-row td { padding: 0 !important; text-align: center; background: #f8fafc; }
.platform-order-show-all-row button { width: 100%; min-height: 34px; border: 0; color: #1766b1; background: transparent; font-size: 12px; font-weight: 600; cursor: pointer; }
.platform-order-show-all-row button:hover, .platform-order-show-all-row button:focus { color: #0d4f8b; background: #eef5fb; outline: 0; }
.platform-order-group-empty { margin: 0; }
.platform-order-table .amount-cell { color: #27313c; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.platform-order-timing { display: grid; min-width: 164px; gap: 4px; line-height: 1.25; white-space: nowrap; }
.timing-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.timing-metric { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-width: 0; padding: 2px 5px; color: #27313c; background: #f5f7f9; border: 1px solid #e1e5e9; border-radius: 3px; }
.timing-label { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 400; }
.timing-value { font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 650; }
.timing-status { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 21px; padding: 1px 6px; border: 1px solid #c9d8e7; border-radius: 3px; color: #315b81; background: #f1f7fc; font-size: 12px; font-weight: 600; }
.timing-on_time, .timing-completed_on_time { color: #1e6d35; background: #edf8f0; border-color: #b9dfc3; }
.timing-overtime, .timing-completed_overtime { color: #a72c2c; background: #fff0f0; border-color: #efc1c1; }
.timing-waiting, .timing-reconcile_required { color: #8a5a00; background: #fff7e6; border-color: #f2d59c; }
.timing-canceled { color: #666; background: #f3f4f5; border-color: #d9dcdf; }
.timing-failed { color: #a72c2c; background: #fff0f0; border-color: #efc1c1; }

.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.detail-item { min-height: 57px; padding: 9px 12px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); transition: background-color .12s ease; }
.detail-item:hover { background: #fafbfd; }
.detail-item:nth-child(4n) { border-right: 0; }
.detail-label { margin-bottom: 3px; color: var(--muted); font-size: 12px; }
.detail-value { overflow-wrap: anywhere; color: #212529; }
.detail-item.span-2 { grid-column: span 2; }
.detail-item.span-4 { grid-column: span 4; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 7px; width: 1px; background: #ced4da; }
.timeline-item { position: relative; padding: 0 0 13px 25px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; top: 4px; left: 2px; width: 11px; height: 11px; background: var(--brand); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--brand); }
.timeline-time { color: var(--muted); font-size: 12px; }
.timeline-content { margin-top: 2px; }

.order-detail-page .page-heading { margin-bottom: 7px; }
.order-detail-page .panel { margin-bottom: 8px; }
.order-detail-page .panel-header { min-height: 34px; padding: 5px 10px; }
.order-detail-page .panel-title { font-size: 14px; }
.order-detail-page .panel-body { padding: 8px 10px; }
.order-detail-page .panel-body.flush { padding: 0; }
.order-detail-page .detail-item { min-height: 44px; padding: 5px 9px; }
.order-detail-page .detail-label { margin-bottom: 1px; font-size: 11px; line-height: 16px; }
.order-detail-page .detail-value { line-height: 1.35; }
.order-detail-summary-grid .wzry-task-spec-detail { grid-column: 1 / -1; }
.wzry-task-spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; }
.wzry-task-spec-field { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.wzry-task-spec-field > span { color: var(--muted); font-size: 11px; line-height: 16px; }
.wzry-task-spec-field > strong { overflow-wrap: anywhere; color: #212529; font-size: 13px; font-weight: 600; line-height: 19px; }
.order-detail-page .table th, .order-detail-page .table td { padding: 5px 7px; }
.order-detail-page .table th { height: 32px; }
.order-detail-page .empty-state { padding: 14px 12px !important; }
.order-detail-page .empty-state .layui-icon { display: inline-block; margin: 0 6px 0 0; font-size: 17px; vertical-align: -1px; }
.order-detail-page .timeline-item { display: grid; grid-template-columns: 174px minmax(0, 1fr); gap: 8px; padding: 0 0 7px 25px; }
.order-detail-page .timeline-time { line-height: 20px; white-space: nowrap; }
.order-detail-page .timeline-content { min-width: 0; margin-top: 0; line-height: 20px; overflow-wrap: anywhere; }

@media (min-width: 1280px) {
    .order-detail-summary-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .order-detail-summary-grid .detail-item { border-right: 1px solid var(--line-soft); }
    .order-detail-summary-grid .detail-item:nth-child(6n),
    .order-detail-summary-grid .order-detail-wide:last-child { border-right: 0; }
    .order-detail-summary-grid .order-detail-wide { grid-column: span 3; }
}

@media (min-width: 1600px) {
    .order-detail-summary-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .order-detail-summary-grid .detail-item:nth-child(6n) { border-right: 1px solid var(--line-soft); }
    .order-detail-summary-grid .detail-item:nth-child(8n),
    .order-detail-summary-grid .order-detail-wide:last-child { border-right: 0; }
    .order-detail-summary-grid .order-detail-wide { grid-column: span 4; }
    .wzry-task-spec-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .order-detail-page .timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
    .order-detail-page .timeline::before { display: none; }
    .order-detail-page .timeline-item {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 6px;
        margin-left: 7px;
        padding: 0 0 3px 18px;
        border-left: 1px solid #ced4da;
    }
    .order-detail-page .timeline-dot { left: -6px; }
    .order-detail-page .timeline-time { overflow: hidden; text-overflow: ellipsis; }
}

.pagination-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pagination { margin: 0; }
.page-link { min-width: 32px; padding: .3rem .55rem; color: var(--brand); text-align: center; border-color: #d5dae0; }
.page-link:hover { color: var(--brand-dark); background: var(--brand-soft); border-color: #c8d6e6; }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); }
.tree-indent-1 { padding-left: 28px !important; }
.tree-indent-2 { padding-left: 48px !important; }
.code-mask { color: #495057; font-family: Consolas, monospace; }
.platform-balance-time { display: flex; min-height: 24px; align-items: center; justify-content: center; gap: 4px; }
.platform-balance-time .js-balance-refresh { flex: 0 0 24px; }
.badge-light { background: #f3f5f7; }
.modal-content { border-color: var(--line); border-radius: 5px; box-shadow: 0 14px 38px rgba(25,29,34,.18); }
.modal-header, .modal-footer { padding: 10px 14px; background: #fbfcfd; border-color: var(--line); }
.modal-body { padding: 13px 14px; }
.modal-title { font-size: 16px; font-weight: 650; }
.xgj-mapping-modal .modal-content { max-height: calc(100vh - 32px); overflow: hidden; }
.xgj-mapping-modal .modal-body { overflow-x: hidden; overflow-y: auto; }
.xgj-connection-panel .panel-body { padding: 10px 14px; }
.xgj-connection-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.xgj-connection-item { display: flex; min-width: 0; min-height: 48px; justify-content: center; flex-direction: column; gap: 4px; padding: 4px 14px; border-right: 1px solid var(--line-soft); }
.xgj-connection-item:first-child { padding-left: 0; }
.xgj-connection-item:last-child { padding-right: 0; border-right: 0; }
.xgj-connection-item > span { color: var(--muted); font-size: 11px; line-height: 16px; }
.xgj-connection-item > strong { overflow: hidden; color: #26384d; font-size: 18px; line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
.xgj-connection-item .status-badge { vertical-align: top; }
.xgj-connection-item .xgj-processing-mode { font-size: 14px; }
.xgj-workbench-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 5px 5px 0 0; scrollbar-width: thin; }
.xgj-workbench-tabs .nav-link { display: flex; min-height: 42px; align-items: center; gap: 5px; margin: 0; padding: 8px 15px; color: #59636f; border: 0; border-right: 1px solid var(--line-soft); border-radius: 0; white-space: nowrap; }
.xgj-workbench-tabs .nav-link:hover { color: #244d79; background: #f7f9fb; }
.xgj-workbench-tabs .nav-link.active { color: #174f89; background: #f2f6fb; box-shadow: inset 0 -3px var(--brand); }
.xgj-workbench-tabs .nav-link .layui-icon { margin: 0; font-size: 15px; }
.xgj-workbench-tabs .badge { min-width: 24px; padding: 3px 6px; font-weight: 600; }
.xgj-workbench-content > .tab-pane { padding-top: 10px; }
.xgj-product-panel-header { min-height: 52px; gap: 8px 14px; }
.xgj-product-panel-header > div:first-child { min-width: 180px; }
.xgj-product-panel-header .panel-title { margin-bottom: 2px; }
.xgj-product-toolbar { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 7px; }
.xgj-product-search { width: min(360px, 42vw); }
.xgj-product-toolbar > .custom-select { width: 112px; flex: 0 0 112px; }
.xgj-remote-product-table { min-width: 980px; table-layout: fixed; }
.xgj-remote-product-table th:first-child, .xgj-remote-product-table td:first-child { width: 34%; }
.xgj-remote-product-table th:nth-child(2), .xgj-remote-product-table td:nth-child(2) { width: 165px; }
.xgj-remote-product-table th:last-child, .xgj-remote-product-table td:last-child { width: 106px; }
.xgj-product-title-cell { text-align: left !important; }
.xgj-product-title { display: block; overflow: hidden; color: #2d3743; font-weight: 600; line-height: 19px; text-overflow: ellipsis; white-space: nowrap; }
.xgj-product-title-cell small { margin-top: 2px; font-size: 10px; }
.xgj-product-price { color: #b43832; font-weight: 650; }
.xgj-product-pagination { display: flex; min-height: 45px; align-items: center; justify-content: space-between; gap: 10px; }
.xgj-product-pagination .btn { min-width: 66px; }

.login-page { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, 42%) 1fr; background: #fff; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 32px; border-right: 1px solid var(--line); }
.login-box { width: 100%; min-width: 0; max-width: 390px; }
.login-brand { display: flex; align-items: center; margin-bottom: 34px; }
.login-brand .brand-mark { width: 42px; height: 42px; }
.login-brand h1 { margin: 0; font-size: 20px; font-weight: 650; }
.login-brand p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.login-title { margin: 0 0 6px; font-size: 24px; }
.login-subtitle { margin: 0 0 24px; color: var(--muted); }
.captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 10px; }
.captcha-row > * { min-width: 0; }
.captcha-image { width: 116px; height: 38px; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.captcha-image.is-loading { opacity: .45; cursor: wait; }
.captcha-image.is-error { opacity: .65; background: #f8d7da; cursor: pointer; }
.login-visual { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 56px; color: #fff; background: #1f3e66; }
.login-visual::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 44px 44px; }
.visual-content { position: relative; z-index: 1; max-width: 560px; }
.visual-kicker { margin-bottom: 14px; color: #b8d7ff; font-size: 13px; }
.visual-content h2 { max-width: 500px; margin: 0 0 18px; font-size: 34px; line-height: 1.35; }
.visual-content p { max-width: 500px; margin: 0; color: #d7e6f8; font-size: 15px; line-height: 1.8; }
.login-footer { margin-top: 30px; color: #8b949e; font-size: 12px; }
.login-register-link, .registration-login-link { margin-top: 18px; color: #68717d; font-size: 13px; text-align: center; }
.login-register-link a, .registration-login-link a { color: var(--brand); font-weight: 600; }
.login-register-link a:hover, .registration-login-link a:hover { color: var(--brand-dark); text-decoration: underline; }
.text-link-button { padding: 0; color: var(--brand); border: 0; background: transparent; font: inherit; font-weight: 600; cursor: pointer; }
.text-link-button:hover { color: var(--brand-dark); text-decoration: underline; }
.auth-mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; overflow: hidden; border: 1px solid #cfd7e1; border-radius: 5px; background: #f7f9fb; }
.auth-mode-button { min-height: 38px; padding: 0 10px; color: #596574; border: 0; border-right: 1px solid #cfd7e1; background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; }
.auth-mode-button:last-child { border-right: 0; }
.auth-mode-button:hover:not(.is-active) { color: var(--brand); background: #edf3f9; }
.auth-mode-button.is-active { color: #fff; background: var(--brand); }
.auth-login-fields[hidden] { display: none !important; }
.registration-box { max-width: 420px; }
.registration-message { display: none; margin: 0 0 16px; padding: 8px 10px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; line-height: 20px; }
.registration-message.is-visible { display: block; }
.registration-message.is-error { color: #9f2934; background: #fff4f4; border-color: #f0c8cd; }
.registration-message.is-success { color: #17643b; background: #eef9f2; border-color: #c7e2d1; }
.registration-code-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 10px; }
.registration-code-row > * { min-width: 0; }
.registration-code-row .btn { min-height: 38px; padding-right: 8px; padding-left: 8px; white-space: nowrap; }
.contact-admin-modal[hidden] { display: none !important; }
.contact-admin-modal { position: fixed; inset: 0; z-index: 1080; display: flex; align-items: center; justify-content: center; padding: 18px; }
.contact-admin-backdrop { position: absolute; inset: 0; background: rgba(27, 35, 44, .44); }
.contact-admin-dialog { position: relative; z-index: 1; width: min(548px, 100%); max-height: calc(100vh - 36px); overflow: auto; color: #28333f; background: #fff; border: 1px solid #cbd3dc; border-radius: 6px; box-shadow: 0 20px 52px rgba(18, 30, 43, .28); }
.contact-admin-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 18px 13px; border-bottom: 1px solid var(--line); }
.contact-admin-dialog-header h2 { margin: 0; color: #243446; font-size: 18px; line-height: 25px; }
.contact-admin-dialog-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 18px; }
.contact-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px 18px 18px; }
.contact-admin-channel { display: flex; min-width: 0; flex-direction: column; align-items: center; color: #546170; font-size: 12px; text-align: center; }
.contact-admin-channel strong { color: #2d3946; font-size: 14px; }
.contact-admin-channel small { display: block; margin-top: 7px; color: #77818d; line-height: 17px; }
.contact-admin-phone { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label number" "label hint"; align-items: center; width: 100%; padding: 10px 12px; border: 1px solid #d7e1ec; border-radius: 4px; background: #f7faff; color: inherit; font: inherit; text-align: left; cursor: copy; }
.contact-admin-phone:hover, .contact-admin-phone:focus-visible { border-color: #9bbbe2; background: #f1f7ff; outline: 0; }
.contact-admin-phone span { grid-area: label; color: #617083; }
.contact-admin-phone strong { grid-area: number; color: var(--brand); font-size: 17px; font-weight: 700; line-height: 20px; }
.contact-admin-phone .contact-admin-copy-status { grid-area: hint; margin: 1px 0 0; color: #718096; font-size: 11px; line-height: 15px; }
.contact-admin-phone.is-copied .contact-admin-copy-status { color: #16804b; }
.contact-admin-qr-trigger { display: block; width: 142px; margin-top: 10px; padding: 0; border: 0; background: transparent; color: inherit; cursor: zoom-in; }
.contact-admin-qr-trigger:focus-visible { outline: 2px solid #4b87cb; outline-offset: 3px; }
.contact-admin-qr { display: block; width: 142px; height: 142px; border: 1px solid #dce2e8; border-radius: 4px; background: #fff; object-fit: contain; }
.contact-admin-qr-action { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 23px; color: #4b6f98; font-size: 11px; line-height: 16px; }
.contact-admin-qr-trigger:hover .contact-admin-qr-action { color: var(--brand); }
.contact-admin-qr-modal[hidden] { display: none !important; }
.contact-admin-qr-modal { position: fixed; inset: 0; z-index: 1081; display: flex; align-items: center; justify-content: center; padding: 18px; }
.contact-admin-qr-backdrop { position: absolute; inset: 0; background: rgba(18, 25, 33, .72); }
.contact-admin-qr-dialog { position: relative; z-index: 1; width: min(520px, 100%); max-height: calc(100vh - 36px); overflow: auto; background: #fff; border: 1px solid #cbd3dc; border-radius: 6px; box-shadow: 0 20px 52px rgba(0, 0, 0, .36); }
.contact-admin-qr-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.contact-admin-qr-dialog-header h2 { margin: 0; color: #243446; font-size: 16px; line-height: 22px; }
.contact-admin-qr-preview { display: flex; align-items: center; justify-content: center; padding: 16px; background: #f7f9fb; }
.contact-admin-qr-preview img { display: block; width: min(100%, 460px); height: auto; max-height: calc(100vh - 144px); object-fit: contain; border: 1px solid #dce2e8; border-radius: 4px; background: #fff; }

.error-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; background: var(--canvas); }
.error-box { width: 100%; max-width: 540px; padding: 36px; text-align: center; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 5px; }
.error-code { margin-bottom: 8px; color: var(--brand); font-size: 58px; line-height: 1; font-weight: 700; }
.error-box h1 { margin: 0 0 10px; font-size: 21px; }
.error-box p { margin-bottom: 22px; color: var(--muted); }

@media (max-width: 1200px) {
    .metric-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
    .finance-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-item:nth-child(4n) { border-right: 1px solid #edf0f2; }
    .detail-item:nth-child(2n) { border-right: 0; }
    .xgj-connection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .xgj-connection-item:nth-child(3) { border-right: 0; }
    .xgj-connection-item:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
    .detail-item.span-4 { grid-column: span 2; }
}
@media (max-width: 1279.98px) {
    .order-entry-workspace { grid-template-columns: minmax(0, 1fr); }
    .order-import-panel { position: static; }
    .order-import-textarea.form-control { height: 240px; min-height: 220px; }
}
@media (min-width: 1600px) {
    .admin-content { padding-right: 20px; padding-left: 20px; }
    .admin-footer { padding-right: 20px; padding-left: 20px; }
    .panel-header, .panel-body, .panel-footer { padding-right: 13px; padding-left: 13px; }
    .panel-body.flush { padding: 0; }
    .filter-panel .panel-body { padding: 9px 13px 1px; }
    .table th, .table td { padding-right: 10px; padding-left: 10px; }
}
@media (max-width: 991.98px) {
    .admin-sidebar { width: min(280px, 86vw); transform: translateX(-100%); box-shadow: 6px 0 20px rgba(0,0,0,.2); }
    body.sidebar-open .admin-sidebar { transform: translateX(0); }
    body.sidebar-open .admin-header { z-index: 1041; }
    body.sidebar-open { overflow: hidden; }
    body.sidebar-open .admin-shell::after { opacity: 1; pointer-events: auto; }
    .admin-main { margin-left: 0; }
    .sidebar-toggle { display: inline-flex; flex: 0 0 auto; margin-right: 10px; }
    .admin-content { padding-right: 14px; padding-left: 14px; }
    .order-entry-grid-source { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .admin-content { padding: 11px 12px 14px; }
    .admin-content > .row { margin-right: -5px; margin-left: -5px; }
    .admin-content > .row > [class*="col-"] { padding-right: 5px; padding-left: 5px; }
    .admin-header { padding: 0 12px; }
    .header-user .user-name { display: none; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 7px; margin-bottom: 9px; }
    .page-heading h1 { font-size: 19px; line-height: 25px; }
    .page-actions { width: 100%; justify-content: flex-start; }
    .page-actions .btn { flex: 0 1 auto; }
    .panel { margin-bottom: 10px; }
    .panel-header { min-height: 39px; padding: 7px 11px; }
    .panel-body { padding: 10px 11px; }
    .panel-body.flush { padding: 0; }
    .panel-footer { padding: 7px 11px; }
    .filter-panel .panel-body { padding: 9px 11px 1px; }
    .btn { min-height: 36px; }
    .form-control, .custom-select { height: 36px; min-height: 36px; }
    .input-group-text { min-height: 36px; }
    .registration-code-row { grid-template-columns: minmax(0, 1fr) 108px; }
    .registration-code-row .btn { min-height: 36px; font-size: 12px; }
    .auth-mode-button { min-height: 36px; }
    .contact-admin-modal { align-items: flex-end; padding: 0; }
    .contact-admin-dialog { width: 100%; max-height: 82vh; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 6px 6px 0 0; }
    .contact-admin-dialog-header { padding: 14px 12px 11px; }
    .contact-admin-grid { gap: 12px; padding: 13px 12px 16px; }
    textarea.form-control { height: auto; }
    .xgj-connection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xgj-connection-item { min-height: 44px; padding: 5px 9px; }
    .xgj-connection-item:nth-child(3) { border-right: 1px solid var(--line-soft); }
    .xgj-connection-item:nth-child(2n) { border-right: 0; }
    .xgj-connection-item:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
    .xgj-workbench-tabs { margin-right: -10px; margin-left: -10px; border-right: 0; border-left: 0; border-radius: 0; }
    .xgj-workbench-tabs .nav-link { padding-right: 11px; padding-left: 11px; }
    .xgj-product-panel-header { align-items: stretch; }
    .xgj-product-panel-header > div:first-child { min-width: 0; }
    .xgj-product-toolbar { width: 100%; align-items: stretch; flex-wrap: wrap; justify-content: flex-start; }
    .xgj-product-search { width: 100%; flex: 1 0 100%; }
    .xgj-product-toolbar > .custom-select { flex: 1 1 130px; }
    .xgj-product-toolbar > .btn { flex: 0 0 auto; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .finance-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-date-input { width: min(180px, 100%); }
    .table th, .table td { padding: 7px 8px; }
    .table-actions { gap: 4px; }
    .order-list-table th:last-child, .order-list-table td:last-child { width: 195px; min-width: 195px; max-width: 195px; }
    .table-actions.order-list-actions { gap: 3px; }
    .order-list-action-button { width: 30px; min-width: 30px; height: 30px; min-height: 30px; flex-basis: 30px; padding: 2px; font-size: 11px; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-item, .detail-item:nth-child(2n), .detail-item:nth-child(4n) { grid-column: span 1; border-right: 0; }
    .order-detail-page .detail-item { grid-column: span 1; }
    .order-detail-summary-grid .wzry-task-spec-detail { grid-column: 1 / -1; }
    .wzry-task-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .order-detail-page .timeline-item { display: block; padding-bottom: 10px; }
    .order-detail-page .timeline-time { white-space: normal; }
    .order-detail-page .timeline-content { margin-top: 2px; }
    .pagination-wrap { align-items: flex-start; flex-direction: column; }
    .admin-footer { padding: 6px 12px 10px; }
    .login-page { grid-template-columns: 1fr; }
    .login-panel { min-height: 100vh; padding: 24px; border-right: 0; }
    .login-visual { display: none; }
    .order-entry-section { grid-template-columns: minmax(0, 1fr); gap: 7px; }
    .order-entry-section-heading { padding-top: 0; }
    .order-entry-grid-source,
    .order-entry-grid-two,
    .order-entry-grid-four,
    .order-entry-grid-five,
    .order-entry-grid-game,
    .order-entry-grid-task,
    .order-entry-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .order-entry-grid-task.has-rank-range,
    .order-entry-grid-task.has-peak-score { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wzry-task-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .order-entry-grid-notes { grid-template-columns: minmax(0, 1fr); }
    .order-import-textarea.form-control { height: 200px; min-height: 180px; }
    .order-publish-modal .modal-dialog { width: auto; max-width: none; margin: 8px; }
    .order-publish-modal .modal-content { max-height: calc(100vh - 16px); }
    .order-publish-modal .modal-body { min-height: 0; padding: 10px; }
    .order-publish-option { padding: 9px; }
    .order-publish-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
    .order-publish-metrics > span:first-child { grid-column: 1 / -1; }
    .order-publish-footer { flex-wrap: wrap; padding: 9px 10px; }
    .order-publish-selection { width: 100%; flex: 1 0 100%; }
    .order-adjustment-modal .modal-dialog { width: auto; max-width: none; margin: 8px; }
    .order-adjustment-modal .modal-content { max-height: calc(100vh - 16px); }
    .order-adjustment-modal .modal-body { min-height: 0; padding: 10px; }
    .order-adjustment-state { min-height: 220px; }
    .order-adjustment-target, .order-adjustment-result { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; padding: 8px; }
    .order-adjustment-target-reason, .order-adjustment-result-message { grid-column: 1 / -1; }
    .order-adjustment-footer { flex-wrap: wrap; padding: 9px 10px; }
    .order-adjustment-footer-status { width: 100%; flex: 1 0 100%; }
    .platform-order-workspace-modal .modal-dialog,
    .order-detail-workspace-modal .modal-dialog { width: auto; max-width: none; margin: 8px; }
    .platform-order-workspace-modal .modal-content,
    .order-detail-workspace-modal .modal-content { height: calc(100vh - 16px); max-height: calc(100vh - 16px); }
    .order-detail-workspace-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .order-detail-workspace-modal .order-detail-workspace-order-no { display: none; }
    .order-detail-workspace-modal .order-detail-workspace-topbar { flex-wrap: wrap; gap: 0; }
    .order-detail-workspace-modal .order-detail-workspace-topbar-right { width: 100%; justify-content: flex-end; padding-bottom: 8px; }
    .platform-workspace-split { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
    .platform-workspace-split.is-single-column { grid-template-columns: minmax(0, 1fr); }
    .platform-workspace-col-chat { min-height: 460px; border-right: 0; border-bottom: 1px solid var(--line); }
    .platform-workspace-col-pictures { overflow: visible; }
    .platform-workspace-col-actions { grid-column: auto; }
    .order-chat-context { align-items: flex-start; flex-wrap: wrap; gap: 7px 16px; padding: 8px 11px; }
    .order-chat-context > div { flex: 1 1 calc(50% - 8px); }
    .order-chat-context .btn { margin-left: 0; }
    .order-chat-history { height: auto; min-height: 0; flex-basis: 170px; padding: 12px 11px; }
    .order-chat-message { max-width: 88%; }
    .order-chat-order-summary { display: block; padding: 7px 11px 8px; }
    .order-chat-order-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(138px, .85fr); gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
    .order-chat-order-number { text-align: left; }
    .order-chat-order-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 9px; padding-top: 6px; }
    .order-chat-game-region { grid-column: span 3; }
    .order-chat-order-heading strong, .order-chat-order-facts strong { font-size: 11px; }
    .order-chat-order-content strong { font-size: 12px; }
    .order-chat-compose { padding: 9px 11px 10px; }
    .platform-order-workspace-modal .platform-workspace-col-actions { padding: 11px; }
    .platform-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .platform-action-dialog { align-items: flex-end; padding: 0; }
    .platform-action-dialog-panel { width: 100%; max-height: min(88vh, 720px); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 4px 4px 0 0; }
    .platform-action-dialog-body { padding: 13px 12px 1px; }
    .platform-action-dialog-footer { flex-wrap: wrap; padding: 9px 12px; }
    .platform-action-dialog-footer .platform-action-payment { width: 100%; margin-right: 0; }
    .platform-picture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .order-image-preview { padding: 8px; }
    .order-image-preview-panel { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
    .order-image-preview-body { padding: 6px; }
    .order-image-preview-body img { max-height: calc(100vh - 112px); }
}
@media (max-height: 620px) {
    .order-publish-modal .modal-content { max-height: calc(100vh - 16px); }
    .order-publish-modal .modal-body { min-height: 0; }
    .order-publish-state { min-height: 150px; }
    .order-adjustment-state { min-height: 150px; }
    .platform-order-workspace-modal .modal-content,
    .order-detail-workspace-modal .modal-content { height: calc(100vh - 16px); }
    .order-chat-history { min-height: 140px; flex-basis: 140px; }
}
@media (max-width: 420px) {
    .xgj-mapping-modal .modal-dialog { width: auto; max-width: none; margin: 8px; }
    .xgj-mapping-modal .modal-content { max-height: calc(100vh - 16px); }
    .xgj-mapping-modal .modal-body { padding: 10px; }
    .xgj-mapping-modal .form-row { margin-right: -4px; margin-left: -4px; }
    .xgj-mapping-modal .form-row > [class*="col-"] { padding-right: 4px; padding-left: 4px; }
    .header-actions { gap: 8px; }
    .admin-content { padding-right: 10px; padding-left: 10px; }
    .admin-content > .row { margin-right: -4px; margin-left: -4px; }
    .admin-content > .row > [class*="col-"] { padding-right: 4px; padding-left: 4px; }
    .page-heading h1 { font-size: 18px; }
    .page-actions { gap: 6px; }
    .page-actions .btn { flex: 1 1 auto; }
    .order-publish-toolbar { align-items: flex-start; }
    .order-publish-toolbar > div:first-child { align-items: flex-start; flex-direction: column; gap: 0; }
    .order-publish-option-heading { align-items: flex-start; }
    .order-publish-identity { align-items: flex-start; flex-direction: column; gap: 0; }
    .order-publish-footer .btn { flex: 1 1 0; }
    .order-adjustment-summary { grid-template-columns: minmax(0, 1fr); }
    .order-adjustment-summary > div + div { border-top: 1px solid var(--line-soft); border-left: 0; }
    .order-sms-summary { grid-template-columns: minmax(0, 1fr); }
    .order-sms-summary > div + div { border-top: 1px solid var(--line-soft); border-left: 0; }
    .order-sms-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .order-sms-footer-status { grid-column: 1 / -1; margin-right: 0; }
    .order-sms-footer .btn { width: 100%; min-width: 0; margin: 0; white-space: nowrap; }
    .order-adjustment-result-summary { align-items: flex-start; flex-direction: column; gap: 2px; }
    .order-adjustment-footer .btn { flex: 1 1 0; }
    .panel-header { align-items: flex-start; flex-wrap: wrap; gap: 5px 10px; }
    .metric-item { min-height: 72px; padding: 9px 10px; }
    .metric-grid, .finance-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .pagination-wrap { gap: 8px; }
    .admin-footer { align-items: flex-start; flex-direction: column; gap: 2px; }
    .captcha-row { grid-template-columns: minmax(0, 1fr) 105px; }
    .captcha-image { width: 105px; }
    .order-entry-grid-source,
    .order-entry-grid-two,
    .order-entry-grid-four,
    .order-entry-grid-five,
    .order-entry-grid-game,
    .order-entry-grid-task,
    .order-entry-grid-three { grid-template-columns: minmax(0, 1fr); }
    .order-entry-grid-task.has-rank-range,
    .order-entry-grid-task.has-peak-score { grid-template-columns: minmax(0, 1fr); }
    .order-entry-grid-task [data-rank-range-field] { grid-column: auto; }
    .wzry-task-fields { grid-template-columns: minmax(0, 1fr); }
    .wzry-task-spec-grid { grid-template-columns: minmax(0, 1fr); }
    .order-entry-actions .btn { flex: 1 1 0; }
    .platform-action-button { height: 40px; padding-right: 7px; padding-left: 7px; font-size: 12px; }
    .platform-picture-grid { grid-template-columns: minmax(0, 1fr); }
    .order-chat-image-preview { grid-template-columns: minmax(0, 1fr) auto 32px; }
    .order-chat-image-item { width: 52px; height: 42px; flex-basis: 52px; }
}

/* User-scoped third-party platform accounts */
.platform-account-summary { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); margin-bottom: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.platform-account-summary > div { display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 10px 14px; border-right: 1px solid var(--line-soft); }
.platform-account-summary > div:last-child { border-right: 0; }
.platform-account-summary span { color: var(--muted); font-size: 12px; }
.platform-account-summary strong { color: #26394d; font-size: 21px; }
.platform-account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.platform-account-item { display: flex; min-width: 0; min-height: 330px; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.platform-account-item.is-bound { border-color: #c8d4df; }
.platform-account-header { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid var(--line-soft); }
.platform-account-identity { display: flex; min-width: 0; align-items: center; gap: 9px; }
.platform-account-mark { display: inline-flex; width: 36px; height: 36px; flex: 0 0 36px; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 700; background: #345a7c; border-radius: 4px; }
.platform-account-identity h2 { margin: 0; color: #26394d; font-size: 15px; font-weight: 700; }
.platform-account-identity small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.platform-account-body { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; padding: 12px; }
.platform-account-primary { min-width: 0; margin-bottom: 10px; }
.platform-account-primary strong, .platform-account-primary span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-account-primary strong { color: #25384b; font-size: 14px; }
.platform-account-primary span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.platform-account-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line-soft); }
.platform-account-facts > div { min-width: 0; padding: 7px 8px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.platform-account-facts > div:nth-child(2n) { border-right: 0; }
.platform-account-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.platform-account-facts dt { margin: 0 0 2px; color: var(--muted); font-size: 10px; font-weight: 400; }
.platform-account-facts dd { min-width: 0; margin: 0; color: #2b3c4d; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-account-callback { min-width: 0; margin-top: 8px; padding: 7px 8px; background: #f8fafc; border: 1px solid var(--line-soft); }
.platform-account-callback span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; }
.platform-account-callback code { display: block; min-width: 0; color: #315a7d; font-size: 10px; line-height: 15px; overflow-wrap: anywhere; white-space: normal; }
.platform-credential-state { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.platform-credential-state span { display: inline-flex; min-height: 22px; align-items: center; padding: 2px 6px; color: #8a3d45; font-size: 10px; background: #fff3f4; border: 1px solid #eccdd0; border-radius: 3px; }
.platform-credential-state span.is-configured { color: #25603e; background: #eef8f2; border-color: #c9dfd1; }
.platform-credential-state span.is-optional { color: #68727c; background: #f5f6f7; border-color: #dfe3e7; }
.platform-payment-verification { margin: 8px 0 0; color: #7d5a15; font-size: 11px; line-height: 17px; overflow-wrap: anywhere; }
.platform-payment-verification.is-verified { color: #25603e; }
.platform-payment-verification.is-failed { color: #a53a42; }
.platform-payment-verification.is-pending { color: #1f5a94; }
.platform-account-message { min-height: 34px; margin: 9px 0 0; color: #697581; font-size: 11px; line-height: 17px; overflow-wrap: anywhere; }
.platform-account-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding: 9px 10px; background: #fafbfc; border-top: 1px solid var(--line-soft); }
.platform-account-actions .btn { min-width: 0; min-height: 32px; padding-right: 4px; padding-left: 4px; font-size: 12px; white-space: nowrap; }
.platform-account-actions .btn .layui-icon { margin-right: 3px; font-size: 13px; }
.platform-account-actions .btn span { overflow: hidden; text-overflow: ellipsis; }
.platform-account-actions .btn:disabled { cursor: not-allowed; opacity: .45; }
.platform-account-empty { grid-column: 1 / -1; }
.platform-account-modal .modal-content { max-height: calc(100vh - 30px); }
.platform-account-modal .modal-body { overflow-y: auto; }
.platform-account-advanced { padding: 10px 10px 0; background: #f8fafc; border: 1px solid var(--line-soft); }
.historical-platform-group + .historical-platform-group { margin-top: 16px; }
.historical-platform-group > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.historical-platform-group > header strong { color: #26394d; font-size: 14px; }
.historical-platform-group > header span { color: var(--muted); font-size: 11px; }
.historical-platform-accounts { display: grid; gap: 7px; }
.historical-account-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-width: 0; padding: 10px; border: 1px solid var(--line-soft); border-radius: 4px; }
.historical-account-item.is-replaced { background: #f8fafc; }
.historical-account-main { min-width: 0; }
.historical-account-title { display: flex; min-width: 0; align-items: center; gap: 8px; }
.historical-account-title strong { min-width: 0; overflow: hidden; color: #26394d; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.historical-account-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 5px; color: var(--muted); font-size: 11px; }
.historical-account-meta strong { color: #2d4a61; }
.historical-account-message { margin: 6px 0 0; color: #697581; font-size: 11px; line-height: 16px; overflow-wrap: anywhere; }
.historical-account-actions { display: grid; grid-template-columns: minmax(112px, auto) 34px 34px minmax(96px, auto); gap: 5px; }
.historical-account-actions .btn { min-height: 32px; padding-right: 7px; padding-left: 7px; white-space: nowrap; }

/* Per-user XianGuanJia applications and discovered Xianyu stores */
.xgj-current-status { display: flex; min-height: 78px; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--line); border-left: 4px solid #3972a5; }
.xgj-current-status-icon { display: inline-flex; width: 30px; height: 30px; flex: 0 0 30px; align-items: center; justify-content: center; color: #3972a5; font-size: 23px; }
.xgj-current-status-copy { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; gap: 2px; }
.xgj-current-status-copy > span { min-width: 0; color: #65717d; font-size: 12px; line-height: 18px; }
.xgj-current-status-copy > strong { color: #26394d; font-size: 17px; line-height: 23px; }
.xgj-current-status-label { color: #65717d !important; font-size: 11px !important; font-weight: 600; }
.xgj-current-status > .status-badge { flex: 0 0 auto; }
.xgj-current-status > .btn { flex: 0 0 auto; min-height: 34px; white-space: nowrap; }
.xgj-current-status.is-unbound { background: #fff6f5; border-color: #e9beb9; border-left-color: #b3403a; }
.xgj-current-status.is-unbound .xgj-current-status-icon { color: #a73530; }
.xgj-current-status.is-attention { background: #fff8e8; border-color: #efd19a; border-left-color: #a96c05; }
.xgj-current-status.is-attention .xgj-current-status-icon { color: #a96c05; }
.xgj-current-status.is-active { background: #f2faf5; border-color: #b9dfc3; border-left-color: #2f7a47; }
.xgj-current-status.is-active .xgj-current-status-icon { color: #2f7a47; }
.xgj-current-status.is-inactive { background: #fff9ec; border-color: #efd9a4; border-left-color: #9c6b10; }
.xgj-current-status.is-inactive .xgj-current-status-icon { color: #9c6b10; }
.xgj-onboarding { margin-bottom: 12px; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--line); border-left: 3px solid #3972a5; }
.xgj-onboarding ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: xgj-step; }
.xgj-onboarding li { position: relative; min-width: 0; padding: 0 14px 0 34px; counter-increment: xgj-step; }
.xgj-onboarding li + li { border-left: 1px solid var(--line-soft); }
.xgj-onboarding li::before { position: absolute; top: 0; left: 8px; display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; background: #3972a5; border-radius: 50%; content: counter(xgj-step); }
.xgj-onboarding strong, .xgj-onboarding span { display: block; min-width: 0; }
.xgj-onboarding strong { color: #26394d; font-size: 12px; }
.xgj-onboarding span { margin-top: 3px; color: #65717d; font-size: 11px; line-height: 17px; }
.xgj-account-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.xgj-application-item { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #cbd5de; border-radius: 5px; }
.xgj-application-body { min-width: 0; padding: 12px; }
.xgj-application-overview { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(360px, 1.2fr); align-items: start; gap: 12px; }
.xgj-application-overview .platform-account-primary { margin: 0; padding: 8px 0; }
.xgj-application-overview .platform-account-facts { align-self: stretch; }
.xgj-callback-config { min-width: 0; margin-top: 12px; padding: 10px; background: #f8fafc; border: 1px solid var(--line-soft); }
.xgj-callback-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
.xgj-callback-heading > div { min-width: 0; }
.xgj-callback-heading strong, .xgj-callback-heading span { display: block; }
.xgj-callback-heading strong { color: #26394d; font-size: 12px; }
.xgj-callback-heading span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.xgj-callback-heading .btn { flex: 0 0 auto; min-height: 30px; white-space: nowrap; }
.xgj-callback-config code { display: block; min-width: 0; margin-top: 7px; color: #315a7d; font-size: 11px; line-height: 17px; overflow-wrap: anywhere; white-space: normal; }
.xgj-callback-warning { margin: 7px 0 0; color: #9a5a08; font-size: 11px; line-height: 17px; }
.xgj-store-list { margin-top: 12px; border: 1px solid var(--line-soft); }
.xgj-store-list > header { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; background: #f8fafc; border-bottom: 1px solid var(--line-soft); }
.xgj-store-list > header strong { color: #26394d; font-size: 12px; }
.xgj-store-list > header span { color: var(--muted); font-size: 10px; }
.xgj-store-row { display: grid; grid-template-columns: minmax(170px, .75fr) minmax(330px, 1.45fr) minmax(200px, auto); min-width: 0; min-height: 68px; align-items: center; gap: 14px; padding: 9px 10px; }
.xgj-store-row + .xgj-store-row { border-top: 1px solid var(--line-soft); }
.xgj-store-identity { min-width: 0; }
.xgj-store-identity strong, .xgj-store-identity span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xgj-store-identity strong { color: #293c4f; font-size: 13px; }
.xgj-store-identity span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.xgj-store-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
.xgj-store-meta > span { min-width: 0; padding: 0 9px; color: #34495e; font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 1px solid var(--line-soft); }
.xgj-store-meta small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 400; }
.xgj-store-state { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 14px; }
.xgj-store-switch { min-width: 124px; margin: 0; }
.xgj-store-switch .custom-control-label { color: #34495e; font-size: 11px; line-height: 24px; white-space: nowrap; }
.xgj-store-empty { padding: 18px 10px; color: var(--muted); font-size: 12px; text-align: center; }
.xgj-application-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding: 9px 10px; background: #fafbfc; border-top: 1px solid var(--line-soft); }
.xgj-application-actions .btn { min-height: 32px; white-space: nowrap; }
.xgj-application-actions .js-xgj-sync { margin-right: auto; }
.xgj-historical-section { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.xgj-historical-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.xgj-historical-heading > div { min-width: 0; }
.xgj-historical-heading h2, .xgj-historical-heading p { margin: 0; }
.xgj-historical-heading h2 { color: #475565; font-size: 14px; font-weight: 650; line-height: 20px; }
.xgj-historical-heading p { margin-top: 2px; color: #77818c; font-size: 11px; line-height: 17px; }
.xgj-historical-account-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.xgj-historical-account-item { display: grid; min-width: 0; grid-template-columns: minmax(180px, .8fr) minmax(250px, 1.2fr) minmax(190px, auto); align-items: center; gap: 14px; padding: 10px 12px; background: #fafbfc; border: 1px solid #d9dde1; border-left: 3px solid #a9b0b8; border-radius: 5px; }
.xgj-historical-account-identity { display: flex; min-width: 0; align-items: center; gap: 8px; }
.xgj-historical-account-identity > div { min-width: 0; }
.xgj-historical-account-identity strong, .xgj-historical-account-identity small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xgj-historical-account-identity strong { color: #485565; font-size: 13px; }
.xgj-historical-account-identity small { margin-top: 2px; color: #7a8490; font-size: 10px; }
.xgj-historical-account-state { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 2px; }
.xgj-historical-account-state .status-badge { grid-row: 1 / span 2; }
.xgj-historical-account-state strong { min-width: 0; color: #6b3b39; font-size: 12px; line-height: 18px; }
.xgj-historical-account-state > span:last-child { min-width: 0; color: #6f7984; font-size: 11px; line-height: 16px; }
.xgj-historical-account-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; border-left: 1px solid var(--line-soft); }
.xgj-historical-account-facts > span { min-width: 0; padding: 0 9px; color: #596775; font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xgj-historical-account-facts small { display: block; margin-bottom: 2px; color: #7a8490; font-size: 9px; font-weight: 400; }

@media (max-width: 1199.98px) {
    .platform-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xgj-onboarding ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
    .xgj-onboarding li:nth-child(3) { border-left: 0; }
    .xgj-store-row { grid-template-columns: minmax(160px, .7fr) minmax(280px, 1.3fr); }
    .xgj-store-state { grid-column: 1 / -1; justify-content: flex-end; padding-top: 7px; border-top: 1px dashed var(--line-soft); }
    .xgj-historical-account-item { grid-template-columns: minmax(180px, .75fr) minmax(250px, 1.25fr); }
    .xgj-historical-account-facts { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); border-left: 0; padding-top: 8px; }
}

@media (max-width: 767.98px) {
    .platform-account-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .platform-account-summary > div { min-height: 52px; flex-direction: column; align-items: flex-start; padding: 8px 10px; }
    .platform-account-summary strong { font-size: 18px; }
    .platform-account-grid { grid-template-columns: minmax(0, 1fr); }
    .platform-account-item { min-height: 0; }
    .platform-account-modal .modal-dialog { width: auto; max-width: none; margin: 8px; }
    .platform-account-modal .modal-content { max-height: calc(100vh - 16px); }
    .historical-account-item { grid-template-columns: minmax(0, 1fr); }
    .historical-account-actions { grid-template-columns: minmax(0, 1fr) 36px 36px; }
    .historical-account-actions .js-history-payment-verify { grid-column: 1 / -1; }
    .xgj-onboarding { padding: 11px 10px; }
    .xgj-current-status { align-items: flex-start; flex-wrap: wrap; padding: 11px 10px; }
    .xgj-current-status > .status-badge { margin-left: auto; }
    .xgj-current-status > .btn { width: 100%; }
    .xgj-onboarding ol { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .xgj-onboarding li { padding-right: 0; }
    .xgj-onboarding li + li { padding-top: 10px; border-top: 1px solid var(--line-soft); border-left: 0; }
    .xgj-onboarding li + li::before { top: 10px; }
    .xgj-application-overview { grid-template-columns: minmax(0, 1fr); }
    .xgj-store-list > header { align-items: flex-start; flex-direction: column; gap: 2px; }
    .xgj-store-row { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .xgj-store-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xgj-store-meta > span { padding: 5px 8px; border-left: 0; border-top: 1px solid var(--line-soft); }
    .xgj-store-meta > span:nth-child(2n) { border-left: 1px solid var(--line-soft); }
    .xgj-store-meta > span:last-child { grid-column: 1 / -1; }
    .xgj-store-state { grid-column: auto; justify-content: space-between; }
    .xgj-application-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xgj-application-actions .btn { width: 100%; }
    .xgj-application-actions .js-xgj-sync { grid-column: 1 / -1; margin: 0; }
    .xgj-historical-heading { align-items: flex-start; }
    .xgj-historical-account-item { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 10px; }
    .xgj-historical-account-facts { grid-column: auto; padding-top: 7px; }
}

@media (max-width: 420px) {
    .platform-account-header { padding: 9px 10px; }
    .platform-account-body { padding: 10px; }
    .platform-account-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .platform-account-actions .js-account-edit,
    .platform-account-actions .js-account-payment-verify,
    .platform-account-actions .js-account-toggle { grid-column: 1 / -1; }
    .xgj-callback-heading { align-items: flex-start; flex-direction: column; }
    .xgj-callback-heading .btn { width: 100%; }
    .xgj-store-meta { grid-template-columns: minmax(0, 1fr); }
    .xgj-store-meta > span:nth-child(2n) { border-left: 0; }
    .xgj-store-meta > span:last-child { grid-column: auto; }
    .xgj-store-state { align-items: flex-start; flex-direction: column; gap: 8px; }
    .xgj-application-actions { grid-template-columns: minmax(0, 1fr); }
    .xgj-application-actions .js-xgj-sync { grid-column: auto; }
    .xgj-historical-heading { flex-direction: column; }
    .xgj-historical-account-facts { grid-template-columns: minmax(0, 1fr); }
    .xgj-historical-account-facts > span { padding: 5px 0; border-top: 1px solid var(--line-soft); }
}

/* Multi-platform dispatch operations monitor */
.dispatch-monitor-summary { display: flex; margin-bottom: 10px; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 5px; scrollbar-width: thin; }
.dispatch-monitor-summary > a { position: relative; display: flex; flex: 1 0 132px; min-width: 0; min-height: 66px; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 13px; color: inherit; border-right: 1px solid var(--line-soft); text-decoration: none; transition: background-color .16s ease, box-shadow .16s ease; }
.dispatch-monitor-summary > a:last-child { border-right: 0; }
.dispatch-monitor-summary > a:hover { background: #f7f9fb; text-decoration: none; }
.dispatch-monitor-summary > a.is-active { background: #f2f6fb; box-shadow: inset 0 -3px var(--brand); }
.dispatch-monitor-summary > a.is-active span { color: #254f7e; font-weight: 600; }
.dispatch-monitor-summary span { color: var(--muted); font-size: 12px; }
.dispatch-monitor-summary strong { color: #25364b; font-size: 22px; line-height: 1; }
.dispatch-monitor-summary .is-warning strong { color: #a75c00; }
.dispatch-monitor-summary .is-danger strong { color: #b72c39; }
.dispatch-monitor-attention .custom-control { display: flex; min-height: 38px; align-items: center; padding-top: 2px; }
.dispatch-batch-list { padding: 10px; background: #f4f6f8; }
.dispatch-batch { margin-bottom: 10px; overflow: hidden; background: #fff; border: 1px solid #cfd6dd; border-radius: 4px; }
.dispatch-batch:last-child { margin-bottom: 0; }
.dispatch-batch.batch-conflict { border-left: 4px solid #c83d4b; }
.dispatch-batch.batch-failed { border-left: 4px solid #d08a21; }
.dispatch-order-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, auto); align-items: center; gap: 16px; padding: 11px 13px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.dispatch-order-main, .dispatch-batch-overview { min-width: 0; }
.dispatch-order-id-line { display: flex; min-width: 0; align-items: center; gap: 7px; }
.dispatch-order-id-line > a { min-width: 0; color: #1766b1; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-level-label { display: inline-flex; flex: 0 0 auto; min-height: 22px; align-items: center; padding: 2px 6px; color: #fff; font-size: 11px; font-weight: 600; line-height: 16px; border-radius: 3px; }
.dispatch-level-label.is-main { background: #345a7c; }
.dispatch-level-label.is-child { color: #6c4c15; background: #f5e7c5; border: 1px solid #e4cd98; }
.dispatch-order-facts { display: flex; min-width: 0; align-items: center; gap: 0; margin-top: 6px; color: #5d6874; font-size: 12px; overflow: hidden; white-space: nowrap; }
.dispatch-order-facts > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dispatch-order-facts > * + *::before { margin: 0 7px; color: #b0b7bf; content: "/"; }
.dispatch-order-facts strong { flex: 0 0 auto; color: #26384b; font-size: 13px; }
.dispatch-batch-overview { display: grid; grid-template-columns: auto auto auto; align-items: center; justify-content: end; gap: 12px; }
.dispatch-batch-number { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.dispatch-batch-number span { color: var(--muted); font-size: 11px; }
.dispatch-batch-number strong { color: #334354; font-size: 12px; }
.dispatch-batch-state { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 5px; }
.dispatch-batch-meta { display: flex; align-items: flex-end; flex-direction: column; color: var(--muted); font-size: 11px; white-space: nowrap; }
.dispatch-child-summary { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(220px, 1.25fr) minmax(410px, 1.4fr); min-height: 58px; align-items: stretch; border-bottom: 1px solid var(--line-soft); }
.dispatch-child-identity { display: flex; min-width: 0; align-items: center; gap: 6px; padding: 9px 13px; }
.dispatch-child-identity > strong { min-width: 0; color: #334354; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-child-content { display: -webkit-box; min-width: 0; align-self: center; max-height: 42px; padding: 0 12px; color: #243343; font-size: 13px; font-weight: 600; line-height: 21px; border-left: 1px solid var(--line-soft); overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dispatch-child-metrics { display: grid; grid-template-columns: repeat(4, minmax(72px, 1fr)); min-width: 0; margin: 0; }
.dispatch-child-metrics > div { display: flex; min-width: 0; justify-content: center; flex-direction: column; padding: 7px 10px; border-left: 1px solid var(--line-soft); }
.dispatch-child-metrics dt { margin: 0 0 2px; color: var(--muted); font-size: 10px; font-weight: 400; }
.dispatch-child-metrics dd { min-width: 0; margin: 0; color: #27384a; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-child-metrics dd span + span { margin-left: 2px; }
.dispatch-batch-targets { display: flex; min-height: 35px; align-items: center; flex-wrap: wrap; gap: 5px; padding: 5px 13px; background: #fff; border-bottom: 1px solid var(--line-soft); }
.dispatch-batch-label { margin-right: 3px; color: var(--muted); font-size: 11px; }
.dispatch-platform-chip { padding: 2px 7px; color: #31445b; font-size: 11px; background: #edf2f7; border: 1px solid #d9e1e8; border-radius: 3px; }
.dispatch-batch-reason { display: flex; align-items: flex-start; gap: 6px; padding: 6px 13px; color: #8c3b20; font-size: 12px; line-height: 1.5; background: #fff7ed; border-bottom: 1px solid #f1dfca; overflow-wrap: anywhere; }
.dispatch-platform-heading { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 13px; background: #f8f9fa; border-bottom: 1px solid var(--line-soft); }
.dispatch-platform-heading strong { color: #344556; font-size: 12px; }
.dispatch-platform-heading span { color: var(--muted); font-size: 11px; }
.dispatch-platform-table-wrap { margin: 0; }
.dispatch-platform-table { min-width: 930px; margin: 0; }
.dispatch-platform-table th:nth-child(1) { width: 21%; }
.dispatch-platform-table th:nth-child(2) { width: 14%; }
.dispatch-platform-table th:nth-child(3) { width: 13%; }
.dispatch-platform-table th:nth-child(4) { width: 15%; }
.dispatch-platform-table th:nth-child(5) { width: 27%; }
.dispatch-platform-table th:nth-child(6) { width: 10%; }
.dispatch-platform-table th { height: 32px; padding-top: 5px; padding-bottom: 5px; font-size: 11px; }
.dispatch-platform-table td { padding-top: 7px; padding-bottom: 7px; vertical-align: middle; }
.dispatch-platform-table td strong, .dispatch-platform-table td small, .dispatch-failure-reason span { display: block; }
.dispatch-platform-table td small { margin-top: 3px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.dispatch-platform-table tr.is-winner { background: #f1f8f4; }
.dispatch-platform-table tr.is-loser { background: #fff; }
.dispatch-disposition, .dispatch-cleanup-badge, .dispatch-health { display: inline-flex; min-height: 22px; align-items: center; padding: 2px 7px; font-size: 11px; line-height: 16px; border: 1px solid #d5dbe1; border-radius: 3px; white-space: nowrap; }
.disposition-winner { color: #11643b; background: #e5f5eb; border-color: #b8dcc6; }
.disposition-loser { color: #6c4a23; background: #f8f2e9; border-color: #e2d4be; }
.disposition-candidate { color: #34516d; background: #edf3f8; border-color: #ccdae6; }
.cleanup-retry_required, .cleanup-manual_required, .health-conflict { color: #9e2633; background: #fff0f1; border-color: #ecc4c9; }
.cleanup-pending, .cleanup-in_progress, .health-cleanup_pending { color: #875209; background: #fff7e8; border-color: #ebd4aa; }
.cleanup-completed, .health-normal { color: #22623f; background: #eef8f2; border-color: #c7dfd0; }
.cleanup-not_required { color: #5f6872; background: #f4f5f6; border-color: #dfe2e5; }
.dispatch-failure-reason { color: #7b363c; overflow-wrap: anywhere; }
.dispatch-monitor-actions { flex-wrap: nowrap; }
.dispatch-monitor-actions .btn { white-space: nowrap; }
.dispatch-monitor-actions .btn.is-loading { cursor: wait; opacity: .65; }
.dispatch-monitor-empty { padding: 42px 12px !important; }

@media (max-width: 1199.98px) {
    .dispatch-monitor-summary > a { flex-basis: 148px; }
    .dispatch-order-header { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .dispatch-batch-overview { justify-content: start; }
    .dispatch-batch-meta { align-items: center; flex-direction: row; gap: 8px; }
    .dispatch-child-summary { grid-template-columns: minmax(220px, .8fr) minmax(240px, 1.2fr); }
    .dispatch-child-metrics { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); }
    .dispatch-child-metrics > div:first-child { border-left: 0; }
}

@media (max-width: 767.98px) {
    .dispatch-monitor-summary { margin-right: -10px; margin-left: -10px; border-right: 0; border-left: 0; border-radius: 0; }
    .dispatch-monitor-summary > a { flex: 0 0 132px; min-height: 58px; padding: 8px 10px; }
    .dispatch-monitor-summary strong { font-size: 19px; }
    .dispatch-batch-list { margin-right: -10px; margin-left: -10px; padding: 8px 0; }
    .dispatch-batch { margin-bottom: 8px; border-right: 0; border-left: 0; border-radius: 0; }
    .dispatch-batch.batch-conflict, .dispatch-batch.batch-failed { border-left-width: 3px; }
    .dispatch-order-header { gap: 8px; padding: 10px; }
    .dispatch-order-id-line { align-items: flex-start; flex-wrap: wrap; }
    .dispatch-order-id-line > a { flex: 1 1 230px; font-size: 13px; }
    .platform-order-main-meta { flex: 1 1 auto; padding-left: 0; border-left: 0; }
    .platform-order-main-meta strong { max-width: 190px; }
    .dispatch-order-facts { overflow-x: auto; }
    .dispatch-batch-overview { grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 6px; }
    .dispatch-batch-number { justify-content: space-between; }
    .dispatch-batch-meta { justify-content: space-between; }
    .dispatch-child-summary { grid-template-columns: minmax(0, 1fr); }
    .dispatch-child-identity { padding: 8px 10px; }
    .dispatch-child-content { max-height: none; padding: 8px 10px; border-top: 1px solid var(--line-soft); border-left: 0; -webkit-line-clamp: 3; }
    .dispatch-child-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dispatch-child-metrics > div { min-height: 52px; border-top: 1px solid var(--line-soft); }
    .dispatch-child-metrics > div:nth-child(odd) { border-left: 0; }
    .dispatch-batch-targets, .dispatch-batch-reason, .dispatch-platform-heading { padding-right: 10px; padding-left: 10px; }
    .dispatch-platform-table-wrap { overflow: visible; }
    .dispatch-platform-table { min-width: 0; }
    .dispatch-platform-table thead { display: none; }
    .dispatch-platform-table tbody, .dispatch-platform-table tr, .dispatch-platform-table td { display: block; width: 100%; }
    .dispatch-platform-table tr { position: relative; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
    .dispatch-platform-table tr:last-child { border-bottom: 0; }
    .dispatch-platform-table td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; min-height: 29px; align-items: start; padding: 4px 0; border: 0; overflow-wrap: anywhere; }
    .dispatch-platform-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; }
    .dispatch-platform-table td strong, .dispatch-platform-table td small { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
    .platform-order-group .dispatch-platform-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .platform-order-group .dispatch-platform-table { display: table; min-width: 1260px; }
    .platform-order-group .dispatch-platform-table thead { display: table-header-group; }
    .platform-order-group .dispatch-platform-table tbody { display: table-row-group; }
    .platform-order-group .dispatch-platform-table tr { display: table-row; position: static; padding: 0; border-bottom: 0; }
    .platform-order-group .dispatch-platform-table th,
    .platform-order-group .dispatch-platform-table td { display: table-cell; width: auto; min-height: 0; padding: 7px 10px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
    .platform-order-group .dispatch-platform-table td::before { display: none; content: none; }
    .platform-order-group .platform-order-show-all-row td { text-align: center; }
    .dispatch-monitor-actions { flex-wrap: wrap; }
    .dispatch-monitor-actions .btn { min-height: 34px; }
    .dispatch-platform-table .empty-state { display: block; }
    .dispatch-platform-table .empty-state::before { display: none; }
}

@media (max-width: 420px) {
    .dispatch-monitor-page .filter-panel .form-group { flex-basis: 100%; max-width: 100%; }
    .dispatch-platform-table td { grid-template-columns: 98px minmax(0, 1fr); gap: 6px; }
    .dispatch-monitor-actions .btn { flex: 1 1 110px; padding-right: 6px; padding-left: 6px; }
}
/* Per-account SMS delivery mode */
.sms-mode-control {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    gap: 8px;
    white-space: nowrap;
}

.sms-mode-label,
.sms-mode-status {
    color: #5f6875;
    font-size: 13px;
}

.sms-mode-segment {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #cfd5dc;
    border-radius: 6px;
    background: #fff;
}

.sms-mode-segment button {
    min-height: 34px;
    padding: 0 11px;
    border: 0;
    border-right: 1px solid #cfd5dc;
    background: #fff;
    color: #44505f;
    font-size: 13px;
    cursor: pointer;
}

.sms-mode-segment button:last-child { border-right: 0; }
.sms-mode-segment button:hover:not(:disabled) { background: #f4f6f8; }
.sms-mode-segment button.is-active {
    background: #237a57;
    color: #fff;
}
.sms-mode-segment button:disabled { cursor: wait; opacity: .72; }
.sms-mode-spinner { width: 14px; height: 14px; }

@media (max-width: 575.98px) {
    .sms-mode-control {
        width: 100%;
        justify-content: space-between;
        white-space: normal;
    }
    .sms-mode-status { display: none; }
    .sms-mode-segment { flex: 1; }
    .sms-mode-segment button { flex: 1; }
}

@media (max-width: 767.98px) {
    .header-actions { gap: 7px; }
    .notification-bell { width: 40px; height: 40px; }
    .notification-drawer {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 75vh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 6px 6px 0 0;
        transform: translateY(calc(100% + 16px));
    }
    .notification-center.is-open .notification-drawer { transform: translateY(0); }
    .notification-drawer-header { min-height: 60px; }
    .notification-drawer-header .icon-button,
    .notification-toolbar .btn { min-width: 44px; min-height: 44px; }
    .notification-toolbar { min-height: 56px; padding: 6px 10px; }
    .notification-item-button { min-height: 92px; padding-top: 13px; padding-bottom: 12px; }
}

@media (max-width: 420px) {
    .header-user .user-name { display: none; }
    .notification-drawer { max-height: 78vh; }
    .notification-toolbar .btn { padding-right: 9px; padding-left: 9px; }
}
.order-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid #d7dce2;
    border-radius: 6px;
    background: #f4f6f8;
}
.order-mode-option {
    min-height: 32px;
    padding: 5px 14px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #5a6573;
    font-size: 13px;
    cursor: pointer;
}
.order-mode-option:hover { color: #202936; background: #e8ecf0; }
.order-mode-option.is-active {
    color: #fff;
    background: #246b58;
    box-shadow: 0 1px 2px rgba(16, 42, 35, .2);
}
.order-mode-switch-compact .order-mode-option { min-height: 28px; padding: 3px 10px; }
.custom-order-grid .span-2 { grid-column: span 2; }
.custom-title-suffix-control .custom-control { margin-top: 8px; }
@media (max-width: 767.98px) {
    .order-entry-sheet-header { flex-wrap: wrap; }
    .order-mode-switch { order: 3; width: 100%; }
    .order-mode-option { flex: 1 1 50%; }
    .custom-order-grid .span-2 { grid-column: span 1; }
    .order-entry-grid > .span-2 { grid-column: span 1; }
}

/* ===== AdminLTE 主题适配 =====
   保持现有布局容器不变，统一组件视觉：卡片圆角阴影、表格、按钮、
   表单密度与 AdminLTE 风格对齐，业务页面无需改动。 */
.panel {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(32, 37, 43, .06);
}
.admin-header {
    box-shadow: 0 1px 3px rgba(32, 37, 43, .06);
    z-index: 1030;
}
.table thead th {
    background: #f6f8fa;
    color: #495057;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}
.btn { border-radius: 5px; }
.btn-sm { border-radius: 4px; }
.form-control, .custom-select {
    border-radius: 5px;
    font-size: 13px;
}
.form-control:focus, .custom-select:focus {
    border-color: #8ab4e8;
    box-shadow: 0 0 0 0.15rem rgba(40, 100, 180, .12);
}
.badge { font-weight: 500; }
.status-badge {
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    line-height: 16px;
}
.modal-content { border-radius: 10px; border: 1px solid #d8dde3; }
.modal-header { border-bottom-color: var(--line); }
.modal-footer { border-top-color: var(--line); background: #fafbfc; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
.nav-tabs .nav-link { border-radius: 5px 5px 0 0; }
.dropdown-menu { border-radius: 8px; border: 1px solid #d8dde3; box-shadow: 0 4px 14px rgba(32, 37, 43, .12); }
.pagination .page-link { border-radius: 4px; margin: 0 2px; }
.pagination .page-item:first-child .page-link { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.pagination .page-item:last-child .page-link { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.notification-drawer {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(32, 37, 43, .16);
}
.profile-dropdown { border-radius: 10px; }
.order-detail-workspace-modal .modal-content { border-radius: 12px; }

/* ===== AdminLTE 主视觉改版 =====
   内容区浅灰底、卡片化面板；侧边栏保持深灰黑经典配色。 */
.admin-sidebar {
    background: var(--sidebar);
    border-right: 1px solid #171b20;
}
.brand {
    background: var(--sidebar-deep);
    border-bottom: 1px solid #343b43;
}
.brand-mark {
    background: var(--brand);
    border-radius: 6px;
}
.brand-copy small { color: #9da6b0; }
.admin-nav { padding-top: 6px; }
.nav-section { color: #89939f; }
.nav-section::after { background: #363d46; }
.nav-item {
    margin: 1px 9px;
    padding: 6px 11px;
    color: #c8ced5;
    border-radius: 6px;
}
.nav-item .layui-icon { color: #9da7b2; }
.nav-item:hover { background: var(--sidebar-hover); }
.nav-item.active {
    background: #34404c;
    box-shadow: inset 3px 0 0 #7d8ea0;
}
.nav-item.active .layui-icon { color: #dce7f5; }
.admin-content {
    background: #eef1f5;
    padding: 16px 20px 18px;
}
.admin-footer { background: #eef1f5; }
.page-heading h1 { color: #1f2d3d; font-weight: 650; }
.panel {
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(32, 37, 43, .06);
}
.panel-header {
    background: #ffffff;
    border-bottom: 1px solid #eef1f5;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.panel-footer {
    background: #fafbfc;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.table thead th {
    background: #f2f4f7;
    border-bottom: 1px solid #e3e8ee;
}
.table-hover tbody tr:hover { background: #f5f8fb; }
.btn-primary {
    background: linear-gradient(180deg, #3a77c4, #2b5ea6);
    border-color: #2b5ea6;
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(180deg, #2f6ab4, #24518f);
    border-color: #24518f;
}
.filter-panel { box-shadow: none; }
.filter-panel .panel-body { background: #ffffff; }

/* ===== 专业克制视觉强化 =====
   低饱和配色、精致卡片与表格，面向长期使用的后台界面。 */
.metric-grid { gap: 10px; }
.metric-item {
    position: relative;
    min-height: 82px;
    padding: 12px 14px 11px;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-top: 2px solid transparent;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(32, 37, 43, .05);
    overflow: hidden;
}
.metric-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #a9bdd4;
    opacity: .55;
}
.metric-item.success::before { background: #6da28a; }
.metric-item.warning::before { background: #c2a25e; }
.metric-item.danger::before { background: #c07b72; }
.metric-item .metric-value {
    color: #22303e;
    font-size: 22px;
    font-weight: 650;
    letter-spacing: .2px;
}
.metric-item .metric-value.money { font-size: 18px; }
.metric-label { color: #7a8794; font-size: 12px; }
.nav-item.active {
    background: #34404c;
    box-shadow: inset 3px 0 0 #7d8ea0;
}
.nav-item.active .layui-icon { color: #dce7f5; }
.table { font-size: 13px; }
.table thead th {
    background: #f4f6f8;
    color: #4a5560;
    font-weight: 600;
    border-bottom: 1px solid #e2e7ec;
    white-space: nowrap;
}
.table td { border-top: 1px solid #edf0f3; }
.table-hover tbody tr:hover { background: #f6f8fa; }
.form-control, .custom-select {
    border-color: #d3d9df;
}
.form-control:focus, .custom-select:focus {
    border-color: #8aa9c8;
    box-shadow: 0 0 0 .14rem rgba(70, 108, 145, .1);
}
.admin-header .header-title {
    color: #22303e;
    font-weight: 650;
}
.btn-primary {
    background: linear-gradient(180deg, #3f6390, #33527a);
    border-color: #33527a;
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(180deg, #36587f, #2a4566);
    border-color: #2a4566;
}
.btn-outline-secondary { color: #5a6672; border-color: #ccd3da; }
.status-badge { border-radius: 5px; padding: 2px 8px; }
.pagination .page-link { color: #3f6390; }
.pagination .page-item.active .page-link {
    background: #3f6390;
    border-color: #3f6390;
}

/* Dashboard-only visual refinement. */
.dashboard-shell {
    --dashboard-blue: #315f9b;
    --dashboard-blue-soft: #eaf1fb;
    --dashboard-ink: #203047;
    --dashboard-muted: #708097;
    --dashboard-line: #e3eaf2;
    --dashboard-canvas: #f4f7fb;
    background: var(--dashboard-canvas);
}
.dashboard-shell .nav-section { padding-top: 14px; }
.dashboard-shell .nav-item { min-height: 38px; margin: 2px 9px; border-radius: 6px; }
.dashboard-shell .admin-content { padding-top: 17px; background: var(--dashboard-canvas); }
.dashboard-shell .header-user .user-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-page { color: var(--dashboard-ink); }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 14px; }
.dashboard-heading h1 { margin: 0; color: #243852; font-size: 22px; line-height: 29px; font-weight: 700; }
.dashboard-heading-kicker { margin-bottom: 2px; color: #7d8ca1; font-size: 11px; font-weight: 650; }
.dashboard-date { margin: 3px 0 0; color: var(--dashboard-muted); font-size: 12px; }
.dashboard-heading-actions { display: flex; align-items: center; gap: 12px; }
.dashboard-live-label { display: inline-flex; align-items: center; gap: 7px; color: #61748e; font-size: 12px; white-space: nowrap; }
.dashboard-live-label i { width: 7px; height: 7px; border-radius: 50%; background: #20a474; box-shadow: 0 0 0 3px rgba(32,164,116,.12); }
.dashboard-heading-actions .btn { min-height: 36px; border-radius: 6px; box-shadow: 0 3px 8px rgba(49,95,155,.16) !important; }
.dashboard-metric-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 13px; }
.dashboard-metric { --metric-accent: #3f70ae; --metric-tint: #edf3fc; min-width: 0; min-height: 132px; padding: 12px 12px 10px; background: #fff; border: 1px solid var(--dashboard-line); border-top: 3px solid var(--metric-accent); border-radius: 8px; box-shadow: 0 3px 10px rgba(31,55,84,.045); }
.dashboard-metric.metric-blue { --metric-accent: #3976c5; --metric-tint: #eaf2fe; }
.dashboard-metric.metric-amber { --metric-accent: #d18b24; --metric-tint: #fff5e5; }
.dashboard-metric.metric-indigo { --metric-accent: #6472bd; --metric-tint: #f0f0fd; }
.dashboard-metric.metric-green { --metric-accent: #23865f; --metric-tint: #e8f6ef; }
.dashboard-metric.metric-red { --metric-accent: #c45151; --metric-tint: #fff0ef; }
.dashboard-metric.metric-cyan { --metric-accent: #218b94; --metric-tint: #e8f7f8; }
.dashboard-metric.metric-violet { --metric-accent: #7865a9; --metric-tint: #f2effa; }
.dashboard-metric-top { display: flex; min-width: 0; align-items: center; gap: 9px; }
.dashboard-metric-icon { display: inline-flex; width: 31px; height: 31px; flex: 0 0 31px; align-items: center; justify-content: center; color: var(--metric-accent); background: var(--metric-tint); border-radius: 8px; }
.dashboard-metric-icon .layui-icon { font-size: 16px; }
.dashboard-metric-label { overflow: hidden; color: #50627a; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-metric-hint { overflow: hidden; margin-top: 1px; color: #8a98aa; font-size: 10px; line-height: 15px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-metric-hint .layui-icon { margin-right: 4px; color: #657b9b; }
.dashboard-metric-value { min-height: 36px; margin: 8px 0 6px; color: #1f324b; font-size: 27px; line-height: 32px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dashboard-metric-value.money { font-size: 22px; }
.dashboard-metric-bottom { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 5px; color: #8391a4; font-size: 10px; }
.dashboard-delta, .dashboard-state-note { min-width: 0; overflow: hidden; color: #72839a; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-delta { color: #337b62; font-weight: 600; }
.dashboard-state-note.warning { color: #b07820; }
.dashboard-state-note.positive { color: #23865f; }
.dashboard-metric-bottom a, .dashboard-text-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 3px; color: var(--dashboard-blue); font-size: 11px; font-weight: 650; white-space: nowrap; }
.dashboard-metric-bottom a:hover, .dashboard-text-link:hover { color: #214b81; }
.dashboard-metric-bottom a .layui-icon, .dashboard-text-link .layui-icon { font-size: 11px; }
.dashboard-overview-grid { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(300px, .92fr); gap: 12px; margin-bottom: 13px; }
.dashboard-panel { min-width: 0; background: #fff; border: 1px solid var(--dashboard-line); border-radius: 8px; box-shadow: 0 3px 10px rgba(31,55,84,.04); }
.dashboard-section-heading { display: flex; min-height: 59px; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 15px; border-bottom: 1px solid #edf1f6; }
.dashboard-section-heading h2 { margin: 0; color: #293d56; font-size: 14px; line-height: 20px; font-weight: 700; }
.dashboard-section-heading p { margin: 2px 0 0; color: #8a98aa; font-size: 11px; line-height: 16px; }
.dashboard-trend-panel .dashboard-section-heading { min-height: 52px; }
.dashboard-chart-legend { display: flex; flex: 0 0 auto; align-items: center; gap: 13px; color: #65778e; font-size: 11px; }
.dashboard-chart-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dashboard-chart-legend i { width: 8px; height: 8px; border-radius: 50%; background: #3976c5; }
.dashboard-chart-legend i.legend-income { background: #1fa28a; }
.dashboard-chart-scroll { position: relative; overflow-x: auto; }
.dashboard-chart { position: relative; min-width: 560px; padding: 4px 12px 0; }
.dashboard-chart-svg { display: block; width: 100%; height: 140px; overflow: visible; }
.dashboard-chart-grid line { stroke: #e9eef5; stroke-width: 1; }
.dashboard-chart-axis text, .dashboard-chart-x-axis text { fill: #92a0b1; font-family: inherit; font-size: 10px; }
.dashboard-chart-x-axis line { stroke: #dfe6ef; stroke-width: 1; }
.dashboard-chart-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dashboard-chart-line.order-line { stroke: #3976c5; }
.dashboard-chart-line.income-line { stroke: #1fa28a; stroke-dasharray: 5 4; }
.dashboard-chart-area { fill: rgba(57,118,197,.08); stroke: none; }
.dashboard-chart-area.income-area { fill: rgba(31,162,138,.06); }
.dashboard-chart-point { stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.dashboard-chart-point.order-point { fill: #3976c5; }
.dashboard-chart-point.income-point { fill: #1fa28a; }
.dashboard-chart-empty { position: absolute; z-index: 2; inset: 4px 12px 21px 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #536780; background: rgba(255,255,255,.94); text-align: center; pointer-events: none; }
.dashboard-chart-empty[hidden] { display: none; }
.dashboard-chart-empty > .layui-icon { color: #8fa3be; font-size: 19px; line-height: 22px; }
.dashboard-chart-empty > strong { color: #425873; font-size: 12px; line-height: 17px; font-weight: 650; }
.dashboard-chart-empty > p { margin: 0; color: #8a98aa; font-size: 10px; line-height: 15px; }
.dashboard-chart[data-empty="true"] .dashboard-chart-grid,
.dashboard-chart[data-empty="true"] .dashboard-chart-axis,
.dashboard-chart[data-empty="true"] .dashboard-chart-x-axis { opacity: .24; }
.dashboard-chart[data-empty="true"] .dashboard-chart-line,
.dashboard-chart[data-empty="true"] .dashboard-chart-area,
.dashboard-chart[data-empty="true"] .dashboard-chart-point { opacity: 0; }
.dashboard-trend-footnote { display: flex; min-height: 32px; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 15px; color: #8a98aa; border-top: 1px solid #edf1f6; font-size: 10px; }
.dashboard-trend-summary { color: #60738d; white-space: nowrap; }
.dashboard-trend-summary strong { color: #2d4564; font-weight: 700; }
.dashboard-reminders { display: flex; flex-direction: column; }
.dashboard-reminder-list { padding: 0 14px; }
.dashboard-reminder-row { display: grid; min-height: 38px; grid-template-columns: 31px minmax(0, 1fr) auto 24px; align-items: center; gap: 9px; border-bottom: 1px solid #edf1f6; }
.dashboard-reminders .dashboard-section-heading { min-height: 50px; }
.dashboard-reminder-row:last-child { border-bottom: 0; }
.reminder-icon { display: inline-flex; width: 29px; height: 29px; align-items: center; justify-content: center; border-radius: 8px; }
.reminder-icon .layui-icon { font-size: 15px; }
.reminder-icon.amber { color: #b77a17; background: #fff4df; }
.reminder-icon.red { color: #bd4c4c; background: #ffefed; }
.reminder-icon.violet { color: #705c9e; background: #f1edfa; }
.reminder-icon.blue { color: #3b70b0; background: #eaf2fc; }
.dashboard-reminder-copy { min-width: 0; display: flex; flex-direction: column; }
.dashboard-reminder-copy strong { overflow: hidden; color: #40546e; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-reminder-copy small { overflow: hidden; margin-top: 2px; color: #93a0b0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-reminder-row > b { color: #354c68; font-size: 16px; font-variant-numeric: tabular-nums; }
.dashboard-reminder-row > b.is-alert { color: #bd4c4c; }
.dashboard-reminder-row > a { display: inline-flex; width: 24px; height: 28px; align-items: center; justify-content: center; color: #8090a4; border-radius: 5px; }
.dashboard-reminder-row > a:hover { color: var(--dashboard-blue); background: #edf3fb; }
.dashboard-reminder-footer { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 14px; color: #8291a5; background: #f8fafc; border-top: 1px solid #edf1f6; font-size: 10px; }
.dashboard-reminder-footer-label { flex: 0 0 auto; }
.dashboard-reminder-footer a { min-width: 0; overflow: hidden; color: #526d8d; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-orders-panel { overflow: hidden; }
.dashboard-orders-heading { min-height: 57px; }
.dashboard-table-wrap { width: 100%; }
.dashboard-orders-table { min-width: 1060px; margin: 0; table-layout: fixed; }
.dashboard-orders-table thead th { height: 38px; padding: 8px 10px; color: #7b8ba0; background: #f7f9fc; border-top: 0; border-bottom: 1px solid var(--dashboard-line); font-size: 10px; font-weight: 650; white-space: nowrap; }
.dashboard-orders-table td { height: 58px; padding: 8px 10px; color: #52647b; vertical-align: middle; font-size: 11px; }
.dashboard-orders-table tbody tr { transition: background-color .12s ease; }
.dashboard-orders-table tbody tr:hover { background: #f5f8fc; }
.dashboard-orders-table th:nth-child(1), .dashboard-orders-table td:nth-child(1) { width: 190px; }
.dashboard-orders-table th:nth-child(2), .dashboard-orders-table td:nth-child(2) { width: 64px; }
.dashboard-orders-table th:nth-child(3), .dashboard-orders-table td:nth-child(3) { width: 156px; }
.dashboard-orders-table th:nth-child(4), .dashboard-orders-table td:nth-child(4) { width: 210px; }
.dashboard-orders-table th:nth-child(5), .dashboard-orders-table td:nth-child(5),
.dashboard-orders-table th:nth-child(6), .dashboard-orders-table td:nth-child(6) { width: 96px; }
.dashboard-orders-table th:nth-child(7), .dashboard-orders-table td:nth-child(7) { width: 104px; }
.dashboard-orders-table th:nth-child(8), .dashboard-orders-table td:nth-child(8) { width: 116px; }
.dashboard-orders-table th:nth-child(9), .dashboard-orders-table td:nth-child(9) { width: 130px; }
.dashboard-orders-table th:nth-child(10), .dashboard-orders-table td:nth-child(10) { width: 54px; text-align: center; }
.dashboard-order-number { color: #536b8b; font-size: 10px; }
.dashboard-source { display: inline-block; padding: 3px 6px; color: #60738d; background: #f1f4f8; border-radius: 5px; white-space: nowrap; }
.dashboard-game-cell { display: flex; min-width: 0; align-items: center; gap: 8px; }
.dashboard-game-mark { display: inline-flex; width: 30px; height: 30px; flex: 0 0 30px; align-items: center; justify-content: center; color: #fff; background: #4a6f9c; border-radius: 7px; font-size: 14px; font-weight: 700; }
.dashboard-game-mark.game-hok { background: #397493; }
.dashboard-game-mark.game-lol { background: #5c628c; }
.dashboard-game-mark.game-pubg { background: #587660; }
.dashboard-game-mark.game-delta { background: #667384; }
.dashboard-game-mark.game-valorant { background: #9a5a60; }
.dashboard-game-mark.game-other { background: #596f89; }
.dashboard-game-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.dashboard-game-copy strong { overflow: hidden; color: #314763; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-game-copy small { overflow: hidden; color: #8a98aa; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-boost-content { display: -webkit-box; overflow: hidden; color: #425873; font-size: 11px; line-height: 17px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dashboard-orders-table .status-published { color: #98640c; background: #fff6e5; border-color: #eed49e; }
.dashboard-money-cell { color: #334c6b !important; font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.dashboard-money-cell.secondary { color: #657991 !important; font-weight: 500; }
.dashboard-deadline, .dashboard-owner { color: #77889c !important; white-space: nowrap; }
.dashboard-order-open { display: inline-flex; width: 29px; height: 29px; align-items: center; justify-content: center; color: #55749a; background: #f3f7fc; border: 1px solid #e3eaf3; border-radius: 6px; }
.dashboard-order-open:hover { color: #234f88; background: #e9f1fb; border-color: #cad9ed; }
.dashboard-empty-state { height: 90px !important; color: #8a98aa !important; text-align: center; }
.dashboard-empty-state .layui-icon { margin-right: 7px; color: #a5b2c1; }

@media (max-width: 1440px) {
    .dashboard-metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .dashboard-overview-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .dashboard-shell .admin-content { padding-top: 12px; }
    .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
    .dashboard-heading-actions { width: 100%; justify-content: space-between; }
    .dashboard-heading h1 { font-size: 20px; }
    .dashboard-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dashboard-metric { min-height: 124px; padding: 10px; }
    .dashboard-metric-value { font-size: 25px; }
    .dashboard-metric-value.money { font-size: 19px; }
    .dashboard-section-heading { padding-right: 11px; padding-left: 11px; }
    .dashboard-chart { min-width: 560px; }
    .dashboard-chart-svg { height: 102px; }
    .dashboard-shell .header-user .user-name { display: inline-block; max-width: 92px; }
    .dashboard-trend-footnote { align-items: flex-start; flex-direction: column; gap: 3px; padding-right: 11px; padding-left: 11px; }
    .dashboard-reminder-list { padding-right: 11px; padding-left: 11px; }
    .dashboard-reminder-footer { padding-right: 11px; padding-left: 11px; }
    .dashboard-orders-table { min-width: 1060px; }
}
@media (prefers-reduced-motion: reduce) {
    .admin-sidebar .nav-item, .dashboard-orders-table tbody tr { transition: none; }
}

.order-list-page {
    --order-list-ink: #24364b;
    --order-list-muted: #78889b;
    --order-list-line: #e2e9f1;
    --order-list-blue: #376da8;
}
.order-list-overview { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin: 0 0 11px; }
.order-list-overview-card { --overview-accent: #3976c5; --overview-tint: #edf4fd; display: flex; min-width: 0; min-height: 72px; align-items: center; gap: 10px; padding: 10px 11px; color: var(--order-list-ink); background: #fff; border: 1px solid var(--order-list-line); border-left: 3px solid var(--overview-accent); border-radius: 7px; box-shadow: 0 2px 8px rgba(31,55,84,.035); text-align: left; cursor: pointer; }
.order-list-overview-card:hover, .order-list-overview-card:focus-visible { background: var(--overview-tint); border-color: color-mix(in srgb, var(--overview-accent) 35%, white); outline: 0; }
.order-list-overview-card.is-active { background: var(--overview-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--overview-accent) 28%, white); }
.order-list-overview-card.overview-waiting { --overview-accent: #c18420; --overview-tint: #fff8eb; }
.order-list-overview-card.overview-progress { --overview-accent: #3976c5; --overview-tint: #edf4fd; }
.order-list-overview-card.overview-confirm { --overview-accent: #24888d; --overview-tint: #eaf7f7; }
.order-list-overview-card.overview-completed { --overview-accent: #23835e; --overview-tint: #edf8f1; }
.order-list-overview-card.overview-exception { --overview-accent: #bd5050; --overview-tint: #fff1f0; }
.order-list-overview-icon { display: inline-flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; color: var(--overview-accent); background: var(--overview-tint); border-radius: 7px; }
.order-list-overview-icon .layui-icon { font-size: 16px; }
.order-list-overview-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.order-list-overview-copy > span { overflow: hidden; color: #66788f; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.order-list-overview-copy > strong { color: #263b54; font-size: 20px; line-height: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-list-filter-panel .panel-body { padding: 10px 12px 8px; }
.order-list-filter-row { display: grid; gap: 10px; }
.order-list-filter-row-primary { grid-template-columns: minmax(260px, 1.65fr) minmax(170px, .8fr) minmax(190px, 1fr); margin-bottom: 7px; }
.order-list-filter-row-secondary { grid-template-columns: minmax(190px, 1fr) minmax(175px, .9fr) minmax(180px, 1fr) auto; align-items: end; }
.order-list-filter-field { min-width: 0; margin: 0; }
.order-list-filter-field > label { display: block; margin: 0 0 4px; color: #5c6d81; font-size: 11px; font-weight: 600; }
.order-list-filter-field .form-control, .order-list-filter-field .custom-select { height: 35px; min-height: 35px; border-color: #d7e0ea; border-radius: 5px; font-size: 12px; }
.order-list-filter-keyword .form-control { min-width: 0; }
.order-list-filter-actions { display: flex; align-items: end; gap: 7px; white-space: nowrap; }
.order-list-filter-actions .btn { height: 35px; min-height: 35px; margin: 0 !important; padding: 6px 12px; border-radius: 5px; font-size: 12px; }
.order-list-table { color: #40546c; }
.order-list-table th { color: #718198; background: #f7f9fc; border-bottom-color: #dfe6ef; font-size: 11px; font-weight: 650; }
.order-list-table td { height: 58px; padding: 8px 10px; font-size: 12px; vertical-align: middle; }
.order-list-table th:nth-child(1), .order-list-table td:nth-child(1) { width: 190px; white-space: nowrap; }
.order-list-table th:nth-child(3), .order-list-table td:nth-child(3) { width: 175px; }
.order-list-table th:nth-child(4), .order-list-table td:nth-child(4) { width: 255px; }
.order-list-table th:nth-child(5), .order-list-table td:nth-child(5),
.order-list-table th:nth-child(6), .order-list-table td:nth-child(6) { width: 92px; white-space: nowrap; }
.order-list-page .order-list-table th:last-child, .order-list-page .order-list-table td:last-child { width: 240px; min-width: 240px; max-width: 240px; }
.order-list-number-cell, .order-list-game-cell, .order-list-boost-cell { text-align: left !important; }
.order-list-number { color: #435d79; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.order-list-game-cell { display: flex; min-width: 0; align-items: center; gap: 8px; }
.order-list-game-icon { display: inline-flex; width: 32px; height: 32px; flex: 0 0 32px; align-items: center; justify-content: center; color: #fff; background: #526f91; border-radius: 7px; font-size: 14px; font-weight: 700; }
.order-list-game-icon.game-hok { background: #397493; }
.order-list-game-icon.game-lol { background: #5c628c; }
.order-list-game-icon.game-pubg { background: #587660; }
.order-list-game-icon.game-delta { background: #667384; }
.order-list-game-icon.game-valorant { background: #9a5a60; }
.order-list-game-icon.game-other { background: #596f89; }
.order-list-game-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.order-list-game-copy > strong { overflow: hidden; color: #304660; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.order-list-server-tag { display: block; width: fit-content; max-width: 100%; overflow: hidden; padding: 1px 5px; color: #697e96; background: #f1f5f9; border-radius: 4px; font-size: 10px; line-height: 15px; text-overflow: ellipsis; white-space: nowrap; }
.order-list-boost-text { display: -webkit-box; overflow: hidden; color: #3d526b; font-size: 12px; line-height: 18px; font-weight: 650; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.order-list-money-cell { color: #2c4562 !important; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-list-money-secondary { color: #5e7189 !important; }
.order-list-page .status-published { color: #96630d; background: #fff6e5; border-color: #eed49e; }
.order-list-page .status-in_progress { color: #175ea8; background: #edf6ff; border-color: #bfddf7; }
.order-list-page .status-completed { color: #1e6d35; background: #edf8f0; border-color: #b9dfc3; }
.order-list-page .status-exception { color: #a72c2c; background: #fff0f0; border-color: #efc1c1; }
.order-list-end-row td { height: 34px !important; padding: 7px 10px !important; color: #8997a8 !important; background: #fbfcfd; border-top: 1px solid #edf1f5; font-size: 10px; text-align: center !important; }
.order-list-end-row td > span + span { margin-left: 10px; color: #6f8094; }
.order-list-actions .order-list-action-button { width: 30px; min-width: 30px; height: 30px; min-height: 30px; flex-basis: 30px; border-radius: 5px; }
.order-list-actions .order-list-view-link { width: 54px; min-width: 54px; flex-basis: 54px; gap: 4px; padding: 3px 5px; color: #315f96; background: #f5f8fc; border-color: #d9e4f0; text-decoration: none; }
.order-list-actions .js-order-publish { width: 66px; min-width: 66px; flex-basis: 66px; gap: 4px; padding: 3px 5px; }
.order-list-actions .order-list-view-link > span, .order-list-actions .js-order-publish > span { position: static; width: auto; height: auto; overflow: visible; margin: 0; padding: 0; border: 0; clip: auto; clip-path: none; font-size: 10px; line-height: 1; }
.order-list-action-button .layui-icon { font-size: 14px; }
.order-list-table tbody tr { transition: background-color .12s ease; }
.order-list-table tbody tr:hover { background: #f5f8fc; }
.order-list-empty { padding: 32px 18px !important; color: #8795a7 !important; background: #fbfcfd; text-align: center !important; }

@media (max-width: 1199.98px) {
    .order-list-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .order-list-filter-row-primary { grid-template-columns: minmax(0, 1.4fr) minmax(160px, 1fr); }
    .order-list-filter-keyword { grid-column: 1 / -1; }
    .order-list-filter-row-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .order-list-filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .order-list-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .order-list-overview-card { min-height: 64px; padding: 8px; gap: 8px; }
    .order-list-overview-icon { width: 30px; height: 30px; flex-basis: 30px; }
    .order-list-overview-copy > strong { font-size: 18px; }
    .order-list-filter-panel .panel-body { padding: 9px; }
    .order-list-filter-row-primary, .order-list-filter-row-secondary { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .order-list-filter-keyword, .order-list-filter-actions { grid-column: auto; }
    .order-list-filter-row-primary { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .order-list-overview-card, .order-list-table tbody tr { transition: none; }
}

.order-list-settings-trigger { min-height: 36px; padding: 6px 10px; border-radius: 6px; font-size: 12px; }
.order-list-settings-menu { width: min(390px, calc(100vw - 20px)); padding: 12px; border-color: #dbe3ec; border-radius: 7px; box-shadow: 0 8px 24px rgba(31,55,84,.14); }
.order-list-settings-caption { margin: 0 0 7px; color: #344a64; font-size: 12px; font-weight: 700; }
.order-list-settings-menu .sms-mode-control { display: flex; min-height: 36px; flex-wrap: wrap; gap: 7px; white-space: normal; }
.order-list-settings-menu .sms-mode-segment { flex: 1 1 210px; }
.order-list-settings-menu .sms-mode-segment button { min-height: 32px; padding: 0 8px; font-size: 11px; }
.order-list-settings-menu .sms-mode-status { font-size: 11px; }
.order-list-settings-menu .js-sms-test { width: 100%; margin-top: 9px; border-radius: 5px; font-size: 11px; }
.order-list-actions .order-list-primary-contact { width: 62px; min-width: 62px; flex-basis: 62px; gap: 4px; padding: 3px 5px; }
.order-list-actions .order-list-primary-contact > span { position: static; width: auto; height: auto; overflow: visible; margin: 0; padding: 0; border: 0; clip: auto; clip-path: none; font-size: 10px; line-height: 1; }
.order-list-more { display: inline-flex; flex: 0 0 auto; }
.order-list-actions .order-list-more-toggle { width: 30px; min-width: 30px; height: 30px; min-height: 30px; flex-basis: 30px; padding: 3px; color: #586d85; background: #f5f7fa; border-color: #dfe5ec; border-radius: 5px; }
.order-list-more-toggle.dropdown-toggle::after { display: none; }
.order-list-more-toggle .layui-icon { margin: 0; font-size: 16px; }
.order-list-more-menu { position: fixed; z-index: 1080; display: block; min-width: 220px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: auto; padding: 5px; color: #3f536c; background: #fff; border: 1px solid #dbe3ec; border-radius: 6px; box-shadow: 0 8px 24px rgba(31,55,84,.18); white-space: normal; box-sizing: border-box; }
.order-list-more-menu[hidden] { display: none !important; }
.order-list-more-item { display: flex; width: 100%; min-height: 34px; align-items: center; gap: 9px; padding: 7px 9px; color: #3f536c; background: transparent; border: 0; border-radius: 4px; font-size: 12px; line-height: 18px; text-align: left; text-decoration: none !important; cursor: pointer; }
.order-list-more-item > .layui-icon { width: 16px; flex: 0 0 16px; color: #71859d; font-size: 14px; text-align: center; }
.order-list-more-item:hover, .order-list-more-item:focus { color: #294f79; background: #f1f6fb; outline: none; }
.order-list-more-item.is-disabled, .order-list-more-item:disabled { color: #98a3b1; cursor: not-allowed; }
.order-list-more-item.is-disabled > .layui-icon, .order-list-more-item:disabled > .layui-icon { color: #aab4c0; }
.order-list-more-divider { display: block; height: 1px; margin: 4px 7px; background: #e9eef3; }
.order-list-actions .order-list-more-operation { display: block; width: 100%; min-width: 0; margin: 0; }
.order-list-more-operation .order-list-more-item:disabled { pointer-events: none; }
@media (max-width: 575.98px) {
    .order-list-settings-menu { width: calc(100vw - 20px); }
    .order-list-settings-menu .sms-mode-control { align-items: flex-start; }
    .order-list-settings-menu .sms-mode-label { flex: 0 0 100%; }
}
@media (max-width: 767.98px) {
    .order-list-page .order-list-top-scroll { display: none !important; }
    .order-list-page .order-list-table-scroll { scrollbar-width: thin; }
    .order-list-page .order-list-table-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
    .order-list-page .order-list-table-scroll::-webkit-scrollbar-thumb { background: #9aa9b8; border: 2px solid #f2f5f8; border-radius: 6px; }
    .order-list-page .order-list-empty, .order-list-page .order-list-end-row td { text-align: left !important; }
}
