/* V1 蓝白清爽：仅覆盖已登录业务区，登录页 C3-A 保持原样。 */
body.v1-blue #orders .compact-order-table {
  border: 1px solid #dfe8f5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(27, 67, 116, .045);
}
body.v1-blue #orders .compact-order-table > summary {
  color: #1a3456;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  list-style-position: inside;
}
body.v1-blue #orders .compact-order-table > summary small {
  margin-left: 6px;
  color: #8494a9;
  font-size: 11px;
  font-weight: 500;
}
body.v1-blue #orders .compact-order-table[open] > summary { margin-bottom: 12px; }
body.v1-blue #orders .order-archive-entry { padding: 12px 16px; }
body.v1-blue #orders .order-archive-entry .top { margin: 0; }
body.v1-blue #orders .order-archive-entry b { color: #1a3456; }
body.v1-blue #orders .compact-order-table > b {
  display: block;
  color: #1a3456;
  font-size: 17px;
  margin-bottom: 11px;
}
body.v1-blue #orders .compact-order-table .table > .tr:first-child {
  color: #7688a0;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid #e4ebf5;
}
body.v1-blue #orders #orderRows .tr {
  color: #1b365a;
  border-bottom-color: #e8eef7;
  line-height: 1.42;
}
body.v1-blue #orders #orderRows .tr:last-child { border-bottom: 0; }
body.v1-blue #orders #orderRows .tr > span:first-child { font-weight: 800; }
body.v1-blue #orders #orderRows .tr > span:first-child small {
  font-weight: 500;
  color: #8292a7;
}
body.v1-blue #orders #orderRows .tr button {
  background: #eaf2ff;
  color: #2763c9;
  border-radius: 9px;
  box-shadow: none;
}

