:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #b42c27;
  --primary-soft: #f8e3e1;
  --panel-padding: clamp(12px, 1.5vw + 8px, 20px);
  --page-gutter: 16px;
  --container-max: 1440px;
  --container-width: min(var(--container-max), calc(100vw - 2 * var(--page-gutter)));
  --topbar-logo-height: clamp(20px, 1.8vw + 10px, 26px);
  --topbar-logo-shift: 24px;
  --container-offset: max(
    var(--page-gutter),
    calc((100vw - min(var(--container-max), 100vw - 2 * var(--page-gutter))) / 2)
  );
  --content-inset: calc(var(--container-offset) + var(--panel-padding));
  --logo-margin-left: calc(var(--page-gutter) + var(--topbar-logo-shift) - var(--content-inset));
  --brand-logos-span: calc(
    var(--topbar-logo-height) * 574 / 190
    + var(--topbar-logo-height) * 483 / 153.6
    + 9px
  );
  --brand-gap: 12px;

  /* 报表：迈瑞/Kyndryl 红色主题色阶（低饱和、同色系） */
  --report-red-50: #fdf5f4;
  --report-red-100: #f8e3e1;
  --report-red-200: #efc5c1;
  --report-red-300: #f0a098;
  --report-red-400: #c96a62;
  --report-red-500: #b42c27;
  --report-red-600: #962420;
  --report-red-700: #781c19;
  --report-red-muted: #9a7a76;
  --report-surface: #fdf8f7;
  --report-border: #ecd9d6;
  --report-text: #5c4542;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 220px);
  color: var(--text);
}

.container {
  width: var(--container-width);
  margin: 0 auto;
  padding-inline: var(--panel-padding);
}

.topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.topbar-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--brand-gap);
  flex: 1;
  min-width: 0;
}

.topbar .brand-logos {
  flex-shrink: 0;
  margin-left: var(--logo-margin-left);
}

/* 宽屏：文字左缘与列表对齐；缩窄后 margin 为 0，logo 与文字贴靠同步右移 */
.topbar .brand-text {
  flex: 1;
  min-width: 0;
  margin-left: max(
    0px,
    calc(-1 * (var(--logo-margin-left) + var(--brand-logos-span) + var(--brand-gap)))
  );
}

.topbar .brand-logos img {
  height: var(--topbar-logo-height);
}

.topbar .brand-logos-divider {
  height: calc(var(--topbar-logo-height) - 6px);
}

.brand-logos {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logos img {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-logos-divider {
  width: 1px;
  height: 30px;
  margin: 0 4px;
  flex-shrink: 0;
}

.topbar .brand-logos-divider {
  background: #dcdfe6;
}

.brand-text {
  min-width: 0;
}

.brand h1,
.brand-title {
  margin: 0;
  font-size: 20px;
  color: rgb(180, 44, 39);
}

.brand-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 0;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1;
}

.brand-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

nav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.nav-user {
  color: var(--muted);
  font-size: 13px;
  padding: 0 4px;
}

.nav-logout {
  margin: 0;
  display: inline-flex;
}

.nav-logout button {
  cursor: pointer;
  font-family: inherit;
  background: transparent;
  border: none;
  color: var(--muted);
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.nav-link.active,
.nav-link:hover,
.nav-logout button.nav-link:hover {
  background: var(--report-red-100);
  color: var(--report-red-500);
}

main { padding: 24px 0 48px; }

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.stat-card { padding: 18px 20px; }

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

.stat-value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
}

.panel {
  padding: var(--panel-padding);
  margin-inline: calc(-1 * var(--panel-padding));
  margin-bottom: 20px;
}

.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-header h2 {
  margin: 0;
  font-size: 18px;
}

.panel-sub {
  color: var(--muted);
  font-size: 13px;
}

.report-panel-header {
  align-items: center;
  flex-wrap: wrap;
}

.report-range-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.report-range-form label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--report-text);
}

.report-range-form input[type="date"] {
  padding: 6px 10px;
  border: 1px solid var(--report-border);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: var(--report-text);
  font-family: inherit;
}

.report-range-sep {
  color: var(--report-red-muted);
  font-size: 13px;
}

.report-range-btn {
  background: var(--report-red-500);
  color: #fff;
  border-color: var(--report-red-500);
}

.report-range-btn:hover {
  background: var(--report-red-600);
  border-color: var(--report-red-600);
}

