/* u99-work-ease-ui — the ease-of-use fixes (.wke-* only, plus a few layout rules for My work and the Jobs register). Cobalt Paper tokens. */

/* a message beside the button that caused it */
.wke-tip { position: fixed; z-index: 4000; display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px 9px 12px; border: 1px solid var(--amber); border-radius: var(--r); background: var(--surface); color: var(--text); font-size: 13px; line-height: 1.4; box-shadow: 0 6px 22px rgba(15, 23, 42, .16); white-space: pre-line; }
.wke-tip > .ti { color: var(--amber); font-size: 17px; flex: none; margin-top: 1px; }
.wke-tip > span { flex: 1 1 auto; min-width: 0; }
.wke-tip.is-good { border-color: var(--green); }
.wke-tip.is-good > .ti { color: var(--green); }
.wke-tip::before { content: ''; position: absolute; left: var(--wke-arrow, 24px); top: -6px; width: 10px; height: 10px; margin-left: -5px; background: var(--surface); border-left: 1px solid var(--amber); border-top: 1px solid var(--amber); transform: rotate(45deg); }
.wke-tip.is-above::before { top: auto; bottom: -6px; transform: rotate(225deg); }
.wke-tip.is-good::before { border-color: var(--green); }
.wke-tip-x { flex: none; border: 0; background: none; color: var(--ink-3); font-size: 18px; line-height: 1; padding: 0 2px; cursor: pointer; }
.wke-tip-x:hover { color: var(--text); }
.wke-flag { outline: 2px solid var(--amber); outline-offset: 2px; }

/* job page: Waiting on is one line until it is used */
#w3bWaitCard.is-slim .w3-card-h { border-bottom: 0; }
#w3bWaitCard.is-slim .w3-card-b { display: none; }
#w3bWaitCard.is-slim.is-open .w3-card-h { border-bottom: 1px solid var(--border); }
#w3bWaitCard.is-slim.is-open .w3-card-b { display: block; }

/* My work: the two row buttons say what they do on a wide screen */
.wke-lbl { display: none; }
@media (min-width: 1500px) {
  #view-work #workPanel .w3-cols:not(.is-review) { grid-template-columns: 20px minmax(180px, 1.2fr) 164px 104px 150px minmax(180px, 1.5fr) 204px; }
  #view-work #workPanel .w3-row:not(.is-review) > .w3-acts { opacity: 1; justify-content: flex-end; gap: 6px; }
  #view-work #workPanel .w3-row:not(.is-review) > .w3-acts .row-act { width: auto; padding: 0 9px; gap: 5px; display: inline-flex; align-items: center; font-size: 12.5px; }
  #view-work #workPanel .w3-row:not(.is-review) > .w3-acts .wke-lbl { display: inline; }
}

/* Jobs register: one line per job, every column on the screen */
.wke-regbar { display: inline-flex; align-items: center; gap: 6px; }
.wk-table.wke-compact { table-layout: fixed; width: 100%; }
.wk-table.wke-compact td, .wk-table.wke-compact th { padding: 5px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-table.wke-compact td { font-size: 13px; line-height: 1.35; }
.wk-table.wke-compact td .wk-status { padding-top: 1px; padding-bottom: 1px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.wk-table.wke-compact td .wk-due small { margin-left: 4px; }
.wk-table.wke-compact td .wk-stat-over { display: none; } /* the Statutory column turns red instead */
.wk-table td.wke-statover { color: var(--red); font-weight: 600; }
.wke-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wke-cell b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wke-cell .wcg-chip { flex: none; margin-left: 0; }
.wke-minichip { padding: 0 6px; height: 20px; gap: 3px; font-size: 11.5px; }
.wk-table.wke-compact th { font-size: 11px; letter-spacing: .02em; }
.wk-table:not(.wke-compact) .wke-cell { display: block; }
.wk-table:not(.wke-compact) .wke-cell b { white-space: normal; }
.wk-table tr.wke-grp td { background: var(--bg); padding: 7px 10px; font-size: 13px; border-top: 1px solid var(--border-2); white-space: nowrap; }
.wk-table tr.wke-grp:hover td { background: var(--bg); }
.wk-table tr.wke-grp .wke-grp-n { color: var(--ink-3); font-weight: 400; margin-left: 8px; }
.wk-table tr.wke-grp .ti { color: var(--accent); margin-right: 4px; }

.wke-norev { margin-top: 4px; line-height: 1.7; }
.wke-setrev { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.wke-setrev select { height: 32px; min-width: 200px; max-width: 100%; }
