html,
body {
    background: #f4f6f8;
    color: #222831;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

body.ops-loading-active {
    overflow: hidden;
}

.ops-boot-loading {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(244, 246, 248, 0.94);
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ops-boot-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ops-boot-loading-card {
    min-width: 280px;
    max-width: 360px;
    padding: 28px 26px;
    border: 1px solid #d8dee4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18, 35, 46, 0.08);
    text-align: center;
    box-sizing: border-box;
}

.ops-boot-loading-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    border: 3px solid #d8ece7;
    border-top-color: #1f6f5c;
    border-radius: 50%;
    animation: ops-boot-spin 0.8s linear infinite;
}

.ops-boot-loading-title {
    margin-bottom: 8px;
    color: #222831;
    font-size: 18px;
    font-weight: 700;
}

.ops-boot-loading-text {
    color: #627078;
    line-height: 1.8;
}

@keyframes ops-boot-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ops-header {
    background: #1f6f5c;
}

.ops-logo {
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    background: #18594a;
}

.ops-side-toggle {
    position: absolute;
    top: 14px;
    left: 210px;
    z-index: 12;
    width: 34px;
    height: 32px;
    padding: 0;
    line-height: 32px;
    text-align: center;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
}

.ops-side-toggle:hover,
.ops-side-toggle:focus {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.12);
}

.ops-side-toggle .layui-icon {
    color: #fff;
    font-size: 18px;
}

.ops-header-tabs {
    position: absolute;
    top: 0;
    left: 258px;
    right: 260px;
    margin: 0;
    overflow: hidden;
    background: transparent;
}

