/* ===================================================================
   B01 变更提醒页面样式
   =================================================================== */

/* ---- 左右两栏容器 ---- */
.changes-layout {
  display: flex;
  gap: 20px;
  flex: 1;
  height: 100%;
  overflow: hidden;
  min-width: 0;
}

/* ---- 左侧：变更订单列表 ---- */
.changes-list-panel {
  flex: 0 0 52%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 2px;
  gap: 11px;
}

/* 滚动条简约 */
.changes-list-panel::-webkit-scrollbar {
  width: 4px;
}
.changes-list-panel::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.12);
  border-radius: 2px;
}

/* 空态提示 */
.changes-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  font-size: 14px;
  color: #8e8e93;
  padding: 32px 16px;
}

/* ---- 紧凑型变更卡片 ---- */
.change-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px 12px;
  border: 1px solid #e8e8ed;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  flex-shrink: 0;
}

.change-card:hover {
  border-color: #d0d0d8;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* 选中态：纯白背景 + 黑色线框 */
.change-card.active {
  border-color: #355944;
  background: #fff;
  box-shadow: none;
}

/* ---- 卡片第一行：订单号 + 支付时间 ---- */
.cc-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.cc-order-no {
  font-size: 14px;
  font-weight: 500;
  color: #8e8e93;
  letter-spacing: 0.02em;
}

.cc-pay-time {
  font-size: 14px;
  font-weight: 500;
  color: #8e8e93;
}

/* ---- 卡片分隔线 ---- */
.cc-divider {
  border: 0;
  border-top: 1px solid #edf2ec;
  margin: 0 0 10px;
}

/* ---- 卡片第二行：日期·时段·交付 + 变更数/未读数 ---- */
.cc-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}

.cc-delivery-info {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cc-delivery-info .dot-sep {
  color: #111;
  font-weight: 500;
}

/* 变更次数 */
.cc-change-count {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  margin-right: 8px;
}

/* 未读橙色胶囊 */
.cc-unread-badge {
  display: inline-block;
  background: #FF6B35;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  line-height: 1.4;
}

.cc-unread-none {
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

/* ---- 卡片商品显示（名称 + 数量同行，规格在名称下方左对齐） ---- */

.cc-product-area {
  display: flex;
  flex-direction: column;
}

.cc-product-group {
  /* wrapper for one product group */
}

.cc-product-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 26px;
}

.cc-product-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  padding-right: 8px;
}

.cc-product-specs {
  /* specs container below name row */
}

.cc-product-spec {
  font-size: 14px;
  font-weight: 500;
  color: #8e8e93;
  line-height: 1.5;
}

.cc-product-qty {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  text-align: right;
  flex-shrink: 0;
}

/* 多商品之间分隔线 */
.cc-product-divider {
  height: 1px;
  background: #E3E3E3;
  margin: 4px 0;
}

/* ---- 右侧：详情面板 ---- */
.changes-detail-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.changes-detail-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  border: 1px solid #e8e8ed;
}

/* ---- 详情顶部：订单基础信息 ---- */
.cd-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.cd-order-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #455c4e;
}

.cd-order-meta .cd-date {
  font-weight: 500;
  color: #25372f;
}

.cd-order-meta .cd-period {
  color: #6e6e73;
  background: #edf2ec;
  padding: 2px 8px;
  border-radius: 4px;
}

.cd-order-meta .cd-order-no {
  font-weight: 500;
  color: #25372f;
  letter-spacing: 0.02em;
}

.cd-meta-dot {
  color: #c7c7cc;
  font-weight: 300;
}

.cd-print-btn {
  border: 0;
  background: #355944;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease;
}

.cd-print-btn:hover {
  background: #455c4e;
}

/* ---- 详情分隔线 ---- */
.cd-section-divider {
  border: 0;
  border-top: 1px solid #dfe7dd;
  margin: 0 0 14px;
  flex-shrink: 0;
}

/* ---- 订单摘要区域（横向三栏：收件人 | 下单人 | 地址） ---- */
.cd-order-summary {
  flex-shrink: 0;
  margin-bottom: 14px;
}

.cd-summary-body {
  display: grid;
  grid-template-columns: minmax(0, 28fr) 1px minmax(0, 28fr) 1px minmax(0, 44fr);
  align-items: start;
}

.cd-summary-sep {
  background: #E3E3E3;
}

/* 收件人列 */
.cd-recipient-col {
  min-width: 0;
  padding: 6px 14px 6px 0;
}

/* 下单人列 */
.cd-orderer-col {
  min-width: 0;
  padding: 6px 14px;
}

/* 地址列 */
.cd-address-col {
  min-width: 0;
  padding: 6px 0 6px 14px;
  line-height: 1.5;
}

.cd-addr-label {
  font-size: 13px;
  font-weight: 500;
  color: #25372f;
}

.cd-addr-text {
  font-size: 13px;
  color: #455c4e;
}

.cd-contact-entry {
  line-height: 1.5;
}

.cd-contact-name {
  font-size: 13px;
  font-weight: 500;
  color: #25372f;
}

.cd-contact-phone {
  font-size: 13px;
  color: #6e6e73;
  margin-top: 1px;
}

/* ---- 分隔线（在摘要和变更记录之间） ---- */
.cd-change-divider {
  border: 0;
  border-top: 2px solid #e8e8ed;
  margin: 0 0 14px;
  flex-shrink: 0;
}

/* ---- 变更记录区域 ---- */
.cd-change-log-section {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.cd-change-log-section::-webkit-scrollbar {
  width: 4px;
}
.cd-change-log-section::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.12);
  border-radius: 2px;
}

.cd-change-log-title {
  font-size: 13px;
  font-weight: 600;
  color: #25372f;
  margin-bottom: 10px;
}

/* 单条变更记录 */
.cd-change-entry {
  display: flex;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid #f4f7f3;
  font-size: 13px;
  line-height: 1.5;
}

.cd-change-entry:last-child {
  border-bottom: 0;
}

.cd-change-time {
  color: #8e8e93;
  flex-shrink: 0;
  width: 130px;
}

.cd-change-content {
  color: #25372f;
  flex: 1;
  padding: 0 12px 0 8px;
  word-break: break-all;
}

.cd-change-source {
  color: #6e6e73;
  flex-shrink: 0;
  min-width: 36px;
  text-align: right;
}

/* 未读变更 - 橙色强调，可点击标记已读 */
.cd-change-entry.unread {
  cursor: pointer;
}

.cd-change-entry.unread .cd-change-time,
.cd-change-entry.unread .cd-change-content {
  color: #FF6B35;
  font-weight: 500;
}

/* ---- 空态提示 ---- */
.changes-detail-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aeaeb2;
  font-size: 14px;
}