/* 订单点开后，内容依次对应客户、上门、交付；不改变权限和保存逻辑。 */
body.v1-blue #orderEditOverlay {
  background: rgba(16, 39, 72, .48);
}
body.v1-blue #orderEditOverlay .edit-sheet {
  width: min(760px, 100%);
  background: #f3f7fd;
  color: #1a3456;
  border: 1px solid #dce7f5;
  border-bottom: 0;
  box-shadow: 0 -18px 52px rgba(18, 53, 94, .2);
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
}
body.v1-blue #orderEditOverlay .edit-sheet > .top {
  position: sticky;
  top: -18px;
  z-index: 3;
  align-items: flex-start;
  margin: -18px -18px 0;
  padding: 18px 18px 12px;
  border-bottom: 1px solid #e4ecf7;
  background: rgba(243, 247, 253, .97);
  backdrop-filter: blur(10px);
}
body.v1-blue #orderEditOverlay .edit-sheet > .top b {
  color: #183759;
  font-size: 20px;
  line-height: 1.4;
}
body.v1-blue #orderEditOverlay .edit-sheet > .top .muted {
  margin-top: 3px;
  color: #8191a6;
  line-height: 1.5;
}
body.v1-blue #orderEditOverlay .edit-sheet > .top button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 14px;
  background: #e7f0ff;
  color: #2762c7;
}
body.v1-blue #orderEditOverlay .order-detail-summary {
  margin-top: 16px;
  padding: 17px 18px;
  border: 1px solid #dfe8f5;
  border-radius: 18px;
  background: #fff;
  color: #657b98;
  font-size: 13px;
  line-height: 1.75;
  box-shadow: 0 4px 18px rgba(25, 65, 108, .035);
}
body.v1-blue #orderEditOverlay .order-detail-summary b {
  color: #183759;
  font-size: 19px;
  font-weight: 850;
}
body.v1-blue #orderEditOverlay .section-title {
  color: #1a3658;
  font-size: 17px;
  font-weight: 850;
  margin-bottom: 10px;
}
body.v1-blue #orderEditOverlay .edit-sheet > .form,
body.v1-blue #orderEditOverlay #orderScheduleActions,
body.v1-blue #orderEditOverlay .delivery-detail {
  border: 1px solid #dfe8f5;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(25, 65, 108, .035);
}
body.v1-blue #orderEditOverlay .edit-sheet > .form {
  padding: 16px;
  gap: 13px;
}
body.v1-blue #orderEditOverlay .field label {
  color: #405a7a;
  font-size: 12px;
  letter-spacing: .01em;
}
body.v1-blue #orderEditOverlay .field input,
body.v1-blue #orderEditOverlay .field select,
body.v1-blue #orderEditOverlay .field textarea {
  min-height: 44px;
  border: 1px solid #dbe5f1;
  border-radius: 11px;
  background: #fff;
  color: #1d385b;
}
body.v1-blue #orderEditOverlay .field input:focus,
body.v1-blue #orderEditOverlay .field select:focus,
body.v1-blue #orderEditOverlay .field textarea:focus {
  border-color: #4b83d6;
  box-shadow: 0 0 0 3px rgba(47, 110, 204, .11);
}
body.v1-blue #orderEditOverlay .field input:disabled,
body.v1-blue #orderEditOverlay .field select:disabled {
  color: #8392a6;
  background: #f4f7fb;
}
body.v1-blue #orderEditOverlay .location-confirm-row {
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
body.v1-blue #orderEditOverlay .location-status { color: #a8762b; }
body.v1-blue #orderEditOverlay .location-status.confirmed { color: #248266; }
body.v1-blue #orderEditOverlay .location-confirm-row button {
  min-height: 39px;
  padding: 8px 12px;
  background: #eaf2ff;
  color: #2763c9;
  font-size: 12px;
}
body.v1-blue #orderEditOverlay .checkline {
  color: #647a96;
  font-size: 12px;
  line-height: 1.5;
}
body.v1-blue #orderEditOverlay .checkline input { accent-color: #2864cd; }
body.v1-blue #orderEditOverlay #orderScheduleActions {
  grid-template-columns: 1fr 1fr auto;
  padding: 12px;
  gap: 9px;
  margin-top: 13px;
}
body.v1-blue #orderEditOverlay #orderScheduleActions button,
body.v1-blue #orderEditOverlay .delivery-detail > button {
  min-height: 44px;
  box-shadow: none;
}
body.v1-blue #orderEditOverlay #orderScheduleActions > button:not(.danger) {
  background: #e9f1ff;
  color: #2865cb;
}
body.v1-blue #orderEditOverlay #orderScheduleActions > button:last-child,
body.v1-blue #orderEditOverlay .delivery-detail > button {
  background: #2864c9;
  color: #fff;
}
body.v1-blue #orderEditOverlay #deleteOrderBtn {
  background: #fff1f0;
  color: #b44343;
}
body.v1-blue #orderEditOverlay .delivery-detail {
  margin-top: 15px;
  padding: 16px;
  border-top: 1px solid #dfe8f5;
}
body.v1-blue #orderEditOverlay .delivery-detail h3 {
  color: #1a3658;
  font-size: 17px;
}
body.v1-blue #orderEditOverlay .delivery-detail > .muted { color: #8292a7; }
body.v1-blue #orderEditOverlay .delivery-detail .hint { color: #8292a7; }