.ops-header-tabs .layui-tab-title {
    height: 60px;
    border-bottom: 0;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.ops-header-tabs .layui-tab-title li {
    color: #dce8e4;
    line-height: 60px;
}

.ops-header-tabs .layui-tab-title .layui-this {
    color: #fff;
}

.ops-header-tabs .layui-tab-title .layui-this:after {
    height: 60px;
    border-width: 0 0 2px 0;
    border-bottom-color: #fff;
}

.ops-header-tabs .layui-tab-close {
    color: inherit;
}

.ops-header-tabs .layui-tab-content {
    display: none;
}

.ops-user-nav {
    background: transparent;
}

.ops-side {
    overflow: visible;
    z-index: 1000;
}

.ops-side-backdrop {
    display: none;
}

.ops-side .layui-side-scroll,
.ops-side .layui-nav-tree,
.ops-side .layui-nav-tree .layui-nav-child {
    overflow: visible;
}

.ops-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ops-nav-icon {
    flex: 0 0 18px;
    width: 18px;
    font-size: 16px;
    text-align: center;
    color: inherit;
}

.ops-nav-label {
    min-width: 0;
}

.ops-nav-with-flyout > .ops-nav-group-list {
    padding: 8px 0 12px;
}

.ops-nav-section {
    position: relative;
}

/* Keep second-level items in the sidebar and show third-level items in a right flyout on hover. */
.ops-nav-section-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 24px 0 34px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.ops-nav-section-trigger .ops-nav-link {
    flex: 1;
}

.ops-nav-section-trigger::after {
    content: "\203A";
    color: rgba(255, 255, 255, 0.42);
    font-size: 16px;
}

.ops-nav-section:hover > .ops-nav-section-trigger,
.ops-nav-section:focus-within > .ops-nav-section-trigger,
.ops-nav-section.is-hover-open > .ops-nav-section-trigger,
.ops-nav-section.layui-this > .ops-nav-section-trigger {
    color: #fff;
    background: rgba(0, 150, 136, 0.18);
}

.ops-nav-section:hover > .ops-nav-section-trigger::after,
.ops-nav-section:focus-within > .ops-nav-section-trigger::after,
.ops-nav-section.is-hover-open > .ops-nav-section-trigger::after,
.ops-nav-section.layui-this > .ops-nav-section-trigger::after {
    color: rgba(255, 255, 255, 0.88);
}

.ops-nav-flyout {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

.ops-nav-hover-layer {
    position: fixed;
    display: none;
    min-width: 180px;
    padding: 8px 0;
    background: #232a31;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
    z-index: 1200;
}

.ops-nav-hover-layer.is-visible {
    display: block;
}

.ops-nav-hover-layer a {
    display: block;
    min-height: 48px;
    padding: 0 22px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 48px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.ops-nav-hover-layer a:hover,
.ops-nav-hover-layer a:focus,
.ops-nav-hover-layer a.layui-this {
    background: #20b2aa;
    color: #fff;
}

.ops-body {
    padding: 18px;
    bottom: 44px;
    overflow: auto;
}

.ops-layout.is-side-collapsed .ops-side {
    width: 0;
    overflow: hidden;
}

.ops-layout.is-side-collapsed .ops-body,
.ops-layout.is-side-collapsed .ops-footer {
    left: 0;
}

.ops-layout.is-side-collapsed .ops-side-toggle .layui-icon:before {
    content: "\e66b";
}

.ops-footer {
    height: 44px;
    line-height: 44px;
}

.ops-page {
    display: none;
}

.ops-page.is-active {
    display: block;
}

.ops-page-title {
    margin-bottom: 16px;
}

.ops-page-title h1 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.ops-page-title p {
    color: #627078;
}

.ops-filter {
    margin-bottom: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.ops-panel {
    margin-bottom: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 6px;
}

.ops-filter .layui-inline {
    margin-bottom: 10px;
}

.ops-range-inline {
    min-width: 240px;
}

.ops-range-input {
    cursor: pointer;
    background: #fff;
}

.ops-range-panel {
    padding: 14px;
}

.ops-range-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ops-range-presets .layui-btn {
    margin: 0;
}

.ops-range-presets .layui-btn.is-active {
    background: #1e9fff;
    border-color: #1e9fff;
    color: #fff;
}

.ops-range-calendar {
    min-height: 320px;
}

.ops-actions .layui-btn {
    margin-bottom: 6px;
}

.ops-panel-title {
    margin-bottom: 14px;
    font-size: 17px;
    font-weight: 700;
}

.ops-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ops-panel-head .ops-panel-title {
    margin-bottom: 0;
}

.ops-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ops-help {
    margin-top: 6px;
    color: #7a858c;
    font-size: 12px;
    line-height: 1.6;
}

.ops-file-input {
    padding: 8px;
    width: 100%;
    border: 1px solid #d8dee4;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.ops-inline-file {
    width: 220px;
    height: 38px;
}

.ops-field-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #d8dee4;
    border-radius: 6px;
    background: #fbfcfd;
}

.ops-field-item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #e3e8ee;
    border-radius: 6px;
    background: #fff;
}

.ops-field-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 6px;
    border-radius: 4px;
    background: #f0f3f6;
    color: #8a949b;
    font-size: 12px;
    font-weight: 700;
}

.ops-field-item.is-selected .ops-field-order {
    background: #e5f5f1;
    color: #1f6f5c;
}

.ops-field-actions {
    margin-left: 6px;
    white-space: nowrap;
}

.ops-field-actions .layui-btn {
    margin-left: 4px;
}

.ops-canvas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.ops-dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.ops-dashboard-title {
    color: #20262d;
    font-size: 20px;
    font-weight: 700;
}

.ops-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ops-dashboard-metric {
    min-height: 96px;
    padding: 14px;
    border: 1px solid #d8dee4;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.ops-dashboard-metric-label {
    color: #6f7b83;
    font-size: 13px;
}

.ops-dashboard-metric-value {
    margin-top: 8px;
    color: #20262d;
    font-size: 24px;
    font-weight: 700;
}

.ops-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.ops-dashboard-list {
    display: grid;
    gap: 10px;
}

.ops-dashboard-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e2e7ec;
    border-radius: 6px;
    background: #fbfcfd;
}

