/* 全局设计令牌：颜色、阴影和圆角集中定义，便于统一换肤。 */
:root {
  --ink: #122522;
  --ink-2: #28413c;
  --muted: #71827e;
  --line: #dfe8e5;
  --surface: #ffffff;
  --canvas: #f4f7f6;
  --teal: #0c7466;
  --teal-dark: #07584f;
  --teal-soft: #e5f3f0;
  --orange: #e97a42;
  --amber: #d9952f;
  --blue: #4c75c5;
  --red: #cc574b;
  --shadow: 0 16px 45px rgba(20, 54, 47, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 9px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .17em; }

/* 登录与注册页。 */
.auth-page { display: grid; grid-template-columns: minmax(440px, 1.1fr) minmax(430px, .9fr); min-height: 100vh; background: #f7faf9; }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(60px, 9vw, 130px); color: #fff; background: #123d37; }
.auth-brand::before { content: ""; position: absolute; inset: 0; opacity: .33; background: radial-gradient(circle at 20% 15%, #2c8172 0, transparent 38%), radial-gradient(circle at 95% 80%, #0c7667 0, transparent 42%); }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand .eyebrow { margin-top: 46px; color: #8ec7bd; }
.auth-brand h1 { max-width: 620px; margin: 0; font-family: "SimSun", "Songti SC", serif; font-size: clamp(45px, 5vw, 74px); font-weight: 700; line-height: 1.23; letter-spacing: .03em; }
.auth-intro { max-width: 520px; margin: 27px 0 42px; color: #b9d0cc; font-size: 16px; line-height: 1.9; }
.auth-metric-row { display: flex; gap: clamp(30px, 5vw, 72px); padding-top: 29px; border-top: 1px solid rgba(255,255,255,.13); }
.auth-metric-row div { display: grid; gap: 6px; }
.auth-metric-row strong { font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.auth-metric-row span { color: #98b7b1; font-size: 12px; letter-spacing: .08em; }
.auth-pattern { position: absolute; z-index: 0; right: -80px; bottom: -110px; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.08); transform: rotate(45deg); }
.auth-pattern::before, .auth-pattern::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); }
.auth-pattern::before { inset: 55px; }.auth-pattern::after { inset: 110px; }
.brand-mark { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; color: var(--teal); border: 1px solid #cfe2de; border-radius: 11px; background: #f1f8f6; }
.brand-mark svg { width: 32px; height: 32px; }
.qianshui-logo { stroke-width: 2.55; }
.brand-mark-large { width: 62px; height: 62px; color: #fff; border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.06); }
.brand-mark-large svg { width: 48px; height: 48px; }
.auth-panel { display: grid; padding: 45px; place-items: center; }
.auth-card { width: min(100%, 430px); }
.mobile-brand { display: none; align-items: center; gap: 12px; margin-bottom: 38px; font-size: 23px; font-weight: 800; }
.auth-tabs { display: flex; gap: 26px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.auth-tab { position: relative; padding: 0 2px 15px; color: #80908c; border: 0; background: transparent; font-size: 14px; font-weight: 700; }
.auth-tab.active { color: var(--ink); }
.auth-tab.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--teal); }
.form-heading { margin-bottom: 31px; }
.form-heading h2 { margin: 0 0 9px; font-size: 29px; letter-spacing: -.04em; }
.form-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-form { display: grid; gap: 20px; }
label { display: grid; gap: 8px; color: var(--ink-2); font-size: 13px; font-weight: 650; }
input, select, textarea { width: 100%; color: var(--ink); border: 1px solid #d7e2df; border-radius: 10px; outline: none; background: #fff; transition: border-color .18s, box-shadow .18s; }
input, select { height: 44px; padding: 0 13px; }
textarea { padding: 12px 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #55a195; box-shadow: 0 0 0 3px rgba(12,116,102,.1); }
input::placeholder, textarea::placeholder { color: #a7b3b0; }
.btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 750; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.btn-primary { color: #fff; background: var(--teal); box-shadow: 0 8px 20px rgba(12,116,102,.17); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary { color: var(--teal-dark); border-color: #b9d8d2; background: var(--teal-soft); }
.btn-ghost { color: #586c67; border-color: #dce5e3; background: #fff; }
.btn-danger { color: #b64940; border-color: #f0cbc7; background: #fff4f3; }
.btn-block { width: 100%; min-height: 48px; margin-top: 5px; }
.btn-plus { font-size: 20px; font-weight: 400; line-height: 1; }
.demo-tip { margin: 2px 0 0; color: #82918e; font-size: 12px; text-align: center; }
.demo-tip code { padding: 2px 5px; color: var(--teal-dark); border-radius: 4px; background: var(--teal-soft); }
.mobile-entry-link { display: block; margin-top: 24px; color: var(--teal); font-size: 11px; font-weight: 750; text-align: center; text-decoration: none; }.mobile-entry-link:hover { color: var(--teal-dark); }

/* 登录后的应用框架：固定侧边栏、顶部栏和主内容区。 */
.app-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; width: 238px; flex-direction: column; padding: 24px 17px 20px; color: #dfecea; background: #123d37; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 26px; color: inherit; text-decoration: none; }
.brand .brand-mark { width: 44px; height: 44px; color: #fff; border: 1px solid rgba(255,255,255,.19); background: rgba(255,255,255,.045); }
.brand > div:last-child { display: grid; gap: 3px; }
.brand strong { color: #fff; font-size: 19px; letter-spacing: .12em; }
.brand span { color: #8eaea8; font-size: 10px; letter-spacing: .07em; }
.main-nav { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 4px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.nav-label { margin: 20px 12px 7px; color: #6f9891; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.nav-item { display: flex; width: 100%; height: 46px; align-items: center; gap: 12px; padding: 0 13px; color: #abc3bf; border: 0; border-radius: 10px; background: transparent; font-size: 13px; text-align: left; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item span:nth-child(2) { flex: 1; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: rgba(117,195,181,.15); box-shadow: inset 3px 0 #76bcae; }
.nav-count { padding: 2px 7px; color: #9bc6be; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 10px; }
.update-nav-count { color: #57351d; background: #efb465; font-weight: 800; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; padding: 16px 11px 2px; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-foot div { display: grid; gap: 3px; }
.sidebar-foot strong { color: #bfd0cd; font-size: 11px; font-weight: 650; }
.sidebar-foot span:not(.status-dot) { color: #72958f; font-size: 10px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #55c39d; box-shadow: 0 0 0 4px rgba(85,195,157,.12); }
.workspace { grid-column: 2; min-width: 0; }
.topbar { position: sticky; z-index: 30; top: 0; display: flex; height: 72px; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.93); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 7px; color: #899793; font-size: 12px; }
.breadcrumb svg { width: 13px; }.breadcrumb strong { color: var(--ink-2); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.current-user { display: flex; align-items: center; gap: 10px; margin-right: 12px; padding-right: 20px; border-right: 1px solid var(--line); }
.current-user > div:nth-child(2) { display: grid; gap: 2px; }
.current-user strong { color: var(--ink-2); font-size: 12px; }.current-user span { color: var(--muted); font-size: 10px; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; border-radius: 10px; background: linear-gradient(145deg, var(--teal), #59a799); font-size: 13px; font-weight: 800; }
.icon-btn { display: grid; width: 38px; height: 38px; place-items: center; color: #6b7d79; border: 1px solid transparent; border-radius: 9px; background: transparent; }
.icon-btn:hover { color: var(--teal); border-color: var(--line); background: var(--teal-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.main-content { padding: 36px clamp(24px, 3.5vw, 52px) 60px; }
.view { display: none; max-width: 1500px; margin: 0 auto; }
.view.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 29px; }
.page-heading h1 { margin: 0 0 7px; font-family: "SimSun", "Songti SC", serif; font-size: clamp(29px, 3vw, 39px); line-height: 1.2; letter-spacing: .02em; }
.page-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.page-heading.compact { align-items: center; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.heading-with-date { align-items: center; }
.dashboard-heading-actions { display: flex; align-items: center; gap: 12px; }
.date-card { display: grid; grid-template-columns: auto auto; min-width: 160px; padding: 13px 17px; border-left: 3px solid var(--orange); background: #fff; box-shadow: 0 5px 20px rgba(25,66,58,.05); }
.date-card span { align-self: end; color: var(--muted); font-size: 10px; }.date-card strong { grid-row: span 2; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }.date-card small { color: #9aa6a3; font-size: 10px; }
/* 总览统计卡片、状态圆环和部门分布。 */
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 17px; margin-bottom: 18px; }
.metric-card { position: relative; min-height: 176px; overflow: hidden; padding: 24px; border: 1px solid #e4ebe9; border-radius: var(--radius); background: #fff; box-shadow: 0 7px 24px rgba(20,54,47,.045); }
.metric-card p { margin: 17px 0 5px; color: #6f807c; font-size: 12px; }
.metric-card > strong { display: block; margin-bottom: 5px; font-family: Georgia, serif; font-size: 34px; font-weight: 500; letter-spacing: -.02em; }
.metric-card > span { color: #94a29f; font-size: 10px; }
.metric-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--teal); border-radius: 9px; background: var(--teal-soft); }
.metric-icon svg { width: 19px; height: 19px; }.metric-icon.green { color: #278469; background: #e9f5ef; }.metric-icon.amber { color: #bd7621; background: #fff2dc; }.metric-icon.blue { color: #4f6fae; background: #eaf0fa; }.metric-icon.orange { color: #b6632b; background: #fff0e4; }
.metric-dark { color: #fff; border: 0; background: linear-gradient(140deg, #123d37, #195148); }
.metric-dark::after { content: ""; position: absolute; right: -30px; bottom: -60px; width: 160px; height: 160px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 55px rgba(255,255,255,.018); }
.metric-dark .metric-icon { color: #d9eeea; background: rgba(255,255,255,.09); }.metric-dark p { color: #a9c2bd; }.metric-dark > span { color: #8fb0aa; }
.metric-line { position: absolute; right: 24px; bottom: 28px; left: 105px; height: 22px; opacity: .55; border-bottom: 1px solid #4d8f83; transform: skewY(-5deg); }
.trend-positive { color: #39836d !important; }
.device-location { max-width: 200px; white-space: normal; overflow-wrap: anywhere; }
.inspection-risk { display: block; width: fit-content; margin-top: 5px; padding: 3px 7px; border-radius: 5px; font-size: 10px; font-weight: 700; }
.inspection-risk.overdue { color: #a43730; background: #ffe9e7; }
.inspection-risk.due-soon { color: #91611b; background: #fff2d6; }
.inspection-cycle { display: block; margin-top: 4px; }
.update-notice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; margin: -5px 0 18px; padding: 16px 18px; border: 1px solid #cfe2dd; border-radius: 14px; background: linear-gradient(100deg, #eff8f5, #fffaf3); box-shadow: 0 6px 20px rgba(20,54,47,.04); }
.update-notice-icon { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; border-radius: 11px; background: var(--teal); font-family: Georgia, serif; font-size: 19px; font-weight: 700; }
.update-notice div:nth-child(2) { display: grid; gap: 3px; }.update-notice span { color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .08em; }.update-notice strong { font-size: 13px; }.update-notice p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.dashboard-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.panel, .table-panel { border: 1px solid #e3ebe9; border-radius: var(--radius); background: #fff; box-shadow: 0 7px 24px rgba(20,54,47,.045); }
.panel { padding: 25px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-head h2 { margin: 0 0 5px; font-size: 15px; }.panel-head p { margin: 0; color: var(--muted); font-size: 11px; }
.link-btn { padding: 7px 0; color: var(--teal); border: 0; background: transparent; font-size: 11px; font-weight: 700; }
.link-btn span { margin-left: 4px; }
.status-visual { display: flex; align-items: center; justify-content: space-around; gap: 35px; padding: 28px 3px 5px; }
.donut { display: grid; width: 154px; height: 154px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: conic-gradient(var(--teal) 0 70%, #e7ae50 70% 90%, #d9e2df 90% 100%); }
.donut::before { content: ""; grid-area: 1/1; width: 104px; height: 104px; border-radius: 50%; background: white; box-shadow: 0 0 0 1px #eef2f1; }
.donut > div { z-index: 1; grid-area: 1/1; display: grid; text-align: center; }.donut strong { font-family: Georgia, serif; font-size: 28px; font-weight: 500; }.donut span { color: var(--muted); font-size: 10px; }
.status-legend { display: grid; min-width: 160px; gap: 13px; }
.legend-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 9px; font-size: 11px; }.legend-dot { width: 8px; height: 8px; border-radius: 50%; }.legend-row span:nth-child(2) { color: #63736f; }.legend-row strong { font-family: Georgia, serif; font-weight: 600; }
.department-panel { min-height: 290px; }
.bar-list { display: grid; gap: 13px; margin-top: 23px; }
.bar-row { display: grid; grid-template-columns: minmax(72px, 120px) 1fr 31px; align-items: center; gap: 10px; font-size: 10px; }.bar-row > span:first-child { overflow: hidden; color: #5f716d; text-overflow: ellipsis; white-space: nowrap; }.bar-track { height: 6px; overflow: hidden; border-radius: 5px; background: #edf2f1; }.bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4d998c, #87bdb4); }.bar-row strong { color: #4b625d; font-family: Georgia, serif; font-size: 11px; text-align: right; }
.recent-panel { grid-column: 1 / -1; }
.conflict-panel { grid-column: 1 / -1; }
.conflict-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.conflict-item { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #efc9c5; border-radius: 10px; background: #fff6f5; }
.conflict-mark { display: grid; width: 28px; height: 28px; place-items: center; color: #fff; border-radius: 50%; background: #c8554c; font-weight: 800; }
.conflict-item strong { color: #743f3b; font-size: 11px; }.conflict-item p { margin: 4px 0 0; color: #99645f; font-size: 9px; }
.recent-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.recent-item { display: grid; grid-template-columns: 37px 1fr; gap: 11px; padding: 14px; border: 1px solid #e8eeec; border-radius: 11px; background: #fbfcfc; }.recent-icon { display: grid; width: 37px; height: 37px; place-items: center; color: var(--teal); border-radius: 9px; background: var(--teal-soft); font-size: 13px; font-weight: 800; }.recent-item strong { display: block; overflow: hidden; margin: 1px 0 4px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.recent-item p { margin: 0; color: var(--muted); font-size: 9px; }.empty-mini { grid-column: 1/-1; padding: 30px; color: #95a39f; text-align: center; }

/* 更新公告以时间线展示，内容来自随版本发布的静态公告文件。 */
.release-current { display: grid; min-width: 130px; gap: 4px; padding: 13px 17px; border-left: 3px solid var(--teal); background: #fff; box-shadow: 0 5px 20px rgba(25,66,58,.05); }.release-current span { color: var(--muted); font-size: 9px; }.release-current strong { color: var(--teal-dark); font-family: Georgia, serif; font-size: 20px; }
.release-list { position: relative; display: grid; gap: 16px; padding-left: 27px; }.release-list::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 8px; width: 1px; background: #d9e7e3; }
.release-card { position: relative; display: grid; grid-template-columns: 1px 1fr; border: 1px solid #e1eae7; border-radius: 15px; background: #fff; box-shadow: 0 7px 24px rgba(20,54,47,.045); }.release-card.current { border-color: #bcdcd4; box-shadow: 0 9px 30px rgba(25,116,102,.09); }.release-marker { position: absolute; top: 27px; left: -25px; display: grid; width: 13px; height: 13px; place-items: center; border: 3px solid var(--page); border-radius: 50%; background: #9eb6b0; }.release-card.current .release-marker { background: var(--teal); box-shadow: 0 0 0 4px #dff0ec; }.release-content { grid-column: 2; padding: 23px 26px 25px; }.release-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }.release-meta strong { color: var(--teal-dark); font-family: Georgia, serif; font-size: 14px; }.release-meta time { color: #91a09c; font-size: 9px; }.release-meta b { padding: 3px 7px; color: #276c60; border-radius: 10px; background: #e2f2ee; font-size: 8px; }.release-content h2 { margin: 0 0 8px; font-size: 16px; }.release-content > p { margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.7; }.release-content ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: #51645f; font-size: 10px; line-height: 1.65; }.release-content li::marker { color: var(--teal); }.release-empty { padding: 50px 20px; color: var(--muted); border: 1px dashed #ccd9d6; border-radius: 14px; text-align: center; }

/* 设备、使用记录和用户页面共用的表格系统。 */
.table-panel { overflow: hidden; }
.table-toolbar { display: flex; gap: 10px; padding: 18px 20px; border-bottom: 1px solid #e7edeb; }
.search-box { position: relative; display: block; width: min(390px, 100%); }
.search-box svg { position: absolute; top: 12px; left: 13px; width: 18px; height: 18px; color: #81918d; }.search-box input { padding-left: 40px; background: #f8faf9; }
.table-toolbar select { width: 150px; background: #fff; }
.toolbar-field { display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 700; white-space: nowrap; }.toolbar-field input { width: 145px; min-height: 36px; padding: 0 10px; border: 1px solid #d9e2df; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
.table-wrap { width: 100%; overflow-x: auto; }
.toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#calibrationCertificateBatchDialog .modal-body { max-height: min(70vh, 680px); overflow-y: auto; }
#calibrationCertificateBatchRows td { vertical-align: top; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.device-ledger-table { min-width: 1320px; table-layout: fixed; }
.device-ledger-table .device-select-column { width: 44px; }
.device-ledger-table .device-main-column { width: 235px; }
.device-ledger-table .device-code-column { width: 125px; }
.device-ledger-table .device-model-column { width: 95px; }
.device-ledger-table .device-location-column { width: 135px; }
.device-ledger-table .device-department-column { width: 105px; }
.device-ledger-table .device-expiry-column { width: 150px; }
.device-ledger-table .device-status-column { width: 75px; }
.device-ledger-table .device-confirm-column { width: 100px; }
.device-ledger-table .device-action-column { width: 210px; }
.device-ledger-table td { overflow: hidden; text-overflow: ellipsis; }
.device-ledger-table .device-cell { min-width: 0; }
.device-ledger-table .device-cell > div:last-child { min-width: 0; }
.device-ledger-table .device-cell strong, .device-ledger-table .device-cell span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-ledger-table .device-code-cell, .device-ledger-table .device-expiry-cell, .device-ledger-table .device-confirm-cell { white-space: normal; }
.device-ledger-table .device-action-cell, .device-ledger-table .device-select-column { overflow: visible; }
th { height: 47px; padding: 0 16px; color: #71817d; border-bottom: 1px solid #e8eeec; background: #f8faf9; font-size: 10px; font-weight: 750; letter-spacing: .03em; text-align: left; }
td { height: 66px; padding: 8px 16px; color: #425550; border-bottom: 1px solid #edf1f0; font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; } tbody tr:hover td { background: #fbfdfc; }
.align-right { text-align: right; }
.device-cell { display: flex; min-width: 210px; align-items: center; gap: 11px; }.device-thumb { display: grid; width: 42px; height: 42px; flex: 0 0 auto; overflow: hidden; place-items: center; color: #7ea79f; border: 1px solid #dce7e4; border-radius: 9px; background: #edf5f3; font-size: 15px; font-weight: 800; }.device-thumb img { width: 100%; height: 100%; object-fit: cover; }.device-cell > div:last-child { display: grid; gap: 4px; }.device-cell strong { max-width: 225px; overflow: hidden; color: var(--ink-2); font-size: 11px; text-overflow: ellipsis; }.device-cell span, .subtext { color: #879590; font-size: 9px; }
.standard-material-table th:first-child { width: 55%; }.standard-material-cell { display: flex; min-width: 290px; align-items: center; gap: 12px; }.standard-material-cell strong { color: var(--ink-2); font-size: 12px; }.material-mark { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: #356d63; border: 1px solid #d5e5e1; border-radius: 9px; background: #edf6f4; font-size: 11px; font-weight: 800; }.stock-badge { display: inline-flex; min-height: 25px; align-items: center; padding: 0 9px; color: #875d22; border: 1px solid #ead6b5; border-radius: 13px; background: #fff8ec; font-size: 10px; font-weight: 750; }.stock-badge.unit-missing { color: #9a4e48; border-color: #efcbc7; background: #fff2f0; }
.back-link { margin: 0 0 13px; padding: 0; color: var(--teal); border: 0; background: transparent; font-size: 10px; font-weight: 750; }.material-detail-actions { display: flex; gap: 9px; }.material-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 14px; margin-bottom: 18px; }.material-summary-card { display: grid; gap: 6px; padding: 19px 21px; border: 1px solid #dfe9e6; border-radius: 14px; background: #fff; box-shadow: 0 7px 24px rgba(21,67,59,.04); }.material-summary-card span { color: var(--muted); font-size: 10px; }.material-summary-card strong { color: var(--ink-2); font-family: Georgia, serif; font-size: 28px; font-weight: 550; }.material-summary-card small { color: #8c9996; font-size: 9px; }.transaction-type { display: inline-flex; min-height: 25px; align-items: center; padding: 0 9px; border-radius: 13px; font-size: 9px; font-weight: 800; }.transaction-type.inbound { color: #28765f; background: #e7f4ee; }.transaction-type.outbound { color: #aa5b29; background: #fff0e2; }.transaction-remark { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { display: inline-flex; min-height: 24px; align-items: center; gap: 5px; padding: 0 9px; border-radius: 12px; font-size: 9px; font-weight: 750; }.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.status-active { color: #28765f; background: #e7f4ee; }.status-due { color: #a96a18; background: #fff0d7; }.status-repair { color: #486fae; background: #e9f0fb; }.status-disabled { color: #6d7774; background: #edf0ef; }.status-retired { color: #b44a42; background: #fbe9e7; }.status-lost { color: #77405d; background: #f4e9ef; }
.confirmation-cell { display: grid; max-width: 175px; gap: 5px; white-space: normal; }.confirmation-badge { display: inline-flex; width: fit-content; min-height: 24px; align-items: center; padding: 0 9px; border-radius: 12px; font-size: 9px; font-weight: 800; }.confirmation-badge.confirmed { color: #28765f; background: #e7f4ee; }.confirmation-badge.pending { color: #a96a18; background: #fff0d7; }.confirmation-note { overflow: hidden; color: #8b615e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.usage-conflict-row td { color: #713d39; background: #fff7f6; }.usage-conflict-row:hover td { background: #fff0ee; }.usage-conflict-row td:first-child { box-shadow: inset 3px 0 #cb5b52; }.conflict-warning { display: block; width: fit-content; margin-top: 5px; padding: 3px 7px; color: #af443c; border-radius: 8px; background: #fbe1de; font-size: 9px; font-weight: 800; }
.device-duplicate-row td { color: #713d39; background: #fff7f6; }.device-duplicate-row:hover td { background: #fff0ee; }.device-duplicate-row td:first-child { box-shadow: inset 3px 0 #cb5b52; }.duplicate-code-warning { display: block; width: fit-content; margin: 5px 0 4px; padding: 3px 7px; color: #af443c; border-radius: 8px; background: #fbe1de; font-size: 9px; font-weight: 800; }.device-duplicate-row .subtext { display: block; }
.duplicate-code-warning, .conflict-warning { border: 0; font-family: inherit; line-height: 1.4; text-align: left; cursor: pointer; }.duplicate-code-warning:hover, .conflict-warning:hover { color: #8d2923; text-decoration: underline; }.anomaly-locate-notice { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 20px; color: #8d3933; border-bottom: 1px solid #f0cac6; background: #fff1ef; font-size: 11px; font-weight: 700; }.anomaly-locate-notice button { flex: 0 0 auto; padding: 5px 10px; color: #9d3f38; border: 1px solid #e6aaa4; border-radius: 8px; background: #fff; font: inherit; cursor: pointer; }.anomaly-locate-notice button:hover { color: #fff; background: #b84d45; }
.toolbar-note { display: inline-flex; align-items: center; color: #70817d; font-size: 10px; }.calibration-log-panel { margin-top: 18px; }.calibration-log-panel .panel-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }.calibration-check { display: flex; align-items: center; gap: 7px; white-space: nowrap; }.calibration-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); }.calibration-check span { display: grid; gap: 3px; }.calibration-check small { color: var(--muted); font-size: 8px; font-weight: 500; }.calibration-reason { width: 210px; min-height: 55px; font-size: 10px; }.calibration-reason[readonly] { color: #6d7c78; background: #f4f6f5; }.risk-badge, .audit-type { display: inline-flex; min-height: 24px; align-items: center; padding: 0 9px; border-radius: 12px; font-size: 9px; font-weight: 800; }.risk-badge.overdue { color: #b44a42; background: #fbe9e7; }.risk-badge.due-soon { color: #a96a18; background: #fff0d7; }.plan-status { display: inline-flex; min-height: 24px; align-items: center; padding: 0 9px; border-radius: 12px; font-size: 9px; font-weight: 800; }.plan-status.none { color: #6d7774; background: #edf0ef; }.plan-status.pending { color: #a96a18; background: #fff0d7; }.plan-status.approved { color: #28765f; background: #e7f4ee; }.plan-status.rejected { color: #b44a42; background: #fbe9e7; }.plan-review-note { display: block; max-width: 155px; margin-top: 5px; overflow: hidden; color: #8b615e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.audit-type { color: #356b62; background: #e8f3f1; }.audit-statement { min-width: 350px; white-space: normal; line-height: 1.6; }
.plan-summary-line { margin: 0; padding: 10px 20px; color: #526763; border-bottom: 1px solid var(--line); background: #f8faf9; font-size: 11px; }.risk-badge.neutral { color: #667570; background: #edf1f0; }.plan-status.draft { color: #315f8f; background: #e7f0fa; }.plan-status.returned { color: #8a5234; background: #f8e9df; }.plan-previous-status { display: block; margin-top: 4px; color: #71807c; font-size: 9px; }.plan-technical-status { display: flex; flex-wrap: wrap; gap: 5px; min-width: 150px; }.plan-technical-status span { padding: 4px 7px; color: #9b5c2e; border-radius: 7px; background: #fff0df; font-size: 9px; font-weight: 800; }.plan-technical-status span.done { color: #28705f; background: #e6f3ee; }
.condition-normal { color: #28765f; }.condition-bad { color: #b44a42; }
.row-actions { display: flex; justify-content: flex-end; gap: 2px; }.row-btn { padding: 6px 8px; color: #60736e; border: 0; border-radius: 7px; background: transparent; font-size: 10px; font-weight: 700; }.row-btn:hover, .row-btn.approve { color: var(--teal); background: var(--teal-soft); }.row-btn.approve:hover { color: #fff; background: var(--teal); }.row-btn.danger:hover { color: #b44a42; background: #fbe9e7; }
.empty-row td { height: 220px; color: #94a19e; text-align: center; }
.table-footer { display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 10px 20px; color: #84918e; border-top: 1px solid #e7edeb; font-size: 10px; }
.pagination { display: flex; align-items: center; gap: 10px; }.pagination button { display: grid; width: 30px; height: 30px; place-items: center; color: #60736e; border: 1px solid #dce5e3; border-radius: 8px; background: #fff; }.pagination button:disabled { opacity: .35; }.pagination span { min-width: 48px; text-align: center; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 18px; }.role-card { display: flex; align-items: flex-start; gap: 13px; padding: 19px; border: 1px solid #e1e9e7; border-radius: 14px; background: #fff; }.role-card strong { display: block; margin-bottom: 5px; font-size: 12px; }.role-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }.role-dot { width: 10px; height: 10px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; }.role-dot.viewer { background: #85948f; }.role-dot.editor { background: var(--teal); }.role-dot.admin { background: var(--orange); }.user-panel-head { padding: 20px; border-bottom: 1px solid var(--line); }.user-cell { display: flex; align-items: center; gap: 10px; }.user-cell > div { display: grid; gap: 3px; }.mini-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: var(--teal-dark); border-radius: 9px; background: var(--teal-soft); font-weight: 800; }.role-select { width: 125px; height: 36px; }.department-select { width: 155px; height: 36px; }.user-position-list { display: grid; min-width: 145px; gap: 7px; }.user-position-list label { display: flex; align-items: center; gap: 7px; color: #50635e; font-size: 10px; font-weight: 600; white-space: nowrap; }.user-position-list input { width: 15px; height: 15px; margin: 0; accent-color: var(--teal); }

/* 表单和详情弹窗。 */
dialog { padding: 0; color: var(--ink); border: 0; outline: none; }
dialog::backdrop { background: rgba(8,28,24,.6); backdrop-filter: blur(3px); }
.modal { width: min(720px, calc(100vw - 28px)); max-height: calc(100vh - 34px); overflow: auto; border-radius: 18px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.modal-wide { width: min(900px, calc(100vw - 28px)); }
.small-modal { width: min(480px, calc(100vw - 28px)); }
.modal-head { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 18px; border-bottom: 1px solid #e4ebe9; background: #fff; }.modal-head h2 { margin: 0; font-size: 20px; }.modal-head .eyebrow { margin-bottom: 5px; }
.modal-close { display: grid; width: 35px; height: 35px; place-items: center; color: #687a75; border: 1px solid #dfe7e5; border-radius: 50%; background: #fff; font-size: 23px; line-height: 1; }.modal-close:hover { color: var(--ink); background: #f1f5f4; }
.modal-body { padding: 24px 26px; }.form-section { margin-bottom: 26px; }.form-section h3, .detail-section h3 { margin: 0 0 15px; padding-bottom: 10px; color: #50635e; border-bottom: 1px solid #edf1f0; font-size: 11px; letter-spacing: .07em; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }.form-grid em { color: #d55549; font-style: normal; }.full-field { margin-top: 17px; }
.modal-body label em { color: #d55549; font-style: normal; }.form-help { margin: -4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.transaction-material-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid #dbe8e4; border-radius: 10px; background: #f3f8f7; }.transaction-material-summary span { overflow: hidden; color: var(--ink-2); font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }.transaction-material-summary strong { flex: 0 0 auto; color: var(--muted); font-size: 10px; }.transaction-material-summary b { color: var(--teal-dark); font-size: 13px; }
.modal-foot { position: sticky; z-index: 3; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px; border-top: 1px solid #e4ebe9; background: #fff; }
#usageDialog .modal-foot { flex-wrap: wrap; }
#secondConfirmationDialog .modal-foot { flex-wrap: wrap; }
#secondConfirmationsView .table-panel + .table-panel { margin-top: 18px; }
#secondConfirmationsView .panel-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
#secondConfirmationCount { margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); }
.confirmation-preview-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.confirmation-preview-actions .btn { text-decoration: none; }
.confirmation-workspace { width: min(1680px, calc(100vw - 24px)); max-width: none; height: min(960px, calc(100vh - 24px)); max-height: none; overflow: hidden; border-radius: 16px; background: #f3f7f6; box-shadow: 0 30px 80px #0004; }
.confirmation-workspace-grid { display: grid; grid-template-columns: minmax(210px, 250px) minmax(360px, 1fr) minmax(340px, 430px); height: 100%; min-height: 0; }
.confirmation-workspace-nav, .confirmation-workspace-preview, .confirmation-workspace #secondConfirmationForm { min-width: 0; min-height: 0; }
.confirmation-workspace-nav { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-right: 1px solid var(--line); background: #fff; }
.confirmation-pane-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; color: var(--ink-2); font-size: 13px; }
.confirmation-pane-heading span { color: var(--muted); font-size: 10px; font-weight: 500; }
.confirmation-workspace-nav > input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.confirmation-task-list { display: grid; align-content: start; flex: 1; gap: 7px; overflow-y: auto; }
.confirmation-task-item { display: grid; width: 100%; gap: 4px; padding: 11px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: left; cursor: pointer; }
.confirmation-task-item:hover, .confirmation-task-item.active { border-color: var(--teal); background: var(--teal-soft); }
.confirmation-task-item strong { font-size: 11px; }.confirmation-task-item span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.confirmation-task-item small { color: var(--teal-dark); font-size: 9px; }
.confirmation-task-pager { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: var(--muted); font-size: 10px; }.confirmation-task-pager button { padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }.confirmation-task-pager button:disabled { opacity: .4; }
.confirmation-workspace-preview { display: flex; flex-direction: column; gap: 10px; padding: 18px; overflow: hidden; }
.confirmation-preview-tabs { display: flex; gap: 8px; }.confirmation-preview-tabs button { padding: 8px 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }.confirmation-preview-tabs button[aria-pressed="true"] { color: var(--teal-dark); border-color: var(--teal); background: var(--teal-soft); font-weight: 700; }
.confirmation-workspace-preview iframe { width: 100%; flex: 1; min-height: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.confirmation-workspace-preview .form-help { margin: 0; }
.confirmation-workspace #secondConfirmationForm { display: flex; flex-direction: column; overflow: hidden; border-left: 1px solid var(--line); background: #fff; }
.confirmation-workspace #secondConfirmationForm .modal-head { position: static; flex: 0 0 auto; padding: 17px 18px; }.confirmation-workspace #secondConfirmationForm .modal-head h2 { font-size: 16px; }
.confirmation-workspace #secondConfirmationForm .modal-body { flex: 1; overflow-y: auto; padding: 18px; }.confirmation-workspace #secondConfirmationForm .form-grid { grid-template-columns: 1fr; gap: 10px; }.confirmation-workspace #secondConfirmationForm .full-field { margin-top: 0; }
.confirmation-workspace #secondConfirmationForm .modal-foot { position: static; flex: 0 0 auto; padding: 12px 18px; }
@media (max-width: 1100px) { .confirmation-workspace-grid { grid-template-columns: 200px minmax(260px, 1fr) minmax(300px, 380px); } }
@media (max-width: 800px) { .confirmation-workspace { overflow-y: auto; }.confirmation-workspace-grid { grid-template-columns: 1fr; height: auto; }.confirmation-workspace-nav { max-height: 245px; }.confirmation-task-list { max-height: 130px; }.confirmation-workspace-preview { height: 520px; overflow: visible; }.confirmation-workspace #secondConfirmationForm { overflow: visible; }.confirmation-workspace #secondConfirmationForm .modal-body { overflow: visible; } }
.usage-certificate-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid #dbe8e4; border-radius: 9px; background: #f5faf8; font-size: 11px; }
.usage-certificate-links strong { flex-basis: 100%; }
.usage-certificate-links a { color: var(--teal-dark); text-decoration: underline; }
.selected-device-chip .certificate-chip-action { width: auto; height: auto; padding: 2px 6px; border-radius: 5px; font-size: 10px; font-weight: 700; }
.image-editor { display: flex; align-items: center; gap: 18px; }.image-preview { display: grid; width: 140px; height: 96px; flex: 0 0 auto; overflow: hidden; place-items: center; color: #82928e; border: 1px dashed #b9cbc7; border-radius: 11px; background: #f5f9f8; font-size: 11px; }.image-preview img { width: 100%; height: 100%; object-fit: cover; }.image-editor > div:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }.image-editor p { flex-basis: 100%; margin: 2px 0 0; color: #8b9996; font-size: 9px; }.file-btn input { display: none; }
.import-body { display: grid; gap: 16px; }.import-file-box { display: grid; min-height: 125px; cursor: pointer; place-content: center; justify-items: center; gap: 8px; padding: 20px; color: var(--teal-dark); border: 2px dashed #b8cec9; border-radius: 13px; background: #f4f9f7; text-align: center; }.import-file-box:hover { border-color: var(--teal); background: var(--teal-soft); }.import-file-box strong { font-size: 13px; }.import-file-box span { color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.6; }.import-file-box input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }.import-notes { padding: 14px 16px; color: #526762; border-radius: 10px; background: #f6f8f8; font-size: 10px; line-height: 1.7; }.import-notes > strong { color: var(--ink-2); }.import-notes ul { margin: 7px 0 0; padding-left: 18px; }.import-result { padding: 13px 15px; color: #286257; border: 1px solid #bcded6; border-radius: 10px; background: #edf8f5; font-size: 10px; line-height: 1.65; }.import-result.error { color: #963d36; border-color: #efc5c1; background: #fff4f2; }.import-result strong { display: block; font-size: 11px; }.import-result p { margin: 7px 0 0; }.import-result details { margin-top: 9px; }.import-result summary { cursor: pointer; font-weight: 750; }.import-result ul { max-height: 155px; overflow: auto; margin: 6px 0 0; padding-left: 18px; }.import-warning { color: #a24b43; }
.usage-device-picker { display: grid; gap: 10px; }.field-label { color: var(--ink-2); font-size: 13px; font-weight: 650; }.usage-device-search { display: flex; gap: 9px; }.usage-device-search input { flex: 1; }.usage-device-search .btn { flex: 0 0 auto; }.selected-device-list { display: flex; min-height: 46px; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border: 1px dashed #c7d7d3; border-radius: 10px; background: #f8faf9; }.selected-device-chip { display: inline-flex; max-width: 100%; align-items: center; gap: 7px; padding: 7px 9px; color: #315c54; border-radius: 8px; background: var(--teal-soft); font-size: 10px; }.selected-device-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.selected-device-chip button { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; padding: 0; color: #567c75; border: 0; border-radius: 50%; background: rgba(255,255,255,.7); line-height: 1; }.check-field { display: grid; grid-template-columns: 22px 1fr; align-items: center; align-self: end; min-height: 44px; padding: 8px 12px; border: 1px solid #d7e2df; border-radius: 10px; background: #f8faf9; }.check-field input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }.check-field span { display: grid; gap: 2px; }.check-field strong { font-size: 12px; }.check-field small { color: var(--muted); font-size: 9px; font-weight: 400; }.batch-summary { padding: 11px 13px; color: #57706a; border-radius: 9px; background: #edf6f4; font-size: 10px; line-height: 1.6; }
.field-help { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.6; }.usage-form-message { padding: 10px 12px; color: #8b342e; border: 1px solid #efc5c1; border-radius: 9px; background: #fff4f2; font-size: 10px; line-height: 1.55; }.usage-form-message.success { color: #286257; border-color: #bcded6; background: #edf8f5; }
.detail-modal { width: min(800px, calc(100vw - 28px)); }.detail-hero { position: relative; display: grid; height: 290px; overflow: hidden; place-items: center; background: linear-gradient(145deg, #163f39, #236b60); }.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.2), transparent 50%); }.detail-hero > img { width: 100%; height: 100%; object-fit: cover; }.detail-placeholder { display: grid; justify-items: center; gap: 10px; color: #a4c7c0; }.detail-placeholder svg { width: 54px; height: 54px; }.detail-placeholder span { font-size: 11px; letter-spacing: .08em; }.floating { position: absolute; z-index: 4; top: 17px; right: 17px; color: #fff; border-color: rgba(255,255,255,.4); background: rgba(11,38,33,.38); }.detail-content { padding: 28px 32px 34px; }.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }.detail-title-row h2 { margin: 11px 0 6px; font-family: "SimSun", serif; font-size: 27px; }.detail-title-row p { margin: 0; color: var(--muted); font-size: 11px; }.detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 25px 0; border: 1px solid #e3ebe9; border-radius: 12px; background: #f8faf9; }.detail-stats div { display: grid; gap: 5px; padding: 15px 18px; border-right: 1px solid #e3ebe9; }.detail-stats div:last-child { border: 0; }.detail-stats span { color: var(--muted); font-size: 9px; }.detail-stats strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.detail-section { margin-top: 24px; }.detail-section dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; }.detail-section dl div { display: grid; grid-template-columns: 115px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid #eff3f2; font-size: 10px; }.detail-section dt { color: #81908c; }.detail-section dd { margin: 0; color: #3e524d; font-weight: 650; word-break: break-word; }.detail-remark { margin: 0; color: #536660; font-size: 11px; line-height: 1.75; }.password-fields { display: grid; gap: 16px; }
/* 全局成功/错误提示和提交时的加载遮罩。 */
.toast-stack { position: fixed; z-index: 100; top: 20px; right: 20px; display: grid; width: min(360px, calc(100vw - 40px)); gap: 9px; }.toast { display: flex; align-items: center; gap: 10px; padding: 13px 15px; color: #fff; border-radius: 10px; background: #183e38; box-shadow: var(--shadow); font-size: 12px; animation: toastIn .25s ease; }.toast.error { background: #a84740; }.toast::before { content: "✓"; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); }.toast.error::before { content: "!"; }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } }
.loading-overlay { position: fixed; z-index: 120; inset: 0; display: grid; place-content: center; justify-items: center; color: #fff; background: rgba(9,34,30,.62); backdrop-filter: blur(2px); }.loading-overlay p { font-size: 12px; }.spinner { width: 30px; height: 30px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 用户反馈与长列表分页：长文本自动换行，管理操作不挤占手机内容。 */
.table-footer { flex-wrap: wrap; gap: 12px; }
.page-size-label { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; }
.page-size-label select { width: 86px; height: 34px; }
.page-size-toolbar { margin-left: auto; }
.feedback-notice { padding: 14px 18px; color: #466f66; border: 1px solid #d8e9e4; border-radius: 12px; background: #f0f7f5; font-size: 13px; line-height: 1.8; }
.feedback-toolbar { flex-wrap: wrap; }
.feedback-mine { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.feedback-mine input { width: 17px; height: 17px; }
.feedback-list { min-height: 150px; }
.feedback-card { padding: 22px; border-top: 1px solid var(--line); }
.feedback-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback-badge { display: inline-block; padding: 4px 9px; border-radius: 6px; color: #486a62; background: #edf3f1; font-size: 12px; }
.feedback-status-pending { background: #fff1d9; color: #866020; }
.feedback-status-processing { background: #e9efff; color: #405b98; }
.feedback-status-completed, .feedback-status-accepted { background: #ddf4e8; color: #256b4c; }
.feedback-card h2, .feedback-post h2 { margin: 14px 0; font-size: 19px; overflow-wrap: anywhere; }
.feedback-card h2 button { padding: 0; color: #164b40; border: 0; background: transparent; text-align: left; font-weight: 700; line-height: 1.6; }
.feedback-card h2 button:hover { text-decoration: underline; }
.feedback-excerpt { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #62756f; overflow-wrap: anywhere; line-height: 1.8; }
.feedback-card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #667d75; font-size: 12px; line-height: 1.8; }
.feedback-post, .feedback-moderation, .feedback-discussion { margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.feedback-meta { color: #667d75; font-size: 12px; }
.feedback-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; font-size: 14px; }
.feedback-history { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.feedback-history p { color: #5e726b; font-size: 12px; }
.feedback-history span { display: block; margin-top: 6px; }
.feedback-moderation, .feedback-reply-form { display: grid; gap: 14px; }
.feedback-moderation h2, .feedback-discussion h2 { margin: 0; font-size: 17px; }
.feedback-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.feedback-reply { padding: 18px 0; border-bottom: 1px solid var(--line); }
.feedback-message { margin: 0; padding: 12px; color: #943d35; border-radius: 8px; background: #fff0ee; white-space: pre-wrap; }
.feedback-reply-form .btn { justify-self: start; }
.device-select-column { width: 45px; padding-right: 8px; padding-left: 14px; text-align: center; }
.device-select-column input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); }
.calibration-submit-column { width: 44px; text-align: center; }
.calibration-submit-column input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); }
.calibration-risk-row.overdue td { background: #fff8f7; }
.calibration-risk-row.due-soon td { background: #fffdf7; }
.calibration-review-panel { display: grid; gap: 14px; margin-top: 20px; padding: 18px; border: 1px solid #d7e3df; border-radius: 12px; background: #f7faf9; }
.calibration-review-panel h3, .calibration-review-panel p { margin: 0; }
.calibration-review-panel p { margin-top: 5px; color: var(--muted); font-size: 10px; }
.calibration-review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.calibration-period-panel { margin-bottom: 0; }
.calibration-period-panel .table-toolbar { justify-content: flex-end; }
.calibration-period-title { display: grid; min-width: 230px; margin-right: auto; gap: 3px; }
.calibration-period-title strong { color: #2d4540; font-size: 12px; }
.calibration-period-title span { color: var(--muted); font-size: 9px; }
.field-transfer-summary { margin: 0 0 14px; padding: 13px 16px; color: #6f4b16; border: 1px solid #ead6b7; border-radius: 11px; background: #fff9ee; font-size: 11px; }
.field-transfer-summary strong { color: #a56312; font-size: 15px; }
.field-transfer-outside-row td { background: #fffaf1; }
.field-transfer-awaiting { color: #a56312; font-weight: 750; }
.field-transfer-device-state, .field-transfer-return-summary { display: grid; gap: 4px; margin-top: 10px; padding: 13px 15px; color: #285c52; border: 1px solid #cfe2dd; border-radius: 10px; background: #eff7f5; font-size: 11px; line-height: 1.55; }
.field-transfer-device-state.outside { color: #a14f36; border-color: #efd1c8; background: #fff3ef; }
.field-transfer-selected { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 18px; color: #527169; font-size: 11px; }
.field-transfer-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: #e8f4f1; }
.field-transfer-chip button { padding: 0 3px; border: 0; background: transparent; color: #53776d; cursor: pointer; }
.field-transfer-return-summary { margin: 0 0 22px; }
.field-transfer-return-summary strong { font-size: 13px; }
.field-transfer-return-summary span { color: var(--muted); }
.field-transfer-detail dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.field-transfer-detail dl > div { min-width: 0; padding: 13px 15px; background: #fff; }
.field-transfer-detail dt { margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.field-transfer-detail dd { margin: 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 700; line-height: 1.55; }
.batch-selection-summary { margin: 0 0 16px; padding: 13px 15px; color: #315f56; border: 1px solid #cfe2dd; border-radius: 10px; background: #eff7f5; font-size: 12px; font-weight: 750; }
.device-batch-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 18px 0; }
.device-batch-field { padding: 13px; border: 1px solid #dfe8e5; border-radius: 11px; background: #f9fbfa; }
.device-batch-field > span { display: flex; align-items: center; gap: 8px; }
.device-batch-field > span input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); }
.device-batch-field > input, .device-batch-field > select { margin-top: 2px; }
.device-batch-field > input:disabled, .device-batch-field > select:disabled { color: #899691; background: #eef2f1; }
.device-batch-preview { margin-top: 20px; padding: 16px; border: 1px solid #cfe2dd; border-radius: 12px; background: #f4f9f7; }
.device-batch-preview > strong { display: block; color: #285c52; font-size: 12px; }
.device-batch-preview-list { display: grid; max-height: 360px; gap: 9px; margin-top: 12px; overflow-y: auto; }
.device-batch-preview article { padding: 12px 14px; border: 1px solid #e0e9e6; border-radius: 9px; background: #fff; }
.device-batch-preview h3 { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 11px; }
.device-batch-preview h3 small { color: var(--muted); font-size: 9px; font-weight: 500; }
.device-batch-preview ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.device-batch-preview li { display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: 8px; color: #5d706a; font-size: 10px; line-height: 1.6; }
.device-batch-preview li b { color: #344f49; }.device-batch-preview article > p { margin: 0; color: var(--muted); font-size: 10px; }
@media (max-width: 650px) {
  .feedback-post, .feedback-moderation, .feedback-discussion { padding: 18px; }
  .feedback-card { padding: 18px; }
  .feedback-card-foot { align-items: flex-start; flex-direction: column; }
  .feedback-toolbar .search-box { flex-basis: 100%; }
  .feedback-toolbar .feedback-mine { font-size: 12px; }
  .page-size-toolbar { width: 100%; margin-left: 0; }
  .device-batch-fields { grid-template-columns: 1fr; }
  .device-batch-preview li { grid-template-columns: 1fr; }
}

/* 响应式断点：依次适配窄桌面、平板、手机和小屏手机。 */
@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .recent-list { grid-template-columns: repeat(2, 1fr); }
  .auth-brand { padding: 70px; }
}
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }.auth-brand { display: none; }.auth-panel { padding: 30px; }.mobile-brand { display: flex; }
  .app-shell { display: block; }.workspace { grid-column: auto; }.sidebar { transform: translateX(-102%); transition: transform .25s ease; box-shadow: 12px 0 35px rgba(4,28,23,.2); }.sidebar.open { transform: translateX(0); }.menu-btn { display: grid; }.topbar { padding: 0 20px; }.breadcrumb { margin-right: auto; margin-left: 10px; }
  .dashboard-grid { grid-template-columns: 1fr; }.recent-panel, .conflict-panel { grid-column: auto; }.role-grid { grid-template-columns: 1fr; }.conflict-list { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .main-content { padding: 26px 15px 45px; }.topbar { height: 64px; padding: 0 12px; }.breadcrumb span, .breadcrumb svg, .current-user > div:nth-child(2) { display: none; }.current-user { margin-right: 0; padding-right: 8px; border: 0; }
  .heading-with-date { align-items: flex-start; }.date-card { display: none; }.dashboard-heading-actions { width: 100%; }.dashboard-heading-actions .btn { width: 100%; }.page-heading { align-items: flex-start; flex-direction: column; }.page-heading .btn { width: 100%; }.heading-actions { width: 100%; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.metric-card { min-height: 150px; padding: 17px; }.metric-card p { margin-top: 12px; }.metric-card > strong { font-size: 28px; }
  .update-notice { grid-template-columns: auto 1fr; }.update-notice .btn { grid-column: 1 / -1; width: 100%; }.release-current { width: 100%; }.release-list { padding-left: 21px; }.release-card { grid-template-columns: 1px 1fr; }.release-marker { left: -19px; }.release-content { padding: 20px 18px; }
  .panel { padding: 18px; }.status-visual { flex-direction: column; }.recent-list { grid-template-columns: 1fr; }
  .table-toolbar { flex-wrap: wrap; }.search-box { width: 100%; }.table-toolbar select { flex: 1; min-width: 120px; }.toolbar-field { flex: 1; min-width: 135px; }.toolbar-field input { width: 100%; }.table-toolbar .btn { flex: 0 0 auto; }
  .material-detail-actions { width: 100%; }.material-detail-actions .btn { flex: 1; }.material-summary-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }.modal-head, .modal-body, .modal-foot { padding-right: 18px; padding-left: 18px; }.image-editor { align-items: flex-start; flex-direction: column; }.usage-device-search { align-items: stretch; flex-direction: column; }.usage-device-search .btn { width: 100%; }
  .field-transfer-detail dl { grid-template-columns: 1fr; }
  .detail-hero { height: 220px; }.detail-content { padding: 22px 18px 28px; }.detail-stats { grid-template-columns: 1fr; }.detail-stats div { border-right: 0; border-bottom: 1px solid var(--line); }.detail-section dl { grid-template-columns: 1fr; }.detail-title-row { flex-direction: column; }
}
@media (max-width: 420px) {
  .auth-panel { padding: 25px 20px; }.metric-grid { grid-template-columns: 1fr; }.auth-tabs { margin-bottom: 32px; }.auth-metric-row { gap: 20px; }
}
