:root {
    --op1-bg: #f5f7fb;
    --op1-paper: #ffffff;
    --op1-paper-soft: #f8fafc;
    --op1-ink: #162033;
    --op1-heading: #0f172a;
    --op1-muted: #667085;
    --op1-muted-2: #98a2b3;
    --op1-line: #dfe6f0;
    --op1-line-strong: #c8d2df;
    --op1-rail: #101828;
    --op1-rail-2: #172033;
    --op1-rail-3: #243148;
    --op1-blue: #2563eb;
    --op1-blue-soft: #eaf1ff;
    --op1-green: #12a66a;
    --op1-green-soft: #e8f7ef;
    --op1-amber: #d97706;
    --op1-amber-soft: #fff4df;
    --op1-red: #dc2626;
    --op1-red-soft: #fff0f0;
    --op1-purple: #7c3aed;
    --op1-purple-soft: #f4efff;
    --op1-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    --op1-shadow-soft: 0 6px 18px rgba(15, 23, 42, .06);
    --op1-radius: 8px;
    --op1-rail-width: 68px;
    --op1-menu-width: 228px;
    --op1-top-height: 64px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: var(--op1-ink);
    background: var(--op1-bg);
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .56;
}

.op1-muted {
    color: var(--op1-muted);
}

.op1-login {
    min-height: 100vh;
    background-color: #101828;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.op1-login::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(16, 24, 40, .90), rgba(16, 24, 40, .62) 54%, rgba(16, 24, 40, .36)),
        linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.op1-login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: min(1060px, calc(100vw - 56px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 380px;
    gap: 56px;
    align-items: center;
}

.op1-login-story {
    color: #ffffff;
    max-width: 540px;
}

.op1-login-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(12px);
}

.op1-login-badge span {
    width: 28px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 6px;
    background: #ffffff;
    color: #101828;
    font-size: 12px;
    font-weight: 800;
}

.op1-login-badge b {
    font-size: 12px;
    font-weight: 700;
}

.op1-login-story h1 {
    margin: 22px 0 14px;
    font-size: 42px;
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: 0;
}

.op1-login-story p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.8;
}

.op1-login-checks {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.op1-login-checks span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .86);
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    font-size: 13px;
}

.op1-login-panel {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
    padding: 28px;
}

.op1-login-head {
    margin-bottom: 22px;
}

.op1-login-head span {
    display: block;
    color: var(--op1-blue);
    font-size: 13px;
    font-weight: 700;
}

.op1-login-head h2 {
    margin: 8px 0 6px;
    color: var(--op1-heading);
    font-size: 24px;
    line-height: 1.25;
}

.op1-login-head p {
    margin: 0;
    color: var(--op1-muted);
    font-size: 13px;
}

.op1-field {
    display: block;
    margin-bottom: 14px;
}

.op1-field span {
    display: block;
    margin-bottom: 7px;
    color: var(--op1-heading);
    font-size: 13px;
    font-weight: 700;
}

.op1-field input,
.op1-captcha input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--op1-line-strong);
    border-radius: var(--op1-radius);
    padding: 0 12px;
    color: var(--op1-heading);
    background: #ffffff;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.op1-field input:focus,
.op1-captcha input:focus,
.op1-filter-bar input:focus,
.op1-filter-bar select:focus,
.op1-drawer input:focus,
.op1-drawer select:focus,
.op1-drawer textarea:focus {
    border-color: var(--op1-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.op1-captcha {
    display: grid;
    grid-template-columns: 1fr 112px;
    gap: 10px;
    margin-bottom: 14px;
}

.op1-captcha img {
    width: 112px;
    height: 42px;
    border: 1px solid var(--op1-line);
    border-radius: var(--op1-radius);
    object-fit: cover;
    background: #ffffff;
}

.op1-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--op1-muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.op1-login-submit {
    width: 100%;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--op1-radius);
    color: #ffffff;
    background: #1d4ed8;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(37, 99, 235, .24);
}

.op1-login-submit:hover {
    background: #1e40af;
}

.op1-app {
    min-height: 100vh;
    overflow-x: hidden;
}

.op1-rail {
    position: fixed;
    z-index: 40;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--op1-rail-width);
    background: var(--op1-rail);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
}

