/* ============ 送检测登记系统 · 工业风样式 ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  background: #eef1f5;
  color: #1c2733;
  font-size: 14px;
  line-height: 1.6;
}
a { color: #1a5fb4; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶栏 */
.topbar {
  display: flex; align-items: center; gap: 22px;
  background: linear-gradient(180deg, #24313f 0%, #1a242f 100%);
  border-bottom: 3px solid #d98c1f;
  color: #e8edf3; padding: 0 22px; height: 62px;
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 300px; }
.logo-img {
  display: block; height: 36px; width: auto; max-width: 152px;
  background: #fff; padding: 2px 5px; border-radius: 3px;
  border: 1px solid #d98c1f;
}
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: #8d9cab; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a {
  color: #c3ccd6; padding: 6px 12px; border-radius: 3px; font-size: 13.5px;
  text-decoration: none; border: 1px solid transparent;
}
.nav a:hover { background: #2c3b4b; color: #fff; text-decoration: none; }
.nav a.on { background: #d98c1f; color: #1a242f; font-weight: 600; }
.userbox { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.uname { color: #e8edf3; }
.userbox .lnk { color: #9fb0c0; font-size: 12.5px; }

/* 容器 */
.wrap { max-width: 1280px; margin: 20px auto 40px; padding: 0 18px; }
.foot { text-align: center; color: #8b98a5; font-size: 12px; padding: 18px 0 30px; }

/* 提示 */
.flash {
  padding: 9px 14px; border-radius: 3px; margin-bottom: 12px; font-size: 13.5px;
  border-left: 4px solid #1a5fb4; background: #e8f0fb; color: #14416f;
}
.flash.ok { border-color: #1f7a3f; background: #e6f4ea; color: #1c6135; }
.flash.warn { border-color: #d98c1f; background: #fdf3e2; color: #8a5606; }
.flash.error { border-color: #b3261e; background: #fbe9e8; color: #8c1d18; }

/* 面板 */
.panel {
  background: #fff; border: 1px solid #d7dee6; border-radius: 4px;
  margin-bottom: 18px; overflow: hidden;
}
.panel-head {
  padding: 11px 16px; border-bottom: 1px solid #e3e9ef; background: #f7f9fb;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.panel-head h2::before {
  content: ""; display: inline-block; width: 4px; height: 14px;
  background: #d98c1f; margin-right: 8px; vertical-align: -2px;
}
.panel-body { padding: 16px; }
.panel-body.tight { padding: 0; }

/* 统计卡 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.card {
  background: #fff; border: 1px solid #d7dee6; border-left: 4px solid #5b7186;
  border-radius: 4px; padding: 12px 14px;
}
.card .num { font-size: 24px; font-weight: 700; font-family: Consolas, monospace; color: #1c2733; }
.card .lbl { font-size: 12.5px; color: #6b7785; }
.card.pending { border-left-color: #d98c1f; }
.card.assigned { border-left-color: #2f6fa8; }
.card.testing { border-left-color: #6f5bd9; }
.card.completed { border-left-color: #1f7a3f; }
.card.closed { border-left-color: #7b8794; }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  background: #f0f4f8; text-align: left; padding: 9px 12px; font-weight: 600;
  color: #46566a; border-bottom: 1px solid #d7dee6; white-space: nowrap; font-size: 13px;
}
tbody td { padding: 9px 12px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
tbody tr:hover { background: #f8fbfd; }
tbody tr:last-child td { border-bottom: none; }
.mono { font-family: Consolas, monospace; font-size: 13px; }
.muted { color: #8391a0; }
.nowrap { white-space: nowrap; }

/* 徽标 */
.badge {
  display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px;
  border: 1px solid #c9d4de; background: #f1f5f9; color: #46566a; white-space: nowrap;
}
.badge.pending { background: #fdf3e2; border-color: #eccb95; color: #8a5606; }
.badge.assigned { background: #e8f0fb; border-color: #a9c6e8; color: #14416f; }
.badge.testing { background: #efecfb; border-color: #b9b0e6; color: #443a86; }
.badge.completed { background: #e6f4ea; border-color: #a6d3b6; color: #1c6135; }
.badge.closed { background: #eef1f4; border-color: #ccd5dd; color: #5b6672; }
.badge.pass { background: #e6f4ea; border-color: #a6d3b6; color: #1c6135; }
.badge.fail { background: #fbe9e8; border-color: #e6b0ac; color: #8c1d18; }
.badge.concession { background: #fdf3e2; border-color: #eccb95; color: #8a5606; }
.badge.na { background: #eef1f4; border-color: #ccd5dd; color: #5b6672; }
.badge.urgent { background: #fdf3e2; border-color: #eccb95; color: #8a5606; }
.badge.critical { background: #fbe9e8; border-color: #e6b0ac; color: #8c1d18; }
.badge.role { background: #2c3b4b; border-color: #3d5064; color: #c3ccd6; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: #46566a; font-weight: 600; }
.field .req { color: #b3261e; margin-left: 2px; }
input[type=text], input[type=password], input[type=date], input[type=number],
select, textarea {
  width: 100%; padding: 7px 10px; border: 1px solid #c9d4de; border-radius: 3px;
  font-size: 13.5px; font-family: inherit; background: #fff; color: #1c2733;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #1a5fb4; box-shadow: 0 0 0 2px rgba(26,95,180,.12); }
textarea { resize: vertical; min-height: 74px; }
input[type=file] { font-size: 13px; }
.hint { font-size: 12px; color: #8391a0; }

/* 按钮 */
.btn {
  display: inline-block; padding: 7px 16px; border-radius: 3px; border: 1px solid #1a5fb4;
  background: #1a5fb4; color: #fff; font-size: 13.5px; cursor: pointer;
  font-family: inherit; text-decoration: none;
}
.btn:hover { background: #15509c; text-decoration: none; }
.btn.ghost { background: #fff; color: #354559; border-color: #c9d4de; }
.btn.ghost:hover { background: #f2f6fa; }
.btn.warn { background: #d98c1f; border-color: #d98c1f; color: #241a06; }
.btn.warn:hover { background: #c47c14; }
.btn.danger { background: #b3261e; border-color: #b3261e; }
.btn.danger:hover { background: #971e17; }
.btn.sm { padding: 4px 10px; font-size: 12.5px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* 详情 */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; height: auto; padding: 8px 14px; }
}
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: #6b7785; }
.kv dd { margin: 0; color: #1c2733; word-break: break-all; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 18px; border-left: 2px solid #dde5ec; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; border: 2px solid #9fb0c0;
}
.timeline li.on::before { background: #d98c1f; border-color: #d98c1f; }
.timeline .t { font-size: 12px; color: #8391a0; font-family: Consolas, monospace; }
.timeline .d { font-size: 13.5px; }
.filelist { list-style: none; padding: 0; margin: 0; }
.filelist li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed #e3e9ef; font-size: 13.5px;
}
.filelist li:last-child { border-bottom: none; }

/* 筛选条 */
.filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 16px; background: #f7f9fb; border-bottom: 1px solid #e3e9ef; }
.filter input[type=text] { max-width: 240px; }
.filter select { max-width: 150px; }

/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #1a242f radial-gradient(circle at 30% 20%, #2e4052 0%, #1a242f 62%); }
.login-box { width: 380px; background: #fff; border-radius: 5px; padding: 30px 30px 24px;
  border-top: 4px solid #d98c1f; box-shadow: 0 12px 36px rgba(0,0,0,.32); }
.login-logo { margin: 0 0 16px; }
.login-logo img { display: block; height: 46px; width: auto; max-width: 100%; }
.login-box h1 { font-size: 18px; margin: 0 0 4px; }
.login-box .sub { color: #8391a0; font-size: 12.5px; margin-bottom: 20px; }
.login-box .field { margin-bottom: 14px; }
.login-box .btn { width: 100%; padding: 9px; font-size: 14px; }
.login-tip { margin-top: 16px; font-size: 12px; color: #8391a0; border-top: 1px dashed #dde5ec; padding-top: 12px; line-height: 1.8; }
.empty { text-align: center; padding: 40px 0; color: #8391a0; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }

/* 新数据提示条（自动刷新暂缓时的顶部告警，沿用工业风） */
.refresh-tip {
  display: none;
  position: sticky; top: 65px; z-index: 19;
  margin: 0 0 12px; padding: 8px 14px;
  background: #fdf3e2; border: 1px solid #eccb95; border-left: 4px solid #d98c1f;
  border-radius: 2px; color: #8a5606; font-size: 13.5px; letter-spacing: .2px;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}
.refresh-tip .dot {
  display: inline-block; width: 7px; height: 7px; margin-right: 8px;
  background: #d98c1f; vertical-align: 1px;
}