.ops-dashboard-list-title {
    color: #20262d;
    font-weight: 600;
}

.ops-dashboard-list-desc {
    margin-top: 4px;
    color: #7a858c;
    font-size: 12px;
    line-height: 1.5;
}

.ops-dashboard-list-value {
    color: #1f6f5c;
    font-weight: 700;
    white-space: nowrap;
}

.ops-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
    min-width: 0;
}

.ops-static-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d8dee4;
    border-radius: 6px;
    background: #fbfcfd;
    box-sizing: border-box;
    overflow: hidden;
}

.ops-static-field-label {
    color: #7a858c;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.5;
}

.ops-static-field-value {
    color: #222831;
    font-weight: 600;
    flex: 0 0 auto;
    max-width: 100%;
    white-space: nowrap;
}

.ops-analysis-report-help {
    margin-top: 0;
}

.ops-analysis-tabs {
    margin-top: 0;
}

.ops-analysis-tabs > .layui-tab-title {
    background: #fff;
}

.ops-analysis-tabs > .layui-tab-content {
    padding: 16px 0 0;
}

.ops-analysis-detail-filter {
    margin-bottom: 12px;
    padding: 0;
    border: 0;
    background: transparent;
}

.ops-store-reject-analysis-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ops-store-reject-analysis-filter .layui-inline {
    display: flex;
    align-items: center;
    margin-right: 0;
    margin-bottom: 0;
    vertical-align: top;
}

.ops-store-reject-analysis-filter .layui-form-select,
.ops-store-reject-analysis-filter .layui-input,
.ops-store-reject-analysis-filter .layui-btn {
    height: 46px;
    box-sizing: border-box;
}

.ops-store-reject-analysis-filter .layui-form-select {
    min-width: 210px;
}

.ops-store-reject-analysis-filter .layui-form-select .layui-select-title,
.ops-store-reject-analysis-filter .layui-form-select .layui-select-title .layui-input {
    height: 46px;
}

.ops-store-reject-analysis-filter .layui-form-select .layui-input,
.ops-store-reject-analysis-filter .layui-input {
    min-width: 210px;
    line-height: 44px;
    padding-right: 30px;
}

.ops-store-reject-analysis-filter .layui-form-select dl {
    top: 50px;
}

.ops-store-reject-analysis-filter .ops-actions {
    display: flex;
    align-items: center;
}

.ops-store-reject-analysis-filter .ops-actions .layui-btn {
    margin-bottom: 0;
    line-height: 44px;
    padding: 0 22px;
    align-self: center;
}

.ops-store-reject-analysis-filter .layui-form-select .layui-edge {
    margin-top: -2px;
}

.ops-analysis-detail-table {
    width: 100%;
    margin: 0;
}

.ops-analysis-detail-table th,
.ops-analysis-detail-table td {
    vertical-align: middle;
}

.ops-analysis-dimension-cell {
    font-weight: 500;
    background: #fff;
}

.ops-followup-multiline {
    white-space: normal;
    line-height: 1.8;
}

.ops-followup-multiline > div + div {
    margin-top: 4px;
}

.ops-empty-cell {
    text-align: center;
    color: #7a858c;
}

.ops-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.ops-chart-panel {
    min-height: 360px;
    padding: 14px;
    background: #fff;
    border: 1px solid #d8dee4;
    border-radius: 6px;
    box-sizing: border-box;
}

.ops-chart-panel .ops-chart {
    height: 320px;
    margin-top: 8px;
}

.ops-report {
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d8dee4;
    border-radius: 6px;
    box-sizing: border-box;
}

.ops-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e3e8ee;
    background: #f9fbfc;
}

.ops-report-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ops-report-title {
    font-weight: 700;
    min-width: 0;
}

.ops-report-index-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    background: #e5f5f1;
    color: #1f6f5c;
    font-size: 12px;
    font-weight: 700;
    box-sizing: border-box;
}

