.workinghoursview {
    display: flex
}
.workinghoursview table:nth-child(even) td {
    background-color: rgba(0,0,0,.02);
}
.workinghoursview table {
    border-left: 1px solid rgba(0,40,100,.12);
}
.workinghoursview table:first-child {
    border-left-width: 0;
}


/* book hours widget: the form, and the latest bookings by day */
.wt-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    container-type: inline-size;
}
.wt-form.wt-editing {
    padding: 8px 10px 10px 12px;
    border-left: 3px solid var(--color-highlight2);
    border-radius: .3rem;
    background: color-mix(in srgb, var(--color-highlight2) 8%, transparent);
}
.wt-editing-title {
    font-weight: var(--font-weight-strong);
    color: var(--color-text-muted);
}
.wt-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 8px;
}
.wt-fields label {
    margin: 0;
    min-width: 0;
}
.wt-fields input,
.wt-fields select {
    width: 100%;
    min-width: 0;
}
/* narrow (a phone, a narrow column): date on its own row, time and duration below */
@container (max-width: 420px) {
    .wt-fields {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .wt-fields label:first-child {
        grid-column: 1 / -1;
    }
}
.wt-fields label > span {
    display: block;
    margin-bottom: 2px;
    font-size: .75rem;
    color: var(--color-text-muted);
}
.wt-comment {
    min-height: 56px;
    resize: vertical;
}
.wt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.wt-list {
    margin-top: 14px;
    padding-top: 4px;
    border-top: 1px solid var(--color-borderdecent);
}
.wt-day {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 2px 0;
    font-size: .7rem;
    font-weight: var(--font-weight-strong);
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.wt-day-total {
    font-variant-numeric: tabular-nums;
}
.wt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 -8px;
    padding: 6px 8px;
    border-radius: .3rem;
}
.wt-item:hover {
    background: var(--color-surface-light-1);
}
.wt-duration {
    flex: none;
    min-width: 54px;
    padding: 3px 0;
    border-radius: .3rem;
    background: color-mix(in srgb, var(--color-highlight) 13%, transparent);
    color: var(--color-highlight);
    text-align: center;
    font-weight: var(--font-weight-strong);
    font-variant-numeric: tabular-nums;
}
.wt-text {
    flex: 1 1 0;
    min-width: 0;
}
.wt-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.3;
}
.wt-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
    font-size: .78rem;
    color: var(--color-text-muted);
}
.wt-comment-text {
    font-style: italic;
}
.wt-list-plain {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.wt-avatar {
    flex: none;
    width: 26px;
    height: 26px;
    font-size: .7rem;
}
.wt-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 8px 0 0 0;
    border-top: 1px solid var(--color-borderdecent);
    font-weight: var(--font-weight-strong);
}
.wt-total small {
    margin-left: 8px;
    font-weight: normal;
    color: var(--color-text-muted);
}
.wt-tools {
    flex: none;
    display: flex;
    gap: 8px;
    white-space: nowrap;
}
.wt-tools a {
    color: var(--color-text-faint-2);
}
.wt-tools a:hover {
    color: var(--color-highlight);
}


/* time account widget: the balance, how much of the target is worked, what it is made of */
.wo-hero {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.wo-balance {
    font-size: 2rem;
    font-weight: var(--font-weight-strong);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.wo-plus {
    color: color-mix(in srgb, #2e9e4f 80%, var(--color-text-strong));
}
.wo-minus {
    color: color-mix(in srgb, #d93025 80%, var(--color-text-strong));
}
.wo-balance-label {
    color: var(--color-text-muted);
}
.wo-balance-label small {
    font-size: .75rem;
}
.wo-year {
    margin-left: auto;
    padding: 0 9px;
    border-radius: 99px;
    background: var(--color-surface-light-2);
    font-size: .75rem;
    color: var(--color-text-muted);
}
.wo-yearend {
    margin-top: 2px;
    font-size: .8rem;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}
.wo-yearend strong {
    font-weight: var(--font-weight-strong);
}
.wo-bar {
    height: 10px;
    margin-top: 10px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--color-highlight) 16%, transparent);
    overflow: hidden;
}
.wo-bar > span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--color-highlight);
    transition: width .4s ease;
}
.wo-bar.wo-behind {
    background: color-mix(in srgb, #d93025 16%, transparent);
}
.wo-bar.wo-behind > span {
    background: #d93025;
}
.wo-bar-text {
    margin-top: 4px;
    font-size: .78rem;
    color: var(--color-text-muted);
}
.wo-rows {
    margin-top: 12px;
    border-top: 1px solid var(--color-borderdecent);
    font-variant-numeric: tabular-nums;
}
.wo-head, .wo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6.5rem;
    gap: 8px;
    padding: 3px 0;
}
.wo-has-ytd .wo-head, .wo-has-ytd .wo-row {
    grid-template-columns: minmax(0, 1fr) 6rem 6rem;
}
.wo-head {
    padding-top: 8px;
    font-size: .7rem;
    font-weight: var(--font-weight-strong);
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.wo-head > span:not(:first-child), .wo-row > span:not(:first-child) {
    text-align: right;
}
.wo-row > span:first-child {
    color: var(--color-text-muted);
}
.wo-row.wo-sum {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--color-borderdecent);
}
.wo-row.wo-sum > span {
    font-weight: var(--font-weight-strong);
}
.wo-row.wo-sum > span:first-child {
    color: var(--color-textprimary);
}
.wo-row.wo-extra > span:first-child {
    font-style: italic;
}


