/* Personal attendance: these rules are limited to the ordinary employee view. */
.employee-hours { --eh-muted: var(--ink3); }
.employee-hours .eh-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.employee-hours .eh-heading h3 { margin-bottom: 4px; }
.employee-hours .eh-heading .cd { margin: 0; }
.employee-hours .eh-month { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.employee-hours .eh-month label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.employee-hours .eh-month input { min-width: 0; width: 155px; min-height: 44px; font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--paper, #fff); }
.employee-hours button, .employee-hours .eh-link { min-height: 44px; }
.employee-hours .eh-month button { width: 44px; min-width: 44px; padding: 8px; }
.employee-hours .eh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 16px; }
.employee-hours .eh-stats > div { padding: 0 18px; border-left: 1px solid var(--line); }
.employee-hours .eh-stats > div:first-child { padding-left: 0; border-left: 0; }
.employee-hours .eh-stats strong { display: block; font-size: clamp(25px, 3.5vw, 36px); line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.employee-hours .eh-stats span { display: block; margin-top: 7px; color: var(--eh-muted); font-size: 13px; line-height: 1.5; }
.employee-hours .eh-caption { margin: 6px 0; color: var(--eh-muted); font-size: 13px; line-height: 1.65; }
.employee-hours .eh-attention { color: #8d512c; }
.employee-hours .eh-record { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.employee-hours .eh-record > div { min-width: 0; overflow-wrap: anywhere; }
.employee-hours .eh-record .tag { margin-left: 10px; }
.employee-hours .eh-record p { margin: 7px 0 0; font-size: 14px; line-height: 1.55; }
.employee-hours .eh-record > strong { font-size: 24px; font-weight: 620; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.employee-hours .eh-record small { display: block; margin-top: 4px; color: var(--eh-muted); font-size: 12px; font-weight: 400; }
.employee-hours .eh-sources > summary { min-height: 48px; padding: 12px 0; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 24px; }
.employee-hours .eh-sources > summary:focus-visible { outline: 2px solid var(--sage, #9cae92); outline-offset: 4px; border-radius: 4px; }
.employee-hours .eh-sources.card { padding-top: 8px; padding-bottom: 8px; }
.employee-hours .eh-sources[open].card { padding-bottom: 20px; }
.employee-hours .eh-source { border-top: 1px solid var(--line); padding: 14px 0; font-size: 14px; overflow-wrap: anywhere; }
.employee-hours .eh-source .tag { margin-left: 10px; }
.employee-hours .eh-source p { margin: 7px 0 0; line-height: 1.6; }
.employee-hours .eh-empty { margin: 0; padding: 24px 0; color: var(--eh-muted); font-size: 14px; }
.employee-hours .eh-plan-status { font-size: 14px; }
.employee-hours .eh-plan-total b { font-size: 24px; font-variant-numeric: tabular-nums; }
.employee-hours .eh-link { display: inline-flex; align-items: center; color: var(--ink); font-size: 14px; text-underline-offset: 4px; }
.employee-hours .eh-device #wecomAttendance { margin: 12px 0 0; }
.employee-hours .eh-device .wa-heading h3 { font-size: 16px; }
.employee-hours .eh-device .wa-toolbar { align-items: end; }
.employee-hours .eh-device .wa-toolbar .op-field { max-width: 260px; }
.employee-hours .tw { overflow-x: auto; }
@media (max-width: 680px) {
  .employee-hours .eh-heading { flex-wrap: wrap; gap: 14px; }
  .employee-hours .eh-month { width: 100%; }
  .employee-hours .eh-month input { flex: 1; width: 0; }
  .employee-hours .eh-stats { gap: 0; margin-top: 22px; }
  .employee-hours .eh-stats > div { padding: 0 10px; }
  .employee-hours .eh-stats strong { font-size: 27px; }
  .employee-hours .eh-stats span { font-size: 12px; }
  .employee-hours .eh-record { gap: 12px; }
  .employee-hours .eh-record > strong { font-size: 22px; }
  .employee-hours .eh-record .tag { margin-left: 6px; }
  .employee-hours .eh-device .wa-toolbar .op-field { max-width: none; }
}
@media (max-width: 420px) {
  .employee-hours .eh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-hours .eh-stats > div:nth-child(3) { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; margin-top: 16px; }
  .employee-hours .eh-stats > div:nth-child(3) strong { font-size: 18px; }
}
