/* ==========================================================================
   收支账单导出（C 端 · 账本模块）
   大圆角、淡色胶囊、柔和投影；金额在页面与导出文件中都只展示数值。
   业务类型为弹窗内联展开面板，不依赖浮层，避免被滚动容器裁切。
   ========================================================================== */

.tx-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  color: #4338ca;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.12);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tx-export-btn .v-icon {
  color: #4338ca;
}

.tx-export-btn:hover {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.18);
}

.tx-export-btn:active {
  transform: translateY(1px);
}

.tx-export-dialog {
  --tx-export-ink: #131c38;
  --tx-export-muted: #7c8aa5;
  display: flex;
  flex-direction: column;
  max-height: 82vh;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

.tx-export-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 0;
}

.tx-export-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--tx-export-ink);
}

.tx-export-close {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #f4f6fb;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tx-export-close:hover {
  background: #eef2ff;
  color: #4338ca;
}

.tx-export-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 22px 12px;
}

.tx-export-dialog .tx-export-body::-webkit-scrollbar,
.tx-export-dialog .tx-type-list::-webkit-scrollbar {
  width: 6px !important;
  display: block !important;
}

.tx-export-dialog .tx-export-body::-webkit-scrollbar-thumb,
.tx-export-dialog .tx-type-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.14);
}

.tx-export-dialog .tx-export-body,
.tx-export-dialog .tx-type-list {
  scrollbar-width: thin;
  -ms-overflow-style: auto;
}

.tx-export-label {
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--tx-export-muted);
}

.tx-export-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tx-export-preset {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #55627a;
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tx-export-preset:hover {
  background: #eef2ff;
  border-color: rgba(99, 102, 241, 0.24);
  color: #4338ca;
}

.tx-export-preset.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.26);
}

.tx-export-dates {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.tx-export-date {
  flex: 1 1 0;
  min-width: 0;
  font-size: 13px;
}

.tx-export-date .v-input__slot {
  min-height: 40px !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

.tx-export-date .v-input__slot fieldset {
  border-radius: 14px !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

.tx-export-date.v-input--is-focused .v-input__slot fieldset {
  border-color: rgba(99, 102, 241, 0.5) !important;
}

.tx-export-date .v-text-field__details {
  display: none !important;
}

.tx-export-date input[type="date"] {
  color: #334155;
  font-size: 13px;
}

.tx-export-date input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.55;
  cursor: pointer;
}

.tx-export-dash {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: #94a3b8;
}

/* -------------------------------------------------- 业务类型（内联展开面板） */
.tx-type-field {
  position: relative;
}

.tx-type-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-size: 13.5px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tx-type-trigger:hover {
  border-color: rgba(99, 102, 241, 0.34);
}

.tx-type-field.is-open .tx-type-trigger {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.tx-type-current {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tx-type-caret {
  flex: 0 0 auto;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.tx-type-field.is-open .tx-type-caret {
  color: #4338ca;
  transform: rotate(180deg);
}

.tx-type-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 224px;
  margin-top: 8px;
  padding: 6px;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
}

.tx-type-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #475569;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.tx-type-option:hover {
  background: #f5f7ff;
  color: #312e81;
}

.tx-type-option.is-active {
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
}

.tx-type-option-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tx-type-option-count {
  margin-left: auto;
  font-size: 11.5px;
  color: #a8b3c6;
  font-variant-numeric: tabular-nums;
}

.tx-type-option.is-active .tx-type-option-count {
  color: #6366f1;
}

.tx-export-hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.tx-export-hint.is-error {
  color: #b45309;
}

.tx-export-link {
  padding: 0;
  border: 0;
  background: none;
  color: #4338ca;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.tx-export-result {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12.5px;
  line-height: 1.55;
}

.tx-export-result .v-icon {
  margin-top: 1px;
  color: #6366f1;
}

.tx-export-result.is-error {
  background: #fef2f2;
  color: #b91c1c;
}

.tx-export-result.is-error .v-icon {
  color: #ef4444;
}

.tx-export-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.tx-export-scope {
  font-size: 12px;
  color: #94a3b8;
}

.tx-export-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-export-cancel {
  color: #64748b !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

.tx-export-submit {
  min-width: 88px;
  height: 40px !important;
  margin-top: 0 !important;
  border-radius: 14px !important;
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 600px) {
  .tx-export-btn {
    height: 34px;
    padding: 0 12px;
  }

  .tx-export-dialog {
    max-height: 86vh;
    border-radius: 20px;
  }

  .tx-export-head {
    padding: 16px 16px 0;
  }

  .tx-export-body {
    gap: 16px;
    padding: 14px 16px 10px;
  }

  .tx-type-list {
    max-height: 200px;
  }

  .tx-export-foot {
    flex-wrap: wrap;
    padding: 14px 16px 16px;
  }

  .tx-export-scope {
    width: 100%;
  }

  .tx-export-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 380px) {
  .tx-export-dates {
    flex-direction: column;
    align-items: stretch;
  }

  .tx-export-dash {
    display: none;
  }
}
