@import url('data:text/css,');
:root { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color:#09090b; background:#f7f7f5; font-synthesis:none; --muted:#71717a; --border:#e6e6e1; --lime:#adfa1d; --dark:#09090b; }
* { box-sizing:border-box; }
body { margin:0; font-size:14px; line-height:1.5; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { opacity:.5; cursor:wait; }
a { color:inherit; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #7dbb0b; outline-offset:3px; }
input,select,textarea { width:100%; border:1px solid #dcdcd6; border-radius:8px; padding:10px 11px; color:var(--dark); background:#fff; min-height:42px; }
input[type=checkbox], input[type=radio] { width:16px; height:16px; min-height:16px; accent-color:#09090b; flex:none; }
textarea { resize:vertical; min-height:90px; }
h1,h2,h3,p { margin:0; }
h1 { font-size:29px; line-height:1.3; letter-spacing:-1px; font-weight:650; }
h2 { font-size:20px; font-weight:650; }
h3 { font-size:16px; font-weight:600; }
.muted,small { color:var(--muted); }
.mono { font-variant-numeric:tabular-nums; }
.nowrap { white-space:nowrap; }
.initial-loading { display:grid; min-height:100vh; place-content:center; color:var(--muted); }
.shell { display:grid; grid-template-columns:232px minmax(0,1fr); min-height:100vh; }
.sidebar { background:#fff; border-right:1px solid var(--border); padding:30px 18px 20px; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; }
.sidebar-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.mobile-menu-toggle.button { display:none; }
.brand { display:flex; align-items:center; gap:10px; font-size:18px; font-weight:650; padding:0 12px; white-space:nowrap; }
.brand-symbol { width:35px; height:35px; display:grid; place-content:center; background:var(--lime); border-radius:10px; color:#09090b; font-size:22px; font-weight:800; }
.brand small { display:block; font-size:10px; letter-spacing:1.8px; line-height:1.2; font-weight:500; }
.sidebar-label { font-size:11px; letter-spacing:1px; color:#99999f; margin:36px 13px 10px; }
.nav { display:flex; flex-direction:column; gap:5px; }
.nav a { display:flex; gap:12px; align-items:center; text-decoration:none; padding:12px 14px; border-radius:9px; color:#626268; }
.nav a:hover { background:#f7f7f5; }
.nav a.active { background:#09090b; color:white; }
.nav-icon { display:inline-grid; width:20px; height:20px; place-content:center; font-size:17px; }
.nav a.active .nav-icon { color:var(--lime); }
.sidebar-bottom { margin-top:auto; padding:22px 12px 0; }
.user-line { display:flex; gap:10px; align-items:center; margin-bottom:15px; }
.avatar { width:34px; height:34px; border-radius:50%; background:#f0f0ec; display:grid; place-content:center; font-weight:600; }
.user-meta { overflow:hidden; }
.user-meta strong,.user-meta small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.logout { padding:0; border:0; background:none; color:var(--muted); font-size:12px; }
.main { padding:0 42px 46px; min-width:0; }
.topbar { height:84px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border); margin-bottom:32px; gap:10px; }
.topbar-label { color:var(--muted); font-size:12px; }
.system-status { display:flex; align-items:center; gap:7px; color:#656569; font-size:12px; }
.dot { width:6px; height:6px; background:#89bd32; border-radius:50%; }
.page-title { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:20px; margin-bottom:27px; }
.page-title>div:first-child { min-width:0; flex:1 1 280px; }
.page-title>.button { flex-shrink:0; }
.page-title p { margin-top:8px; color:var(--muted); }
.eyebrow { font-size:10px; letter-spacing:1.6px; color:#85858b; margin-bottom:9px; }
.actions { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.button { padding:10px 16px; min-height:41px; border:1px solid var(--dark); border-radius:8px; color:white; background:var(--dark); font-weight:500; display:inline-flex; justify-content:center; align-items:center; gap:6px; white-space:nowrap; text-decoration:none; }
.button:hover { background:#29292d; }
.button.secondary { background:white; border-color:#deded8; color:var(--dark); }
.button.secondary:hover { background:#f4f4f1; }
.button.lime { background:var(--lime); border-color:var(--lime); color:#172305; }
.button.lime:hover { background:#a0ea16; }
.button.small { padding:6px 11px; min-height:33px; font-size:12px; }
.button.danger { background:#fff; color:#be123c; border-color:#fecdd3; }
.link-button { background:none; border:0; color:#424248; padding:4px 6px; text-decoration:underline; text-underline-offset:4px; font-size:12px; }
.icon-button { border:0; background:transparent; font-size:23px; color:var(--muted); width:34px; height:34px; border-radius:6px; display:grid; place-content:center; }
.icon-button:hover { background:#f1f1ed; }
.stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; margin-bottom:25px; }
.stat { background:#fff; border:1px solid var(--border); border-radius:13px; padding:21px 23px; }
.stat.accent { background:var(--lime); border-color:var(--lime); }
.stat-label { font-size:12px; color:#76767b; }
.stat.accent .stat-label { color:#44610e; }
.stat-value { font-size:28px; font-weight:620; letter-spacing:-.8px; margin-top:9px; font-variant-numeric:tabular-nums; }
.stat-help { font-size:11px; color:#89898d; margin-top:6px; }
.stat.accent .stat-help { color:#526f1f; }
.panel { background:#fff; border:1px solid var(--border); border-radius:13px; overflow:hidden; margin-bottom:20px; }
.panel-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:19px 23px; gap:15px; border-bottom:1px solid var(--border); }
.panel-head h2 { flex-shrink:0; }
.panel-head>.actions { flex:1 1 300px; justify-content:flex-end; min-width:0; }
.panel-head>.actions>input,.panel-head>.actions>select { flex:1 1 160px; width:auto; min-width:0; max-width:320px; }
.panel-head h2 { font-size:15px; }
.panel-body { padding:23px; }
.filters { padding:20px 23px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; border-bottom:1px solid var(--border); }
.filters .field span { font-size:11px; color:#818187; }
.filters .filter-search { grid-column:span 2; }
.filter-actions { display:flex; align-items:end; gap:8px; }
.field { display:flex; flex-direction:column; gap:7px; min-width:0; }
.field>span { font-size:12px; color:#48484e; }
.field small { font-size:11px; line-height:1.5; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
.span-2 { grid-column:span 2; }
.form-section { margin-top:24px; padding-top:21px; border-top:1px solid var(--border); }
.form-section h3 { margin-bottom:13px; }
.form-footer { display:flex; flex-wrap:wrap; gap:9px; justify-content:flex-end; margin-top:26px; }
.checkbox { display:flex; gap:8px; align-items:center; font-size:12px; }
.checkbox-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.scope-options { max-height:160px; overflow:auto; padding:12px; border:1px solid var(--border); border-radius:8px; display:flex; flex-direction:column; gap:10px; }
.selection-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; background:#f8f9f5; padding:13px 23px; border-bottom:1px solid var(--border); font-size:12px; }
.selection-bar strong { font-variant-numeric:tabular-nums; }
.table-wrap { overflow:auto; max-width:100%; }
.table-wrap:focus-visible { outline:2px solid #7dbb0b; outline-offset:-2px; }
.list-pagination { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:14px 20px; border-top:1px solid var(--border); color:var(--muted); font-size:12px; }
.list-pagination-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.list-pagination-actions label { display:flex; align-items:center; gap:6px; }
.list-pagination-actions select { width:auto; min-height:33px; padding:5px 7px; }
table { border-collapse:collapse; width:100%; text-align:left; white-space:normal; }
thead { background:#fcfcfa; }
th { color:#707078; font-size:12px; font-weight:500; padding:14px 16px; border-bottom:1px solid var(--border); white-space:nowrap; }
td { padding:15px 16px; border-bottom:1px solid #efefeb; font-size:13px; vertical-align:middle; overflow-wrap:anywhere; }
td>.button,td>.link-button { white-space:nowrap; }
.table-actions { display:flex; flex-wrap:wrap; align-items:flex-start; gap:4px; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:#fcfcf9; }
td .secondary-line { font-size:11px; color:#808087; margin-top:4px; }
.reason-cell { white-space:normal; min-width:190px; max-width:330px; }
.reason-cell strong { display:block; font-size:13px; font-weight:500; }
.amount { font-weight:600; font-size:13px; font-variant-numeric:tabular-nums; }
.badge { display:inline-flex; align-items:center; padding:4px 8px; background:#f1f1ee; border-radius:5px; font-size:10px; color:#6c6c73; white-space:nowrap; }
.badge-approved,.badge-ready,.badge-completed { background:#ecf8df; color:#487620; }
.badge-pending,.badge-active,.badge-waiting { background:#eef2ff; color:#5765a6; }
.badge-returned { background:#fff3dc; color:#997522; }
.badge-rejected,.badge-failed { background:#ffeced; color:#b44653; }
.empty { padding:65px 25px; text-align:center; color:var(--muted); }
.empty-icon { display:grid; width:46px; height:46px; border-radius:12px; background:#f2f2ee; place-content:center; margin:0 auto 15px; font-size:24px; color:#898991; }
.empty h3 { color:#5c5c62; margin-bottom:8px; font-size:14px; }
.empty p { font-size:12px; line-height:1.7; max-width:560px; margin:auto; }
.empty .button { margin-top:15px; }
.spinner { display:block; width:24px; height:24px; margin:0 auto 15px; border-radius:50%; border:2px solid #e6e6df; border-top-color:#09090b; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.info-note { padding:13px 16px; background:#f4f6ee; color:#666e53; border-radius:8px; font-size:12px; line-height:1.7; margin-bottom:20px; }
.error-note { padding:12px 15px; background:#fff0f1; border-radius:7px; font-size:12px; color:#b63243; margin:16px 0; }
.tabs { display:flex; gap:22px; border-bottom:1px solid var(--border); padding:0 23px; }
.tab { border:0; padding:16px 0 13px; border-bottom:2px solid transparent; background:none; color:#87878e; font-size:12px; }
.tab.active { border-bottom-color:#09090b; color:#09090b; font-weight:600; }
.toast { position:fixed; bottom:28px; left:50%; transform:translateX(-50%); background:#09090b; color:#fff; border-radius:9px; padding:13px 20px; box-shadow:0 8px 28px #0002; z-index:10000; font-size:13px; max-width:90vw; }
.toast-error { background:#963242; }
.modal-feedback { position:sticky; top:68px; bottom:auto; left:auto; transform:none; margin:12px 24px 0; max-width:none; z-index:4; }
dialog { width:min(660px,calc(100vw - 34px)); max-height:90vh; padding:0; border:1px solid var(--border); border-radius:15px; color:#09090b; box-shadow:0 25px 100px #0002; }
dialog::backdrop { background:#15151866; backdrop-filter:blur(3px); }
dialog.modal-wide { width:min(1030px,calc(100vw - 34px)); }
.modal-head { position:sticky; top:0; z-index:1; background:#fff; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:19px 24px; border-bottom:1px solid var(--border); }
.modal-head h2 { font-size:17px; }
.modal-body { padding:25px; }
.detail-hero { display:flex; justify-content:space-between; gap:20px; border-bottom:1px solid var(--border); padding-bottom:22px; margin-bottom:22px; }
.detail-hero h2 { margin:10px 0 7px; }
.detail-amount { text-align:right; font-size:29px; font-weight:650; font-variant-numeric:tabular-nums; white-space:nowrap; }
.detail-amount small { display:block; font-size:11px; font-weight:400; letter-spacing:0; }
.detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-bottom:23px; }
.detail-grid dt { font-size:11px; color:var(--muted); margin-bottom:6px; }
.detail-grid dd { margin:0; font-size:13px; overflow-wrap:anywhere; }
.detail-section { margin-top:27px; }
.detail-section h3 { margin-bottom:14px; font-size:14px; }
.text-block { white-space:pre-wrap; font-size:13px; line-height:1.8; overflow-wrap:anywhere; }
.timeline { list-style:none; padding:0; margin:0; }
.timeline li { margin-left:7px; border-left:1px solid #e5e6de; padding:0 0 23px 22px; position:relative; }
.timeline li:last-child { border:0; padding-bottom:0; }
.timeline li:before { content:""; position:absolute; width:9px; height:9px; background:#cfdbbb; border:3px solid #fff; border-radius:50%; top:4px; left:-8px; }
.timeline li.complete:before { background:#8ebf40; }
.timeline-header { display:flex; justify-content:space-between; gap:10px; font-size:12px; }
.timeline p { color:#77777d; font-size:12px; margin-top:7px; white-space:pre-wrap; overflow-wrap:anywhere; }
.timeline-signature { max-width:200px; max-height:100px; border:1px solid var(--border); border-radius:6px; margin-top:10px; display:block; }
.attachment-help { margin:-5px 0 12px; font-size:11px; }
.attachment-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.attachment { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:11px 13px; border:1px solid var(--border); border-radius:8px; background:#fff; text-align:left; min-width:0; }
.attachment-icon { color:#68813f; font-size:18px; }
.attachment-info { min-width:0; }
.attachment strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:600; }
.attachment small { color:var(--muted); font-size:10px; display:block; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.attachment-actions { display:flex; gap:2px; white-space:nowrap; }
.attachment-missing { grid-template-columns:auto minmax(0,1fr); color:#963242; background:#fff9f9; }
.history { border:1px solid var(--border); border-radius:8px; margin-top:10px; }
.history summary { padding:12px 15px; font-size:12px; cursor:pointer; background:#fafaf8; border-radius:8px; }
.history>div { padding:15px; }
.preview-image { max-width:100%; max-height:66vh; object-fit:contain; display:block; margin:auto; }
.preview-pdf { width:100%; height:65vh; border:1px solid var(--border); }
.inline-file-preview { margin-bottom:25px; padding:14px; border:1px solid var(--border); border-radius:10px; background:#fafaf8; }
.inline-file-preview-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; font-size:13px; }
.inline-file-preview-head strong { overflow-wrap:anywhere; }
@media(max-width:700px){.attachment-grid{grid-template-columns:1fr}.attachment{grid-template-columns:auto minmax(0,1fr)}.attachment-actions{grid-column:2}}
.flow-card { padding:24px; border-bottom:1px solid var(--border); }
.flow-card:last-child { border:0; }
.flow-title { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.flow-title h3 { font-size:14px; }
.flow-title p { color:var(--muted); margin-top:5px; font-size:11px; }
.flow-track { display:flex; gap:10px; align-items:stretch; margin-top:22px; flex-wrap:wrap; }
.flow-node { padding:13px 16px; background:#f7f7f4; border:1px solid #edede7; border-radius:9px; min-width:155px; flex:1; position:relative; }
.flow-node:last-child { background:#f2f8e6; border-color:#e4efcc; }
.flow-node small { display:block; font-size:10px; }
.flow-node strong { display:block; margin:6px 0 4px; font-size:12px; font-weight:550; }
.node-editor { padding:17px; border:1px solid var(--border); border-radius:10px; margin-bottom:12px; background:#fafaf8; }
.node-editor-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:13px; }
.node-editor-head strong { font-size:12px; }
.node-editor-head .actions { gap:3px; }
.node-editor .form-grid { gap:12px; }
.node-editor .field>span { font-size:11px; }
.login-page { min-height:100vh; display:grid; grid-template-columns:1fr 1fr; }
.login-story { background:#09090b; color:#fff; padding:55px 65px; display:flex; flex-direction:column; justify-content:space-between; min-height:100vh; }
.login-story .brand { padding:0; }
.login-story .brand small { color:#858589; }
.login-story h1 { font-size:52px; line-height:1.26; font-weight:600; letter-spacing:-2px; margin-bottom:24px; }
.login-story h1 span { color:var(--lime); }
.login-story p { max-width:360px; color:#96969c; line-height:1.9; font-size:14px; }
.login-story-footer { font-size:11px; color:#66666d; }
.login-form-wrap { display:grid; place-content:center; padding:55px; }
.login-card { width:380px; max-width:100%; }
.login-card h2 { font-size:28px; margin-bottom:10px; }
.login-card>p { font-size:13px; color:var(--muted); line-height:1.8; margin-bottom:35px; }
.login-card .field { margin-bottom:20px; }
.login-card .button { width:100%; margin-top:8px; height:47px; }
.login-card .login-note { font-size:11px; color:#99999f; margin-top:22px; text-align:center; }
.result-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.result-grid .stat { padding:15px; }
.result-grid .stat-value { font-size:21px; }
.simple-list { margin:0; padding-left:20px; color:var(--muted); font-size:12px; line-height:1.9; }
[hidden] { display:none !important; }
@media (min-width:1650px) { .main { padding-left:58px; padding-right:58px; } }
@media (max-width:1150px) { .shell { grid-template-columns:200px minmax(0,1fr); } .main { padding:0 24px 35px; } .filters { grid-template-columns:repeat(3,minmax(0,1fr)); } .login-story { padding:42px; } .login-story h1 { font-size:43px; } }
@media (max-width:850px) { .shell { display:block; } .sidebar { position:static; height:auto; padding:16px 20px; border-right:0; border-bottom:1px solid var(--border); } .sidebar .brand { padding:0; } .sidebar-label,.sidebar-bottom { display:none; } .nav { flex-direction:row; overflow-x:auto; margin-top:18px; gap:7px; } .nav a { white-space:nowrap; padding:8px 11px; font-size:12px; } .nav-icon { display:none; } .main { padding:0 20px 30px; } .topbar { height:63px; margin-bottom:24px; } .page-title { gap:14px; } h1 { font-size:25px; } .stats { gap:10px; } .stat { padding:16px; } .stat-value { font-size:23px; } .filters { grid-template-columns:repeat(2,minmax(0,1fr)); } .filters .filter-search { grid-column:span 1; } .selection-bar { align-items:flex-start; flex-direction:column; } .checkbox-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .login-page { grid-template-columns:1fr; } .login-story { min-height:0; padding:24px; } .login-story h1,.login-story p,.login-story-footer { display:none; } .login-form-wrap { padding:50px 25px; } }
@media (max-width:550px) { .page-title { flex-direction:column; } .stats { grid-template-columns:1fr; gap:8px; } .stat { display:grid; grid-template-columns:1fr auto; align-items:center; padding:14px 18px; } .stat-value { margin:0; font-size:23px; } .stat-help { grid-column:1 / -1; margin-top:4px; } .form-grid,.detail-grid { grid-template-columns:1fr; } .span-2 { grid-column:span 1; } .filters { padding:16px; gap:11px; } .panel-head { padding:16px; } .detail-hero { flex-direction:column; } .detail-amount { text-align:left; } .modal-body { padding:18px; } .checkbox-grid { grid-template-columns:1fr; } .system-status { display:none; } .result-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:850px) {
  .mobile-menu-toggle.button { display:inline-flex; }
  .sidebar .nav { display:none; margin-top:16px; max-height:65vh; overflow-y:auto; }
  .sidebar.menu-open .nav { display:flex; flex-direction:column; align-items:stretch; flex-wrap:nowrap; }
  .sidebar .nav>a { width:100%; }
  .sidebar .settings-nav,.sidebar .settings-nav[open] { width:100%; }
  .sidebar .settings-nav[open] a { display:flex; margin:3px 0; }
  .main { padding-left:clamp(14px,3vw,24px); padding-right:clamp(14px,3vw,24px); }
  .page-title,.panel-head { flex-wrap:wrap; }
  .panel-head>.actions { width:100%; }
}
@media (max-width:700px) {
  .table-wrap { overflow:visible; }
  .table-wrap table,.table-wrap tbody,.table-wrap tr { display:block; width:100%; }
  .table-wrap colgroup { display:none; }
  .table-wrap thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  .table-wrap tr { padding:12px 16px; border-bottom:1px solid var(--border); }
  .table-wrap tr:last-child { border-bottom:0; }
  .table-wrap td { display:grid; grid-template-columns:minmax(78px,30%) minmax(0,1fr); gap:10px; align-items:start; width:100%; padding:7px 0; border:0; white-space:normal; overflow-wrap:anywhere; }
  .table-wrap td::before { content:attr(data-label); color:var(--muted); font-size:11px; }
  .table-wrap td.reason-cell { min-width:0; max-width:none; }
  .table-wrap td:last-child { padding-bottom:2px; }
  .table-wrap td .link-button { justify-self:start; }
  .list-pagination { padding:14px 16px; }
  .selection-bar .actions { width:100%; }
  .selection-bar .actions .button { flex:1; }
  .stats { grid-template-columns:1fr; }
}
@media (max-width:400px) { .list-pagination-actions { width:100%; justify-content:space-between; } .list-pagination-actions label { width:100%; } }
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.checkbox-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.check-line{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.6;margin:10px 0}.node-editor{padding:20px;border:1px solid var(--border,#e4e4e7);border-radius:14px;margin:16px 0;background:#fafaf8}.node-editor .row{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.form-grid .field{min-width:0}@media(max-width:700px){.form-grid,.checkbox-grid{grid-template-columns:1fr}}