/* workday widget: the time clock (player, entries without comment, the day's blocks) */
.wd-player {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    container-type: inline-size;
}
.wd-select {
    flex: 1 1 260px;
    min-width: 0;
}
.wd-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.wd-timer {
    position: relative;
    min-width: 96px;
    padding: 6px 12px;
    border-radius: .3rem;
    background: var(--color-surface-light-1);
    font-size: 1.25rem;
    font-weight: var(--font-weight-strong);
    font-variant-numeric: tabular-nums;
}
.wd-isrunning .wd-timer::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: #2e9e4f;
    animation: wr-pulse 2s ease-in-out infinite;
}
.wd-isrunning .wd-timer {
    padding-left: 28px;
    background: color-mix(in srgb, var(--color-highlight) 12%, transparent);
    color: var(--color-highlight);
}
.wd-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0 0;
    padding: 8px 12px;
    border-radius: .3rem;
    background: color-mix(in srgb, var(--danger, #d93025) 9%, transparent);
    color: var(--color-textprimary);
    text-decoration: none;
}
.wd-banner,
.wd-banner:hover,
.wd-banner:focus,
.wd-banner:hover * {
    text-decoration: none !important;
}
.wd-banner:hover {
    background: color-mix(in srgb, var(--danger, #d93025) 15%, transparent);
    color: var(--color-textprimary);
    text-decoration: none;
}
.wd-banner .la {
    font-size: 1.3rem;
    color: var(--danger, #d93025);
}
.wd-m .wt-day {
    margin-top: 14px;
}
.wd-m .wt-day:first-of-type {
    margin-top: 6px;
}
.wd-mtop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: .85rem;
    color: var(--color-text-muted);
}
.wd-mprogress {
    flex: none;
    padding: 1px 10px;
    border-radius: 99px;
    background: var(--color-surface-light-1);
    font-variant-numeric: tabular-nums;
}
.wd-mrow {
    margin: 0 -8px;
    padding: 8px;
    border-radius: .3rem;
}
.wd-mrow:hover {
    background: var(--color-surface-light-1);
}
.wd-mhead {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.wd-mdone .wd-issue {
    color: var(--color-text-muted);
}
.wd-mdone .wd-comment {
    border-color: color-mix(in srgb, #2e9e4f 55%, var(--color-borderdecent));
}
.wd-mempty {
    padding: 22px 0;
    text-align: center;
    color: var(--color-text-muted);
}
.wd-mempty .la {
    display: block;
    margin-bottom: 4px;
    font-size: 34px;
    color: #2e9e4f;
}
.wd-daybar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    margin-top: 14px;
}
.wd-daynav {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wd-daynav a {
    color: var(--color-text-faint-2);
}
.wd-daynav a:hover {
    color: var(--color-highlight);
}
.wd-userpick {
    width: auto;
    max-width: 180px;
}
.wd-sums {
    display: flex;
    gap: 14px;
    font-variant-numeric: tabular-nums;
}
.wd-sumlabel {
    font-size: .75rem;
    color: var(--color-text-muted);
}
.wd-hint {
    margin-top: 6px;
    font-size: .8rem;
    color: var(--color-text-muted);
}
.wd-timeline {
    position: relative;
    height: 16px;
    margin-top: 10px;
    border-radius: .3rem;
    background: var(--color-surface-light-2);
    overflow: hidden;
}
.wd-segment {
    position: absolute;
    top: 0;
    bottom: 0;
    opacity: .9;
}
.wd-segment.wd-nocomment {
    box-shadow: inset 0 0 0 2px var(--danger, #d93025);
}
.wd-segment-running {
    opacity: 1;
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .6);
}
.wd-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    font-size: .68rem;
    color: var(--color-text-muted);
}
.wd-empty {
    margin: 12px 0 0 0;
}
.wd-list {
    margin-top: 8px;
}
.wd-gap {
    display: flex;
    justify-content: space-between;
    padding: 3px 8px;
    font-size: .78rem;
    color: var(--color-text-muted);
    border-left: 2px dashed var(--color-borderdecent);
}
.wd-block {
    margin: 4px 0;
    padding: 6px 8px;
    border-radius: .3rem;
    border-left: 3px solid transparent;
}
.wd-block:hover {
    background: var(--color-surface-light-1);
}
.wd-block-missing {
    border-left-color: var(--danger, #d93025);
}
.wd-block-running {
    border-left-color: var(--color-highlight);
}
.wd-block-ok {
    border-left-color: #2e9e4f;
}
.wd-blockhead {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wd-time {
    flex: none;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-muted);
}
.wd-issue {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wd-issue small {
    margin-left: 8px;
    color: var(--color-text-muted);
}
.wd-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 50%;
}
.wd-blockfields {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}
.wd-comment {
    flex: 3 1 0;
    min-width: 0;
}
.wd-customerref {
    flex: 1 1 0;
    min-width: 0;
}
.wd-panel {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: .3rem;
    background: var(--color-surface-light-1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wd-panelrow {
    display: flex;
    gap: 8px;
}
.wd-panelrow label,
.wd-splitform label {
    margin: 0;
}
.wd-panelrow label > span,
.wd-splitform label > span {
    display: block;
    margin-bottom: 2px;
    font-size: .75rem;
    color: var(--color-text-muted);
}
.wd-panelactions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}
.wd-splitform {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
.wd-delete {
    margin-left: auto;
    color: var(--color-text-faint-2);
}
.wd-delete:hover {
    color: var(--danger, #d93025);
}
.wd-addlink {
    float: right;
    margin-top: 6px;
    padding: 0 6px;
    color: var(--color-text-faint-2);
    opacity: .7;
}
.wd-addlink:hover {
    color: var(--color-highlight);
    opacity: 1;
}
.wd-insert {
    clear: both;
}
.wd-insert {
    margin-top: 6px;
}

/* the player: a big play button without text, louder pause/Feierabend */
.btn.wd-play {
    flex: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50% !important;
    font-size: 1.7rem;
    line-height: 1;
    box-shadow: var(--shadow-sm);
}
.btn.wd-play .la {
    font-size: 1.7rem;
}
.wd-big {
    padding: .5rem 1.1rem;
    font-size: 1.05rem;
    font-weight: var(--font-weight-strong);
}
.wd-big .la {
    margin-right: .25rem;
    font-size: 1.25rem;
    vertical-align: -2px;
}
.wd-saved {
    flex: none;
    font-size: 1.2rem;
    color: #2e9e4f;
}

/* who is working right now */
.wr-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 -8px;
    padding: 8px;
    border-radius: .3rem;
}
.wr-row:hover {
    background: var(--color-surface-light-1);
}
.wr-me {
    box-shadow: inset 3px 0 0 var(--color-highlight);
}
.wr-avatar {
    position: relative;
    flex: none;
}
/* the green dot on the avatar: this one is working right now */
.wr-avatar::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2e9e4f;
    box-shadow: 0 0 0 2px var(--color-white);
    animation: wr-pulse 2s ease-in-out infinite;
}
@keyframes wr-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}
.wr-who {
    flex: 1 1 0;
    min-width: 0;
}
.wr-name {
    display: block;
    font-weight: var(--font-weight-strong);
}
.wr-what {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .85rem;
    color: var(--color-text-muted);
}
.wr-what a {
    color: inherit;
}
.wr-what a:hover {
    color: var(--color-highlight);
}
.wr-what small {
    margin-left: 6px;
}
.wr-since {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.wr-elapsed {
    padding: 1px 8px;
    border-radius: .3rem;
    background: color-mix(in srgb, var(--color-highlight) 13%, transparent);
    color: var(--color-highlight);
    font-weight: var(--font-weight-strong);
    font-variant-numeric: tabular-nums;
}
.wr-time {
    font-size: .75rem;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}
.wr-empty {
    padding: 14px 0;
    text-align: center;
    color: var(--color-text-muted);
}
.wr-empty .la {
    display: block;
    margin-bottom: 4px;
    font-size: 30px;
    color: var(--color-text-faint-3);
}

/* the time clock on a ticket: start / switch here, or pause */
.wk {
    display: flex;
    align-items: center;
    gap: 14px;
    container-type: inline-size;
}
a.wk {
    padding: 6px 8px;
    margin: 0 -8px;
    border-radius: .3rem;
    color: var(--color-textprimary);
    text-decoration: none;
}
a.wk:hover {
    background: var(--color-surface-light-1);
    color: var(--color-textprimary);
    text-decoration: none;
}
.wk-play {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-highlight);
    color: var(--color-highlight-invert);
    font-size: 1.7rem;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease;
}
a.wk:hover .wk-play {
    transform: scale(1.06);
}
.wk-text {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.wk-label {
    font-weight: var(--font-weight-strong);
}
.wk-since {
    font-size: .8rem;
    color: var(--color-text-muted);
}
.wk-live {
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2e9e4f;
    animation: wr-pulse 2s ease-in-out infinite;
}
.wk-elapsed {
    font-size: 1.5rem;
    font-weight: var(--font-weight-strong);
    line-height: 1.1;
    color: var(--color-highlight);
    font-variant-numeric: tabular-nums;
}
.wk-button {
    flex: none;
}
