/* ERP workspace: restrained chrome, readable records, consistent interaction states. */
:root {
  font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #243246;
  background: #f5f6f8;
  font-size: 14px;
  --navy: #142438;
  --teal: #166e63;
  --line: #dfe4eb;
  --muted: #64748b;
  --workspace-header: 64px;
}
body { line-height: 1.5; }
html[lang="zh-CN"] { font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Segoe UI", sans-serif; }
button { border-radius: 5px; padding: 8px 13px; color: #334155; border-color: #cfd7e2; font-size: 13px; min-height: 36px; font-weight: 600; }
button:hover { background: #f1f5f9; border-color: #94a3b8; }
button.primary { background: #166e63; border-color: #166e63; }
button.primary:hover { background: #10584f; border-color: #10584f; }
button.small { font-size: 12px; min-height: 30px; padding: 5px 10px; }
button.ghost { color: #53657b; }
button:disabled { opacity: .45; }
button:focus-visible, a:focus-visible, .code:focus-visible, summary:focus-visible { outline: 2px solid #167d91; outline-offset: 3px; }
.icon { width: 18px; height: 18px; stroke-width: 1.7; }
.shell { grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { width: 244px; background: #142438; padding: 22px 12px 18px; scrollbar-width: thin; scrollbar-color: #546378 transparent; }
.brand { padding: 0 10px 23px; font-size: 17px; letter-spacing: -.3px; gap: 10px; }
.brandmark { width: 32px; height: 32px; border-radius: 6px; background: #1d786e; }
.brand small { font-size: 9px; color: #9babbd; letter-spacing: 1.35px; margin-top: 2px; }
.nav-group { margin-bottom: 9px; }
.nav-group > summary.navlabel { display: flex; align-items: center; justify-content: space-between; list-style: none; margin: 0 11px 5px; padding: 8px 0 5px; color: #a5b4c6; letter-spacing: .9px; font-size: 10px; font-weight: 600; }
.nav-group > summary.navlabel::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: '›'; transform: rotate(0deg); font-size: 16px; line-height: 1; }
.nav-group[open] > summary::after { transform: rotate(90deg); }
.navbutton, .nav-group > .navbutton { border-radius: 5px; padding: 9px 11px; font-size: 12px; min-height: 36px; color: #c3cfde; gap: 11px; margin: 1px 0; font-weight: 400; border: 1px solid transparent; }
.navbutton .icon { width: 17px; height: 17px; color: #8ca0b8; }
.navbutton:hover { background: #20344c; border-color: transparent; }
.navbutton.active { background: #25483f; color: #f0fcf7; border-color: #356050; box-shadow: inset 3px 0 #7bc7a1; font-weight: 600; }
.navbutton.active .icon { color: #a5e0be; }
.navbutton .count { background: #80582c; }
.sidebarfoot { font-size: 11px; line-height: 1.8; padding: 16px 11px 0; color: #9bacc0; border-color: #304156; margin-top: 18px; }
.main, .workspace, .card, .cardbody, .grid2 > *, .grid3 > *, .detailgrid > *, .business-detail-fields > section { min-width: 0; }
.topbar { height: var(--workspace-header); padding: 0 28px; background: #fff; backdrop-filter: none; gap: 20px; z-index: 5; }
.workspace-context { display: flex; flex-direction: column; min-width: 100px; max-width: 240px; padding-right: 20px; border-right: 1px solid var(--line); flex-shrink: 1; }
.workspace-context strong { font-size: 12px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1e293b; }
.workspace-context span { font-size: 10px; color: #64748b; margin-top: 1px; }
.topbar > .actions { margin-right: auto; min-width: 0; flex-wrap: nowrap; }
.breadcrumb { font-size: 12px; color: #6b7a8f; white-space: nowrap; }
.breadcrumb b { color: #344459; font-weight: 600; }
.toptools { gap: 12px; flex-shrink: 0; }
.toptools > .muted { font-size: 11px; color: #475569; line-height: 1.5; }
.live { font-size: 11px; color: #28735c; font-weight: 500; }
.live.off { color: #916022; }
.avatar { width: 32px; height: 32px; min-height: 32px; color: #245e53; background: #e4ede9; border: 1px solid #cedfd6; font-size: 12px; }
.workspace { padding: 26px 28px 48px; max-width: 1920px; }
.pagehead { align-items: flex-start; margin-bottom: 24px; gap: 24px; }
.pagehead > div:first-child { min-width: 0; }
.eyebrow { color: #69798e; letter-spacing: .9px; font-size: 10px; font-weight: 600; }
.pagehead h1 { margin: 5px 0 8px; font-size: 25px; font-weight: 650; letter-spacing: -.65px; color: #1e293b; }
.pagehead p { font-size: 13px; line-height: 1.65; max-width: 850px; }
.pagehead > .actions { padding-top: 18px; justify-content: flex-end; flex-shrink: 0; max-width: 45%; }
.actions { gap: 7px; }
.stats { gap: 14px; margin: 20px 0 22px; }
.stat { border-radius: 6px; padding: 18px 20px; box-shadow: 0 1px 2px #0f172a03; border-color: #dfe4eb; }
.stat .label { font-size: 12px; color: #4f6075; font-weight: 500; padding-right: 28px; }
.stat strong { font-size: 30px; font-weight: 650; color: #1e293b; margin: 12px 0 7px; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.stat small { font-size: 11px; color: #69798c; }
.stat .statline { width: 28px; height: 28px; top: 16px; right: 17px; border-radius: 5px; background: #f0f5f2; color: #52786d; }
.stat .statline .icon { width: 16px; height: 16px; }
.stat.warn strong { color: #9c531f; }
.stat.blue strong { color: #245a8f; }
.grid2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { border-radius: 6px; border-color: #dfe4eb; box-shadow: 0 1px 2px #0f172a03; margin-bottom: 18px; overflow: clip; }
.cardhead { padding: 15px 18px; background: #fff; border-bottom-color: #e5e9ef; }
.cardhead h2 { font-size: 14px; font-weight: 650; color: #26364a; }
.cardhead p { font-size: 12px; }
.cardbody { padding: 18px; }
.cardbody h3 { font-size: 14px; }
.card .card { box-shadow: none; }
.toolbar { padding: 12px 16px; gap: 10px; border-bottom-color: #e5e9ef; background: #fff; }
.search { max-width: 390px; min-width: 190px; }
.search input { font-size: 12px; border-color: #d7dee8; background: #fff; padding: 9px 12px 9px 34px; }
.search .icon { top: 10px; color: #64748b; }
input, select, textarea { border-radius: 5px; border-color: #cdd6e2; color: #243246; font-size: 13px; padding: 9px 10px; }
input:focus, select:focus, textarea:focus { border-color: #258573; outline: 2px solid #25857322; }
input[type=checkbox], input[type=radio] { accent-color: #166e63; }
.filter { min-height: 36px; font-size: 12px; }
.field label { color: #43556c; font-size: 12px; font-weight: 600; }
.formgrid { gap: 16px 20px; }
.sectiontitle { color: #526277; font-size: 11px; letter-spacing: .6px; }
.formactions { margin-top: 24px; padding-top: 16px; }
.tablewrap { width: 100%; max-width: 100%; min-width: 0; overflow: auto; overscroll-behavior-x: contain; scrollbar-width: auto; scrollbar-color: #8293a9 #edf1f6; scroll-behavior: auto; position: relative; }
.tablewrap:focus-visible { outline: 2px solid #258573; outline-offset: -2px; }
.tablewrap::-webkit-scrollbar { width: 13px; height: 13px; }
.tablewrap::-webkit-scrollbar-track { background: #edf1f6; border-top: 1px solid #dbe2eb; }
.tablewrap::-webkit-scrollbar-thumb { background: #8b9bb0; border: 3px solid #edf1f6; border-radius: 7px; }
.tablewrap::-webkit-scrollbar-thumb:hover { background: #536b86; }
.tablewrap > table { width: max-content; min-width: 100%; font-size: 12px; border-spacing: 0; }
.tablewrap > table > thead > tr > th { font-size: 11px; font-weight: 600; color: #4b5d73; background: #f4f6f9; text-transform: none; letter-spacing: 0; padding: 11px 14px; height: 40px; border-color: #dfe5ed; }
.tablewrap > table > tbody > tr > td { padding: 11px 14px; min-width: 100px; max-width: 340px; color: #334155; border-bottom: 1px solid #e8edf3; overflow-wrap: break-word; line-height: 1.55; }
.tablewrap > table > tbody > tr > td[data-key=title], .tablewrap > table > tbody > tr > td[data-key=name], .tablewrap > table > tbody > tr > td[data-key=description] { min-width: 230px; }
.tablewrap > table > tbody > tr > td.num { min-width: 100px; }
.tablewrap > table > tbody > tr > td[data-key=actions], .tablewrap > table > tbody > tr > td[data-key=action] { white-space: nowrap; }
.tablewrap > table > tbody > tr:nth-child(even) { background: #fbfcfd; }
.tablewrap > table > tbody > tr:hover { background: #edf5f2; }
.tablewrap > table > tbody > tr:focus-within { background: #eef6f2; }
.tablewrap td .tiny { font-size: 11px; }
.tablewrap td .mono, .tablewrap td .code { font-size: 12px; }
.tablewrap th[data-sort] { cursor: pointer; }
.tablewrap th[data-sort]:hover { background: #e7edf3; color: #1d5263; }
.tablefooter { padding: 10px 16px; border-top: 1px solid #e5e9ef; font-size: 11px; }
.table-scrollbar { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 5px 12px; background: #f6f8fb; border-bottom: 1px solid #dfe5ed; position: sticky; top: var(--workspace-header); z-index: 2; }
.table-scrollbar[hidden] { display: none; }
.table-scroll-caption { font-size: 11px; font-weight: 500; color: #52657c; white-space: nowrap; }
.table-scroll-position { font-size: 10px; font-variant-numeric: tabular-nums; color: #65768b; min-width: 65px; text-align: right; white-space: nowrap; }
button.table-scroll-step { padding: 0; min-height: 26px; width: 26px; flex: 0 0 26px; font-size: 19px; line-height: 1; color: #38526c; border-color: #d1dbe6; background: #fff; border-radius: 4px; }
.table-scroll-range { flex: 1; min-width: 45px; max-width: none; width: 100px; height: 20px; margin: 0; padding: 0; border: 0; background: transparent; cursor: ew-resize; accent-color: #4c6b83; appearance: none; -webkit-appearance: none; }
.table-scroll-range::-webkit-slider-runnable-track { height: 7px; border-radius: 5px; background: linear-gradient(to right, #8499ac var(--scroll-progress, 0%), #d8e1eb var(--scroll-progress, 0%)); }
.table-scroll-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 36px; height: 15px; border-radius: 4px; margin-top: -4px; background: #526f86; border: 2px solid #fff; box-shadow: 0 0 0 1px #647d93; }
.table-scroll-range::-moz-range-track { height: 7px; border-radius: 5px; background: #d8e1eb; }
.table-scroll-range::-moz-range-progress { height: 7px; background: #8499ac; }
.table-scroll-range::-moz-range-thumb { width: 32px; height: 11px; border-radius: 4px; background: #526f86; border: 2px solid #fff; box-shadow: 0 0 0 1px #647d93; }
.table-scroll-range:focus-visible { outline: 2px solid #258573; outline-offset: 3px; border-radius: 3px; }
.badge { font-size: 10px; padding: 3px 7px; border-radius: 4px; letter-spacing: 0; font-weight: 600; }
.badge.green { background: #e8f4ed; color: #226345; }
.badge.orange { background: #fff2db; color: #875412; }
.badge.red { background: #fdebea; color: #a2353c; }
.badge.blue { background: #e9f1fb; color: #2f5e94; }
.badge.purple { background: #eeeaf7; color: #684391; }
.tabs { border-bottom: 1px solid #dbe2eb; gap: 10px; padding: 0; margin-bottom: 20px; }
.tab { border-radius: 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; min-height: 40px; padding: 9px 12px; color: #64748b; font-size: 12px; }
.tab:hover { background: #eef2f6; }
.tab.active { color: #166e63; border-bottom-color: #166e63; background: transparent; font-weight: 650; }
.onboard { background: #fff; color: #243246; border: 1px solid var(--line); border-left: 3px solid #2c7b63; border-radius: 6px; padding: 22px 24px; gap: 24px; }
.onboard h2 { font-size: 18px; letter-spacing: -.3px; }
.onboard p { color: #64748b; font-size: 13px; }
.onboard button { background: #166e63; color: #fff; border: 1px solid #166e63; }
.steps { gap: 20px; margin-top: 18px; }
.step { color: #63758b; font-size: 11px; }
.info { border-radius: 5px; background: #f1f7f4; border-color: #d8e7df; font-size: 12px; color: #486555; padding: 12px 14px; }
.info.warning { background: #fff8eb; color: #825c25; border-color: #eedfc3; }
.empty { padding: 36px 20px; color: #6b7c90; font-size: 12px; }
.empty strong { color: #45576d; }
.department { font-size: 12px; margin: 20px 0; }
.department > span:first-child { color: #52657b; width: 110px; }
.progress { background: #e8edf2; height: 5px; }
.progress div { background: #4f957c; }
.timelineitem { font-size: 12px; padding: 15px 0; gap: 12px; }
.timelineitem strong { font-size: 12px; color: #334155; }
.timelineitem small { font-size: 11px; color: #6f8094; }
.timelineitem time { font-size: 10px; color: #708196; }
.timelineitem .dot { background: #4c9078; width: 7px; height: 7px; margin-top: 6px; }
.overlaybg { background: #12223866; backdrop-filter: none; padding: 24px; }
.modal { width: 680px; border-radius: 8px; max-height: 92vh; box-shadow: 0 20px 70px #14243838; }
.modal.wide { width: 1240px; }
.modalhead { padding: 17px 22px; min-height: 62px; z-index: 4; border-color: #dfe4eb; }
.modalhead h2 { font-size: 18px; font-weight: 650; color: #243246; }
.modalhead button { font-size: 23px; min-width: 30px; }
.modalbody { padding: 22px; min-width: 0; }
.modalbody .table-scrollbar { top: var(--dialog-header, 62px); }
.detailgrid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.detailmeta { gap: 22px; padding: 16px 0 20px; }
.detailmeta small { font-size: 10px; color: #65768a; text-transform: none; letter-spacing: 0; }
.detailmeta strong { font-size: 12px; color: #334155; }
.business-detail-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.business-lines, .business-line, .computed-row, .fileitem, .copy-box, .history-json { border-radius: 5px; }
.business-line { background: #f7f9fb; border: 1px solid #e5eaf0; }
.business-detail-fields section > small { font-size: 12px; }
.business-detail-fields section > div { font-size: 13px; }
.computed dt { font-size: 12px; }
.computed dd { font-size: 12px; }
.fileitem b { font-size: 12px; }
.fileitem small { font-size: 10px; }
.kanban { gap: 14px; }
.kanbancol { border-radius: 6px; background: #edf1f5; padding: 12px; }
.kanbancol > h3 { font-size: 12px; color: #42556d; }
.issuecard { border-radius: 5px; box-shadow: 0 1px 2px #0f172a04; padding: 14px; }
.issuecard h4 { font-size: 13px; line-height: 1.6; }
.issuecard .foot { font-size: 11px; }
.message { border-radius: 6px; background: #f1f4f8; }
.message.mine { background: #eaf3ed; }
.message p { font-size: 13px; }
.message b { font-size: 11px; }
.message time { font-size: 10px; }
.settings-bar, .archive-search { border-radius: 6px; gap: 9px; }
.settings-bar button { font-size: 12px; }
.language-picker { font-size: 12px; color: #475569; }
.language-picker select { border-radius: 5px; font-size: 12px; }
.refreshnote { font-size: 11px; color: #6b7d91; }
.auth { background: #f7f9fb; }
.authhero { background: #142438; padding: 56px; }
.authhero:after { display: none; }
.authhero h1 { font-size: 38px; font-weight: 600; letter-spacing: -.8px; line-height: 1.35; }
.authhero p { font-size: 14px; color: #bac8d9; }
.authhero small { color: #a8b8ca; }
.authform h2 { font-size: 25px; font-weight: 650; }
.authform p { font-size: 13px; color: #64748b; }
.authnote { color: #64748b; font-size: 11px; }
.toast { border-radius: 6px; font-size: 13px; background: #233b4c; box-shadow: 0 6px 22px #14243820; }
.errorinline { border-radius: 5px; font-size: 12px; }
@media (min-width: 1600px) { .workspace { padding: 30px 36px 50px; } .topbar { padding: 0 36px; } }
@media (max-width: 1200px) {
  .topbar { gap: 14px; padding: 0 22px; }
  .workspace { padding: 24px 22px 45px; }
  .breadcrumb { font-size: 11px; }
  .workspace-context { max-width: 170px; padding-right: 14px; }
  .toptools > .muted { display: none; }
  .pagehead > .actions { max-width: 44%; }
}
@media (max-width: 1100px) {
  .grid2, .detailgrid { grid-template-columns: minmax(0, 1fr); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pagehead { flex-wrap: wrap; gap: 14px; }
  .pagehead > .actions { padding-top: 0; max-width: 100%; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .workspace-context { max-width: 160px; }
  .breadcrumb { display: none; }
  .toptools { gap: 8px; }
}
@media (max-width: 760px) {
  :root { --workspace-header: 60px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { width: 264px; z-index: 7; box-shadow: 12px 0 40px #14243830; }
  .topbar { height: 60px; padding: 0 14px; gap: 10px; }
  .topbar > .workspace-context { order: 1; margin-right: auto; border: 0; padding-right: 0; max-width: min(43vw, 210px); min-width: 0; flex: 1; }
  .topbar > .actions { order: 0; margin-right: 0; flex-shrink: 0; }
  .toptools { order: 2; }
  .toptools .live { font-size: 10px; }
  .workspace { padding: 20px 14px 35px; }
  .pagehead h1 { font-size: 23px; }
  .pagehead p { font-size: 12px; }
  .pagehead > .actions { padding-top: 0; max-width: 100%; }
  .cardbody, .cardhead { padding: 16px; }
  .cardhead { gap: 10px; flex-wrap: wrap; }
  .stats { gap: 10px; }
  .stat { padding: 15px; }
  .stat .label { padding-right: 0; }
  .stat strong { font-size: 27px; }
  .grid3, .formgrid, .business-detail-fields { grid-template-columns: minmax(0, 1fr); }
  .toolbar { padding: 12px; }
  .table-scrollbar { gap: 7px; padding: 5px 9px; flex-wrap: wrap; }
  .table-scroll-caption { width: 100%; font-size: 10px; }
  .table-scroll-range { flex: 1; }
  .table-scroll-position { min-width: 60px; }
  .overlaybg { padding: 8px; align-items: flex-end; }
  .modal { border-radius: 8px; max-height: 94vh; }
  .modalhead { padding: 15px 16px; }
  .modalhead h2 { font-size: 17px; }
  .modalbody { padding: 16px; }
  .onboard { padding: 20px; }
  .authform { padding: 24px; }
  .formactions { flex-wrap: wrap; }
  .business-pagination { flex-wrap: wrap; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .table-scrollbar, .workspace-context { display: none !important; }
  .tablewrap { overflow: visible; }
  .tablewrap > table { width: 100%; min-width: 0; font-size: 9px; }
  .tablewrap > table > tbody > tr > td { min-width: 0; padding: 5px; }
  .tablewrap > table > thead > tr > th { white-space: normal; padding: 5px; }
  .card { box-shadow: none; overflow: visible; }
}

.field[hidden]{display:none!important}
.hybrid-steps ol{padding-left:24px;line-height:1.8}
