/*
 * delivery/module.css: the Delivery list, an engagement's page and Time.
 * Theme tokens only; --mustard is the accent (acid on Plasmodium, olive on Oat).
 */

.dl-eyebrow{font-size:10.5px;font-weight:500;letter-spacing:0.12em;text-transform:uppercase;color:var(--ink-soft);margin:0 0 8px;}
.dl-num{color:var(--mustard);margin-right:8px;}
.dl-dim{color:var(--text-muted);font-size:0.55em;}
.dl-late{color:var(--brick);}
.dl-tag{font-size:10px;font-weight:500;letter-spacing:0.1em;text-transform:uppercase;color:var(--text-muted);}
.dl-tag.accent{color:var(--mustard);}

.row.engagements{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,0.5fr) 110px;}
.row.time-entries{grid-template-columns:minmax(0,1fr) 120px 80px;}
.dl-progress{height:4px;background:var(--subtle-bg);margin:6px 0 4px;}
.dl-progress > div{height:4px;background:var(--mustard);}

.dl-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:6px;}
.dl-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:14px 0;}
@media (max-width:760px){ .dl-kpis{grid-template-columns:repeat(2,minmax(0,1fr));} }
.dl-kpi{border-top:1px solid var(--line);padding-top:10px;}
.dl-kpi-label{font-size:10.5px;font-weight:500;letter-spacing:0.12em;text-transform:uppercase;color:var(--ink-soft);}
.dl-kpi-value{font-family:var(--font-display);font-size:28px;font-weight:300;letter-spacing:-0.03em;line-height:1.15;margin-top:4px;}
.dl-kpi-value.accent{color:var(--mustard);}

.dl-burn{height:6px;background:var(--subtle-bg);position:relative;margin-top:4px;}
.dl-burn-fill{position:absolute;left:0;top:0;bottom:0;background:var(--mustard);}
.dl-burn-mark{position:absolute;top:-3px;bottom:-3px;width:1px;background:var(--ink);}
.dl-burn-legend{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--text-muted);margin:4px 0 16px;flex-wrap:wrap;}

.dl-ms{display:grid;grid-template-columns:22px minmax(0,1fr) 190px;gap:10px;padding:12px 0;border-top:1px solid var(--line);}
@media (max-width:760px){ .dl-ms{grid-template-columns:22px minmax(0,1fr);} .dl-ms-side{grid-column:2;text-align:left !important;} }
.dl-ms-name{font-size:14px;margin-bottom:2px;}
.dl-ms-side{text-align:right;}
.dl-ms-actions{display:flex;gap:4px;justify-content:flex-end;flex-wrap:wrap;margin-top:6px;}
.dl-dot{width:10px;height:10px;border-radius:50%;border:1px solid var(--line-strong);margin-top:4px;}
.dl-dot.done{background:var(--mustard);border-color:var(--mustard);}
.dl-dot.now{border-color:var(--mustard);box-shadow:0 0 0 3px var(--mustard-soft);}

.dl-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;}
@media (max-width:760px){ .dl-grid{grid-template-columns:1fr;} }
.dl-line{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:8px 0;border-top:1px solid var(--line);font-size:13px;}

.dl-timer{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.5fr) minmax(0,0.9fr) auto auto auto;gap:8px;align-items:center;margin-bottom:6px;}
@media (max-width:900px){ .dl-timer{grid-template-columns:1fr 1fr;} }
.dl-clock{font-family:var(--font-display);font-size:26px;font-weight:300;letter-spacing:-0.02em;font-variant-numeric:tabular-nums;text-align:right;min-width:100px;}
.dl-timer .btn.on{background:var(--mustard);color:var(--paper);border-color:var(--mustard);}
.dl-day{display:flex;justify-content:space-between;align-items:baseline;margin:16px 0 2px;font-size:10.5px;font-weight:500;letter-spacing:0.12em;text-transform:uppercase;color:var(--ink-soft);}

.dl-co-line{display:grid;grid-template-columns:minmax(0,1fr) 116px 100px 100px auto;gap:6px;margin-bottom:6px;}
@media (max-width:760px){ .dl-co-line{grid-template-columns:1fr 1fr;} }

/* Phone pass (2026-10-08): the timer's pairs never grow past the screen. */
@media (max-width:900px){
  .dl-timer{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .dl-timer > *{min-width:0;}
}
/* On a phone the engagement and what is being worked on take a line each,
   so neither is cut off; milestone and kind pair beneath them. */
@media (max-width:640px){
  .dl-timer{grid-auto-flow:row dense;}
  #tm-order, #tm-desc{grid-column:1 / -1;}
  .dl-timer > .btn.ghost{grid-column:1 / -1;}
}

/* Change orders: hairline rows, the reference in the accent, its terms
   beneath, the money and its state at the right. On an engagement's page and
   on a project's Change orders tab alike. */
.dl-co{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:20px;padding:12px 0;border-top:1px solid var(--line);}
.rh + #engagement-change-orders > .dl-co:first-child{border-top:0;}
.dl-co-main .lb{margin-right:6px;}
.dl-co-main .sec{margin-top:2px;}
.dl-co-side{text-align:right;}
.dl-co-acts{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:8px;}
.dl-co-none{margin:6px 0 0;}
.dl-accept-modal .sub-text + .sub-text{margin-top:8px;}

/* The delivery list and an engagement's page in the two Physare themes: a
   progress mark is a hairline, a status is a label, never a pill. */
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-progress{height:2px;background:var(--line);}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-progress > div{height:2px;}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-kpi-label{font-size:11.52px;color:var(--text-muted);}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-kpi-value{font-size:24px;letter-spacing:-0.015em;}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-burn{height:2px;background:var(--line);}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-burn-fill{background:var(--ink);}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-dot.now{box-shadow:none;}

/* Area 5a: the engagement page's head (the client and proposal as a lede with
   the status as a label word; Log time and Add milestone as text links, New
   change order the button), milestone names in the reading size, square
   marks, the burn's legend in the supporting size, Time's day heads as
   labels. */
.dl-lede{margin:0;font-size:17px;color:var(--ink-soft);display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px;}
.dl-head{align-items:center;margin-bottom:22px;}
.dl-head-acts{display:flex;align-items:center;flex-wrap:wrap;gap:10px 22px;}
.dl-ms-actions{align-items:center;gap:10px 18px;}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-ms{padding:14px 0;}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-ms-name{font-size:17px;font-weight:300;}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-tag{font-size:11.52px;letter-spacing:0.12em;margin-left:8px;}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-dot{width:8px;height:8px;border-radius:0;margin-top:8px;}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-line{font-size:14.4px;padding:10px 0;}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-burn-legend{font-size:14.4px;color:var(--ink-soft);margin:10px 0 8px;}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-kpis{gap:20px 24px;margin:8px 0 22px;}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-grid{gap:0 40px;}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-day{font-size:11.52px;color:var(--text-muted);}
html:is([data-theme="plasmodium"],[data-theme="oat"]) .dl-timer .btn.on{background:transparent;color:var(--mustard);}
