.due-page {--coal:#161714;--rule:#d8cdb9;--ember:#a84205;--display:"Barlow Condensed","Arial Narrow",sans-serif;
  margin:0;min-height:100vh;background:#fcf8ee;color:#1b1b16;font-family:"DM Sans",Arial,sans-serif}
body.due-page:has(operator-navigation) {background:#fcf8ee}
.due-shell {width:min(1440px,96%);max-width:none;margin-inline:auto}
.due-header {background:#090a08;color:#fffdf7;border:0}
.due-top,.due-brand,.due-metrics,.due-stat,.due-heading,.due-title,.due-actions,.due-legend,.due-links {display:flex;align-items:center}
.due-top {min-height:clamp(61px,6.4vw,87px);justify-content:space-between;gap:1rem;padding-block:7px}
.due-brand {flex:1;min-width:0;gap:clamp(9px,1.5vw,20px);color:inherit;text-decoration:none}
.due-brand .brand-truck {display:block;flex:none;width:clamp(38px,5.1vw,64px);height:auto;border-radius:0}
.due-brand strong,.due-stat b,.due-heading h1,.due-grid thead,.due-actions #tracker-export {font-family:var(--display);font-weight:800;text-transform:uppercase}
.due-brand strong {display:block;font-size:clamp(1.35rem,2.45vw,2.1rem);line-height:1;letter-spacing:0}
.due-brand small,.due-stat small {display:block;margin-top:.25rem;color:#e3e0d8;font-size:.86rem;line-height:1.1}
.due-stat {gap:.65rem;padding-inline:clamp(11px,2vw,25px);line-height:1.05}
.due-stat:last-child {padding-right:0}.due-stat+.due-stat {border-left:1px solid #514f46}
.due-stat b {font-size:clamp(.9rem,1.28vw,1.16rem);letter-spacing:.02em}
.due-stat small strong {color:white;font-weight:620}
.due-symbol {position:relative;display:grid;place-items:center;width:27px;height:27px;flex:none;color:#f58520;border:2px solid currentColor;border-radius:50%;font:750 1.05rem/1 system-ui}
.calendar-symbol {height:24px;border-radius:4px;background:linear-gradient(currentColor,currentColor) 0 5px/100% 2px no-repeat}
.calendar-symbol::before {content:"";position:absolute;top:-5px;left:5px;width:2px;height:6px;background:currentColor;box-shadow:12px 0 currentColor}
.calendar-symbol::after {content:"";width:3px;height:3px;background:currentColor;box-shadow:6px 0 currentColor,0 5px currentColor,6px 5px currentColor;transform:translate(-3px,1px)}
.clock-symbol::before,.clock-symbol::after {content:"";position:absolute;left:11px;top:4px;width:2px;height:9px;border-radius:2px;background:currentColor}
.clock-symbol::after {top:12px;height:7px;transform:rotate(-52deg);transform-origin:top}
.due-heading {justify-content:space-between;gap:1rem;padding:clamp(12px,1.4vw,20px) 0 12px}
.due-title {gap:10px;flex-wrap:wrap}
.due-heading h1 {font:800 clamp(1.64rem,2.55vw,2.35rem)/1 "DM Sans",Arial,sans-serif;letter-spacing:-.05em;margin:0}
.due-heading p {margin:4px 0 0;color:#433f36;font-size:.92rem;line-height:1.25}
#workspace-label {font-size:.75rem;font-weight:650;color:#614a32;border:1px solid #dbccb5;border-radius:3px;padding:2px 5px}
#workspace-label:empty {display:none}
.due-actions {gap:clamp(6px,1vw,14px);flex:none}
.due-page button,.due-page select,.due-page textarea {font-family:inherit}
.due-actions button,.due-actions select,.note-dialog button {display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:36px;
  border:1px solid #cbbda5;border-radius:4px;background:#fffaf0;color:#211e18;padding:.38rem .72rem;cursor:pointer;font-weight:650}
.due-actions select {appearance:none;font-size:.85rem;padding-right:25px;background:#fffaf0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23443e32' stroke-width='1.4' d='m1 1 4 4 4-4'/%3E%3C/svg%3E") right 8px center/9px no-repeat}
.due-actions #tracker-export {font:750 .86rem/1.1 "DM Sans",Arial,sans-serif;letter-spacing:.01em;white-space:nowrap}
.due-actions #tracker-refresh {border:0;padding-inline:3px;background:none;font-size:.83rem;color:#3e392f}
.due-actions svg {display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.due-actions button:disabled {opacity:.55;cursor:default}
#tracker-feedback:empty {display:none}
#tracker-feedback:not(:empty),#note-error:not(:empty) {margin:.2rem 0 .5rem;color:#773608}
.due-table-wrap {border:1px solid var(--rule);border-radius:5px;overflow:hidden;background:#fdf9ef}
.due-grid {margin:0;width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums}
.star-col {width:5%}.event-col {width:23%}.status-col {width:16%}.date-col {width:17.5%}.days-col {width:15.5%}.notes-col {width:23%}
.due-grid thead {background:#181916;color:#fffef9;font-family:"DM Sans",Arial,sans-serif;font-size:clamp(.75rem,.9vw,.86rem);letter-spacing:.025em}
.due-grid :is(th,td) {padding:.24rem clamp(8px,1.5vw,19px);text-align:left;overflow-wrap:anywhere;vertical-align:middle}
.due-grid thead th {padding-block:.45rem;text-align:center;line-height:1.12}.due-grid thead th:nth-child(2) {text-align:left}
.due-grid :is(td,th)+:is(td,th) {border-left:1px solid var(--rule)}
.due-grid thead th+th {border-color:#47463e}
.due-grid tbody tr+tr {border-top:1px solid var(--rule)}
.due-grid tbody tr:nth-child(even) {background:#fbf6eb}.due-grid tbody tr:hover {background:#fff2dd}
.due-grid :is(td,th):first-child {padding-inline:0;text-align:center}
.due-grid tbody th {font-size:clamp(.88rem,1.12vw,1.03rem);line-height:1.16}
.due-grid .event-cell a {color:inherit;text-decoration:none}.due-grid .event-cell a:hover {text-decoration:underline}
.event-cell small,.due-date small,.days-value small {display:block;color:#453f36;font-size:.8rem;line-height:1.18;font-weight:480;margin-top:2px}
.due-grid .star-cell,.due-grid .status-cell,.due-grid .days-cell {text-align:center}
.due-grid .date-cell {padding-left:clamp(12px,3.5vw,44px)}
.star-action,.note-action,.row-toggle {background:transparent;border:0;cursor:pointer;color:inherit}
.star-action {font:1.48rem/1 Arial,sans-serif!important;min-width:32px;min-height:42px;padding:0;color:#736c5e}
.star-action[aria-pressed=true] {color:#c95904}
.status-pill {position:relative;display:inline-flex;vertical-align:middle;align-items:center;max-width:100%;box-sizing:border-box;min-width:min(100%,92px);
  background:#ffefd7;color:#873804;border:1px solid #ead2ad;border-radius:4px}
.status-pill::before,.key::before {content:"";display:inline-block;width:.5rem;height:.5rem;flex:none;border-radius:50%;background:#ed7408}
.status-pill::before {position:absolute;left:8px;pointer-events:none}
.status-pill select {appearance:none;display:block;max-width:100%;width:100%;height:27px;box-sizing:border-box;
  padding:2px 7px 2px 22px;color:inherit;background:none;border:0;font-size:.82rem;line-height:1.2;font-weight:620;cursor:pointer}
.status-pill:focus-within {outline:2px solid #974409;outline-offset:2px}
.status-pill.applied {background:#ffe9d5;color:#854017;border-color:#edceb6}
.status-pill.applied::before,.key.applied::before {background:#e99352}
.status-pill.booked {color:#2a562a;background:#e8f0dd;border-color:#c7d5b2}
.status-pill.booked::before,.key.booked::before {background:#3b843c}
.status-pill.passed {color:#554f45;background:#ece8de;border-color:#cfc8b9}.status-pill.passed::before {background:#797267}
.due-date {font-size:.91rem;line-height:1.2;font-weight:680}
.due-date details summary {cursor:pointer}.due-date details[open] p {font-size:.83rem;font-weight:480;margin:.3rem 0}
.days-value {display:inline-flex;align-items:center;justify-content:center;gap:.65rem;color:#ab4505;text-align:left}
.days-value>div {white-space:nowrap}.days-value .signal {flex:none}.days-value b {display:block;font:750 1.3rem/.98 "DM Sans",Arial,sans-serif;font-variant-numeric:tabular-nums}.days-value small {margin:1px 0 0}
.days-value.complete {color:#317036}.days-value.neutral {color:#60594b}
.signal.warning,.signal.check {display:grid;place-items:center;width:19px;height:19px;font:750 .78rem/1 system-ui}
.signal.warning {clip-path:polygon(50% 2%,100% 100%,0 100%);background:#c65406;color:white;padding-top:4px}
.signal.check {border:1.6px solid currentColor;border-radius:50%}
.note-action {display:block;min-height:38px;width:100%;text-align:left;white-space:pre-wrap;font-size:.88rem;line-height:1.32;padding:0}
.note-action:hover {text-decoration:underline;text-underline-offset:3px}.note-action.blank {color:#685b49}
.row-toggle,.row-listing {display:none}
.due-legend {justify-content:space-between;padding:10px 1px;gap:8px;flex-wrap:wrap}
.due-legend>div,.due-links {display:flex;gap:1rem;flex-wrap:wrap}.key {display:inline-flex;align-items:center;gap:.35em}
.due-legend small,.key {font-size:.8rem;color:#494236}
.due-context {display:flex;align-items:baseline;flex-wrap:wrap;gap:.5rem;color:#544b3e;font-size:.85rem;margin:.3rem 0}
.due-context:has(span:empty):has(a[hidden]) {display:none}
.due-context a,.due-links a,.due-empty a,.row-listing {color:#833608;text-underline-offset:3px;font-weight:650}
.due-links {margin-top:.65rem;border-top:1px solid var(--rule);padding:.8rem 0 1.3rem;font-size:.85rem}
.due-empty {padding:1.4rem;text-align:center}.due-empty a {display:inline-block;margin:.45rem .5rem 0}
.note-dialog {box-sizing:border-box;margin:auto;padding:1.1rem;width:min(420px,92vw);border:1px solid var(--rule);border-radius:9px;background:#fffaf1;color:#211d17}
.note-dialog::backdrop {background:#17141077}.note-dialog h2 {margin:0;font:800 1.7rem var(--display);text-transform:uppercase}.note-dialog p {margin:.3rem 0 .7rem}
.note-dialog label {display:block;font-weight:650}.note-dialog textarea {box-sizing:border-box;width:100%;margin:.3rem 0 .7rem;padding:.5rem;border:1px solid #a28e75;border-radius:4px;resize:vertical;font-size:1rem}
.note-dialog form>div {display:flex;gap:.45rem;justify-content:flex-end}.note-dialog #note-save {background:#9e400b;color:white;border-color:#9e400b}
@media(max-width:900px) {.due-brand {gap:9px}.due-stat {gap:.4rem;padding-inline:10px}.due-stat .due-symbol {width:22px;height:22px}.clock-symbol::before,.clock-symbol::after{left:9px}.due-actions {gap:5px}}
@media(max-width:700px) {
  .due-shell {width:auto;margin-inline:12px}
  .due-top {display:block;padding:10px 0 8px}
  .due-brand {gap:8px}.due-brand .brand-truck {width:37px;height:31px}.due-brand strong {font-size:1.28rem}.due-brand small {font-size:.75rem;margin-top:2px}
  .due-metrics {margin-top:8px;border-top:1px solid #3d3b31;padding-top:6px}
  .due-stat {flex:1;justify-content:center;padding-inline:4px;text-align:center}.due-stat .due-symbol {display:none}
  .due-stat b {font-size:.82rem}.due-stat small {font-size:.74rem;margin-top:1px}
  .due-heading {display:block;padding:12px 0 7px}.due-heading h1 {font-size:1.62rem}.due-heading p {font-size:.82rem}
  .due-actions {margin-top:6px;gap:5px;justify-content:flex-end}.due-actions label {margin-right:auto}
  .due-actions button,.due-actions select {min-height:34px;padding-inline:7px}.due-actions select {padding-right:23px;font-size:.8rem}
  .due-actions #tracker-refresh {font-size:.75rem;white-space:nowrap}.due-actions #tracker-export {font-size:.88rem}.due-actions svg {width:14px;height:14px}
  .due-grid,.due-grid thead,.due-grid tbody {display:block}.due-grid colgroup,.due-grid thead :is(.col-deadline,.col-notes) {display:none}
  .due-grid tr {display:grid;grid-template-columns:30px minmax(0,1fr) clamp(84px,24%,112px) clamp(58px,14%,76px);align-items:stretch}
  .due-grid tr>* {min-width:0}.due-grid thead th {display:grid;align-content:center;padding:.44rem .22rem;font-size:.77rem}
  .due-grid thead th:nth-child(2) {padding-left:7px}
  .due-grid tbody :is(td,th) {display:grid;align-content:center;padding:.24rem .32rem}
  .due-grid .event-cell {padding-left:7px}.due-grid .event-identity {display:none}
  .row-toggle {display:block;position:relative;padding:3px 11px 3px 0;text-align:left;min-height:44px;line-height:1.16;width:100%;font-size:.87rem}
  .row-toggle small {font-size:.75rem}
  .row-toggle::after {content:"";position:absolute;right:0;top:48%;width:5px;height:5px;border:solid #7b705e;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
  .row-toggle[aria-expanded=true]::after {transform:rotate(225deg)}
  .due-grid .star-cell {grid-column:1;grid-row:1}.star-action {min-width:28px;min-height:44px;font-size:1.23rem!important}
  .due-grid .event-cell {grid-column:2;grid-row:1}.due-grid .status-cell {grid-column:3;grid-row:1}
  .due-grid .days-cell {grid-column:4;grid-row:1;padding-inline:2px}.due-grid .status-cell {padding-inline:3px}.days-value {justify-content:center;gap:3px}.days-value b {font-size:1.17rem}.days-value small {font-size:.7rem}
  .days-value .signal {width:12px;height:12px;font-size:.53rem}.signal.warning {padding-top:2px}
  .status-pill {min-width:0;max-width:100%;justify-self:stretch}.status-pill::before {left:4px;width:6px;height:6px}
  .status-pill select {font-size:.75rem;min-height:30px;padding-inline:13px 1px}
  .due-grid .date-cell,.due-grid .note-cell {display:none}
  .due-grid tr.expanded :is(.date-cell,.note-cell) {grid-row:2;display:block;border-top:1px solid var(--rule);background:#fff3dc;padding:8px;font-size:.85rem}
  .due-grid tr.expanded .date-cell {grid-column:1/3;border-left:0}.due-grid tr.expanded .note-cell {grid-column:3/5}
  .due-grid td[data-label]:not(.days-cell)::before {display:block;content:attr(data-label);font-weight:700;font-size:.75rem;color:#6a4b32;margin-bottom:2px}
  .row-listing {display:inline-block;margin-top:.35rem;font-size:.8rem}
  .note-action {min-height:32px}.due-legend {gap:5px;padding-block:8px}.due-legend>div {gap:.65rem}.due-legend small,.key {font-size:.74rem}
}
@media(max-width:420px) {
  .due-actions #tracker-refresh {min-width:35px;min-height:35px}
  #refresh-label {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .due-actions #tracker-export {font-size:.77rem}
}
