/* 通用组件：中文日期选择 + 时间周期快选 + 可搜索下拉 */
.phx-date-display { cursor: pointer; min-width: 128px; background-color: #fff; }
.phx-date-display:disabled { cursor: not-allowed; background-color: #f5f5f5; }
.admin-filter .phx-date-display { width: 150px; }

.phx-cal {
  position: absolute; z-index: 100000; width: 252px; padding: 10px; box-sizing: border-box;
  background: #fff; border: 1px solid #ebebeb; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  font: 13px/1.4 "Microsoft YaHei", "PingFang SC", sans-serif; color: #333; user-select: none;
}
.phx-cal a { cursor: pointer; text-decoration: none; }
.phx-cal-head { display: flex; align-items: center; height: 30px; margin-bottom: 6px; }
.phx-cal-head span { flex: 1; text-align: center; font-weight: 600; font-size: 14px; }
.phx-cal-head a { width: 26px; height: 26px; line-height: 24px; text-align: center; border-radius: 4px; color: #666; font-size: 16px; }
.phx-cal-head a:hover { background: #fdeaea; color: #e73b3b; }
.phx-cal-week, .phx-cal-days { display: flex; flex-wrap: wrap; }
.phx-cal-week i { width: 14.2857%; text-align: center; font-style: normal; color: #999; font-size: 12px; line-height: 26px; }
.phx-cal-days a { width: 14.2857%; height: 30px; line-height: 30px; text-align: center; border-radius: 4px; color: #333; box-sizing: border-box; }
.phx-cal-days a:hover { background: #fdeaea; color: #e73b3b; }
.phx-cal-days a.out { color: #c4c4c4; }
.phx-cal-days a.today { color: #e73b3b; font-weight: 600; box-shadow: inset 0 0 0 1px #f3b5b5; }
.phx-cal-days a.on, .phx-cal-days a.on:hover { background: #e73b3b; color: #fff; }
.phx-cal-days a.dis, .phx-cal-days a.dis:hover { color: #ddd; background: none; cursor: not-allowed; }
.phx-cal-time { margin-top: 8px; padding-top: 8px; border-top: 1px solid #f2f2f2; color: #666; text-align: center; }
.phx-cal-time select { height: 26px; border: 1px solid #e3e5e8; border-radius: 4px; padding: 0 4px; }
.phx-cal-foot { display: flex; justify-content: flex-end; gap: 14px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f2f2f2; }
.phx-cal-foot a { color: #e73b3b; }
.phx-cal-foot a[data-act="clear"] { color: #999; margin-right: auto; }
.phx-cal-foot a.ok { background: #e73b3b; color: #fff; padding: 0 12px; border-radius: 4px; line-height: 24px; }

.phx-quick { display: inline-flex; vertical-align: middle; background: #f3f4f6; border-radius: 16px; padding: 2px; margin: 0 6px; }
.phx-quick a { height: 28px; line-height: 28px; padding: 0 10px; border-radius: 14px; color: #555; font-size: 13px; text-decoration: none; white-space: nowrap; }
.phx-quick a:hover { color: #e73b3b; }
.phx-quick a.on { background: #fff; color: #e73b3b; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }

.phx-sel { position: relative; display: inline-block; vertical-align: middle; }
.phx-sel-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 160px;
  cursor: pointer; text-align: left; font-family: inherit;
}
.phx-sel-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phx-sel-btn i { width: 0; height: 0; border: 4px solid transparent; border-top: 5px solid #999; margin-top: 4px; flex: none; }
.phx-sel.open .phx-sel-btn { border-color: #e73b3b; }
.phx-sel-pop {
  display: none; position: absolute; z-index: 9999; left: 0; top: calc(100% + 4px); width: 240px;
  background: #fff; border: 1px solid #ebebeb; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); padding: 8px;
  box-sizing: border-box;
}
.phx-sel.open .phx-sel-pop { display: block; }
.phx-sel-search {
  width: 100%; height: 32px; box-sizing: border-box; border: 1px solid #e3e5e8; border-radius: 6px; padding: 0 10px 0 28px;
  font-size: 13px; outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 9px center;
}
.phx-sel-search:focus { border-color: #e73b3b; }
.phx-sel-list { max-height: 300px; overflow-y: auto; margin-top: 6px; position: relative; }
.phx-sel-group p { margin: 6px 0 2px; padding: 0 8px; font-size: 12px; color: #999; }
.phx-sel-opt { display: block; padding: 0 10px; line-height: 30px; border-radius: 4px; color: #333; cursor: pointer; font-size: 13px; }
.phx-sel-opt:hover, .phx-sel-opt.hover { background: #fdeaea; color: #e73b3b; }
.phx-sel-opt.on { color: #e73b3b; font-weight: 600; }
.phx-sel-empty { padding: 16px 0; text-align: center; color: #999; font-size: 13px; }
