:root {
  --teal: #069a91;
  --teal-dark: #087f78;
  --teal-line: #5bb5b0;
  --pale: #ffffe6;
  --gray-bg: #f2f5f7;
  --gray-cell: #eef2f5;
  --red: #bf262b;
  --red-dark: #9e171c;
  --blue: #113dff;
  --text: #333;
  --border: #70b9b5;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 1180px; background: #fff; color: var(--text); font-family: "Microsoft YaHei", Arial, sans-serif; font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.app { min-height: 100vh; }

/* 登录 */
.login-view { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #eef2f2; }
.login-window { width: 720px; border: 1px solid #d3e8e6; background: #fff; box-shadow: 0 15px 45px rgba(0,0,0,.28); }
.login-banner { height: 96px; display: flex; align-items: center; gap: 22px; padding: 0 34px; background: var(--teal); color: #fff; }
.login-logo { color: #fff700; font-size: 38px; font-weight: 700; letter-spacing: 2px; }
.login-banner h1 { margin: 0 0 6px; font-size: 27px; }
.login-banner p { margin: 0; color: #e2fffc; }
.login-body { display: grid; grid-template-columns: 1fr 320px; gap: 26px; padding: 30px; }
.login-notice { border: 1px solid #badfdd; background: #f6ffff; padding: 18px; line-height: 1.8; }
.login-notice b { display: block; color: var(--teal-dark); font-size: 17px; }
.login-notice span { display: block; color: #0b4d49; font-weight: 700; margin: 9px 0; }
.login-notice p { margin: 0; color: #626262; }
.login-footer { padding: 10px 18px; border-top: 1px solid #ddd; background: #f5f5f5; color: #777; text-align: center; font-size: 12px; }
.login-actions { text-align: center; margin-top: 12px; }

/* 头部 */
.legacy-header { position: relative; height: 81px; background: var(--teal); color: #fff; border-bottom: 1px solid #0b7771; padding-left: 132px; }
.identity-box { position: absolute; left: 0; top: 0; width: 128px; height: 80px; text-align: center; padding-top: 5px; line-height: 1.3; }
.identity-box b, .identity-box strong, .identity-box a { display: block; }
.identity-box b { font-size: 16px; }
.identity-box strong { font-size: 15px; margin-top: 2px; }
.identity-box a { color: #ffff00; text-decoration: none; font-weight: 700; margin-top: 2px; }
.brand-box { position: absolute; left: 135px; top: 0; color: #ffff00; font-size: 25px; line-height: 31px; }
.header-message { position: absolute; left: 245px; top: 4px; right: 500px; height: 25px; overflow: hidden; white-space: nowrap; font-weight: 700; }
.header-message span { display: inline-block; min-width: 100%; animation: marquee 28s linear infinite; }
@keyframes marquee { from { transform: translateX(30%); } to { transform: translateX(-100%); } }
.countdown-box { position: absolute; top: 3px; right: 10px; display: flex; gap: 14px; color: #ffff00; font-size: 12px; white-space: nowrap; }
.legacy-nav { position: absolute; left: 128px; right: 0; bottom: 0; height: 41px; display: flex; align-items: end; gap: 3px; padding-left: 8px; }
.legacy-nav button { height: 35px; min-width: 88px; padding: 0 15px; border: 1px solid #edf8f7; border-bottom: none; background: #f6f6f6; color: #3e3e3e; font-size: 16px; font-weight: 700; border-radius: 4px 4px 0 0; }
.legacy-nav button:hover, .legacy-nav button.active { background: #fffad0; color: #333; }

.breadcrumb-bar { min-height: 38px; margin: 12px 8px 8px; border: 1px solid #87c2bd; background: var(--pale); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; font-size: 16px; }
.breadcrumb-bar b { color: red; font-weight: 500; }
.context-links { font-weight: 700; }
.context-links button { border: none; background: transparent; padding: 0 3px; font-weight: 700; color: #444; }
.context-links button.active { color: red; }
.context-links button:disabled { color: #aaa; cursor: not-allowed; }
.context-links .sep { margin: 0 2px; color: #777; }

.workspace { padding: 0 8px 30px; }
.panel { display: none; }
.panel.active { display: block; }
.section-title { min-height: 38px; background: var(--teal); color: #fff; font-weight: 700; font-size: 17px; padding: 7px 8px; border: 1px solid var(--teal-dark); }
.title-row { display: flex; justify-content: space-between; align-items: center; }
.title-row > span:last-child { color: #fff; font-size: 13px; font-weight: 400; }

/* 表单 */
.search-strip { min-height: 48px; border: 1px solid var(--border); border-top: none; background: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 8px 14px; }
.search-strip label { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.search-strip input, .search-strip select, .legacy-form input, .legacy-form select, .profile-table input { height: 30px; border: 1px solid #b9c3cb; background: #fff; padding: 2px 7px; min-width: 128px; }
.search-strip input[type="date"] { width: 150px; }
.search-strip input[type="datetime-local"] { width: 235px; }
.search-strip input[type="radio"], .search-strip input[type="checkbox"] { min-width: auto; width: 18px; height: 18px; accent-color: #1976e9; }
.short-input { width: 108px !important; min-width: 108px !important; }
.radio-group { display: inline-flex; gap: 10px; align-items: center; }
.radio-group label { font-weight: 700; }
.compact-search { min-height: 42px; }
.dense-filter { gap: 8px 12px; }
.red-button, .gray-button, .link-button { border-radius: 4px; min-height: 31px; padding: 4px 17px; font-weight: 700; }
.red-button { border: 1px solid var(--red-dark); color: #fff; background: #a9363a; }
.red-button:hover { background: #922d31; }
.red-button:disabled { opacity: .55; cursor: not-allowed; }
.gray-button { border: 1px solid #aeb6bc; color: #333; background: #f2f4f5; }
.link-button { border: none; color: #113dff; background: transparent; padding-left: 4px; padding-right: 4px; }
.link-button.strong { font-size: 16px; color: red; }
.small { min-height: 29px; padding: 3px 14px; }

/* 表格 */
.table-scroll { overflow: auto; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.wide-table table { min-width: 1740px; }
.legacy-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.legacy-table th, .legacy-table td { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 8px 8px; text-align: center; vertical-align: middle; white-space: nowrap; }
.legacy-table th:last-child, .legacy-table td:last-child { border-right: none; }
.legacy-table thead th { background: var(--teal); color: #fff; font-size: 16px; font-weight: 700; }
.legacy-table tbody td { background: #fff; }
.legacy-table tbody tr:nth-child(odd) td { background: var(--gray-cell); }
.legacy-table tfoot td { background: #b7dfdf; font-weight: 700; }
.legacy-table.compact th, .legacy-table.compact td { padding: 7px 7px; }
.legacy-table .left { text-align: left; white-space: normal; }
.legacy-table .red { color: red; }
.legacy-table .blue { color: #153bff; }
.legacy-table .green { color: green; }
.legacy-table .muted { color: #999; }
.legacy-table .positive { color: #d90000; font-weight: 700; }
.legacy-table .negative { color: #007b1d; font-weight: 700; }
.legacy-table .empty-row { text-align: left; color: #666; background: #fff !important; }
.legacy-table .actions { display: flex; gap: 8px; justify-content: center; }
.legacy-table .actions button { border: none; background: transparent; color: #1544ff; padding: 0; }
.account-table td:nth-child(2) { min-width: 180px; line-height: 1.7; }
.account-table td:nth-child(10) { min-width: 220px; }
.report-table-wrap { border-top: 1px solid var(--border); }
.report-table thead th { color: #222; background: #eee; }
.report-table thead .group-yellow { background: #ffd268; }
.report-table thead .group-pink { background: #f8cae1; }
.report-table thead .group-orange { background: #ffdda9; }
.draw-table th, .draw-table td { height: 50px; }
.ball { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 20px; font-weight: 700; background: #365d8d; box-shadow: inset 0 1px 3px rgba(255,255,255,.8); }
.ball.red-ball { background: #a94145; }

.info-box, .warning-box, .settings-note { margin: 12px 0; padding: 10px 14px; border: 1px solid #95c8c4; background: #f4ffff; line-height: 1.8; }
.warning-box { border-color: #e4b56a; background: #fff9df; }
.summary-strip { margin-top: 10px; padding: 10px 14px; border-top: 1px solid #a3d000; color: #555; }
.account-info-line { min-height: 42px; display: flex; gap: 24px; align-items: center; padding: 7px 34px; border-bottom: 1px solid var(--border); color: #555; }
.account-info-line span:first-child { color: #0b36ff; }
.orange-text { color: #ff7900; }
.red-text { color: red; }
.green-text { color: green; }

/* 规则 */
.rules-page { border: 1px solid var(--border); padding: 22px 36px 40px; background: #fff; line-height: 1.9; }
.rules-page h2 { text-align: center; color: #176b66; margin: 4px 0 24px; }
.rule-block { border-bottom: 1px dashed #b7cfcd; padding: 8px 0 14px; }
.rule-block h3 { color: var(--teal-dark); margin: 0 0 5px; }
.rule-block p { margin: 0; }

/* 设置 */
.settings-tabs { min-height: 42px; display: flex; justify-content: flex-end; align-items: center; gap: 0; border: 1px solid #a4c9c6; background: var(--pale); padding-right: 16px; margin-bottom: 50px; }
.settings-tabs button { border: none; background: transparent; padding: 0 7px; font-weight: 700; color: #444; border-right: 1px solid #888; }
.settings-tabs button:last-child { border-right: none; }
.settings-tabs button.active { color: red; }
.settings-section { display: none; }
.settings-section.active { display: block; }
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table th, .profile-table td { border: 1px solid var(--border); padding: 8px 12px; background: #eef2f4; }
.profile-table th { width: 15%; text-align: right; font-weight: 400; }
.profile-table td { width: 35%; }
.profile-table input { width: 240px; background: #f8f8f8; }
.password-form { width: 520px; margin: 32px auto; border: 1px solid var(--border); padding: 28px; background: #f9ffff; }
.password-form > label { margin-bottom: 14px; }
.password-form > div:last-child { text-align: center; margin-top: 18px; }
.empty-settings { margin: 40px auto; width: 650px; text-align: center; border: 1px solid #b4d5d2; background: #f7ffff; padding: 35px; line-height: 1.8; }

/* 通用表单 */
.legacy-form { display: flex; flex-direction: column; gap: 13px; }
.legacy-form label { display: flex; align-items: center; }
.legacy-form label > span:first-child { width: 116px; text-align: right; padding-right: 8px; }
.legacy-form input { flex: 1; }
.input-with-button { display: flex; gap: 7px; flex: 1; }
.input-with-button input { min-width: 0; }
.message { min-height: 22px; color: #c11; text-align: center; }
.message.success { color: green; }

/* 弹层 */
.overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); }
.dialog { width: 780px; max-height: 90vh; background: #fff; border: 3px solid var(--teal); box-shadow: 0 15px 50px rgba(0,0,0,.35); }
.small-dialog { width: 520px; }
.dialog-title { min-height: 44px; padding: 9px 15px; background: var(--teal); color: #fff; font-size: 19px; font-weight: 700; }
.dialog-title.warning { background: #b12429; }
.dialog-tip { margin: 15px; padding: 10px 12px; background: #fff7d9; border: 1px solid #e5ca74; line-height: 1.7; }
.dialog-actions { display: flex; justify-content: center; gap: 16px; padding: 15px; }
.rules-scroll { margin: 18px; padding: 5px 15px; height: 430px; overflow: auto; border: 1px solid #b7d8d5; line-height: 1.8; }
.rules-scroll h3 { color: var(--teal-dark); margin-bottom: 4px; }
.rules-scroll p { margin-top: 0; }
.agree-line { display: block; margin: 0 22px; padding: 10px; background: #fffbe4; border: 1px solid #e7d887; }
.credential-form, .modal-form { padding: 18px 28px 4px; }
.created-result { margin: 8px 0; padding: 12px; border: 1px solid #8abf8a; background: #f1fff1; text-align: center; }
.created-result p { margin: 6px 0; }

/* 状态 */
.status-tag { display: inline-block; min-width: 48px; padding: 2px 7px; border-radius: 3px; color: #fff; font-size: 12px; }
.status-active { background: #299250; }
.status-disabled { background: #a8242a; }
.status-pending { background: #d28911; }
.status-neutral { background: #777; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 2000; min-width: 260px; max-width: 520px; padding: 13px 18px; background: #126b65; color: #fff; border-radius: 4px; box-shadow: 0 5px 20px rgba(0,0,0,.3); }
.toast.error { background: #a32025; }
code { font-family: Consolas, monospace; }

/* 下级管理内部页面切换 */
.account-subview { min-height: 420px; }
.account-inline-page { background: #fff; }
.account-page-card { width: 100%; min-height: 420px; background: #fff; border: 1px solid var(--teal); box-shadow: none; }
.account-inline-page .wide-dialog, .account-inline-page .huge-dialog { width: 100%; max-height: none; height: auto; }
.account-inline-page .subordinate-edit-dialog { max-height: none; }
.account-inline-page .dialog-scroll { overflow: visible; }
.account-inline-page .edit-settings-scroll { max-height: 520px; }
.account-inline-page .subordinate-view-dialog { min-height: 680px; display: flex; flex-direction: column; }
.account-inline-page .view-content { min-height: 470px; max-height: calc(100vh - 300px); }
.account-page-title { display: flex; align-items: center; justify-content: flex-start; gap: 14px; }
.account-page-title > span { flex: 1; }
.account-back-button { min-height: 29px; padding: 3px 12px; border: 1px solid rgba(255,255,255,.78); border-radius: 3px; background: rgba(255,255,255,.13); color: #fff; font-weight: 700; cursor: pointer; }
.account-back-button:hover { background: rgba(255,255,255,.25); }
.account-path-line { padding: 10px 14px; border: 1px solid #aed1ce; border-top: none; background: #f4ffff; line-height: 1.6; }
.account-children-summary { padding: 10px 14px; border-left: 1px solid #d0dfdd; border-right: 1px solid #d0dfdd; background: #fff; color: #555; }
.account-table .account-drill-button { white-space: nowrap; }

/* 下级管理增强 */
.wide-dialog { width: min(1320px, calc(100vw - 36px)); }
.huge-dialog { width: min(1540px, calc(100vw - 24px)); height: min(920px, calc(100vh - 24px)); display: flex; flex-direction: column; }
.dialog-scroll { overflow: auto; padding: 14px 16px 0; }
.subordinate-edit-dialog { max-height: 94vh; display: flex; flex-direction: column; }
.subordinate-edit-dialog .dialog-scroll { flex: 1; }
.edit-basic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; padding: 16px; border: 1px solid var(--border); border-top: none; background: #f8fbfb; }
.edit-basic-grid label { display: flex; align-items: center; gap: 8px; }
.edit-basic-grid label > span:first-child { width: 92px; text-align: right; white-space: nowrap; }
.edit-basic-grid input, .edit-basic-grid select { height: 32px; min-width: 0; flex: 1; border: 1px solid #b9c3cb; padding: 3px 7px; background: #fff; }
.development-block { margin: 14px 0; padding: 13px 16px; border: 1px solid #c7c7c7; background: #efefef; color: #777; }
.development-block > div:first-child { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.development-badge { display: inline-block; padding: 2px 9px; border-radius: 10px; background: #aaa; color: #fff; font-size: 12px; }
.development-fields { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 12px 0 8px; }
.development-fields label { display: inline-flex; align-items: center; gap: 6px; }
.development-fields input, .development-fields select { height: 30px; width: 150px; color: #8a8a8a; border: 1px solid #c8c8c8; background: #dedede; }
.development-block p { margin: 6px 0 0; }
.settings-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 10px 14px; border: 1px solid var(--border); border-top: none; background: #fbffff; }
.settings-toolbar label { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.settings-toolbar input[type="checkbox"] { width: 17px; height: 17px; accent-color: #177c73; }
.settings-toolbar span { margin-left: auto; color: #8a4d00; }
.edit-settings-scroll { max-height: 430px; border-top: none; }
.edit-settings-table { min-width: 1120px; }
.edit-settings-table th { position: sticky; top: 0; z-index: 2; }
.edit-settings-table input, .edit-settings-table select { height: 28px; min-width: 96px; max-width: 145px; border: 1px solid #aebcc3; padding: 2px 6px; text-align: right; background: #fff; }
.edit-settings-table select { min-width: 78px; text-align: center; }
.edit-settings-table .readonly-value { color: #555; font-weight: 700; }
.edit-settings-table .limit-hint { display: block; margin-top: 3px; color: #d13a31; font-size: 11px; font-weight: 400; }
.edit-settings-table .input-invalid { border-color: #d2232a; background: #fff0f0; }
.settings-help { margin: 10px 0 0; padding: 9px 12px; border: 1px solid #e3cf85; background: #fffbe4; color: #665614; line-height: 1.7; }

.parent-info-card { margin: 18px 24px 4px; border: 1px solid #b9d4d1; background: #fbffff; padding: 18px 24px; line-height: 2; }
.parent-info-card dl { display: grid; grid-template-columns: 105px 1fr; margin: 0; }
.parent-info-card dt { text-align: right; padding-right: 12px; color: #666; }
.parent-info-card dd { margin: 0; font-weight: 700; }

.subordinate-view-dialog .dialog-title { flex: 0 0 auto; }
.dialog-close-x { border: none; background: transparent; color: #fff; font-size: 27px; line-height: 1; padding: 0 5px; cursor: pointer; }
.view-tabs { flex: 0 0 auto; display: flex; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #87c2bd; background: #effbf9; }
.view-tabs button { min-width: 112px; height: 34px; border: 1px solid #aab8b7; border-radius: 3px; background: #f3f5f5; font-weight: 700; color: #333; }
.view-tabs button.active { border-color: #087b72; background: var(--teal); color: #fff; }
.view-tabs button.disabled-feature { color: #9b9b9b; background: #e2e2e2; border-color: #c6c6c6; }
.view-toolbar { flex: 0 0 auto; min-height: 48px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; padding: 8px 14px; border-bottom: 1px solid #b7d4d1; background: #fff; }
.view-toolbar label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.view-toolbar input, .view-toolbar select { height: 30px; border: 1px solid #b8c4c9; padding: 2px 6px; }
.view-toolbar .mode-buttons { display: inline-flex; gap: 6px; }
.view-toolbar .mode-buttons button { min-height: 30px; border: 1px solid #aeb7bc; background: #f6f6f6; padding: 3px 12px; font-weight: 700; }
.view-toolbar .mode-buttons button.active { border-color: #087b72; background: #e1fffa; color: #006b62; }
.view-content { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 12px 14px; background: #fff; }
.view-loading, .feature-development { margin: 40px auto; max-width: 720px; padding: 30px; border: 1px solid #c7c7c7; background: #f1f1f1; color: #777; text-align: center; line-height: 1.9; }
.feature-development b { display: block; margin-bottom: 8px; font-size: 20px; color: #777; }
.view-order-table { min-width: 1480px; }
.view-report-table { min-width: 1060px; }
.view-summary { margin: 0 0 10px; padding: 9px 13px; border: 1px solid #a9cfcb; background: #f3ffff; line-height: 1.6; }
.board-summary { display: flex; gap: 22px; align-items: center; margin-bottom: 10px; padding: 10px 14px; border: 1px solid #a9cfcb; background: #f4ffff; }
.board-summary .development-text { color: #999; }
.goods-board-grid { display: grid; grid-template-columns: repeat(8, minmax(118px, 1fr)); gap: 6px; padding-bottom: 12px; }
.goods-board-cell { min-height: 82px; border: 1px solid #b9d1cf; background: #fff; }
.goods-board-cell:nth-child(odd) { background: #f8fbfb; }
.goods-board-number { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-bottom: 1px solid #d2e1df; color: #007a70; font-size: 16px; font-weight: 700; }
.goods-board-number::before { content: ''; width: 18px; height: 18px; border: 1px solid #9dc5c1; border-radius: 50%; background: #effaf8; }
.goods-board-lines { padding: 5px 8px; font-size: 12px; line-height: 1.55; color: #666; }
.goods-board-lines div { display: flex; justify-content: space-between; gap: 8px; }
.goods-board-lines .pending { color: #aaa; }
.goods-board-lines .amount { color: #bd1f23; font-weight: 700; }

@media (max-width: 1100px) {
  .edit-basic-grid { grid-template-columns: 1fr; }
  .goods-board-grid { grid-template-columns: repeat(5, minmax(118px, 1fr)); }
}

.parent-info-card .direct-parent-mark { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 9px; background: #e3f7f4; color: #087b72; font-size: 11px; font-weight: 700; }


/* 管理端视觉优化：克制、扁平、紧凑 */
:root {
  --teal: #2f6f6b;
  --teal-dark: #245a57;
  --teal-line: #8fb5b2;
  --pale: #f7f8f5;
  --gray-bg: #f4f6f7;
  --gray-cell: #fafbfb;
  --red: #a9363a;
  --red-dark: #8e2d31;
  --blue: #2d5f89;
  --text: #2d3436;
  --border: #d7dfdf;
}
html, body { background: #f4f6f7; font-size: 13px; line-height: 1.45; }
button, input, select, textarea { font-size: 13px; }

.login-view { background: #eef2f2; }
.login-window { width: 680px; border: 0; border-top: 4px solid var(--teal); box-shadow: 0 12px 34px rgba(30,55,54,.16); }
.login-banner { height: 82px; padding: 0 28px; gap: 18px; background: #2f6f6b; }
.login-logo { color: #fff; font-size: 30px; }
.login-banner h1 { font-size: 23px; }
.login-banner p { color: #dbe9e8; }
.login-body { grid-template-columns: 1fr 300px; gap: 22px; padding: 24px 26px; }
.login-notice { border: 0; border-left: 3px solid #87aaa7; background: #f6f8f8; padding: 15px 17px; }
.login-notice b { font-size: 15px; }

.legacy-header { height: 72px; padding-left: 120px; background: #2f6f6b; border-bottom: 0; box-shadow: 0 2px 7px rgba(25,55,53,.16); }
.identity-box { width: 116px; height: 71px; padding-top: 5px; border-right: 1px solid rgba(255,255,255,.16); }
.identity-box b { font-size: 14px; }
.identity-box strong { font-size: 13px; }
.identity-box a { color: #e4efee; font-weight: 500; }
.brand-box { left: 126px; color: #fff; font-size: 20px; line-height: 28px; }
.header-message { left: 205px; top: 5px; right: 470px; height: 22px; color: #e7f0ef; font-weight: 500; }
.countdown-box { top: 5px; color: #eef5f4; font-size: 11px; }
.legacy-nav { left: 116px; height: 38px; gap: 1px; padding-left: 8px; }
.legacy-nav button { height: 31px; min-width: 69px; padding: 0 10px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #e8f0ef; font-size: 13px; font-weight: 600; }
.legacy-nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.legacy-nav button.active { background: #fff; color: #2c5552; border-bottom-color: #fff; }

.breadcrumb-bar { min-height: 34px; margin: 10px 12px 8px; border: 0; border-bottom: 1px solid #d7dfdf; background: transparent; padding: 0 8px; font-size: 13px; }
.breadcrumb-bar b { color: #8b3034; font-weight: 600; }
.context-links { font-weight: 500; }
.context-links button { color: #4d5c5b; font-weight: 500; }
.context-links button.active { color: #8b3034; }
.workspace { padding: 0 12px 24px; }

.section-title { min-height: 34px; padding: 7px 10px 6px; border: 0; border-bottom: 2px solid #6b9693; background: #fff; color: #2d4f4c; font-size: 14px; font-weight: 650; }
.title-row > span:last-child { color: #70807f; font-size: 12px; }
.search-strip { min-height: 42px; border: 0; border-bottom: 1px solid #dce3e3; background: #fff; gap: 7px 12px; padding: 7px 10px; box-shadow: 0 1px 2px rgba(40,65,63,.04); }
.search-strip input, .search-strip select, .legacy-form input, .legacy-form select, .profile-table input { height: 27px; min-width: 116px; padding: 2px 6px; border: 1px solid #c9d2d2; border-radius: 2px; }
.search-strip input[type="date"] { width: 138px; }
.search-strip input[type="datetime-local"] { width: 205px; }
.search-strip input[type="radio"], .search-strip input[type="checkbox"] { width: 15px; height: 15px; }
.radio-group { gap: 8px; }
.radio-group label { font-weight: 550; }
.red-button, .gray-button, .link-button { min-height: 27px; padding: 3px 12px; border-radius: 2px; font-weight: 600; }
.red-button { border: 1px solid #8e2d31; background: #a9363a; }
.red-button:hover { background: #8e2d31; }
.gray-button { border: 1px solid #c3cccc; background: #f3f5f5; }
.link-button { color: #315f87; }
.link-button.strong { font-size: 13px; color: #8b3034; }
.small { min-height: 26px; padding: 2px 10px; }

.table-scroll { border: 0; background: #fff; }
.legacy-table th, .legacy-table td { border-right: 0; border-bottom: 1px solid #e2e7e7; padding: 6px 7px; }
.legacy-table thead th { background: #496f6c; color: #fff; font-size: 13px; font-weight: 600; }
.legacy-table tbody tr:nth-child(odd) td { background: #fafbfb; }
.legacy-table tbody tr:hover td { background: #f2f6f5; }
.legacy-table tfoot td { background: #e7efee; }
.legacy-table.compact th, .legacy-table.compact td { padding: 5px 6px; }
.legacy-table .actions { gap: 7px; }
.legacy-table .actions button { color: #315f87; }
.report-table thead th { background: #e9eeee; }
.report-table thead .group-yellow, .report-table thead .group-pink, .report-table thead .group-orange { background: #e5ebeb; }
.ball { width: 32px; height: 32px; font-size: 16px; box-shadow: none; }
.info-box, .warning-box, .settings-note { border: 0; border-left: 3px solid #95aaa8; background: #f8f9f9; padding: 8px 11px; line-height: 1.65; }
.warning-box { border-left-color: #b99c64; background: #fbf8ef; }
.account-info-line { min-height: 38px; gap: 20px; padding: 6px 18px; border-bottom-color: #dce3e3; background: #fff; }

.dialog { border: 0; border-top: 4px solid var(--teal); box-shadow: 0 16px 42px rgba(28,52,50,.22); }
.dialog-title { min-height: 38px; padding: 8px 13px; background: #2f6f6b; font-size: 15px; }
.dialog-title.warning { background: #8e3438; }
.dialog-actions { gap: 12px; padding: 11px; }
.rules-scroll { height: 390px; border: 0; border-left: 2px solid #c5d5d3; background: #fafbfb; }
.account-page-card { border: 0; border-top: 3px solid #6b9693; }
.account-back-button { min-height: 25px; padding: 2px 9px; border: 0; border-radius: 2px; background: rgba(255,255,255,.12); }
.account-path-line { border: 0; border-bottom: 1px solid #dce3e3; background: #f7f9f9; padding: 8px 12px; }
.account-children-summary { border: 0; border-bottom: 1px solid #e2e7e7; padding: 8px 12px; }
.edit-basic-grid { gap: 8px 18px; padding: 12px; border: 0; border-bottom: 1px solid #dce3e3; background: #f8f9f9; }
.edit-basic-grid input, .edit-basic-grid select { height: 28px; }
.development-block { border: 0; border-left: 3px solid #bbb; padding: 10px 13px; }
.settings-toolbar { border: 0; border-bottom: 1px solid #dce3e3; padding: 8px 11px; }
.settings-help { border: 0; border-left: 3px solid #b7a773; padding: 8px 10px; }
.view-tabs { gap: 2px; padding: 7px 10px; border-bottom-color: #d7dfdf; background: #f6f8f8; }
.view-tabs button { min-width: 94px; height: 29px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; font-weight: 600; }
.view-tabs button.active { border: 0; border-bottom: 2px solid #2f6f6b; background: transparent; color: #245a57; }
.view-toolbar { min-height: 40px; gap: 7px 11px; padding: 6px 10px; }
.view-toolbar input, .view-toolbar select { height: 27px; }
.view-content { padding: 10px; }
.view-summary, .board-summary { border: 0; border-left: 3px solid #8ba8a5; background: #f7f9f9; padding: 8px 11px; }
.goods-board-grid { gap: 7px; }
.goods-board-cell { border: 0; border-top: 2px solid #9db9b6; box-shadow: 0 1px 3px rgba(42,70,68,.10); }
.goods-board-number { border-bottom-color: #e3e8e8; }

/* 总货盘 */
.total-board-filter { position: sticky; top: 0; z-index: 4; }
.total-board-summary { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; min-height: 42px; padding: 8px 10px; background: #fff; border-bottom: 1px solid #dce3e3; color: #566260; }
.total-board-summary span { white-space: nowrap; }
.total-board-summary b { margin-left: 3px; color: #263f3d; }
.total-board-help { padding: 7px 10px; border-bottom: 1px solid #e4e9e9; background: #f8f9f9; color: #77817f; font-size: 12px; }
.total-board-grid { display: grid; grid-template-columns: repeat(8, minmax(126px, 1fr)); gap: 8px; padding: 10px 0 24px; }
.total-board-card { min-height: 126px; background: #fff; border: 0; border-top: 2px solid #93aaa8; box-shadow: 0 1px 4px rgba(38,62,60,.11); content-visibility: auto; contain-intrinsic-size: 126px; }
.total-board-card.is-loss { border-top-color: #a95a5d; }
.total-board-card header { display: grid; grid-template-columns: 26px auto 1fr auto; align-items: center; gap: 5px; min-height: 38px; padding: 5px 8px; border-bottom: 1px solid #e4e9e9; }
.total-board-rank { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid #8eaaa7; border-radius: 50%; color: #426d69; font-size: 11px; }
.total-board-label { color: #707b79; }
.total-board-card header strong { color: #2b746e; font-family: Consolas, "Microsoft YaHei", sans-serif; font-size: 20px; letter-spacing: .5px; }
.total-board-card header small { color: #87918f; font-size: 10px; }
.total-board-card dl { margin: 0; padding: 6px 8px 7px; }
.total-board-card dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.total-board-card dt { color: #697472; }
.total-board-card dd { margin: 0; font-variant-numeric: tabular-nums; }
.total-board-empty { grid-column: 1 / -1; padding: 44px 20px; background: #fff; color: #77817f; text-align: center; }

@media (max-width: 1350px) {
  .total-board-grid, .goods-board-grid { grid-template-columns: repeat(6, minmax(126px, 1fr)); }
}
.total-board-summary .positive,
.total-board-card .positive { color: #8e3438; font-weight: 650; }
.total-board-summary .negative,
.total-board-card .negative { color: #28705d; font-weight: 650; }

@media (max-width: 980px) {
  .total-board-grid, .goods-board-grid { grid-template-columns: repeat(4, minmax(126px, 1fr)); }
}

@media (max-width: 680px) {
  .total-board-grid, .goods-board-grid { grid-template-columns: repeat(2, minmax(126px, 1fr)); }
}

/* 分级报表：按当前账号视角动态展示并支持逐级下钻 */
.report-drill-bar {
  min-height: 38px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 10px;
  border-top: 1px solid #d6e1df;
  border-bottom: 1px solid #d6e1df;
  background: #f7faf9;
}
.report-drill-label { font-weight: 700; color: #315f5c; }
.report-drill-bar button {
  border: 0;
  background: transparent;
  color: #174ec7;
  padding: 2px 3px;
  cursor: pointer;
}
.report-drill-bar button:disabled { color: #222; font-weight: 700; cursor: default; }
.report-drill-sep { color: #879694; }
.report-drill-bar .report-root-button {
  margin-left: 8px;
  padding: 3px 9px;
  border: 1px solid #9eb9b6;
  border-radius: 2px;
  background: #fff;
  color: #315f5c;
}
.report-drill-tip { margin-left: auto; color: #777; font-size: 12px; }
.report-account-link {
  border: 0;
  background: transparent;
  color: #174ec7;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.report-account-link:hover { text-decoration: underline; }
.report-table { min-width: 1320px; }
.report-table thead .report-row-role { background: #e7eceb; color: #222; }
.report-table thead .report-role-member { background: #ffd268; color: #2a2a2a; }
.report-table thead .report-role-agent { background: #ffdda9; color: #2a2a2a; }
.report-table thead .report-role-shareholder { background: #f8cae1; color: #2a2a2a; }
.report-table thead .report-role-director { background: #cfdff4; color: #2a2a2a; }
@media (max-width: 900px) {
  .report-drill-tip { width: 100%; margin-left: 0; }
}

.report-drill-warning {
  margin-left: auto;
  color: #b12f35;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 900px) {
  .report-drill-warning { width: 100%; margin-left: 0; }
}



/* 越级管理：独立于下级管理面板 */
.cross-info-line { margin-bottom: 10px; }
.cross-account-table { min-width: 1420px; }
.cross-account-table td:nth-child(2) { min-width: 170px; }
.cross-account-table td:nth-child(4) { min-width: 250px; }
.cross-path-cell { line-height: 1.65; color: #526362; }
#crossChildrenSummary .red-button { margin-left: 12px; }
.actions.wrap { flex-wrap: wrap; justify-content: center; gap: 5px; }

/* 子账号管理 */
.subaccount-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.subaccount-page-head .section-title { margin-bottom: 7px; }
.subaccount-page-head p { margin: 0; color: #607170; line-height: 1.7; }
.subaccount-readonly-tip { min-width: 280px; padding: 12px 16px; border: 1px solid #9fc7c2; border-radius: 8px; background: #effaf8; color: #285c57; line-height: 1.6; }
.subaccount-layout { display: grid; grid-template-columns: minmax(420px, .9fr) minmax(620px, 1.4fr); align-items: start; gap: 16px; }
.subaccount-card { overflow: hidden; border: 1px solid #d7e1df; border-radius: 10px; background: #fff; box-shadow: 0 3px 12px rgba(31, 74, 70, .07); }
.subaccount-card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #dce6e4; background: linear-gradient(180deg, #f8fcfb, #eef6f4); }
.subaccount-card-title b { color: #214f4b; font-size: 15px; }
.subaccount-card-title span { color: #73817f; font-size: 12px; }
.subaccount-form { padding: 16px; }
.subaccount-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.subaccount-field-grid > label { display: grid; gap: 6px; color: #405452; font-weight: 700; }
.subaccount-field-grid input { width: 100%; min-height: 36px; border: 1px solid #bdcbc9; border-radius: 6px; padding: 7px 9px; background: #fff; }
.subaccount-password-field { grid-column: 1 / -1; }
.subaccount-password-field .input-with-button { width: 100%; }
.subaccount-password-field .input-with-button input { flex: 1; }
.permission-fieldset { margin: 16px 0 10px; padding: 12px; border: 1px solid #cbd9d7; border-radius: 8px; background: #fafdfc; display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 9px; }
.permission-fieldset legend { padding: 0 8px; color: #294f4c; font-weight: 700; }
.permission-fieldset legend small { color: #8a9695; font-weight: 400; }
.permission-fieldset > label { display: flex; align-items: flex-start; gap: 9px; min-height: 58px; padding: 10px; border: 1px solid #e0e8e7; border-radius: 7px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.permission-fieldset > label:hover { border-color: #87b8b2; box-shadow: 0 2px 8px rgba(61, 121, 114, .08); }
.permission-fieldset input { width: auto; margin-top: 3px; }
.permission-fieldset label > span { display: grid; gap: 3px; }
.permission-fieldset label b { color: #334c49; }
.permission-fieldset label small { color: #7a8886; line-height: 1.45; }
.subaccount-submit-row { display: flex; justify-content: flex-end; margin-top: 10px; }
.subaccount-created-result { border-radius: 7px; }
.subaccount-list-card .table-scroll { max-height: 610px; }
.subaccount-table { min-width: 900px; }
.subaccount-table td { vertical-align: top; }
.subaccount-table input[data-sub-name], .subaccount-table select[data-sub-status] { min-height: 32px; border: 1px solid #bdcbc9; border-radius: 5px; padding: 5px 7px; }
.permission-list { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 5px 8px; min-width: 290px; text-align: left; }
.permission-list label { display: flex; align-items: center; gap: 5px; padding: 3px 4px; border-radius: 4px; }
.permission-list label:hover { background: #f0f7f6; }
.permission-list input { width: auto; }
@media (max-width: 1180px) { .subaccount-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .subaccount-page-head { flex-direction: column; }
  .subaccount-readonly-tip { min-width: 0; width: 100%; }
  .subaccount-field-grid, .permission-fieldset { grid-template-columns: 1fr; }
  .subaccount-password-field { grid-column: auto; }
}

/* 更换线路弹窗 */
.management-line-dialog { overflow: hidden; }
.management-line-tip { padding: 12px 16px 6px; color: #5d666c; font-size: 13px; }
.management-line-list { display: grid; gap: 10px; padding: 10px 16px 4px; }
.management-line-card {
  width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 13px; border: 1px solid #b8c7c5; background: #fff; cursor: pointer; text-align: left;
}
.management-line-card:hover { border-color: #2f6f6b; background: #f2f8f7; }
.management-line-card.active { border: 2px solid #2f6f6b; background: #edf6f5; }
.management-line-card span { min-width: 0; }
.management-line-card strong { display: block; color: #243332; font-size: 15px; }
.management-line-card small { display: block; margin-top: 4px; color: #75807f; overflow-wrap: anywhere; }
.management-line-card b { flex: 0 0 auto; color: #18764f; font-size: 14px; }
.management-line-card b.slow { color: #b36a00; }
.management-line-card b.bad { color: #aa2d35; }
.management-line-status { min-height: 26px; padding: 5px 16px 0; color: #73807e; font-size: 12px; }
.management-line-empty { padding: 20px; border: 1px dashed #b8c7c5; color: #73807e; text-align: center; }