.op1-brand {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #ffffff;
    color: var(--op1-rail);
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.op1-rail-nav {
    margin-top: 26px;
    display: grid;
    gap: 10px;
    width: 100%;
}

.op1-rail-nav a,
.op1-rail-exit {
    width: 46px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: rgba(255, 255, 255, .68);
    transition: background .16s ease, color .16s ease;
}

.op1-rail-nav a:hover,
.op1-rail-nav a.is-active,
.op1-rail-exit:hover {
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
}

.op1-rail-nav a.is-active {
    box-shadow: inset 3px 0 0 #60a5fa;
}

.op1-rail-exit {
    margin-top: auto;
}

.op1-menu {
    position: fixed;
    z-index: 30;
    left: var(--op1-rail-width);
    top: 0;
    bottom: 0;
    width: var(--op1-menu-width);
    background: var(--op1-rail-2);
    color: #ffffff;
    border-left: 1px solid rgba(255, 255, 255, .05);
    padding: 20px 16px;
    transition: transform .18s ease;
}

.op1-menu-head {
    padding: 8px 4px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.op1-menu-head p {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
}

.op1-menu-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.op1-menu-group {
    display: grid;
    gap: 6px;
    padding-top: 18px;
}

.op1-menu-group > span {
    margin: 0 4px 4px;
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
}

.op1-menu-group a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 11px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .72);
    transition: background .16s ease, color .16s ease;
}

.op1-menu-group a i {
    width: 18px;
    text-align: center;
}

.op1-menu-group a b {
    font-size: 14px;
}

.op1-menu-group a:hover,
.op1-menu-group a.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, .10);
}

.op1-main {
    margin-left: calc(var(--op1-rail-width) + var(--op1-menu-width));
    min-height: 100vh;
}

.op1-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    height: var(--op1-top-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 24px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--op1-line);
    backdrop-filter: blur(14px);
}

.op1-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--op1-line);
    border-radius: 8px;
    color: var(--op1-heading);
    background: #ffffff;
}

.op1-top-title {
    min-width: 0;
}

.op1-top-title span,
.op1-page-head span,
.op1-panel header span {
    display: block;
    color: var(--op1-muted);
    font-size: 12px;
    font-weight: 700;
}

.op1-top-title h1 {
    margin: 2px 0 0;
    color: var(--op1-heading);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
}

.op1-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.op1-user-card {
    min-width: 156px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid var(--op1-line);
    border-radius: 8px;
    background: var(--op1-paper-soft);
}

.op1-user-meta {
    min-width: 0;
}

.op1-user-card span {
    display: block;
    overflow: hidden;
    color: var(--op1-heading);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.op1-user-card b {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--op1-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.op1-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--op1-line);
    border-radius: 8px;
    color: var(--op1-heading);
    background: #ffffff;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.op1-icon-btn:hover {
    border-color: #b9c6d8;
    background: #f8fafc;
}

.op1-icon-btn.is-danger {
    color: var(--op1-red);
}

.op1-content {
    padding: 22px 24px 32px;
}

.op1-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.op1-page-head h2 {
    margin: 4px 0;
    color: var(--op1-heading);
    font-size: 24px;
    line-height: 1.25;
}

.op1-page-head p {
    margin: 0;
    color: var(--op1-muted);
    font-size: 13px;
}

.op1-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.op1-btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--op1-line-strong);
    border-radius: 8px;
    color: var(--op1-heading);
    background: #ffffff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.op1-btn:hover {
    border-color: #aebbd0;
    background: #f8fafc;
}

.op1-btn.is-primary {
    border-color: #1d4ed8;
    color: #ffffff;
    background: #1d4ed8;
    box-shadow: 0 8px 16px rgba(37, 99, 235, .16);
}

.op1-btn.is-primary:hover {
    border-color: #1e40af;
    background: #1e40af;
}

.op1-btn.is-ghost {
    color: var(--op1-heading);
    background: #ffffff;
}

.op1-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.op1-kpi {
    min-height: 118px;
    border: 1px solid var(--op1-line);
    border-radius: var(--op1-radius);
    background: var(--op1-paper);
    padding: 18px;
    box-shadow: var(--op1-shadow-soft);
}

.op1-kpi span {
    display: block;
    color: var(--op1-muted);
    font-size: 13px;
    font-weight: 700;
}

.op1-kpi strong {
    display: block;
    margin-top: 12px;
    color: var(--op1-heading);
    font-size: 25px;
    line-height: 1.18;
    font-weight: 850;
    word-break: break-word;
}

.op1-kpi p {
    margin: 8px 0 0;
    color: var(--op1-muted);
    font-size: 12px;
    line-height: 1.4;
}

