.factory-collection-view {
  padding: 26px;
  color: #203449;
}

.factory-collection-header,
.factory-collection-telex-records > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.factory-collection-header p,
.factory-collection-telex-records p {
  margin: 0 0 5px;
  color: #7890a3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.factory-collection-header h2,
.factory-collection-telex-records h3 {
  margin: 0;
  color: #18324a;
}

.factory-collection-header small {
  display: block;
  margin-top: 7px;
  color: #6e8293;
}

.factory-collection-header button {
  border: 1px solid #9db4c9;
  border-radius: 8px;
  background: #fff;
  color: #28516f;
  font-weight: 700;
  padding: 9px 15px;
  cursor: pointer;
}

.factory-collection-header button:disabled { opacity: .6; cursor: wait; }

.factory-collection-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  width: fit-content;
}

.factory-collection-tabs button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 7px 15px 7px 9px;
  border: 1px solid #d4e0e8;
  border-radius: 13px;
  background:
    linear-gradient(145deg, #fff 0%, #f5f8fa 100%);
  color: #516a7d;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 6px 16px rgb(30 58 78 / 6%),
    inset 0 1px 0 #fff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.factory-collection-tabs button:hover {
  border-color: #a9bfce;
  color: #294e68;
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgb(30 58 78 / 10%),
    inset 0 1px 0 #fff;
}

.factory-collection-tabs button.active {
  border: 2px solid #1f4865;
  background:
    radial-gradient(circle at 86% 10%, rgb(143 194 226 / 24%), transparent 34%),
    linear-gradient(145deg, #315f7d 0%, #23475f 100%);
  color: #fff;
  transform: translateY(-3px) scale(1.025);
  box-shadow:
    0 0 0 4px rgb(47 105 143 / 12%),
    0 15px 30px rgb(25 62 87 / 25%),
    0 3px 8px rgb(25 62 87 / 13%),
    inset 0 1px 0 rgb(255 255 255 / 22%);
}

.factory-collection-tab-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #d3e0e8;
  border-radius: 10px;
  background: #fff;
  color: #3e708f;
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgb(36 78 105 / 8%);
}

.factory-collection-tab-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.factory-collection-tabs button.active .factory-collection-tab-icon {
  border-color: rgb(255 255 255 / 28%);
  background: rgb(255 255 255 / 13%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%);
}

.factory-collection-tab-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.factory-collection-tab-copy b {
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.factory-collection-tab-copy small {
  color: #8c9ca8;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1;
}

.factory-collection-tabs button.active .factory-collection-tab-copy small {
  color: rgb(224 240 249 / 74%);
}

.factory-collection-tabs button em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff0f0;
  color: #c43f47;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px rgb(196 63 71 / 8%);
}

.factory-collection-tabs button.active em {
  background: rgb(255 255 255 / 16%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 17%);
}

.factory-collection-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 18px;
}

.factory-collection-summary-card {
  --summary-accent: #467da3;
  --summary-accent-deep: #285b80;
  --summary-soft: #eaf4fa;
  --summary-line: #c8dce9;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 20px 20px 17px;
  border: 1px solid var(--summary-line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 98%) 0%, rgb(255 255 255 / 92%) 52%, var(--summary-soft) 145%);
  color: #243e53;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  box-shadow:
    0 12px 28px rgb(25 54 74 / 8%),
    0 2px 7px rgb(25 54 74 / 5%),
    inset 0 1px 0 rgb(255 255 255 / 95%);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.factory-collection-summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 3px;
  background: linear-gradient(90deg, var(--summary-accent-deep), var(--summary-accent), rgb(255 255 255 / 30%));
}

.factory-collection-summary-card.all {
  --summary-accent: #2f719b;
  --summary-accent-deep: #174b70;
  --summary-soft: #e4f0f7;
  --summary-line: #bfd5e3;
}

.factory-collection-summary-card.monthly {
  --summary-accent: #7567a1;
  --summary-accent-deep: #544477;
  --summary-soft: #f0edf8;
  --summary-line: #d8d1e8;
}