/* 业务中心新卡片：这些类供动态详情接入时直接使用。 */
body.v1-blue .order-center-head { margin: 14px 0 16px; }
body.v1-blue .order-center-head .eyebrow {
  color: #2864c9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
body.v1-blue .order-center-head h2 {
  margin: 8px 0 2px;
  color: #183556;
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.25;
}
body.v1-blue .order-center-head .muted { color: #7a8ba4; }
body.v1-blue .order-center-card {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid #dfe8f5;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(25, 65, 108, .035);
}
body.v1-blue .order-center-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 19px 2px 9px;
  color: #1b385b;
  font-size: 17px;
  font-weight: 850;
}
body.v1-blue .order-center-section-title button,
body.v1-blue .order-center-link {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #2864c9;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
  white-space: nowrap;
}
body.v1-blue .order-center-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff4df;
  color: #ac7425;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
body.v1-blue .order-center-status.done { background: #e8f6ef; color: #258467; }
body.v1-blue .order-center-status.progress { background: #eaf2ff; color: #2864c9; }
body.v1-blue .order-center-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  text-align: left;
}
body.v1-blue .order-center-stats b,
body.v1-blue .order-center-stats small { display: block; }
body.v1-blue .order-center-stats b {
  color: #183556;
  font-size: 16px;
  line-height: 1.25;
}
body.v1-blue .order-center-stats small {
  margin-top: 5px;
  color: #8292a7;
  font-size: 11px;
  line-height: 1.35;
}
body.v1-blue .order-center-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 13px; }
body.v1-blue .order-center-actions button {
  flex: 1 1 140px;
  min-height: 44px;
  border-radius: 11px;
  background: #eaf2ff;
  color: #2864c9;
  box-shadow: none;
}
body.v1-blue .order-center-actions button.primary { background: #2864c9; color: #fff; }

@media (max-width: 680px) {
  body.v1-blue #orders .compact-order-table .table { overflow: visible; }
  body.v1-blue #orders .compact-order-table .table > .tr:first-child { display: none; }
  body.v1-blue #orders #orderRows { display: grid; gap: 9px; }
  body.v1-blue #orders #orderRows .tr {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: 'name name status' 'region region status' 'deal received pending';
    column-gap: 7px;
    row-gap: 8px;
    margin: 0;
    padding: 13px;
    border: 1px solid #e0e9f5;
    border-radius: 15px;
    background: #fff;
  }
  body.v1-blue #orders #orderRows .tr > span { min-width: 0; overflow-wrap: anywhere; }
  body.v1-blue #orders #orderRows .tr > span:nth-child(1) { grid-area: name; font-size: 14px; }
  body.v1-blue #orders #orderRows .tr > span:nth-child(2) { grid-area: region; color: #8292a7; font-size: 11px; }
  body.v1-blue #orders #orderRows .tr > span:nth-child(3) { grid-area: deal; }
  body.v1-blue #orders #orderRows .tr > span:nth-child(4) { grid-area: received; }
  body.v1-blue #orders #orderRows .tr > span:nth-child(5) { grid-area: pending; }
  body.v1-blue #orders #orderRows .tr > span:nth-child(6) { grid-area: status; text-align: right; font-size: 12px; }
  body.v1-blue #orders #orderRows .tr > span:nth-child(3),
  body.v1-blue #orders #orderRows .tr > span:nth-child(4),
  body.v1-blue #orders #orderRows .tr > span:nth-child(5) {
    padding: 8px 5px;
    border-radius: 9px;
    background: #f5f8fc;
    color: #1f436e;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
  }
  body.v1-blue #orders #orderRows .tr > span:nth-child(3)::before { content: '成交'; }
  body.v1-blue #orders #orderRows .tr > span:nth-child(4)::before { content: '已收'; }
  body.v1-blue #orders #orderRows .tr > span:nth-child(5)::before { content: '待收'; }
  body.v1-blue #orders #orderRows .tr > span:nth-child(3)::before,
  body.v1-blue #orders #orderRows .tr > span:nth-child(4)::before,
  body.v1-blue #orders #orderRows .tr > span:nth-child(5)::before {
    display: block;
    margin-bottom: 3px;
    color: #8a9bb0;
    font-size: 10px;
    font-weight: 600;
  }
  body.v1-blue #orders #orderRows .tr > span:nth-child(6) button {
    max-width: 100%;
    min-height: 34px;
    padding: 6px 8px !important;
    font-size: 11px;
    white-space: normal;
  }
  body.v1-blue #orderEditOverlay { align-items: stretch; background: #f3f7fd; }
  body.v1-blue #orderEditOverlay .edit-sheet {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 16px 14px calc(88px + env(safe-area-inset-bottom));
  }
  body.v1-blue #orderEditOverlay .edit-sheet > .top {
    top: -16px;
    margin: -16px -14px 0;
    padding: 14px 14px 11px;
  }
  body.v1-blue #orderEditOverlay .edit-sheet > .top b { font-size: 18px; }
  body.v1-blue #orderEditOverlay .edit-sheet > .form { padding: 14px; }
  body.v1-blue #orderEditOverlay #orderScheduleActions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body.v1-blue #orderEditOverlay #deleteOrderBtn {
    grid-column: 1 / -1;
    order: 3;
  }
  body.v1-blue #orderEditOverlay .location-confirm-row { flex-wrap: wrap; }
  body.v1-blue #orderEditOverlay .location-confirm-row button { min-height: 44px; }
