/*
 * LinsGeek ERP —— Simples Nacional 的 IBS/CBS 设置预览（逻辑在 92-simples-ibscbs.js；只在本机显示，不保存到后端）
 */
.lg-sn-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; margin-left: 10px; border-radius: 11px;
  background: #fff4e0; color: #9a5b00; border: 1px dashed #f0c27a; font-size: 12px; font-weight: 500; white-space: nowrap; vertical-align: middle;
}
.lg-sn-acc { margin: 2px 0 18px; padding: 14px 0 2px; border-radius: 10px; background: #f6faf9; border: 1px solid #dcece8; }
.lg-sn-acc .lg-sn-row { margin-bottom: 14px; }
.lg-sn-acc .el-form-item__label, #lgSnIbsCbs .el-form-item__label, .lg-sn-ativ-row .el-form-item__label { justify-content: flex-start; padding-right: 12px; flex-direction: column; align-items: flex-start; line-height: 1.35; padding-top: 6px; height: auto; }
/* 底色块向左右各伸出 14px，里面的标签和输入框与原表单对齐 */
.lg-sn-acc { margin-left: -14px; margin-right: 0; padding-left: 14px; padding-right: 14px; }
.lg-sn-acc .el-form-item__content { flex-wrap: wrap; align-items: center; row-gap: 6px; }
.lg-sn-row .el-form-item__label small { display: block; font-size: 11px; color: #8a95a1; font-weight: 400; font-family: ui-monospace, Menlo, Consolas, monospace; }
.lg-sn-acc.is-das .lg-sn-reg, .lg-sn-acc.is-reg .lg-sn-das { display: none; }

/* 缴纳方式：两块并排的选择卡 */
.lg-sn-seg { display: inline-flex; gap: 8px; }
.lg-sn-seg button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 168px; padding: 7px 14px 7px 34px; position: relative;
  border: 1px solid #d5dde3; border-radius: 8px; background: #fff; color: #2c3a47; font-size: 13.5px; font-weight: 500; line-height: 1.3; cursor: pointer; text-align: left;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.lg-sn-seg button small { font-size: 11.5px; color: #8a95a1; font-weight: 400; }
.lg-sn-seg button::before { content: ""; position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 1.5px solid #b8c1ca; background: #fff; box-sizing: border-box; }
.lg-sn-seg button:hover { border-color: #9cc8c1; }
.lg-sn-seg button.on { border-color: #0d7b6d; background: #eef7f5; box-shadow: 0 0 0 3px rgba(13, 123, 109, .10); }
.lg-sn-seg button.on::before { border: 4.5px solid #0d7b6d; }
.lg-sn-seg.lg-sn-one button { cursor: default; }
.lg-sn-seg.lg-sn-one button:hover { border-color: #0d7b6d; }
.lg-sn-seg button:focus-visible { outline: 2px solid #0d7b6d; outline-offset: 2px; }

/* 有效税率输入 */
.lg-sn-rates { display: flex; gap: 10px; flex-wrap: wrap; }
.lg-sn-rate { display: inline-flex; align-items: center; height: 36px; border: 1px solid #d5dde3; border-radius: 8px; background: #fff; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.lg-sn-rate:focus-within { border-color: #0d7b6d; box-shadow: 0 0 0 3px rgba(13, 123, 109, .12); }
.lg-sn-rate.bad { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .12); }
.lg-sn-rate span { align-self: stretch; display: flex; align-items: center; padding: 0 12px; background: #f5f7f9; color: #3d4a57; font-weight: 600; font-size: 13px; border-right: 1px solid #e6ebef; }
.lg-sn-rate input { width: 96px; height: 100%; border: 0; outline: 0; padding: 0 4px 0 12px; font-size: 14px; color: #1f2d3a; text-align: right; font-variant-numeric: tabular-nums; background: transparent; }
.lg-sn-rate em { font-style: normal; color: #8a95a1; padding: 0 12px 0 4px; font-size: 13px; }
.lg-sn-hint { width: 100%; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: #6b7785; max-width: 640px; }
.lg-sn-reg .lg-sn-hint { margin-top: 0; padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid #e3e8ee; }

/* 税种页：Simples 的 IBS/CBS 分区，和原生分区同样的卡片 */
#lgSnIbsCbs .lg-sn-card, .lg-sn-ativ-row { position: relative; padding: 16px; border-radius: 8px; margin-bottom: 16px; }
#lgSnIbsCbs .lg-sn-card { background: #f8fbfa; border: 1px solid #e3eeeb; }
#lgSnIbsCbs .lg-sn-card > .lg-sn-badge, .lg-sn-ativ-row > .lg-sn-badge { position: absolute; right: 16px; top: 14px; }
.lg-sn-ativ-row { padding: 12px 0 0; margin: 0 0 8px; border-bottom: 1px dashed #e3e8ee; }
#lgSnIbsCbs .lg-sn-row, .lg-sn-ativ-row .lg-sn-row { margin-bottom: 16px; }
.lg-sn-select {
  width: 520px; max-width: 100%; height: 40px; padding: 0 12px; border: 1px solid #dcdfe6; border-radius: 6px; background: #fff; color: #1f2d3a; font-size: 14px; cursor: pointer;
}
.lg-sn-select:focus { outline: 0; border-color: #0d7b6d; box-shadow: 0 0 0 3px rgba(13, 123, 109, .12); }
.lg-sn-fixed { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 6px; background: #f2f4f6; color: #6b7785; font-size: 13.5px; }