.ops-report-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ops-report-body {
    padding: 12px;
    overflow: auto;
}

.ops-report-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.ops-report-table th,
.ops-report-table td {
    padding: 7px 9px;
    border: 1px solid #222;
    text-align: center;
}

.ops-report-table th {
    background: #fff200;
    color: #111;
    font-weight: 700;
}

.ops-report-table tfoot td {
    font-weight: 700;
    background: #f7f7f7;
}

.ops-import-log {
    margin-top: 16px;
    border: 1px solid #dce4ea;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.ops-import-log-head {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    background: #f7fafc;
    border-bottom: 1px solid #dce4ea;
}

.ops-import-log .ops-help {
    padding: 10px 16px 0;
}

.ops-import-log-body {
    max-height: 360px;
    overflow: auto;
    padding: 12px 16px 16px;
}

.ops-import-log-table {
    table-layout: fixed;
    white-space: normal;
}

.ops-import-log-table th,
.ops-import-log-table td {
    text-align: left;
    vertical-align: top;
    border-color: #dce4ea;
    word-break: break-all;
}

.ops-import-log-table th {
    background: #eef5ff;
    color: #1f2937;
}

.ops-report-merged-cell {
    vertical-align: middle;
    background: #fbfcfd;
}

.ops-chart {
    width: 100%;
    height: 420px;
    margin-top: 12px;
}

.ops-empty {
    padding: 28px;
    color: #7a858c;
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd5dd;
    border-radius: 6px;
}

.ops-modal-form {
    padding: 18px 22px 0 0;
}

.ops-compact-layer .layui-layer-content {
    padding-right: 0;
    box-sizing: border-box;
    background: #fff;
}

.ops-autocomplete {
    position: relative;
}

.ops-autocomplete-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    display: none;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #d8dee4;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    z-index: 30;
}

.ops-autocomplete-panel.is-visible {
    display: block;
}

.ops-autocomplete-option {
    padding: 9px 12px;
    color: #222831;
    line-height: 1.6;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.ops-autocomplete-option + .ops-autocomplete-option {
    border-top: 1px solid #edf1f4;
}

.ops-autocomplete-option:hover,
.ops-autocomplete-option.is-active {
    background: #e8f6f2;
    color: #1f6f5c;
}

.ops-attachment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.ops-attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e6edf2;
    border-radius: 8px;
    background: #fafcfd;
}

.ops-attachment-meta {
    min-width: 0;
    flex: 1;
}

.ops-attachment-name {
    display: block;
    color: #1f2937;
    font-weight: 600;
    word-break: break-all;
}

.ops-attachment-link {
    display: inline-block;
    margin-top: 4px;
    color: #1f6f5c;
    word-break: break-all;
}

.ops-attachment-empty {
    padding: 12px 14px;
    border: 1px dashed #d6dde4;
    border-radius: 8px;
    color: #6b7280;
    background: #fbfcfd;
}

.layui-textarea.ops-textarea-compact {
    min-height: 38px;
    height: 38px;
    resize: vertical;
}

.layui-textarea.ops-odr-event-textarea {
    min-height: 120px;
    line-height: 1.7;
}

.layui-textarea.ops-odr-section-textarea {
    min-height: 96px;
    line-height: 1.7;
}

.layui-textarea.ops-odr-inline-textarea {
    min-height: 72px;
    line-height: 1.7;
}

.layui-textarea.ops-odr-consumption-textarea {
    min-height: 72px;
    line-height: 1.7;
}

.ops-odr-card {
    padding: 0 16px 10px 0;
    box-sizing: border-box;
    border-bottom: 1px solid #eef2f6;
}

.ops-odr-card:last-child {
    border-bottom: 0;
}

.ops-odr-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px 22px;
    padding-top: 4px;
}

