/* 云收银 · 时间表格（四端共用）
 * 关键：把原生的 calendar-picker-indicator 铺满整个输入框，
 * 这样点输入框中间空白 / 左侧日期文字也能弹出时间表格，不必去找右侧那个小图标。
 */
.tf-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; margin: 0 0 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
}
.tf-bar.tf-compact { padding: 6px 8px; margin-bottom: 9px; }
.tf-name { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tf-quick { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.tf-q {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  border-radius: 14px; padding: 3px 9px; font-size: 11px; line-height: 1.5; cursor: pointer;
}
.tf-q:hover { border-color: var(--blue); color: var(--blue); }
.tf-q.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tf-field {
  display: inline-flex; align-items: center; gap: 4px;
  position: relative; cursor: pointer; white-space: nowrap;
}
.tf-field .tf-tag { font-size: 11px; color: var(--muted); cursor: pointer; }
.tf-input {
  position: relative; min-width: 188px; padding: 5px 8px; font-size: 12px;
  border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.tf-input:hover, .tf-field:hover .tf-input { border-color: var(--blue); }
.tf-input:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
/* 原生弹层触发区铺满整个输入框：点任意空白处都能打开时间表格 */
.tf-input::-webkit-calendar-picker-indicator {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; background: transparent; cursor: pointer;
}
.tf-input::-webkit-datetime-edit { cursor: pointer; }
.tf-clear { flex: 0 0 auto; }
.tf-summary { font-size: 11px; color: var(--muted); white-space: nowrap; }
.tf-slot { margin: 0 0 10px; }
.tf-slot .tf-bar { margin-bottom: 0; }
/* 后台的顶部时间表格吸顶，长台账滚动时也能随时改范围 */
.layout #tfGlobal.tf-slot { position: sticky; top: 56px; z-index: 15; padding: 6px 0; background: var(--bg); }
@media (max-width: 560px) {
  .tf-bar { gap: 6px; padding: 7px 8px; }
  .tf-input { min-width: 160px; font-size: 11px; }
  .tf-summary { white-space: normal; flex-basis: 100%; }
}
