/* Timed move indicator
 * Shared by displaygroup.php, displaygroup_level1.php,
 * displaygroup/byworkstation.php and displaygroup/longterm.php.
 *
 * Visual: highlight the cell with the standard "huomio" yellow background and
 * render the shift label in bold. Nothing else - matches existing huom styling
 * conventions used elsewhere in the app (#ffffb3).
 */

.tmp-shift {
    display: block;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    color: inherit;
    font-weight: 700;
    text-align: center;
    line-height: inherit;
    background: transparent;
    cursor: help;
}

/* Highlight the whole day cell (td) that contains a timed-move badge with
 * subtle light-grey diagonal stripes. Uses :has() so no PHP changes needed.
 */
td:has(.tmp-shift) {
    background-color: #f4f4f4 !important;
    background-image: repeating-linear-gradient(
        135deg,
        #e6e6e6 0 6px,
        #f4f4f4 6px 12px
    ) !important;
}

/* Tooltip pop-up rendered by timed-moves-tooltip.js */
.tmp-shift-tooltip {
    position: absolute;
    z-index: 9999;
    max-width: 280px;
    padding: 8px 10px;
    background: #222;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.tmp-shift-tooltip__title {
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffd66b;
}

.tmp-shift-tooltip__row {
    display: flex;
    gap: 6px;
}

.tmp-shift-tooltip__label {
    opacity: 0.7;
    min-width: 60px;
}
