/* ============================================================
   附加控件样式：日期区间日历面板 / 柱状图 / 页签下划线
   ============================================================ */

/* 页签：以底部边框表达选中态（与源系统 2px 下划线一致） */
.dn-tabs .el-tabs__active-bar { display: none; }
.dn-tabs .el-tabs__nav { border-bottom: 1px solid var(--dg-border-color-base); }
.dn-tabs .el-tabs__item.is-active {
  border-bottom: 2px solid var(--dg-color-primary);
  margin-bottom: -1px;
  padding-bottom: 0;
}

/* ---------------- 日期区间日历 ---------------- */
.dn-daterange { position: relative; cursor: pointer; background: var(--dg-color-fill-lighter); border: 1px solid var(--dg-border-color-base); border-radius: var(--comp-radius); height: var(--comp-control-height); }
.dn-daterange:hover { border-color: var(--dg-color-primary-light-5); }
.dn-cal__panel {
  position: absolute; z-index: 2100; top: calc(100% + 6px); left: 0;
  display: none; background: #fff; border: 1px solid var(--dg-border-color-base);
  border-radius: 4px; box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .12);
  padding: 8px 0; min-width: 600px; cursor: default;
}
.dn-cal__panel.open { display: block; }
.dn-cal__body { display: flex; align-items: flex-start; }
.dn-cal__nav {
  width: 22px; height: 22px; margin: 6px 6px 0; flex: none; cursor: pointer;
  border-radius: 4px; color: var(--dg-color-text-secondary); position: relative;
}
.dn-cal__nav:hover { color: var(--dg-color-primary); }
.dn-cal__nav[data-cal-nav="-1"]::after { content: "‹"; font-size: 16px; line-height: 22px; display: block; text-align: center; }
.dn-cal__nav[data-cal-nav="1"]::after { content: "›"; font-size: 16px; line-height: 22px; display: block; text-align: center; }
.dn-cal__month { padding: 0 8px 8px; }
.dn-cal__title { text-align: center; font-size: 14px; color: var(--dg-color-text-primary); line-height: 26px; }
.dn-cal__table { border-collapse: separate; border-spacing: 0; width: 232px; }
.dn-cal__table th { font-size: 12px; color: var(--dg-color-text-secondary); font-weight: 400; height: 24px; }
.dn-cal__table td { text-align: center; height: 26px; width: 33px; }
.dn-cal__day {
  display: inline-block; width: 24px; height: 24px; line-height: 24px;
  border-radius: 2px; font-size: 12px; color: var(--dg-color-text-regular); cursor: pointer;
}
.dn-cal__day:hover { color: var(--dg-color-primary); }
.dn-cal__day--in { background: var(--dg-color-primary-light-9); }
.dn-cal__day--start, .dn-cal__day--end { background: var(--dg-color-primary); color: #fff; }
.dn-cal__footer { border-top: 1px solid var(--dg-border-color-base); padding: 6px 12px 0; text-align: right; }
.dn-cal__footer .el-button--text { height: 24px; line-height: 24px; font-size: 14px; }
.dn-cal__icon { margin-right: 6px; }

/* ---------------- 轻量柱状图 ---------------- */
.dn-bars { display: flex; align-items: flex-end; gap: 12px; height: 180px; position: relative; padding: 0 4px; }
.dn-bars__line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--dg-border-color-base); }
.dn-bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; z-index: 1; }
.dn-bars__bar { width: 100%; max-width: 48px; background: linear-gradient(180deg, var(--dg-color-primary-light-3), var(--dg-color-primary)); border-radius: 4px 4px 0 0; transition: height var(--transition-base); }
.dn-bars__label { font-size: 12px; color: var(--dg-color-text-secondary); margin-top: 6px; }

/* ---------------- 时间线 ---------------- */
.timeline { padding-left: 6px; }
.timeline__item { position: relative; padding: 0 0 16px 20px; border-left: 1px solid var(--dg-border-color-base); }
.timeline__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline__dot { position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--dg-color-primary); }
.timeline__title { font-size: 14px; color: var(--dg-color-text-primary); line-height: 20px; }
.timeline__meta { font-size: 14px; color: var(--dg-color-text-secondary); line-height: 20px; }