.ops-odr-card-title {
    margin: 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.ops-odr-card-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.ops-odr-card-head-actions .layui-btn {
    height: 32px;
    line-height: 32px;
    padding: 0 14px;
    border-radius: 6px;
}

.ops-odr-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
}

.ops-odr-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;
}

.ops-odr-grid-amount-row {
    align-items: start;
}

.ops-odr-grid-2 > .layui-form-item {
    min-width: 0;
}

.ops-odr-grid-3 > .layui-form-item {
    min-width: 0;
}

.ops-odr-grid-textarea {
    align-items: start;
}

.ops-odr-grid-2.ops-odr-grid-textarea > .layui-form-item,
.ops-odr-grid-3.ops-odr-grid-textarea > .layui-form-item {
    margin-bottom: 12px;
}

.ops-odr-card .layui-form-item {
    margin-bottom: 16px;
}

.ops-odr-card .layui-form-label {
    width: 110px;
    color: #475467;
    font-weight: 600;
}

.ops-odr-card .layui-input-block {
    margin-left: 140px;
}

.ops-odr-card .layui-input,
.ops-odr-card .layui-textarea,
.ops-odr-card .layui-select-title input {
    border-radius: 8px;
    border-color: #d7dee8;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ops-odr-card .layui-input:focus,
.ops-odr-card .layui-textarea:focus,
.ops-odr-card .layui-select-title input:focus {
    border-color: #20b2aa !important;
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.08);
}

.ops-odr-output-textarea {
    min-height: 140px;
    background: #f7faf9;
}

.ops-odr-layer .layui-layer-content {
    padding-right: 12px;
    box-sizing: border-box;
}

.ops-odr-reference-list {
    margin: -6px 22px 16px 140px;
}

.ops-odr-reference-item {
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #e4e9f0;
    border-radius: 6px;
    background: #fbfcfd;
}

.ops-odr-reference-meta {
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
}

.ops-odr-reference-text {
    margin-bottom: 8px;
    color: #1f2937;
    line-height: 1.7;
    white-space: pre-wrap;
}

.ops-odr-reference-empty {
    padding: 8px 0 0;
    color: #9aa4b2;
}

.ops-odr-import-unmatched {
    margin: 12px 0 0;
    padding: 12px;
    max-height: 240px;
    overflow: auto;
    border: 1px solid #e4e9f0;
    border-radius: 6px;
    background: #fbfcfd;
    color: #334155;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.ops-odr-inline-action {
    margin-top: 8px;
}

.ops-odr-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px 140px;
}

.ops-odr-default-prompt-textarea {
    min-height: 360px;
    line-height: 1.7;
}

.ops-issue-tag-modal {
    padding: 22px 24px 0;
}

.ops-issue-tag-hero {
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid #dce7ef;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfefe 0%, #f6fbfb 100%);
}

.ops-issue-tag-hero-title {
    margin-bottom: 6px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.ops-issue-tag-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ops-issue-tag-toolbar .ops-help {
    margin-top: 0;
    text-align: right;
}

.ops-issue-tag-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 300px;
}

.ops-issue-tag-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    background: #fbfcfd;
}

.ops-issue-tag-row-index {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 999px;
    background: #edf7f4;
    color: #1f6f5c;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.ops-issue-tag-row-main {
    flex: 1;
    min-width: 0;
}

.ops-issue-tag-row-label {
    margin-bottom: 8px;
    color: #475467;
    font-size: 13px;
    font-weight: 600;
}

.ops-issue-tag-row-input .layui-input {
    height: 40px;
    border-radius: 8px;
}

.ops-issue-tag-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border: 1px dashed #d7dee8;
    border-radius: 10px;
    background: #fbfcfd;
}

.ops-odr-template-layout {
    padding-top: 8px;
}

.ops-odr-template-intro {
    margin: 0 0 18px 22px;
    padding: 14px 16px;
    border: 1px solid #dce7ef;
    border-radius: 8px;
    background: #f8fbfd;
}