.op1-kpi.is-balance {
    border-color: #bfd4ff;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.op1-work-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .95fr);
    gap: 14px;
}

.op1-panel {
    min-width: 0;
    border: 1px solid var(--op1-line);
    border-radius: var(--op1-radius);
    background: var(--op1-paper);
    box-shadow: var(--op1-shadow-soft);
    overflow: hidden;
}

.op1-panel-wide {
    min-width: 0;
}

.op1-panel > header {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--op1-line);
    background: #ffffff;
}

.op1-panel header h2 {
    margin: 3px 0 0;
    color: var(--op1-heading);
    font-size: 16px;
    line-height: 1.3;
}

.op1-trend {
    min-height: 240px;
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    align-items: end;
    gap: 14px;
    padding: 22px 18px 18px;
}

.op1-trend-bar {
    min-width: 0;
    display: grid;
    align-items: end;
    justify-items: center;
    gap: 8px;
}

.op1-trend-bar b {
    width: 100%;
    max-width: 58px;
    min-height: 12px;
    display: block;
    border-radius: 7px 7px 3px 3px;
    background: #2563eb;
}

.op1-trend-bar:nth-child(2) b {
    background: #12a66a;
}

.op1-trend-bar:nth-child(3) b {
    background: #7c3aed;
}

.op1-trend-bar:nth-child(4) b {
    background: #0f766e;
}

.op1-trend-bar span {
    color: var(--op1-heading);
    font-size: 13px;
    font-weight: 800;
}

.op1-trend-bar small {
    max-width: 100%;
    color: var(--op1-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.op1-quick-grid,
.op1-admin-flow {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.op1-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.op1-admin-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.op1-quick-grid a,
.op1-admin-flow a {
    min-height: 82px;
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-content: center;
    padding: 12px;
    border: 1px solid var(--op1-line);
    border-radius: var(--op1-radius);
    background: var(--op1-paper-soft);
}

.op1-quick-grid a:hover,
.op1-admin-flow a:hover {
    border-color: #b8c7dc;
    background: #ffffff;
}

.op1-quick-grid i,
.op1-admin-flow i {
    grid-row: 1 / span 2;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: #1d4ed8;
    background: var(--op1-blue-soft);
}

.op1-quick-grid b,
.op1-admin-flow b {
    color: var(--op1-heading);
    font-size: 14px;
}

.op1-quick-grid span,
.op1-admin-flow span {
    margin-top: 4px;
    color: var(--op1-muted);
    font-size: 12px;
}

.op1-mini-list {
    display: grid;
    gap: 0;
}

.op1-mini-row {
    min-height: 66px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--op1-line);
}

.op1-mini-row:last-child {
    border-bottom: 0;
}

.op1-mini-row > i {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: #1d4ed8;
    background: var(--op1-blue-soft);
}

.op1-mini-row b,
.op1-mini-row span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.op1-mini-row b {
    color: var(--op1-heading);
    font-size: 13px;
}

.op1-mini-row span {
    margin-top: 4px;
    color: var(--op1-muted);
    font-size: 12px;
}

.op1-empty {
    min-height: 96px;
    display: grid;
    place-items: center;
    color: var(--op1-muted);
    font-size: 13px;
    padding: 18px;
}

.op1-empty.is-loading::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-right: 8px;
    display: inline-block;
    border-radius: 999px;
    border: 2px solid #dbe4f0;
    border-top-color: var(--op1-blue);
    animation: op1-spin .8s linear infinite;
}

@keyframes op1-spin {
    to {
        transform: rotate(360deg);
    }
}

.op1-list-canvas {
    display: grid;
    gap: 14px;
}

.op1-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.op1-summary-grid .op1-kpi,
.op1-summary-grid > article {
    min-height: 84px;
    padding: 14px;
    border: 1px solid var(--op1-line);
    border-radius: var(--op1-radius);
    background: #ffffff;
    box-shadow: var(--op1-shadow-soft);
}

.op1-summary-grid span,
.op1-summary-grid label {
    display: block;
    color: var(--op1-muted);
    font-size: 12px;
    font-weight: 700;
}

.op1-summary-grid strong,
.op1-summary-grid b {
    display: block;
    margin-top: 8px;
    color: var(--op1-heading);
    font-size: 18px;
    font-weight: 850;
}

.op1-filter-bar {
    display: grid;
    grid-template-columns: repeat(6, minmax(136px, 1fr)) auto auto;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--op1-line);
    border-radius: var(--op1-radius);
    background: #ffffff;
    box-shadow: var(--op1-shadow-soft);
}

