/*
 * Hengzhen button system
 * 统一网站按钮、链接按钮、小型操作按钮和导航按钮的最终视觉。
 * 说明：本文件放在全局 CSS 最后加载，兼容旧 class，同时提供 hz-* 新语义 class。
 */

:root {
  --hz-btn-blue: #075b88;
  --hz-btn-blue-2: #1194c3;
  --hz-btn-blue-3: #20a9d6;
  --hz-btn-blue-dark: #064d74;
  --hz-btn-text: #12384e;
  --hz-btn-muted: #6b8292;
  --hz-btn-border: #cfe0ea;
  --hz-btn-soft: #eef8fd;
  --hz-btn-soft-2: #f7fbfe;
  --hz-btn-success: #16804f;
  --hz-btn-success-2: #2eb872;
  --hz-btn-danger: #b94848;
  --hz-btn-danger-2: #df6262;
  --hz-btn-warning: #b98418;
  --hz-btn-shadow: 0 10px 22px rgba(7, 91, 136, .12);
  --hz-btn-shadow-strong: 0 14px 30px rgba(7, 91, 136, .18);
  --hz-btn-focus: 0 0 0 .2rem rgba(17, 148, 195, .18);
}

/* 基础按钮：兼容 Bootstrap .btn，并作为 hz-btn 的基础。 */
.btn,
.hz-btn,
.action-btn,
.hz-list-action,
.allocation-mini-btn,
.bank-info-entry-btn,
.section-action-btn,
.hero-action-btn,
.settlement-toolbar-btn {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  transition:
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.btn:hover,
.btn:focus,
.hz-btn:hover,
.hz-btn:focus,
.action-btn:hover,
.action-btn:focus,
.hz-list-action:hover,
.hz-list-action:focus,
.allocation-mini-btn:hover,
.allocation-mini-btn:focus,
.bank-info-entry-btn:hover,
.bank-info-entry-btn:focus,
.section-action-btn:hover,
.section-action-btn:focus,
.hero-action-btn:hover,
.hero-action-btn:focus {
  text-decoration: none;
}

.btn:focus-visible,
.hz-btn:focus-visible,
.action-btn:focus-visible,
.hz-list-action:focus-visible,
.table-inline-link:focus-visible,
.station-inline-link:focus-visible,
.station-name-link:focus-visible,
.account-name-link:focus-visible,
.allocation-mini-btn:focus-visible,
.bank-info-entry-btn:focus-visible,
.section-action-btn:focus-visible {
  outline: 0;
  box-shadow: var(--hz-btn-focus);
}

/* 主按钮：查询、保存、新增、确认。 */
.hz-btn-primary,
.btn-primary,
.action-btn-create,
.hz-list-action.primary,
.hero-action-btn-primary,
.settlement-filter-submit,
.workflow-actions .btn-primary,
.import-upload-panel .btn-primary,
.workflow-upload-box .btn-primary {
  border-color: var(--hz-btn-blue) !important;
  background: linear-gradient(135deg, var(--hz-btn-blue), var(--hz-btn-blue-2)) !important;
  color: #fff !important;
  box-shadow: var(--hz-btn-shadow);
}

.hz-btn-primary:hover,
.hz-btn-primary:focus,
.btn-primary:hover,
.btn-primary:focus,
.action-btn-create:hover,
.action-btn-create:focus,
.hz-list-action.primary:hover,
.hz-list-action.primary:focus,
.hero-action-btn-primary:hover,
.hero-action-btn-primary:focus,
.settlement-filter-submit:hover,
.settlement-filter-submit:focus,
.workflow-actions .btn-primary:hover,
.workflow-actions .btn-primary:focus,
.import-upload-panel .btn-primary:hover,
.import-upload-panel .btn-primary:focus,
.workflow-upload-box .btn-primary:hover,
.workflow-upload-box .btn-primary:focus {
  border-color: var(--hz-btn-blue-dark) !important;
  background: linear-gradient(135deg, var(--hz-btn-blue-dark), #0f84ae) !important;
  color: #fff !important;
  box-shadow: var(--hz-btn-shadow-strong);
  transform: translateY(-1px);
}

/* 次要按钮：返回、取消、重置、普通辅助入口。 */
.hz-btn-secondary,
.btn-outline-secondary,
.action-btn-secondary,
.settlement-filter-reset,
.hero-action-btn-outline,
.section-action-btn.btn-outline-primary,
.section-action-btn.btn-outline-secondary {
  border-color: var(--hz-btn-border) !important;
  background: #fff !important;
  color: var(--hz-btn-blue) !important;
  box-shadow: 0 8px 18px rgba(6, 72, 107, .06);
}

.hz-btn-secondary:hover,
.hz-btn-secondary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.action-btn-secondary:hover,
.action-btn-secondary:focus,
.settlement-filter-reset:hover,
.settlement-filter-reset:focus,
.hero-action-btn-outline:hover,
.hero-action-btn-outline:focus,
.section-action-btn.btn-outline-primary:hover,
.section-action-btn.btn-outline-primary:focus,
.section-action-btn.btn-outline-secondary:hover,
.section-action-btn.btn-outline-secondary:focus {
  border-color: rgba(7, 91, 136, .28) !important;
  background: var(--hz-btn-soft) !important;
  color: var(--hz-btn-blue-dark) !important;
  box-shadow: var(--hz-btn-shadow);
  transform: translateY(-1px);
}

/* 白色按钮：蓝色大背景/头图区使用。 */
.hz-btn-light,
.btn-light,
.action-btn-import,
.action-btn-export,
.action-btn-assist,
.btn-outline-light,
.page-hero-actions .btn,
.account-detail-actions .btn,
.sys-hero-actions .btn {
  border-color: rgba(255, 255, 255, .72) !important;
  background: rgba(255, 255, 255, .96) !important;
  color: var(--hz-btn-blue) !important;
  box-shadow: 0 12px 26px rgba(5, 57, 86, .14);
}

.hz-btn-light:hover,
.hz-btn-light:focus,
.btn-light:hover,
.btn-light:focus,
.action-btn-import:hover,
.action-btn-import:focus,
.action-btn-export:hover,
.action-btn-export:focus,
.action-btn-assist:hover,
.action-btn-assist:focus,
.btn-outline-light:hover,
.btn-outline-light:focus,
.page-hero-actions .btn:hover,
.page-hero-actions .btn:focus,
.account-detail-actions .btn:hover,
.account-detail-actions .btn:focus,
.sys-hero-actions .btn:hover,
.sys-hero-actions .btn:focus {
  border-color: #fff !important;
  background: #fff !important;
  color: var(--hz-btn-blue-dark) !important;
  box-shadow: 0 16px 34px rgba(5, 57, 86, .18);
  transform: translateY(-1px);
}

/* 成功与危险按钮。 */
.hz-btn-success,
.btn-success {
  border-color: var(--hz-btn-success) !important;
  background: linear-gradient(135deg, var(--hz-btn-success), var(--hz-btn-success-2)) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(22, 128, 79, .16);
}

.hz-btn-success:hover,
.hz-btn-success:focus,
.btn-success:hover,
.btn-success:focus {
  border-color: #126b43 !important;
  background: linear-gradient(135deg, #126b43, #269b63) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(22, 128, 79, .2);
  transform: translateY(-1px);
}

.hz-btn-danger,
.btn-danger,
.btn-outline-danger,
.receipt-delete-btn {
  border-color: rgba(185, 72, 72, .28) !important;
  background: #fff5f5 !important;
  color: var(--hz-btn-danger) !important;
  box-shadow: 0 8px 18px rgba(185, 72, 72, .08);
}

.hz-btn-danger:hover,
.hz-btn-danger:focus,
.btn-danger:hover,
.btn-danger:focus,
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.receipt-delete-btn:hover,
.receipt-delete-btn:focus {
  border-color: var(--hz-btn-danger) !important;
  background: linear-gradient(135deg, var(--hz-btn-danger), var(--hz-btn-danger-2)) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(185, 72, 72, .18);
  transform: translateY(-1px);
}

/* action-btn 图标统一：避免旧 CSS 乱码箭头继续显示。 */
.action-btn::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
}

.action-btn-export::before,
.action-btn-secondary::before {
  content: "↓";
}

.action-btn-import::before,
.action-btn-assist::before {
  content: "↑";
}

.action-btn-create::before {
  content: "+";
  font-size: 1rem;
}

/* 小型功能按钮：表单局部新增/一键带入/区块动作。 */
.hz-mini-action,
.allocation-mini-btn,
.allocation-carry-btn,
.bank-info-entry-btn,
.section-action-btn,
.settlement-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .36rem .74rem;
  border: 1px solid rgba(7, 91, 136, .14);
  background: var(--hz-btn-soft);
  color: var(--hz-btn-blue) !important;
  font-size: .82rem;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(7, 91, 136, .06);
}

.hz-mini-action:hover,
.hz-mini-action:focus,
.allocation-mini-btn:hover,
.allocation-mini-btn:focus,
.allocation-carry-btn:hover,
.allocation-carry-btn:focus,
.bank-info-entry-btn:hover,
.bank-info-entry-btn:focus,
.section-action-btn:hover,
.section-action-btn:focus,
.settlement-toolbar-btn:hover,
.settlement-toolbar-btn:focus {
  border-color: rgba(7, 91, 136, .28);
  background: #fff;
  color: var(--hz-btn-blue-dark) !important;
  box-shadow: var(--hz-btn-shadow);
  transform: translateY(-1px);
}

/* 表格/卡片内文本链接。 */
.hz-inline-link,
.table-inline-link,
.station-inline-link,
.station-name-link,
.account-name-link,
.dashboard-table-link,
.station-edit-link,
.station-file-link,
.account-recommend-link,
.record-main-link {
  color: #076fa0 !important;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 3px;
}

.hz-inline-link:hover,
.hz-inline-link:focus,
.table-inline-link:hover,
.table-inline-link:focus,
.station-inline-link:hover,
.station-inline-link:focus,
.station-name-link:hover,
.station-name-link:focus,
.account-name-link:hover,
.account-name-link:focus,
.dashboard-table-link:hover,
.dashboard-table-link:focus,
.station-edit-link:hover,
.station-edit-link:focus,
.station-file-link:hover,
.station-file-link:focus,
.account-recommend-link:hover,
.account-recommend-link:focus,
.record-main-link:hover,
.record-main-link:focus {
  color: var(--hz-btn-blue-dark) !important;
  text-decoration: underline;
}

/* Bootstrap link button：附件预览、下载、删除等小链接。 */
.btn-link {
  color: #076fa0 !important;
  font-weight: 800;
  text-decoration: none;
}

.btn-link:hover,
.btn-link:focus {
  color: var(--hz-btn-blue-dark) !important;
  text-decoration: underline;
}

.btn-link.text-danger,
.btn-link.text-danger:hover,
.btn-link.text-danger:focus {
  color: var(--hz-btn-danger) !important;
}

/* 流程状态按钮：月度详情页。 */
/* Station attachment table */
.station-attachment-table-wrap {
  border: 1px solid rgba(7, 91, 136, .12);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.station-attachment-table-title {
  padding: .85rem 1rem .2rem;
  color: #0f344d;
  font-size: .92rem;
  font-weight: 800;
}

.station-attachment-table {
  --bs-table-bg: transparent;
  color: #14384d;
  font-size: .88rem;
}

.station-attachment-table thead th {
  background: #f1f7fb;
  color: #557284;
  font-size: .82rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(7, 91, 136, .12);
  white-space: nowrap;
}

.station-attachment-table td {
  border-color: rgba(7, 91, 136, .08);
  vertical-align: middle;
}

.station-attachment-name {
  color: #076fa0 !important;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.station-attachment-name:hover,
.station-attachment-name:focus {
  color: #075b88 !important;
  text-decoration: underline;
}

.station-attachment-size {
  margin-top: .18rem;
  color: #6b8292;
  font-size: .8rem;
  font-weight: 600;
}

.station-attachment-uploader-col {
  width: 7rem;
}

.station-attachment-time-col {
  width: 9.5rem;
  white-space: nowrap;
}

.station-attachment-action-col {
  width: 10.5rem;
  white-space: nowrap;
}

.station-attachment-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .8rem;
}

.station-attachment-action-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #076fa0 !important;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.station-attachment-action-link:hover,
.station-attachment-action-link:focus {
  color: #075b88 !important;
  text-decoration: underline;
}

.station-attachment-action-danger,
.station-attachment-action-danger:hover,
.station-attachment-action-danger:focus {
  color: #b94848 !important;
}

@media (max-width: 767.98px) {
  .station-attachment-uploader-col,
  .station-attachment-time-col {
    display: none;
  }

  .station-attachment-action-col {
    width: 7rem;
  }

  .station-attachment-actions {
    gap: .55rem;
  }
}

.workflow-pill {
  border: 1px solid rgba(7, 91, 136, .12);
  background: #eef7fb;
  color: #5f7889;
  border-radius: 999px;
  font-weight: 800;
  min-height: 34px;
  padding: .36rem .76rem;
  line-height: 1;
}

.workflow-pill:not(.disabled):not(.active):hover,
.workflow-pill:not(.disabled):not(.active):focus {
  border-color: rgba(7, 91, 136, .26);
  background: #fff;
  color: var(--hz-btn-blue);
  box-shadow: var(--hz-btn-shadow);
  transform: translateY(-1px);
}

.workflow-pill.active {
  border-color: var(--hz-btn-blue);
  background: linear-gradient(135deg, var(--hz-btn-blue), var(--hz-btn-blue-2));
  color: #fff;
  box-shadow: var(--hz-btn-shadow);
}

.workflow-pill.disabled {
  cursor: default;
  opacity: .55;
}

/* 快捷视图 chip：和普通按钮区分开，但 hover/active 保持清晰。 */
.quick-chip {
  border: 1px solid rgba(7, 91, 136, .12) !important;
  background: #fff !important;
  color: #31586f !important;
  box-shadow: 0 8px 18px rgba(7, 91, 136, .05);
}

.quick-chip:hover,
.quick-chip:focus-visible {
  border-color: rgba(7, 91, 136, .28) !important;
  background: #eef8fd !important;
  color: var(--hz-btn-blue) !important;
  transform: translateY(-1px);
}

.quick-chip.active,
.quick-chip[aria-selected="true"] {
  border-color: var(--hz-btn-blue) !important;
  background: linear-gradient(135deg, var(--hz-btn-blue), var(--hz-btn-blue-2)) !important;
  color: #fff !important;
  box-shadow: var(--hz-btn-shadow);
}

.quick-chip.danger.active,
.quick-chip[data-tone="danger"].active {
  border-color: var(--hz-btn-danger) !important;
  background: linear-gradient(135deg, #b94848, #df6262) !important;
  color: #fff !important;
}

.quick-chip.warning.active,
.quick-chip[data-tone="warning"].active {
  border-color: var(--hz-btn-warning) !important;
  background: linear-gradient(135deg, #b98418, #e0aa34) !important;
  color: #fff !important;
}

/* 表格行内操作：保持轻按钮感，不再出现浅底白字。 */
.hz-list-action:not(.primary),
.table-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: .26rem .62rem;
  border: 1px solid rgba(7, 91, 136, .12);
  border-radius: 999px;
  background: #f6fbfe;
  color: var(--hz-btn-blue) !important;
  line-height: 1.15;
}

.hz-list-action:not(.primary):hover,
.hz-list-action:not(.primary):focus,
.table-inline-link:hover,
.table-inline-link:focus {
  border-color: rgba(7, 91, 136, .28);
  background: #fff;
  color: var(--hz-btn-blue-dark) !important;
  box-shadow: var(--hz-btn-shadow);
}

/* Tab/导航类按钮的选中态兜底。 */
.nav-pills .nav-link.active,
.account-tabs .nav-link.active,
.audit-tabs .btn.active {
  background: linear-gradient(135deg, var(--hz-btn-blue), var(--hz-btn-blue-2)) !important;
  border-color: var(--hz-btn-blue) !important;
  color: #fff !important;
}

.nav-pills .nav-link.active *,
.account-tabs .nav-link.active *,
.audit-tabs .btn.active * {
  color: inherit !important;
}

/* 日期/月度选择器按钮：选中态必须白字，区间态用浅蓝底深蓝字。 */
.date-picker-open-btn,
.month-picker-trigger,
.period-trigger {
  color: var(--hz-btn-text) !important;
}

.custom-date-cell.is-active,
.period-cell-btn.active,
.month-picker-month.is-active,
.month-picker-cell.is-active {
  background: linear-gradient(135deg, var(--hz-btn-blue), var(--hz-btn-blue-2)) !important;
  color: #fff !important;
}

.custom-date-cell.is-active *,
.period-cell-btn.active *,
.month-picker-month.is-active *,
.month-picker-cell.is-active * {
  color: inherit !important;
}

.period-cell-btn.in-range:not(.active),
.month-picker-month.in-range:not(.is-active),
.month-picker-cell.in-range:not(.is-active) {
  background: #e5f6fc !important;
  color: var(--hz-btn-text) !important;
}

/* 最终对比度兜底：所有按钮内部图标/文字继承按钮颜色。 */
.btn *,
.hz-btn *,
.action-btn *,
.hz-list-action *,
.quick-chip *,
.workflow-pill *,
.bank-info-entry-btn *,
.allocation-mini-btn *,
.allocation-carry-btn *,
.section-action-btn *,
.hero-action-btn *,
.settlement-toolbar-btn * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

.btn-primary,
.btn-primary *,
.btn-success,
.btn-success *,
.btn-danger:hover,
.btn-danger:hover *,
.btn-outline-danger:hover,
.btn-outline-danger:hover *,
.action-btn-create,
.action-btn-create *,
.hz-list-action.primary,
.hz-list-action.primary *,
.workflow-pill.active,
.workflow-pill.active * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* 2026-07-12 按钮文字对比度最终兜底
   背景为深蓝/绿色/红色/金色的按钮必须白字；白底/浅底按钮必须蓝字。
   同时设置 -webkit-text-fill-color，避免旧品牌样式覆盖普通 color。 */
.btn-primary,
.btn-success,
.btn-danger,
.hz-btn-primary,
.action-btn-create,
.hz-list-action.primary,
.hero-action-btn-primary,
.settlement-filter-submit,
.workflow-actions .btn-primary,
.workflow-actions .btn-success,
.workflow-upload-box .btn-primary,
.import-upload-panel .btn-primary,
.import-template-card .btn-primary,
.nav-pills .nav-link.active,
.account-tabs .nav-link.active,
.audit-tabs .btn.active,
.quick-chip.active,
.quick-chip[aria-selected="true"],
.workflow-pill.active,
.receipt-allocation-action {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.btn-primary *,
.btn-success *,
.btn-danger *,
.hz-btn-primary *,
.action-btn-create *,
.hz-list-action.primary *,
.hero-action-btn-primary *,
.settlement-filter-submit *,
.workflow-actions .btn-primary *,
.workflow-actions .btn-success *,
.workflow-upload-box .btn-primary *,
.import-upload-panel .btn-primary *,
.import-template-card .btn-primary *,
.nav-pills .nav-link.active *,
.account-tabs .nav-link.active *,
.audit-tabs .btn.active *,
.quick-chip.active *,
.quick-chip[aria-selected="true"] *,
.workflow-pill.active *,
.receipt-allocation-action * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-info,
.btn-outline-dark,
.btn-light,
.hz-btn-secondary,
.hz-btn-light,
.action-btn-secondary,
.action-btn-import,
.action-btn-export,
.action-btn-assist,
.hero-action-btn-outline,
.section-action-btn.btn-outline-primary,
.section-action-btn.btn-outline-secondary,
.hz-list-action:not(.primary),
.table-inline-link,
.bank-info-entry-btn,
.allocation-mini-btn,
.allocation-carry-btn {
  color: var(--hz-btn-blue) !important;
  -webkit-text-fill-color: var(--hz-btn-blue) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-info:hover,
.btn-outline-info:focus,
.btn-outline-info:active,
.btn-outline-info.active,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning.active,
.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active,
.btn-outline-warning.active,
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active,
.btn-outline-success.active,
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active,
.btn-outline-danger.active {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* 到账管理列表：新增分配按钮
   作为列表里的主操作，默认深蓝底白字；hover 用轻微上浮和亮蓝渐变，避免文字/背景对比丢失。 */
.receipt-allocation-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 1.05rem;
  border: 1px solid #075b88 !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #075b88, #1194c3) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(7, 91, 136, 0.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.receipt-allocation-action:hover,
.receipt-allocation-action:focus {
  border-color: #1194c3 !important;
  background: linear-gradient(135deg, #0b6f9f, #20a9d6) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(7, 91, 136, 0.24);
}

.receipt-allocation-action:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(7, 91, 136, 0.18);
}

@media (max-width: 767.98px) {
  .btn,
  .hz-btn,
  .action-btn,
  .hz-list-action {
    min-height: 44px;
    padding-inline: 1rem;
  }

  .quick-chip {
    min-height: 38px;
  }
}

/* 到账相关关键按钮：避免被通用浅色按钮规则误伤。 */
.receipt-table-panel .receipt-allocation-action,
.receipt-table-panel .receipt-allocation-action:visited {
  border-color: #075b88 !important;
  background: linear-gradient(135deg, #075b88, #1194c3) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.receipt-table-panel .receipt-allocation-action:hover,
.receipt-table-panel .receipt-allocation-action:focus {
  border-color: #0f84ae !important;
  background: linear-gradient(135deg, #064d74, #20a9d6) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.receipt-detail-page .receipt-delete-btn,
.receipt-detail-page .receipt-delete-btn:visited {
  border: 1px solid rgba(185, 72, 72, .32) !important;
  background: #fff5f5 !important;
  color: #b94848 !important;
  -webkit-text-fill-color: #b94848 !important;
  box-shadow: 0 10px 22px rgba(185, 72, 72, .1);
}

.receipt-detail-page .receipt-delete-btn:hover,
.receipt-detail-page .receipt-delete-btn:focus {
  border-color: #b94848 !important;
  background: linear-gradient(135deg, #b94848, #df6262) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* 2026-07-12 列表主操作按钮最终版：登记到账 / 新增分配
   这两个按钮都是行内高频主操作，统一成紧凑、清晰、可点击感强的深蓝胶囊按钮。 */
.settlement-row-action.primary,
.receipt-table-panel .receipt-allocation-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 5.2rem;
  min-height: 2.25rem;
  padding: .46rem .92rem !important;
  border: 1px solid rgba(7, 91, 136, .95) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, #075b88 0%, #1194c3 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: .86rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  letter-spacing: .01em;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow:
    0 10px 22px rgba(7, 91, 136, .18),
    inset 0 1px 0 rgba(255, 255, 255, .16) !important;
  transform: translateY(0);
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    border-color .16s ease,
    background .16s ease !important;
}

.settlement-row-action.primary:hover,
.settlement-row-action.primary:focus,
.receipt-table-panel .receipt-allocation-action:hover,
.receipt-table-panel .receipt-allocation-action:focus {
  border-color: #20a9d6 !important;
  background:
    linear-gradient(135deg, #064d74 0%, #20a9d6 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow:
    0 14px 28px rgba(7, 91, 136, .24),
    inset 0 1px 0 rgba(255, 255, 255, .2) !important;
  transform: translateY(-1px);
}

.settlement-row-action.primary:active,
.receipt-table-panel .receipt-allocation-action:active {
  transform: translateY(0);
  box-shadow:
    0 7px 16px rgba(7, 91, 136, .18),
    inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

.settlement-row-action.primary *,
.receipt-table-panel .receipt-allocation-action * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

/* Final guard: row primary actions
   Covers settlement "登记到账" and receipt "新增分配" in list/detail pages.
   Keep this block at the end so older button/tag rules cannot wash out text color. */
.settlement-row-action.primary,
.hz-list-action.primary.receipt-allocation-action,
.receipt-allocation-action,
.receipt-detail-page a.btn-success[href*="/allocations/"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 5.35rem !important;
  min-height: 2.3rem !important;
  padding: .5rem 1rem !important;
  border: 1px solid rgba(7, 91, 136, .95) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #075b88 0%, #1194c3 100%) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: .86rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 12px 24px rgba(7, 91, 136, .2), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease !important;
}

.settlement-row-action.primary:visited,
.hz-list-action.primary.receipt-allocation-action:visited,
.receipt-allocation-action:visited,
.receipt-detail-page a.btn-success[href*="/allocations/"]:visited {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.settlement-row-action.primary:hover,
.settlement-row-action.primary:focus,
.hz-list-action.primary.receipt-allocation-action:hover,
.hz-list-action.primary.receipt-allocation-action:focus,
.receipt-allocation-action:hover,
.receipt-allocation-action:focus,
.receipt-detail-page a.btn-success[href*="/allocations/"]:hover,
.receipt-detail-page a.btn-success[href*="/allocations/"]:focus {
  border-color: #20a9d6 !important;
  background: linear-gradient(135deg, #064d74 0%, #20a9d6 100%) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 15px 30px rgba(7, 91, 136, .26), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
  transform: translateY(-1px);
}

.settlement-row-action.primary:active,
.hz-list-action.primary.receipt-allocation-action:active,
.receipt-allocation-action:active,
.receipt-detail-page a.btn-success[href*="/allocations/"]:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(7, 91, 136, .18), inset 0 1px 0 rgba(255, 255, 255, .14) !important;
}

/* Settlement list operation column: keep month single-line and action buttons legible. */
.settlement-table-wrap .settlement-period-cell,
.settlement-table-wrap .settlement-period-head,
.settlement-table-wrap .settlement-period-link {
  white-space: nowrap !important;
}

.settlement-table-wrap .settlement-action-cell {
  min-width: 6.25rem;
}

.settlement-table-wrap .settlement-row-actions {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-width: 5.65rem;
}

.settlement-table-wrap .settlement-row-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 4.25rem !important;
  min-height: 2.1rem !important;
  padding: .42rem .92rem !important;
  border: 1px solid rgba(17, 148, 195, .22) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #075b88 !important;
  -webkit-text-fill-color: #075b88 !important;
  font-size: .84rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 8px 18px rgba(7, 91, 136, .08) !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease !important;
}

.settlement-table-wrap .settlement-row-action:hover,
.settlement-table-wrap .settlement-row-action:focus {
  border-color: rgba(17, 148, 195, .48) !important;
  background: #f4fbff !important;
  color: #064d74 !important;
  -webkit-text-fill-color: #064d74 !important;
  box-shadow: 0 12px 24px rgba(7, 91, 136, .13) !important;
  transform: translateY(-1px);
}

.settlement-table-wrap .settlement-row-action.primary {
  min-width: 4.95rem !important;
  min-height: 2.05rem !important;
  padding: .4rem .78rem !important;
  border-color: rgba(7, 91, 136, .96) !important;
  background: linear-gradient(135deg, #075b88 0%, #1194c3 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: .82rem !important;
  box-shadow: 0 12px 25px rgba(7, 91, 136, .23), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}

.settlement-table-wrap .settlement-row-action.primary:hover,
.settlement-table-wrap .settlement-row-action.primary:focus {
  border-color: #20a9d6 !important;
  background: linear-gradient(135deg, #064d74 0%, #20a9d6 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 16px 30px rgba(7, 91, 136, .28), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}