.ops-odr-template-intro-title {
    margin-bottom: 6px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
}

.ops-odr-template-list {
    margin-left: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.ops-odr-template-sections {
    margin-left: 22px;
}

.ops-odr-template-list-head,
.ops-odr-template-list-row {
    display: grid;
    grid-template-columns: 88px minmax(220px, 1.2fr) 120px minmax(260px, 1.5fr) 140px;
    gap: 0;
}

.ops-odr-template-list-head {
    background: #f8fafc;
}

.ops-odr-template-list-row {
    border-top: 1px solid #eaf0f5;
}

.ops-odr-template-list-row:first-of-type {
    border-top: 1px solid #eaf0f5;
}

.ops-odr-template-list-cell {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 16px 18px;
    color: #334155;
    font-size: 13px;
    line-height: 1.7;
    border-left: 1px solid #eef2f6;
}

.ops-odr-template-list-head .ops-odr-template-list-cell {
    color: #475467;
    font-size: 13px;
    font-weight: 700;
    border-left: 1px solid #edf2f7;
}

.ops-odr-template-list-cell:first-child {
    border-left: none;
}

.ops-odr-template-list-cell.is-index,
.ops-odr-template-list-cell.is-count,
.ops-odr-template-list-cell.is-action {
    justify-content: center;
}

.ops-odr-template-list-cell.is-summary {
    color: #667085;
}

.ops-odr-template-list-tag {
    margin-bottom: 4px;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.ops-odr-template-list-desc {
    color: #667085;
    font-size: 12px;
    line-height: 1.7;
}

.ops-odr-template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-left: 22px;
}

.ops-odr-template-card {
    display: flex;
    flex-direction: column;
    min-height: 104px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
}

.ops-odr-template-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.ops-odr-template-card-title {
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.ops-odr-template-card-count {
    padding: 1px 8px;
    border-radius: 999px;
    background: #edf7f4;
    color: #1f6f5c;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ops-odr-template-card-desc {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.ops-odr-template-card-actions {
    margin-top: 10px;
}

.ops-odr-template-card-actions .layui-btn {
    height: 32px;
    line-height: 30px;
    padding: 0 14px;
    border-radius: 4px;
}

.ops-odr-template-editor {
    padding: 18px 24px 0;
}

.ops-odr-template-editor .ops-odr-template-intro,
.ops-odr-template-editor .ops-odr-template-editor-head {
    margin-left: 0;
}

.ops-odr-template-editor-head {
    margin: 0 0 16px 22px;
}

.ops-odr-template-editor-tip {
    margin-top: 6px;
    color: #98a2b3;
    font-size: 12px;
}

.ops-odr-template-editor-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 0;
}

.ops-odr-template-set-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid #e4ebf1;
    border-radius: 10px;
    background: #fbfcfd;
}

.ops-odr-template-set-main {
    flex: 1;
    min-width: 0;
}

.ops-odr-template-set-name {
    margin-bottom: 6px;
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.ops-odr-template-set-summary {
    color: #667085;
    font-size: 13px;
    line-height: 1.8;
}

.ops-odr-template-set-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ops-odr-template-editor-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e4ebf1;
    border-radius: 8px;
    background: #fafcfd;
}

.ops-odr-template-editor-meta {
    flex: 1;
    min-width: 0;
}

