/* Labour plan (labour.js, feedback #21; moved out of tenders.html 3 Nov 2026 with #46-#48 to keep that page small) */
.lb-brushes { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-brushes button, .lb-brushes span { border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 10px; font-weight: 600; font-size: 13px; }
.lb-brushes button.on { outline: 2px solid var(--black); outline-offset: 1px; }
.lb-brushes .lb-act { border-style: dashed; border-color: currentColor; }
.lb-brushes .lb-sep { border: 0; padding: 0; width: 1px; align-self: stretch; background: var(--line-2); margin: 0 4px; }
.lb-wrap { overflow-x: auto; }
.lb-grid { border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.lb-grid th, .lb-grid td { padding: 2px; text-align: center; border-bottom: 1px solid var(--line); min-width: 46px; font-weight: 500; }
.lb-grid th.lb-name { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; min-width: 150px; padding: 4px 8px; white-space: nowrap; }
.lb-who { display: flex; align-items: flex-start; gap: 6px; }
.lb-who > div { flex: 1; min-width: 0; }
.lb-who > button { flex: 0 0 auto; }
.lb-grip { border: 0; background: none; padding: 0 3px; margin: 0; cursor: grab; color: var(--muted); touch-action: none; font-size: 15px; line-height: 1.1; letter-spacing: -3px; }
.lb-grip:hover, .lb-grip:focus-visible { color: var(--black); }
.lb-grid tr.lb-dragging th.lb-name { background: var(--green-tint); }
.lb-grid tr.lb-dragging .lb-grip { cursor: grabbing; }
.lb-grid tr.lb-drop-before > * { box-shadow: inset 0 3px 0 var(--black); }
.lb-grid tr.lb-drop-after > * { box-shadow: inset 0 -3px 0 var(--black); }
.lb-grid .wk { background: var(--grey5); min-width: 30px; }
.lb-grid .now { background: var(--green-tint); }
.lb-grid .wk.off { background: var(--green-tint); }
.lb-grid tr.lb-group th { text-align: left; background: var(--grey20); padding: 4px 8px; font-weight: 700; }
.lb-cell { height: 38px; user-select: none; }
.lb-grid.painting .lb-cell { cursor: crosshair; touch-action: none; }
/* moving a filled day to another day or person (feedback #74): with no job picked, drag it */
.lb-grid.movable:not(.painting) .lb-cell .lb-chip:not(.lb-away) { cursor: grab; touch-action: none; }
.lb-grid.moving, .lb-grid.moving .lb-cell, .lb-grid.moving .lb-chip { cursor: grabbing !important; }
.lb-grid .lb-cell.lb-from .lb-chip { opacity: .45; }
.lb-grid .lb-cell.lb-to { box-shadow: inset 0 0 0 2px var(--black); border-radius: 5px; }
.lb-chip { border-radius: 5px; padding: 3px 4px; font-weight: 600; line-height: 1.15; background: var(--grey20); }
.lb-chip.lb-act { border: 1px dashed currentColor; padding: 2px 3px; }
.lb-chip.lb-away { background: var(--green); font-weight: 500; }
.lb-chip.lb-away.asked { background: repeating-linear-gradient(45deg, var(--green-tint), var(--green-tint) 3px, #fff 3px, #fff 6px); border: 1px solid var(--grey20); }
.lb-chip.clash { outline: 2px solid var(--danger); outline-offset: -2px; }
.lb-chip small { display: block; font-weight: 400; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 76px; margin: 0 auto; }
.lb-key .lb-clash-key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; vertical-align: middle; margin-right: 4px; outline: 2px solid var(--danger); outline-offset: -2px; background: var(--grey20); }
.lb-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 16px; }
.lb-names label { display: flex; flex-direction: column; gap: 3px; font-weight: 600; }
.lb-names label .count { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The rate card and the plan's labour cost (labour-rates.js, feedback #49) */
.lr-card { border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; background: var(--grey5); }
.lr-rates td, .lr-rates th { vertical-align: top; }
.lr-rates input[data-lr-f="name"] { max-width: 260px; }
.lr-note { display: block; margin-top: 4px; max-width: 320px; font-size: 12.5px; }
.lr-num { width: 96px; text-align: right; }
.lr-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 16px; margin: 4px 0 10px; }
.lr-person { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.lr-person select { font-weight: 400; }
.lr-hours { display: flex; flex-wrap: wrap; gap: 8px; }
.lr-hours label { display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: 13px; }
.lr-hours .lr-num { width: 64px; }
.lr-cost td, .lr-cost th { vertical-align: top; }
.lr-cost th .count { font-weight: 400; white-space: normal; max-width: 150px; margin-left: auto; }
.lr-cost tfoot th, .lr-cost tfoot td { border-top: 2px solid var(--line-2); }
/* Select, copy and paste (feedback #93) */
.lb-grid.selecting .lb-cell { cursor: cell; touch-action: none; }
.lb-grid .lb-cell.lb-sel { box-shadow: inset 0 0 0 2px var(--black); background: var(--green-tint); }
.lb-brushes button:disabled { opacity: .45; cursor: default; }