.factory-collection-summary-card.today {
  --summary-accent: #c48a35;
  --summary-accent-deep: #93601c;
  --summary-soft: #fbf2df;
  --summary-line: #ead8b5;
}

.factory-collection-summary-card.overdue {
  --summary-accent: #cb575d;
  --summary-accent-deep: #a8373e;
  --summary-soft: #fae9ea;
  --summary-line: #edc9cb;
}

.factory-collection-summary-card:hover {
  border-color: color-mix(in srgb, var(--summary-accent) 58%, #fff);
  transform: translateY(-3px);
  box-shadow:
    0 18px 36px rgb(25 54 74 / 12%),
    0 4px 10px rgb(25 54 74 / 7%),
    inset 0 1px 0 #fff;
}

.factory-collection-summary-card.active {
  border: 2px solid var(--summary-accent);
  background:
    linear-gradient(
      145deg,
      #fff 0%,
      color-mix(in srgb, var(--summary-soft) 74%, #fff) 58%,
      color-mix(in srgb, var(--summary-accent) 18%, #fff) 145%
    );
  transform: translateY(-5px) scale(1.015);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--summary-accent) 16%, transparent),
    0 22px 40px color-mix(in srgb, var(--summary-accent) 20%, rgb(25 54 74 / 8%)),
    0 7px 16px rgb(25 54 74 / 10%),
    inset 0 1px 0 #fff;
}

.factory-collection-summary-card.active::before {
  height: 6px;
  background: linear-gradient(90deg, var(--summary-accent-deep), var(--summary-accent));
}

.factory-collection-summary-card.active::after {
  content: "✓ 当前筛选";
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--summary-accent) 35%, #fff);
  border-radius: 999px;
  background: var(--summary-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--summary-accent) 28%, transparent);
}

.factory-collection-summary:has(.factory-collection-summary-card.active)
  .factory-collection-summary-card:not(.active) {
  opacity: .7;
  filter: saturate(.72);
  transform: scale(.98);
}

.factory-collection-summary:has(.factory-collection-summary-card.active)
  .factory-collection-summary-card:not(.active):hover {
  opacity: 1;
  filter: none;
  transform: translateY(-3px) scale(1);
}

.factory-collection-summary-card.active .factory-collection-summary-icon {
  border-color: var(--summary-accent);
  background: var(--summary-accent);
  color: #fff;
  box-shadow:
    0 7px 16px color-mix(in srgb, var(--summary-accent) 26%, transparent),
    inset 0 1px 0 rgb(255 255 255 / 24%);
}

.factory-collection-summary-card.active .factory-collection-summary-title b {
  color: var(--summary-accent-deep);
}

.factory-collection-summary-glow {
  position: absolute;
  z-index: -1;
  top: -58px;
  right: -42px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--summary-accent) 18%, transparent), transparent 68%);
  pointer-events: none;
}

.factory-collection-summary-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.factory-collection-summary-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  border: 1px solid color-mix(in srgb, var(--summary-accent) 31%, #fff);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 95%), color-mix(in srgb, var(--summary-soft) 86%, #fff));
  color: var(--summary-accent-deep);
  box-shadow:
    0 6px 14px color-mix(in srgb, var(--summary-accent) 13%, transparent),
    inset 0 1px 0 #fff;
}