.ops-odr-template-editor-index {
    margin-bottom: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.layui-textarea.ops-odr-template-item-input {
    min-height: 92px;
    line-height: 1.7;
    resize: vertical;
    background: #fff;
}

.ops-odr-template-editor-actions {
    margin: 0 0 14px;
}

.ops-odr-report-preview {
    min-height: 280px;
    font-family: Consolas, "Microsoft YaHei", monospace;
    line-height: 1.8;
    white-space: pre-wrap;
    background: #f7faf9;
}

@media (max-width: 1200px) {
    .ops-odr-template-list-head,
    .ops-odr-template-list-row {
        grid-template-columns: 72px minmax(180px, 1fr) 100px minmax(220px, 1.2fr) 120px;
    }

    .ops-odr-template-grid {
        grid-template-columns: 1fr;
    }

    .ops-odr-grid-2 {
        grid-template-columns: 1fr;
    }

    .ops-odr-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ops-odr-card {
        padding-top: 16px;
    }

    .ops-issue-tag-modal,
    .ops-odr-template-editor {
        padding: 16px 16px 0;
    }

    .ops-issue-tag-toolbar,
    .ops-odr-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .ops-issue-tag-toolbar .ops-help {
        text-align: left;
    }

    .ops-issue-tag-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .ops-odr-template-list {
        border-radius: 8px;
    }

    .ops-odr-template-sections {
        margin-left: 0;
    }

    .ops-odr-template-list-head {
        display: none;
    }

    .ops-odr-template-list-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .ops-odr-template-list-row + .ops-odr-template-list-row {
        border-top: 1px solid #eaf0f5;
    }

    .ops-odr-template-list-cell {
        justify-content: flex-start !important;
        padding: 12px 14px;
        border-left: none;
    }

    .ops-odr-template-list-cell.is-index,
    .ops-odr-template-list-cell.is-count {
        color: #667085;
        font-size: 12px;
        padding-bottom: 0;
    }

    .ops-odr-template-list-cell.is-action {
        padding-top: 4px;
    }

    .ops-odr-template-set-row,
    .ops-odr-template-set-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ops-odr-card-title {
        margin-left: 16px;
        margin-right: 16px;
    }

    .ops-odr-card .layui-form-label {
        width: auto;
        padding-bottom: 8px;
        text-align: left;
    }

    .ops-odr-card .layui-input-block {
        margin-left: 0;
    }

    .ops-odr-reference-list {
        margin: -6px 16px 16px;
    }

    .ops-odr-prompt-actions {
        margin-left: 0;
    }
}

.ops-report-builder {
    padding: 18px 22px 0;
}

.ops-report-builder-top {
    margin-bottom: 14px;
}

.ops-report-builder-panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.ops-report-builder-panel {
    min-height: 360px;
    padding: 12px;
    border: 1px solid #d8dee4;
    border-radius: 6px;
    background: #fbfcfd;
    box-sizing: border-box;
}

.ops-report-builder-title {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
}

.ops-report-builder-list,
.ops-report-builder-selected {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
}

.ops-report-builder-field,
.ops-report-builder-selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e3e8ee;
    border-radius: 6px;
    background: #fff;
}

.ops-report-builder-field .layui-form-checkbox {
    margin-top: 0;
}

.ops-report-builder-check {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    color: #222831;
    cursor: pointer;
}

.ops-report-builder-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
}

.ops-report-builder-check-text {
    flex: 1 1 auto;
    line-height: 1.6;
    word-break: break-all;
}

.ops-report-builder-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 4px;
    background: #e5f5f1;
    color: #1f6f5c;
    font-weight: 700;
    box-sizing: border-box;
}

.ops-report-builder-selected-actions {
    display: flex;
    gap: 6px;
}

.ops-report-builder-empty {
    padding: 24px 12px;
    color: #7a858c;
    text-align: center;
    border: 1px dashed #cbd5dd;
    border-radius: 6px;
    background: #fff;
}

.ops-report-expand {
    padding: 14px;
}

.ops-report-expand-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ops-report-expand-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.ops-report-expand-item {
    position: relative;
    min-width: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ops-report-expand-item.is-dragging {
    opacity: 0.45;
}

.ops-report-expand-item.is-drop-target {
    transform: translateY(-2px);
}

.ops-report-expand-item.is-drop-target .ops-report {
    border-color: #23b5ad;
    box-shadow: 0 0 0 2px rgba(35, 181, 173, 0.16);
}

.ops-report-drag-handle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border: 1px dashed #c7d0d8;
    border-radius: 4px;
    color: #7a858c;
    font-size: 12px;
    cursor: move;
    user-select: none;
}