.report-panel-header .panel-sub {
  flex-shrink: 0;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.report-panel .chart-box {
  height: 320px;
  border: 1px solid var(--report-border);
  border-radius: 12px;
  background: var(--report-surface);
}

.chart-box {
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
}

.chart-wide { grid-column: 1 / -1; }

.trend-chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 360px;
}

.trend-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 0;
  flex-wrap: wrap;
}

.trend-chart-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.trend-crumb {
  border: none;
  background: transparent;
  color: var(--report-red-600);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  font-family: inherit;
}

.trend-crumb:hover {
  background: var(--report-red-50);
}

.trend-crumb-sep {
  color: var(--muted);
  font-size: 12px;
}

.trend-chart-hint {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.trend-chart-canvas {
  flex: 1 1 auto;
  min-height: 300px;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 16px;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.filters .grow { flex: 1 1 240px; }

.filters select,
.filters input {
  min-width: 160px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background: var(--report-red-500);
  color: #fff;
  border-color: var(--report-red-500);
}

.btn.primary:hover {
  background: var(--report-red-600);
  border-color: var(--report-red-600);
}

.btn.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
}

thead th {
  background: #fff9f9;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  vertical-align: top;
}

tbody tr:hover { background: #f8fbff; }

.records-select-col {
  width: 80px;
  min-width: 80px;
  text-align: center;
  vertical-align: middle;
  padding-inline: 10px;
  white-space: nowrap;
}

.records-table {
  min-width: 1240px;
}

.records-table .col-business-type {
  min-width: 96px;
  white-space: nowrap;
}

.record-expedite-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--report-red-500);
}

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.summary {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 32px !important;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.tag-info { background: #dbeafe; color: #1d4ed8; }
.tag-warn { background: #fef3c7; color: #b45309; }
.tag-type-urgent {
  background: var(--report-red-200);
  color: var(--report-red-600);
}
.tag-type-repair {
  background: var(--report-red-500);
  color: #fff;
}
.tag-ok { background: #dcfce7; color: #15803d; }
.tag-bad { background: #fee2e2; color: #b91c1c; }

.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  max-width: 100%;
}

.pagination-total {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.page-size-form {
  margin: 0;
}

.page-size-select {
  min-width: 72px;
  height: 32px;
  padding: 0 28px 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.page-size-select:hover,
.page-size-select:focus {
  border-color: var(--primary);
  outline: none;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.88);
  border: 1px solid #d9d9d9;
  background: #fff;
  font-size: 14px;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
}

.page-btn:hover:not(.disabled):not(.current):not(.ellipsis) {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
}

.page-btn.disabled {
  color: rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.04);
  border-color: #d9d9d9;
  cursor: not-allowed;
}

.page-btn.ellipsis {
  border: none;
  background: transparent;
  min-width: 24px;
  color: rgba(0, 0, 0, 0.45);
  cursor: default;
}

.page-jump-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.page-jump-input {
  width: 52px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  background: #fff;
  transition: border-color 0.2s;
}

.page-jump-input:hover,
.page-jump-input:focus {
  border-color: var(--primary);
  outline: none;
}

@media (max-width: 768px) {
  .topbar .brand-title {
    font-size: 17px;
  }

  .topbar .brand-tagline {
    font-size: 12px;
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .topbar-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .topbar-brand {
    flex: 1 1 100%;
  }

  nav {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .pagination-bar {
    justify-content: stretch;
  }

  .pagination-wrap {
    justify-content: center;
  }
}

.footer {
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 13px;
}

.settings-section h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.settings-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  overflow: hidden;
}

.accordion-item[open] {
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  transition: background 0.2s;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-header:hover {
  background: #f1f5f9;
}

.accordion-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.accordion-meta {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

.accordion-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.accordion-item[open] .accordion-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.accordion-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}

.accordion-body.settings-section {
  padding-top: 16px;
}

.settings-desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.settings-form {
  margin-bottom: 16px;
}

.settings-table {
  min-width: 720px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.actions form {
  margin: 0;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-danger {
  color: #b91c1c;
  border-color: #fecaca;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-ok {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.alert-bad {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.login-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background: #1e293b;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
  filter: blur(8px);
  transform: scale(1.03);
}

.login-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  padding: 32px 28px;
}

.login-page-logo {
  position: fixed;
  top: 28px;
  left: 32px;
  z-index: 2;
}

.login-page-logo .brand-logos-divider {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.login-page-logo img {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
}

.login-card .alert-bad {
  background: rgba(254, 226, 226, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(254, 202, 202, 0.55);
}

.login-brand {
  margin-bottom: 24px;
  text-align: center;
}

.login-brand .brand-title {
  font-size: 18px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.login-brand .brand-tagline {
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
}

.login-brand .brand-dot {
  background: rgba(255, 255, 255, 0.82);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.login-form input {
  padding: 10px 4px 8px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  font-size: 14px;
  color: #fff;
  background: transparent;
  transition: border-color 0.2s;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.login-form input:focus {
  outline: none;
  border-bottom-color: rgba(255, 255, 255, 0.95);
  background: transparent;
  box-shadow: none;
}

.login-hint {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  line-height: 1.5;
}

.login-btn {
  width: 100%;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.login-btn:hover {
  background: #fff;
}

.account-create-form label {
  min-width: 140px;
}

.password-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.password-form input {
  min-width: 140px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.account-table {
  min-width: 1100px;
}

.email-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  min-width: 240px;
}

.email-form input {
  min-width: 160px;
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .stats-bar,
  .charts-grid {
    grid-template-columns: 1fr;
  }

  .chart-wide { grid-column: auto; }
}

/* 顶栏：催单提醒铃铛 + 下拉列表 */
.nav-expedites-widget {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-expedites-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.nav-expedites-bell:hover,
.nav-expedites-widget.is-expanded .nav-expedites-bell {
  background: var(--report-red-100);
  color: var(--report-red-500);
}

.nav-expedites-bell-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-expedites-widget.is-ringing .nav-expedites-bell {
  animation: expedite-bell-ring 0.6s ease-in-out 2;
}

@keyframes expedite-bell-ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-6deg); }
}

.pending-expedites-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--report-red-500);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 2px solid #fff;
  pointer-events: none;
}

.pending-expedites-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1300;
  width: min(360px, calc(100vw - 32px));
  max-height: min(420px, 70vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--report-red-200);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  font-size: 14px;
}

.pending-expedites-panel[hidden] {
  display: none !important;
}

.nav-expedites-widget.is-expanded .pending-expedites-panel {
  display: flex;
}

.pending-expedites-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--report-red-50);
}

.pending-expedites-title {
  display: block;
  font-size: 15px;
  color: var(--report-red-600);
}

.pending-expedites-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.pending-expedites-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.pending-expedites-close:hover {
  background: rgba(180, 44, 39, 0.08);
  color: var(--report-red-600);
}

.pending-expedites-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  flex: 1 1 auto;
}

.pending-expedites-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.pending-expedites-item-body {
  flex: 1 1 auto;
  min-width: 0;
}

.pending-expedites-complete-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid var(--report-red-500);
  border-radius: 8px;
  background: var(--report-red-500);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.pending-expedites-complete-btn:hover:not(:disabled) {
  background: var(--report-red-600);
  border-color: var(--report-red-600);
}

.pending-expedites-complete-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pending-expedites-item:last-child {
  border-bottom: none;
}

.pending-expedites-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.pending-expedites-item-id {
  font-weight: 700;
  color: var(--report-red-600);
}

.pending-expedites-item-wait {
  font-size: 12px;
  font-weight: 600;
  color: #b91c1c;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.pending-expedites-item-summary {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pending-expedites-item-time {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.pending-expedites-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

.pending-expedites-item-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--report-red-500);
  text-decoration: none;
}

.pending-expedites-item-link:hover {
  color: var(--report-red-600);
  text-decoration: underline;
}

.pending-expedites-empty {
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.pending-expedites-link {
  display: block;
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--report-red-500);
  text-decoration: none;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.pending-expedites-link:hover {
  background: var(--report-red-50);
}

@media (max-width: 600px) {
  .pending-expedites-panel {
    right: -8px;
    width: min(320px, calc(100vw - 24px));
  }
}

/* 催单完成确认弹窗 */
.expedite-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.expedite-confirm-modal[hidden] {
  display: none;
}

.expedite-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.expedite-confirm-dialog {
  position: relative;
  width: min(400px, 100%);
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}

.expedite-confirm-title {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.expedite-confirm-message {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.expedite-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
