/* The own working time in the header (frontend/worktime.js): one quiet button left of the weather – a dot for the state, the time
   worked today and the time account. Small type in the colours of the text like the weather (variables of frontend/theme.css, light and
   dark). It never shrinks; the weather beside it gives way first (frontend/weather.css). */
.work-time{display:inline-flex;align-items:center;gap:14px;flex:none;height:34px;margin-left:auto;padding:0 10px;border:1px solid transparent;border-radius:var(--radius-sm,8px);
  background:none;color:var(--ink-soft);font-family:inherit;font-size:12px;line-height:1;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s}
.work-time:hover{background:var(--hover);border-color:var(--line-2,#d6d6d6)}
/* With the working time before it, the weather keeps its own width and both stand together at the right. */
.work-time:not(.hidden)+.weather{flex-grow:0}
.work-time:not(.hidden)~.header-actions{margin-left:0}
.work-time-item{display:inline-flex;align-items:baseline;gap:5px}
.work-time-value{color:var(--ink);font-size:13px;font-variant-numeric:tabular-nums}
.work-time.stale .work-time-item{opacity:.65}
/* State: present green, break amber, absent grey – the meaning of the status colours (docs/Projektregeln/design-superus-theme.md). */
.work-time-state{flex:none;width:8px;height:8px;margin-right:-6px;border-radius:50%;background:var(--faint)}
.work-time-state.state-present{background:var(--ok)}
.work-time-state.state-break{background:var(--warn)}

/* Tablet: the two figures without their names (the tooltip keeps them). */
@media (max-width:1100px){
  .work-time{gap:10px;padding:0 8px}
  .work-time-label{display:none}
  .work-time-state{margin-right:-2px}
}
/* Phone: only the time of today; the time account stands in the app, one tap away. */
@media (max-width:600px){
  .work-time{gap:6px;padding:0 6px}
  .work-time-account-item{display:none}
  .work-time-state{margin-right:0}
}
@media (pointer:coarse){
  .topbar .work-time{height:var(--touch-target)}
}