.ops-report-draggable .ops-report-header {
    cursor: grab;
}

.ops-report-draggable:active .ops-report-header {
    cursor: grabbing;
}

.ops-report-expand-note {
    color: #7a858c;
    font-size: 12px;
}

.ops-permission-list {
    padding: 8px 0;
}

.ops-permission-list .layui-form-checkbox {
    margin-bottom: 8px;
}

.ops-permission-group {
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid #e5ebf0;
    border-radius: 8px;
    background: #fafcfd;
}

.ops-permission-group-title {
    margin-bottom: 10px;
    font-weight: 700;
    color: #1f2d3d;
}

.ops-permission-subgroup + .ops-permission-subgroup {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #d8e2e8;
}

.ops-permission-subgroup-title {
    margin-bottom: 8px;
    color: #60707c;
    font-size: 13px;
}

.ops-permission-items .layui-form-checkbox {
    margin-right: 10px;
}

.ops-login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #eef4f1 0%, #f8faf9 48%, #eef3f7 100%);
}

.ops-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    box-sizing: border-box;
}

.ops-login-panel {
    width: min(420px, 100%);
    padding: 34px 34px 32px;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(31, 111, 92, 0.12);
    box-sizing: border-box;
}

.ops-login-panel h1 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
}

.ops-login-panel p {
    margin-bottom: 24px;
    color: #627078;
}

.ops-login-form .layui-input {
    height: 44px;
}

.ops-login-form .layui-btn {
    height: 44px;
    line-height: 44px;
    background: #1f6f5c;
}

.ops-import-body {
    min-height: 100vh;
    background: #f4f6f8;
}

.ops-import-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 28px;
    background: #1f6f5c;
    color: #fff;
    box-sizing: border-box;
}

.ops-import-title {
    font-size: 18px;
    font-weight: 700;
}

.ops-import-user {
    display: flex;
    gap: 16px;
    align-items: center;
}

.ops-import-main {
    padding: 18px;
}

.ops-import-summary {
    margin-bottom: 12px;
    color: #4b5963;
}

.ops-import-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

#adminTable + .layui-table-view,
#subUserTable + .layui-table-view,
#importPreviewTable + .layui-table-view {
    width: 100% !important;
}

#adminTable + .layui-table-view .layui-table,
#subUserTable + .layui-table-view .layui-table,
#importPreviewTable + .layui-table-view .layui-table {
    width: 100% !important;
}

@media (max-width: 900px) {
    .ops-report-expand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-header-tabs {
        left: 10px;
        right: 150px;
    }

    .ops-body {
        left: 0;
        padding: 12px;
    }

    .ops-side {
        display: none;
    }

    /**
     * 窄屏下左侧导航默认隐藏，通过头部按钮显式打开。
     *
     * 这里不能继续沿用桌面的“收起宽度为 0”策略，
     * 因为移动端原本直接 display:none，导致按钮只有图标切换没有实际展开效果。
     * 因此增加独立的 is-mobile-side-open 状态，让菜单以抽屉形式浮出。
     */
    .ops-layout.is-mobile-side-open .ops-side {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        bottom: 0;
        width: 220px;
        z-index: 1400;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
    }

    .ops-layout.is-mobile-side-open .ops-side .layui-side-scroll {
        overflow-y: auto;
    }

    .ops-layout.is-mobile-side-open .ops-side-backdrop {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.42);
        z-index: 1300;
    }

    .ops-footer {
        left: 0;
    }

    .ops-side-toggle {
        left: 150px;
    }

    .ops-report-builder-panels,
    .ops-report-expand-grid,
    .ops-dashboard-metrics,
    .ops-dashboard-grid,
    .ops-dashboard-summary,
    .ops-canvas {
        grid-template-columns: 1fr;
    }
}