.op1-list-canvas.is-export .op1-filter-bar {
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto auto;
}

.op1-list-canvas.is-balance .op1-filter-bar {
    grid-template-columns: repeat(5, minmax(136px, 1fr)) auto auto;
}

.op1-filter-bar input,
.op1-filter-bar select,
.op1-drawer input,
.op1-drawer select,
.op1-drawer textarea {
    width: 100%;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--op1-line-strong);
    border-radius: 8px;
    padding: 0 10px;
    color: var(--op1-heading);
    background: #ffffff;
    outline: none;
}

.op1-filter-bar select,
.op1-drawer select {
    padding-right: 28px;
}

.op1-filter-extra {
    display: none;
}

.op1-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    padding: 4px;
    border: 1px solid var(--op1-line);
    border-radius: 8px;
    background: #ffffff;
}

.op1-tabs button {
    height: 34px;
    border: 0;
    border-radius: 7px;
    padding: 0 14px;
    color: var(--op1-muted);
    background: transparent;
    font-weight: 800;
}

.op1-tabs button.is-active {
    color: #ffffff;
    background: var(--op1-blue);
}

.op1-table-wrap {
    width: 100%;
    overflow: auto;
    background: #ffffff;
}

.op1-data-table {
    width: 100%;
    min-width: 1060px;
    border-collapse: collapse;
    table-layout: auto;
}

.op1-data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    height: 42px;
    padding: 0 12px;
    border-bottom: 1px solid var(--op1-line);
    color: var(--op1-muted);
    background: #f8fafc;
    text-align: left;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.op1-data-table td {
    min-height: 52px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--op1-line);
    color: var(--op1-ink);
    font-size: 13px;
    vertical-align: middle;
}

.op1-data-table tr:hover td {
    background: #fbfdff;
}

.op1-money {
    color: var(--op1-heading);
    font-weight: 850;
}

.op1-tag {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--op1-muted);
    background: #eef2f7;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.op1-tag.is-success {
    color: #087443;
    background: var(--op1-green-soft);
}

.op1-tag.is-running {
    color: #1d4ed8;
    background: var(--op1-blue-soft);
}

.op1-tag.is-fail {
    color: var(--op1-red);
    background: var(--op1-red-soft);
}

.op1-tag.is-wait {
    color: var(--op1-amber);
    background: var(--op1-amber-soft);
}

.op1-tag.is-abnormal {
    color: #6941c6;
    background: var(--op1-purple-soft);
}

.op1-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.op1-action-btn {
    min-height: 28px;
    border: 1px solid #bed0ea;
    border-radius: 7px;
    padding: 0 10px;
    color: #1d4ed8;
    background: #f4f8ff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.op1-action-btn:hover {
    border-color: #90b3f7;
    background: #eaf1ff;
}

.op1-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--op1-line);
    color: var(--op1-muted);
    background: #ffffff;
    font-size: 13px;
}

.op1-pager-actions {
    display: flex;
    gap: 8px;
}

.op1-pager button {
    min-width: 70px;
    height: 32px;
    border: 1px solid var(--op1-line-strong);
    border-radius: 7px;
    color: var(--op1-heading);
    background: #ffffff;
    font-weight: 800;
}

.op1-pager button:not(:disabled):hover {
    border-color: #aebbd0;
    background: #f8fafc;
}

.op1-drawer-mask {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: none;
    background: rgba(15, 23, 42, .34);
}

.op1-drawer-mask.is-open {
    display: block;
}

.op1-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(520px, 100vw);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: -24px 0 60px rgba(15, 23, 42, .18);
    transform: translateX(100%);
    transition: transform .18s ease;
}

.op1-drawer-mask.is-open .op1-drawer {
    transform: translateX(0);
}

.op1-drawer header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--op1-line);
    background: #ffffff;
}

.op1-drawer header span {
    display: block;
    color: var(--op1-muted);
    font-size: 12px;
    font-weight: 800;
}

.op1-drawer header h3 {
    margin: 4px 0 0;
    color: var(--op1-heading);
    font-size: 18px;
}

.op1-drawer header button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--op1-line);
    border-radius: 8px;
    color: var(--op1-heading);
    background: #ffffff;
}

.op1-drawer-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 16px;
    background: #f8fafc;
}