body.v1-blue .order-center-card { padding: 14px; }
  body.v1-blue .order-center-actions button { flex-basis: calc(50% - 5px); }
}

body.v1-blue #orderEditOverlay .order-center-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #e1e9f4}
body.v1-blue #orderEditOverlay .order-center-strip span{min-width:0}
body.v1-blue #orderEditOverlay .order-center-strip strong,body.v1-blue #orderEditOverlay .order-center-strip small{display:block}
body.v1-blue #orderEditOverlay .order-center-strip strong{font-size:14px;line-height:1.35;color:#173a65;overflow-wrap:anywhere}
body.v1-blue #orderEditOverlay .order-center-strip small{margin-top:3px;color:#8797ad;font-size:10px}
body.v1-blue #orderEditOverlay .order-center-finance{margin-top:11px;color:#607a9c;font-size:12px}
body.v1-blue #orderEditOverlay .order-center-overview{display:grid;gap:9px;margin-top:11px}
body.v1-blue #orderEditOverlay .order-center-overview .order-center-card{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0;padding:13px 15px;border-radius:15px}
body.v1-blue #orderEditOverlay .order-center-overview .order-center-card>div{min-width:0}
body.v1-blue #orderEditOverlay .order-center-overview .order-center-card b,body.v1-blue #orderEditOverlay .order-center-overview .order-center-card small{display:block}
body.v1-blue #orderEditOverlay .order-center-overview .order-center-card b{color:#173a65;font-size:14px}
body.v1-blue #orderEditOverlay .order-center-overview .order-center-card small{margin-top:4px;color:#75859b;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
body.v1-blue #orderEditOverlay .order-center-overview .order-center-card button{flex:0 0 auto;min-height:38px;padding:7px 9px;font-size:11px}
body.v1-blue #editOrderParticipants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.v1-blue .order-center-person{display:flex!important;align-items:center;gap:8px;min-height:44px;padding:8px 10px;margin:0!important;border:1px solid #dfe8f5;border-radius:11px;background:#f8fbff;color:#173a65;font-size:12px}
body.v1-blue .order-center-person input{width:18px!important;min-height:18px!important;height:18px!important;accent-color:#235ec8;flex:0 0 auto}
body.v1-blue #orderLinkedTransactions{margin:15px 0 0;padding:15px;border:1px solid #dfe8f5;border-radius:18px;background:#fff}
body.v1-blue .order-center-transaction-list{display:grid;gap:7px;margin-top:8px}
body.v1-blue #orderEditOverlay .order-center-transaction{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:10px 11px;border:1px solid #e1e9f4;background:#f8fbff;color:#173a65;text-align:left}
body.v1-blue .order-center-transaction b,body.v1-blue .order-center-transaction small{display:block}
body.v1-blue .order-center-transaction small{margin-top:3px;color:#75859b;font-size:11px}
body.v1-blue .order-center-transaction strong{white-space:nowrap;color:#235ec8}
@media(max-width:410px){body.v1-blue #editOrderParticipants{grid-template-columns:1fr}body.v1-blue #orderEditOverlay .order-center-overview .order-center-card{align-items:flex-start;flex-direction:column}body.v1-blue #orderEditOverlay .order-center-overview .order-center-card button{width:100%}}
