/* One feature home, readable job sections and bounded transient messages. */
body.compact-review :is(#compact-review,.cr-profile) .cr-jobs{border:0;background:transparent;overflow:visible}
body.compact-review :is(#compact-review,.cr-profile) .cr-job{border:1px solid var(--line)!important;border-radius:12px;margin-bottom:10px;overflow:hidden}
body.compact-review :is(#compact-review,.cr-profile) .cr-job[open]>summary{background:var(--surface-soft);border-bottom:2px solid var(--srt93-accent)}
body.compact-review .cr-job-label{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;margin-top:6px;font-size:calc(12px * var(--text-scale,1));line-height:1.45;overflow-wrap:anywhere}
body.compact-review .cr-job-label small{font-size:inherit;color:var(--muted)}
body.compact-review .cr-job-label b{font-weight:600}
body.compact-review .cr-job-counts{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;font-size:calc(11px * var(--text-scale,1))}
body.compact-review .cr-job-counts>span{border:1px solid var(--line);border-radius:5px;padding:3px 6px;background:var(--panel)}
body.compact-review :is(#compact-review,.cr-profile) .cr-job-detail{padding:0 12px 12px;border:0}
body.compact-review .cr-job-section{padding:12px 0;border-bottom:1px solid var(--line)}
body.compact-review .cr-job-section h3{font-size:calc(12px * var(--text-scale,1));font-weight:750;margin:0 0 8px;color:var(--ink)}
body.compact-review .cr-job-section h3>span{color:var(--muted);margin-left:6px;font-weight:500}
body.compact-review .cr-job-section p{font-size:calc(12px * var(--text-scale,1));line-height:1.5;margin:6px 0;white-space:pre-wrap}
body.compact-review .cr-job-section .cr-facts{gap:0;margin:0;border:1px solid var(--line);border-radius:7px;overflow:hidden}
body.compact-review .cr-job-section .cr-facts>div{display:grid;grid-template-columns:minmax(85px,.7fr) minmax(0,1.3fr);gap:10px;padding:8px 9px;border-bottom:1px solid var(--line)}
body.compact-review .cr-job-section .cr-facts>div:nth-child(odd){background:var(--canvas)}
body.compact-review .cr-job-section .cr-facts>div:last-child{border-bottom:0}
body.compact-review .cr-job-section .cr-facts dd{font-weight:550}
body.compact-review .cr-coordinates{display:block;font-size:11px;color:var(--muted);margin-top:6px}
body.compact-review .cr-job-section .cr-list:has(>.cr-note){border:0}
#compact-review .cr-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
#compact-review .cr-toolbar>.cr-row{border:1px solid var(--line);border-radius:9px;min-height:44px;flex:1 1 150px}
#compact-review .cr-tabs{scroll-padding:0 12px;scrollbar-width:thin}
body.compact-review .global-search-result[hidden]{display:none!important}
body.compact-review .global-search-result>span:first-child{width:32px;height:32px;display:grid;place-items:center;flex:0 0 32px}
body.compact-review .global-search-result svg{width:21px;height:21px}
body.compact-review #toast-region{max-height:26vh;max-height:26dvh;left:12px;right:12px;bottom:calc(82px + env(safe-area-inset-bottom));width:auto;max-width:720px;margin:auto;overflow:auto;pointer-events:none}
body.compact-review #toast-region .cr-notice{display:flex;align-items:start;gap:8px;padding:10px 12px;margin:0;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-left:4px solid var(--srt93-accent);border-radius:9px;box-shadow:0 4px 18px #0003;pointer-events:auto;font-size:13px;line-height:1.4}
body.compact-review #toast-region .cr-notice.warning{border-left-color:#a65b00}
body.compact-review .cr-notice-copy{flex:1;min-width:0;overflow-wrap:anywhere;max-height:17vh;max-height:17dvh;overflow:auto}
body.compact-review.modal-open #toast-region{z-index:999}
body.compact-review.modal-open #toast-region,body.compact-review.modal-open #toast-region *{pointer-events:none}
body.compact-review .cr-notice-actions{display:flex;gap:4px;align-items:center;flex-wrap:wrap;max-width:130px}
body.compact-review .cr-notice-actions button{font:inherit;min-height:40px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:var(--canvas);color:var(--ink);cursor:pointer}
body.compact-review .cr-notice-record{padding:10px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
body.compact-review .cr-notice-record p{font-size:13px;line-height:1.45}
body.compact-review.day-mode .tyre-position-choice.is-selected small,body.compact-review.day-mode .tyre-position-choice:has(input:checked) small{color:#694016!important}
body.compact-review .v89-thread-actions{display:flex;flex-wrap:wrap;gap:8px}

/* Stable task colours retain text/icons and remain legible in either theme. */
.srt-weight-docket{border-inline-start:4px solid #2563eb!important}.srt-weight-docket .cr-icon{background:#dbeafe!important;color:#17489d!important}
.srt-driver-docket{border-inline-start:4px solid #7c3aed!important}.srt-driver-docket .cr-icon{background:#ede9fe!important;color:#5b21b6!important}
button[data-action="start-ongoing-work"],button[data-action="open-prestart"]{background:#176b43!important;color:#fff!important;border-color:#176b43!important}
button[data-action="open-poststart"],button[data-shift98="finished"]{background:#9a4b08!important;color:#fff!important;border-color:#9a4b08!important}
button[data-shift98="cancelled"],button[data-action="management-change-cancel-job"]{color:#9f1239!important;background:#fff1f2!important;border-color:#e7a0ae!important}
button[data-action="view-paper-book"],button[data-action="open-weekly-driver-book"],button[data-action="attach-paper-book-photo"]{color:#5b21b6!important;background:#ede9fe!important;border-color:#c4b5fd!important}
button[data-action="open-load"],button[data-action="view-load-record"]{border-inline-start:4px solid #2563eb!important}
[data-company-other]{display:block;margin-top:8px}[data-company-other][hidden]{display:none!important}

.retorque-due98{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}.retorque-due98 button{display:flex;flex-direction:column;align-items:flex-start;text-align:left}.retorque-due98 [aria-pressed=true]{background:#176b43!important;color:white!important}.retorque-quick98 h3,.retorque-quick98 p{margin:8px 0}.retorque-procedure98,.retorque-diagram98{margin:12px 0}.retorque-save98{position:sticky;bottom:0;background:var(--panel,#fff);padding:10px 0;z-index:2}.retorque-save98 [type=submit]{background:#176b43!important;color:white!important}