.factory-collection-summary-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.factory-collection-summary-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.factory-collection-summary-title b {
  color: #294256;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.factory-collection-summary-title small {
  color: color-mix(in srgb, var(--summary-accent-deep) 65%, #8c9ba6);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .15em;
  line-height: 1;
}

.factory-collection-summary-value {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin: 13px 0 12px;
}

.factory-collection-summary-value strong {
  color: #17344c;
  font-size: 35px;
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: .92;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 #fff;
}

.factory-collection-summary-card.today .factory-collection-summary-value strong,
.factory-collection-summary-card.overdue .factory-collection-summary-value strong {
  color: #bd3f47;
  text-shadow: 0 1px 0 #fff, 0 5px 15px rgb(196 58 66 / 15%);
}

.factory-collection-summary-value i {
  margin-bottom: 2px;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--summary-accent) 26%, #fff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--summary-soft) 72%, #fff);
  color: var(--summary-accent-deep);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.factory-collection-summary-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid color-mix(in srgb, var(--summary-line) 70%, #fff);
}

.factory-collection-summary-foot small {
  color: #8293a0;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.factory-collection-summary-foot b {
  color: #526d81;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
  white-space: nowrap;
}

.factory-collection-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.factory-collection-search,
.factory-collection-person-filters { display: flex; align-items: center; gap: 10px; }
.factory-collection-tools label { display: flex; align-items: center; gap: 8px; color: #557187; font-size: 13px; font-weight: 700; }
.factory-collection-tools input,
.factory-collection-tools select { padding: 9px 11px; border: 1px solid #cbd8e2; border-radius: 7px; background: #fff; color: #29495f; font: inherit; }
.factory-collection-tools input { min-width: 320px; }
.factory-collection-tools select { min-width: 126px; max-width: 170px; }
.factory-collection-search button { min-width: 68px; padding: 9px 15px; border: 1px solid #3d789d; border-radius: 7px; background: #477f9f; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.factory-collection-search button:hover { background: #2e6c91; }
.factory-collection-count { color: #71889a; font-size: 13px; }

/* 让纵向滚动交给页面最右侧，表格容器只保留窄屏横向滚动。 */
.factory-collection-table-wrap { max-height: none; }
.factory-collection-table { min-width: 1510px; }
.factory-collection-table th { white-space: nowrap; }
.factory-collection-table td { vertical-align: middle; }
.factory-collection-table td > small { display: block; margin-top: 3px; color: #71889a; }
.factory-collection-table th:nth-child(1) { width: 90px; }
.factory-collection-table th:nth-child(2) { width: 145px; }
.factory-collection-table th:nth-child(3) { width: 175px; }
.factory-collection-table th:nth-child(4) { width: 150px; }
.factory-collection-table th:nth-child(5),
.factory-collection-table th:nth-child(6) { width: 86px; }
.factory-collection-table th:nth-child(7) { width: 126px; }
.factory-collection-table th:nth-child(8) { width: 158px; }
.factory-collection-table th:nth-child(9) { width: 132px; }
.factory-collection-table th:nth-child(10) { width: 102px; }
.factory-collection-table th:nth-child(11) { width: 92px; }
.factory-collection-table td:nth-child(3),
.factory-collection-table td:nth-child(4) { white-space: nowrap; }
.factory-collection-money { color: #335b78; font-weight: 700; white-space: nowrap; }
.factory-collection-date { min-width: 72px; color: #526f82; white-space: nowrap; }
.factory-collection-date-time { min-width: 104px; white-space: nowrap; }
.factory-collection-table td:nth-child(8) { min-width: 142px; white-space: nowrap; }
.factory-collection-audit { min-width: 172px; color: #71889a; font-size: 12px; }
.factory-collection-history {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 58px;
  padding: 6px 11px;
  border: 1px solid #d8e2e8;
  border-radius: 999px;
  background: #f5f8fa;
  color: #62798a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.factory-collection-history strong { font-size: 13px; }
.factory-collection-history small { margin-left: 3px; color: #8797a3; font-size: 10px; }
.factory-collection-history.has-overdue {
  border-color: #efc8ca;
  background: #fff1f1;
  color: #bd3e46;
  box-shadow: inset 0 1px 0 #fff;
}
.factory-collection-history.has-overdue small { color: #c9777c; }
.factory-collection-history.empty { color: #a1adb6; }
.factory-collection-payment {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #b7cfe0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #edf6fb 100%);
  color: #245e84;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgb(29 81 117 / 8%);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.factory-collection-payment span,
.factory-collection-payment-static { white-space: nowrap; }
.factory-collection-payment::before { margin-right: 6px; font-size: 14px; line-height: 1; }
.factory-collection-payment.needs-time { border-color: #d5b676; background: linear-gradient(180deg, #fffdf7 0%, #fff4da 100%); color: #93631c; }
.factory-collection-payment.needs-time::before { content: "+"; font-size: 16px; font-weight: 500; }
.factory-collection-payment.has-time::before { content: "◷"; }
.factory-collection-payment:hover { border-color: #5b95b8; background: linear-gradient(180deg, #fff 0%, #deeff8 100%); box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgb(29 81 117 / 15%); transform: translateY(-1px); }
.factory-collection-payment.needs-time:hover { border-color: #c09242; background: linear-gradient(180deg, #fffdf8 0%, #ffebbd 100%); }
.factory-collection-payment-static { color: #61798b; }

.factory-collection-state {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  min-width: 76px;
  color: #64798a;
  font-size: 12px;
  font-weight: 800;
}

.factory-collection-state small { font-size: 11px; font-weight: 600; }
.factory-collection-state.non-monthly { color: #28719c; }
.factory-collection-state.today { color: #a86f20; }
.factory-collection-state.overdue { color: #b94035; }
.factory-collection-state.received { color: #29754e; }
.factory-collection-state.monthly { color: #746298; }

.factory-collection-order,
.factory-collection-open {
  border: 0;
  background: transparent;
  color: #20638d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.factory-collection-open { padding: 6px 8px; border: 1px solid #c5d7e3; border-radius: 6px; font-size: 12px; }
.factory-collection-order:hover,
.factory-collection-open:hover { color: #0a4b77; text-decoration: underline; }

.factory-collection-telex-records { margin-top: 30px; padding-top: 22px; border-top: 1px solid #d9e4eb; }
.factory-collection-telex-records > header { margin-bottom: 12px; }
.factory-collection-telex-records > header small { color: #738a9a; font-size: 12px; }
.factory-collection-telex-table td:nth-child(4) { min-width: 360px; color: #536f83; }

.factory-collection-overdue-records { margin-top: 22px; }

.factory-collection-overdue-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.factory-collection-overdue-summary article {
  position: relative;
  min-height: 98px;
  padding: 15px 16px;
  border: 1px solid #dce5eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgb(32 63 84 / 5%);
}

.factory-collection-overdue-summary article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 12px 0 0 12px;
  background: #c83e45;
}

.factory-collection-overdue-summary article.rescheduled::before { background: #b27b35; }
.factory-collection-overdue-summary article.days::before { background: #577b96; }
.factory-collection-overdue-summary span { display: block; color: #667d8f; font-size: 12px; font-weight: 750; }
.factory-collection-overdue-summary strong {
  display: block;
  margin: 7px 0 5px;
  color: #c83e45;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.factory-collection-overdue-summary article.rescheduled strong { color: #9d6729; }
.factory-collection-overdue-summary article.days strong { color: #355b77; }
.factory-collection-overdue-summary small {
  display: block;
  overflow: hidden;
  color: #8495a2;
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-collection-overdue-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.factory-collection-overdue-filters,
.factory-collection-overdue-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.factory-collection-overdue-filters > span { color: #8092a0; font-size: 11px; }

.factory-collection-overdue-filters input,
.factory-collection-overdue-filters select {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #cedae3;
  border-radius: 8px;
  background: #fff;
  color: #36566d;
  font: inherit;
  font-size: 12px;
}

.factory-collection-overdue-filters select {
  height: 36px;
}

.factory-collection-overdue-filters input[type="search"] { width: 180px; }
.factory-collection-overdue-filters input[type="date"] { width: 135px; }
.factory-collection-overdue-filters select { max-width: 138px; }

.factory-collection-overdue-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #4e7f9e;
  border-radius: 8px;
  background: #557f99;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.factory-collection-overdue-table th { white-space: nowrap; }
.factory-collection-overdue-table td { vertical-align: middle; }
.factory-collection-overdue-table td > small { display: block; margin-top: 3px; color: #71889a; }

.factory-collection-overdue-state {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff0f0;
  color: #b83e45;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.factory-collection-overdue-state.rescheduled { background: #fff5e5; color: #9a6427; }
.factory-collection-overdue-days { color: #b94047; font-size: 12px; white-space: nowrap; }

@media (max-width: 1250px) {
  .factory-collection-summary,
  .factory-collection-overdue-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .factory-collection-overdue-tools { align-items: flex-start; flex-direction: column; }
  .factory-collection-overdue-filters { flex-wrap: wrap; }
}

.mail-confirm-modal.factory-collection-due-modal {
  padding: 28px;
  background:
    radial-gradient(circle at 50% 38%, rgb(48 68 89 / 12%), transparent 44%),
    rgb(14 28 43 / 56%);
  backdrop-filter: blur(8px) saturate(.92);
}

.factory-collection-due-modal .factory-collection-due-card {
  width: min(620px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 22px;
  background: #fbfcfd;
  box-shadow:
    0 32px 80px rgb(5 18 31 / 35%),
    0 8px 24px rgb(5 18 31 / 16%),
    inset 0 1px 0 #fff;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

.factory-collection-due-modal .factory-collection-due-card::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.factory-collection-due-accent {
  position: absolute;
  inset: 0 52px auto;
  height: 3px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, transparent, #d64f55 24%, #bb343c 76%, transparent);
  box-shadow: 0 2px 10px rgb(200 62 69 / 26%);
}

.factory-collection-due-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f3f6;
  color: #667b8c;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.factory-collection-due-close:hover {
  background: #e7ebef;
  color: #243c50;
  transform: rotate(5deg);
}

.factory-collection-due-close svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.factory-collection-due-head {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 28px 68px 20px 28px;
}

.factory-collection-due-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid #f0c7c9;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff7f7, #fce7e8);
  color: #c83e45;
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 20px rgb(200 62 69 / 10%);
}

.factory-collection-due-mark svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.factory-collection-due-title { min-width: 0; }

.factory-collection-due-title > span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  color: #9c6c70;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .17em;
}

.factory-collection-due-title > span i,
.factory-collection-due-status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c83e45;
  box-shadow: 0 0 0 3px rgb(200 62 69 / 11%);
}

.factory-collection-due-title strong {
  display: block;
  overflow: hidden;
  color: #20384c;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-collection-due-title small {
  display: block;
  margin-top: 4px;
  color: #8797a4;
  font-size: 12px;
}

.factory-collection-due-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #f0d3d5;
  border-radius: 999px;
  background: #fff6f6;
  color: #a74349;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.factory-collection-due-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin: 0 28px;
  padding: 18px 20px;
  border: 1px solid #f1d9db;
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgb(255 255 255 / 80%), transparent 54%),
    #fff7f7;
  box-shadow: inset 0 1px 0 #fff;
}

.factory-collection-due-total {
  min-width: 106px;
  padding-right: 22px;
  border-right: 1px solid #efd7d9;
}

.factory-collection-due-total strong {
  color: #c83e45;
  font-size: 36px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  line-height: 1;
}

.factory-collection-due-total span {
  display: block;
  margin-top: 5px;
  color: #8e6265;
  font-size: 11px;
  font-weight: 700;
}

.factory-collection-due-summary p {
  margin: 0;
  color: #617484;
  font-size: 13px;
  line-height: 1.75;
}

.factory-collection-due-summary p b { color: #344e62; font-weight: 800; }

.factory-collection-due-body { padding: 22px 28px 4px; }

.factory-collection-due-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  padding: 0 3px;
}

.factory-collection-due-list-head strong {
  color: #526b7e;
  font-size: 12px;
  font-weight: 800;
}

.factory-collection-due-list-head span {
  color: #99a7b2;
  font-size: 10px;
}

.factory-collection-due-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.factory-collection-due-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 10px 13px 10px 15px;
  border: 1px solid #e7ecef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgb(34 59 79 / 4%);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.factory-collection-due-list li:hover {
  border-color: #e2c4c7;
  box-shadow: 0 7px 18px rgb(40 59 77 / 8%);
  transform: translateY(-1px);
}

.factory-collection-due-order { min-width: 0; }

.factory-collection-due-order b {
  display: block;
  overflow: hidden;
  color: #2e4a60;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-collection-due-order span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #8595a1;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-collection-due-time { text-align: right; }

.factory-collection-due-time small {
  display: block;
  margin-bottom: 3px;
  color: #c15359;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.factory-collection-due-time time {
  color: #805c60;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.factory-collection-due-more {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f6f8;
}

.factory-collection-due-more > span {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 9px;
  background: #e5eaee;
  color: #607485;
  font-size: 11px;
  font-weight: 800;
}

.factory-collection-due-more p {
  margin: 0;
  color: #718390;
  font-size: 11px;
  line-height: 1.55;
}

.factory-collection-due-more b { color: #415c70; }

.factory-collection-due-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 17px 28px 20px;
  border-top: 1px solid #edf0f2;
  background: #f7f9fa;
}

.factory-collection-due-once {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8b99a4;
  font-size: 10px;
  white-space: nowrap;
}

.factory-collection-due-once svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.factory-collection-due-actions { display: flex; align-items: center; gap: 9px; }

.factory-collection-due-later,
.factory-collection-due-open {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.factory-collection-due-later {
  border: 1px solid #dce3e7;
  background: #fff;
  color: #5d7181;
}

.factory-collection-due-later:hover {
  border-color: #c8d2d9;
  background: #f9fbfc;
}

.factory-collection-due-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #bb3840;
  background: linear-gradient(135deg, #d8535a, #bd353d);
  color: #fff;
  box-shadow:
    0 8px 18px rgb(190 52 61 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 22%);
}

.factory-collection-due-open svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.factory-collection-due-open:hover {
  background: linear-gradient(135deg, #df5a61, #b92f37);
  box-shadow:
    0 10px 22px rgb(190 52 61 / 28%),
    inset 0 1px 0 rgb(255 255 255 / 24%);
  transform: translateY(-1px);
}

.factory-collection-due-open:active,
.factory-collection-due-later:active { transform: translateY(0); }

@media (max-width: 620px) {
  .mail-confirm-modal.factory-collection-due-modal { padding: 14px; }
  .factory-collection-due-modal .factory-collection-due-card { width: min(100%, calc(100vw - 20px)); border-radius: 18px; }
  .factory-collection-due-head { grid-template-columns: 44px minmax(0, 1fr); padding: 24px 58px 17px 20px; }
  .factory-collection-due-mark { width: 44px; height: 44px; border-radius: 14px; }
  .factory-collection-due-title strong { font-size: 19px; }
  .factory-collection-due-status { display: none; }
  .factory-collection-due-summary { gap: 14px; margin: 0 20px; padding: 15px; }
  .factory-collection-due-total { min-width: 82px; padding-right: 14px; }
  .factory-collection-due-total strong { font-size: 31px; }
  .factory-collection-due-body { padding: 18px 20px 2px; }
  .factory-collection-due-foot { align-items: stretch; flex-direction: column; padding: 15px 20px 18px; }
  .factory-collection-due-actions { width: 100%; }
  .factory-collection-due-later,
  .factory-collection-due-open { flex: 1; }
}

.telex-factory-receipt-warning {
  display: grid;
  gap: 4px;
  margin: 0 0 15px;
  padding: 11px 13px;
  border: 1px solid #e7c57e;
  border-radius: 8px;
  background: #fff9e9;
  color: #8b641e;
}

.telex-factory-receipt-warning span { color: #8b7651; font-size: 13px; line-height: 1.55; }
.factory-fee-confirm-copy { margin: 0 0 13px; color: #687f90; }
.factory-fee-confirm-required,
.factory-fee-confirm-monthly { display: grid; gap: 3px; margin: 0 0 13px; padding: 10px 12px; border-radius: 7px; }
.factory-fee-confirm-required { background: #fff5e6; color: #966621; }
.factory-fee-confirm-monthly { background: #eff6fb; color: #47708c; }
.factory-fee-confirm-required span,
.factory-fee-confirm-monthly span { font-size: 12px; color: #6c7f8c; }
.factory-fee-confirm-card textarea { min-height: 70px; resize: vertical; }

@media (max-width: 1100px) {
  .factory-collection-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .factory-collection-view { padding: 16px; }
  .factory-collection-header { align-items: flex-start; }
  .factory-collection-tools,
  .factory-collection-search,
  .factory-collection-person-filters { align-items: flex-start; flex-direction: column; }
  .factory-collection-tools input { min-width: 0; width: min(100%, 360px); }
  .factory-collection-summary { grid-template-columns: 1fr; }
}