.op1-drawer-filter {
    display: grid;
    gap: 10px;
}

.op1-drawer-filter .op1-btn {
    width: 100%;
}

.op1-detail-card {
    border: 1px solid var(--op1-line);
    border-radius: var(--op1-radius);
    background: #ffffff;
    overflow: hidden;
}

.op1-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.op1-detail-item {
    min-width: 0;
    padding: 14px;
    border-right: 1px solid var(--op1-line);
    border-bottom: 1px solid var(--op1-line);
}

.op1-detail-item:nth-child(2n) {
    border-right: 0;
}

.op1-detail-item.is-wide {
    grid-column: 1 / -1;
    border-right: 0;
}

.op1-detail-item span {
    display: block;
    margin-bottom: 8px;
    color: var(--op1-muted);
    font-size: 12px;
    font-weight: 800;
}

.op1-detail-item b,
.op1-detail-value {
    display: block;
    color: var(--op1-heading);
    font-size: 13px;
    line-height: 1.55;
    word-break: break-word;
}

.op1-detail-pre {
    max-height: 260px;
    overflow: auto;
    white-space: pre-wrap;
    font-family: Consolas, "Courier New", monospace;
    color: #334155;
    background: #f8fafc;
    border-radius: 7px;
    padding: 10px;
}

.op1-docs .op1-panel {
    padding: 0;
}

.op1-docs .op1-doc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 20px;
    margin-bottom: 14px;
}

.op1-doc-hero h2 {
    margin: 0 0 8px;
    color: var(--op1-heading);
    font-size: 22px;
}

.op1-doc-hero p {
    margin: 0;
    color: var(--op1-muted);
    line-height: 1.7;
}

.op1-doc-status {
    display: grid;
    gap: 8px;
    align-content: center;
    min-width: 168px;
    padding: 14px 16px;
    border: 1px solid var(--op1-line);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(20, 184, 166, .08));
    color: var(--op1-heading);
}

.op1-doc-shell {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 0;
    min-height: calc(100vh - 270px);
    background: #ffffff;
    overflow: hidden;
}

.op1-doc-frame {
    width: 100%;
    height: 780px;
    min-height: calc(100vh - 270px);
    display: block;
    border: 0;
    background: #ffffff;
}

.op1-doc-nav {
    position: sticky;
    top: var(--op1-top-height);
    align-self: start;
    max-height: calc(100vh - var(--op1-top-height) - 24px);
    padding: 18px 14px;
    border-right: 1px solid var(--op1-line);
    background: #f8fafc;
    overflow: auto;
}

.op1-doc-nav-title {
    margin: 0 0 12px;
    color: var(--op1-muted);
    font-size: 12px;
    font-weight: 800;
}

.op1-doc-nav a {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 7px;
    color: #344054;
    font-size: 13px;
}

.op1-doc-nav a:hover,
.op1-doc-nav a.is-active {
    background: #e8f0ff;
    color: var(--op1-blue);
}

.op1-doc-content {
    min-width: 0;
    padding: 22px 28px 40px;
    color: #1f2937;
    font-size: 13px;
    line-height: 1.75;
}

.op1-doc-content h1,
.op1-doc-content h2,
.op1-doc-content h3 {
    color: var(--op1-heading);
    letter-spacing: 0;
}

.op1-doc-content h1 {
    margin: 0 0 18px;
    font-size: 26px;
}

.op1-doc-content h2 {
    margin: 28px 0 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--op1-line);
    font-size: 20px;
}

.op1-doc-content h3 {
    margin: 20px 0 10px;
    font-size: 15px;
}

.op1-doc-content p {
    margin: 0 0 12px;
    color: #475467;
}

.op1-doc-content a {
    color: var(--op1-blue);
}

.op1-doc-content table {
    width: 100%;
    margin: 12px 0 18px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--op1-line);
    border-radius: 8px;
    overflow: hidden;
}

.op1-doc-content th,
.op1-doc-content td {
    padding: 10px 12px;
    border-right: 1px solid var(--op1-line);
    border-bottom: 1px solid var(--op1-line);
    text-align: left;
    vertical-align: top;
}

.op1-doc-content th {
    background: #f1f5f9;
    color: #344054;
    font-weight: 800;
}

.op1-doc-content tr:last-child td {
    border-bottom: 0;
}

.op1-doc-content th:last-child,
.op1-doc-content td:last-child {
    border-right: 0;
}

.op1-doc-content code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #edf2f7;
    color: #0f172a;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.op1-doc-content pre {
    margin: 12px 0 18px;
    padding: 14px;
    border-radius: 8px;
    background: #101828;
    color: #e5e7eb;
    overflow: auto;
}

.op1-doc-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.op1-doc-content blockquote {
    margin: 12px 0 18px;
    padding: 12px 14px;
    border-left: 3px solid var(--op1-blue);
    border-radius: 7px;
    background: #f5f8ff;
    color: #344054;
}

.op1-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.op1-doc-grid .op1-panel {
    padding: 18px;
}

.op1-doc-grid h3 {
    margin: 0 0 10px;
    color: var(--op1-heading);
    font-size: 16px;
}

.op1-doc-grid p,
.op1-doc-list {
    color: var(--op1-muted);
    font-size: 13px;
    line-height: 1.7;
}

.op1-doc-list {
    margin: 0;
    padding-left: 18px;
}

.select2-container--default .select2-selection--single {
    height: 36px;
    border-color: var(--op1-line-strong);
    border-radius: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--op1-heading);
    line-height: 34px;
    padding-left: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px;
}

.select2-dropdown {
    z-index: 12020;
    border-color: var(--op1-line-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--op1-shadow);
}

.layui-laydate,
.layui-layer,
.layui-layer-shade {
    z-index: 12030 !important;
}

.layui-layer {
    border-radius: 8px !important;
    overflow: hidden;
}

.layui-layer-title {
    background: #f8fafc !important;
    border-bottom: 1px solid var(--op1-line) !important;
    color: var(--op1-heading) !important;
    font-weight: 800;
}

body.is-op1-drawer-open {
    overflow: hidden;
}

@media (max-width: 1440px) {
    .op1-filter-bar {
        grid-template-columns: repeat(4, minmax(142px, 1fr)) auto auto;
    }

    .op1-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    :root {
        --op1-menu-width: 0px;
    }

    .op1-menu {
        transform: translateX(-100%);
    }

    body.is-menu-open .op1-menu,
    body.is-op1-menu-open .op1-menu {
        width: 228px;
        transform: translateX(0);
        box-shadow: 20px 0 46px rgba(15, 23, 42, .24);
    }

    .op1-menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .op1-main {
        margin-left: var(--op1-rail-width);
    }

    .op1-work-grid,
    .op1-admin-flow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .op1-login-shell {
        width: min(520px, calc(100vw - 32px));
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 32px 0;
    }

    .op1-login-story h1 {
        font-size: 32px;
    }

    .op1-topbar {
        align-items: flex-start;
        height: auto;
        min-height: var(--op1-top-height);
        padding: 12px 14px;
        flex-wrap: wrap;
    }

    .op1-top-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .op1-user-card {
        flex: 1;
    }

    .op1-content {
        padding: 16px 14px 26px;
    }

    .op1-kpi-grid,
    .op1-summary-grid,
    .op1-doc-grid {
        grid-template-columns: 1fr;
    }

    .op1-filter-bar,
    .op1-list-canvas.is-export .op1-filter-bar,
    .op1-list-canvas.is-balance .op1-filter-bar {
        grid-template-columns: 1fr;
    }

    .op1-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .op1-page-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .op1-trend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .op1-quick-grid {
        grid-template-columns: 1fr;
    }

    .op1-detail-grid {
        grid-template-columns: 1fr;
    }

    .op1-detail-item,
    .op1-detail-item:nth-child(2n) {
        border-right: 0;
    }

    .op1-doc-shell {
        grid-template-columns: 1fr;
    }

    .op1-doc-nav {
        position: static;
        display: flex;
        gap: 8px;
        max-height: none;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--op1-line);
        overflow-x: auto;
    }

    .op1-doc-nav-title {
        display: none;
    }

    .op1-doc-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .op1-doc-content {
        padding: 18px 14px 28px;
    }
}

@media (max-width: 560px) {
    :root {
        --op1-rail-width: 56px;
    }

    .op1-rail {
        padding-left: 7px;
        padding-right: 7px;
    }

    .op1-brand,
    .op1-rail-nav a,
    .op1-rail-exit {
        width: 40px;
    }

    .op1-login-panel {
        padding: 22px;
    }

    .op1-login-checks {
        display: grid;
    }

    .op1-mini-row {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .op1-mini-row .op1-tag {
        grid-column: 2;
        justify-self: start;
    }
}
