/* todos/module.css: the To Do tab, on top of core.css. */

.task-row{display:flex;align-items:center;gap:10px;padding:9px 4px;border-bottom:1px solid var(--line);}
.task-row:last-child{border-bottom:none;}
.task-title{font-size:13px;font-weight:500;}
.task-meta{font-size:11px;color:var(--ink-soft);margin-top:1px;}
.task-meta.overdue{color:var(--brick);}

/* ---------- multi-step to dos ---------- */

.td-multi-toggle{display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer;margin:2px 0 10px;}
.td-multi-toggle input{width:16px;height:16px;}

.td-steps{display:flex;flex-direction:column;gap:6px;}
.td-step{display:flex;align-items:center;gap:6px;}
.td-step input[type=text]{flex:1;min-width:0;}
/* A completed step is a record of something that happened, so it cannot be
   renamed, moved or removed from the form. The server refuses all three; the
   disabled controls mean the refusal is never reached. */
.td-step.done input[type=text]{color:var(--text-muted);text-decoration:line-through;}
.td-step-n{font-family:var(--font-mono);font-size:11px;color:var(--text-muted);width:14px;flex:0 0 auto;text-align:right;}
.td-step .btn.small{flex:0 0 auto;padding:6px 8px;line-height:1;}

/* ONE fixed slot for whichever marker a row carries. The ring is 32px and a
   checkbox 17px, so without a shared slot a multi-step row's title sat 15px
   right of a single-step one and the list read as ragged. The same
   fixed-width-column lesson the Inventory and Manage Users grids already
   carry: measure the left edge per row, do not eyeball it. */
.td-mark{flex:0 0 auto;width:32px;margin-right:10px;display:inline-flex;
  align-items:center;justify-content:center;}
.td-mark input[type=checkbox]{width:17px;height:17px;margin:0;}
.task-row .td-mark{cursor:pointer;}
.todo-ring{display:block;}

/* The track in the progress dialog: what is done, what is next, what is left. */
.td-step-track{display:flex;flex-direction:column;border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;margin-top:12px;}
.td-track-row{display:flex;gap:10px;padding:9px 12px;border-bottom:1px solid var(--line);font-size:13px;}
.td-track-row:last-child{border-bottom:none;}
.td-track-row.current{background:var(--sage-soft);}
.td-track-row.done .td-track-body > span:first-child{color:var(--text-muted);text-decoration:line-through;}
.td-track-mark{flex:0 0 auto;color:var(--text-muted);line-height:1.4;}
.td-track-row.done .td-track-mark{color:var(--sage);}
.td-track-row.current .td-track-mark{color:var(--mustard);}
.td-track-body{display:flex;flex-direction:column;gap:1px;min-width:0;}

/* ---------- the client and project a to do is for ---------- */

/* On a row: the two as text links, quieter than the title, between it and the details. */
.td-links{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:0;row-gap:2px;margin-top:3px;}
.td-links .sec{margin-right:6px;}
.td-links .tl.sm{font-size:12px;color:var(--ink-soft);text-align:left;}
@media (hover:hover){ .td-links .tl:hover{color:var(--ink);} }
/* On the form: side by side, and a sentence where there is nothing to pick. */
.td-link-fields .td-project-none{margin:6px 0 0;min-height:22px;}

/* The calendar tint for this layer (the calendar module draws the grid). */
.cal-todos{background:var(--yellow-dot);color:#3A2E08;}

/* Phone pass (2026-10-08): a to do's title and details take the row's width,
   and its buttons go on a line beneath them, lined up with the title. They
   sat beside it and left the title 90px to wrap in. */
@media (max-width:760px){
  .task-row{flex-wrap:wrap;row-gap:6px;}
  .task-row > div[style*="flex:1"]{flex:1 1 calc(100% - 80px) !important;min-width:0;}
  .task-row > .btn{margin-left:auto;}
  .task-row > .btn ~ .btn{margin-left:0;}
  .task-title{font-size:15px;}
  .task-meta{font-size:13px;}
  .td-mark{min-height:44px;}
  /* The client and project links take a thumb; the two pickers stack, so a name is not cut off. */
  .td-links .tl.sm{display:inline-flex;align-items:center;min-height:44px;padding:0;font-size:14px;border-bottom:0;
    text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:var(--line-strong);}
  .td-link-fields{grid-template-columns:minmax(0,1fr);gap:0;}
  .td-mark input[type=checkbox]{width:22px;height:22px;}
}

/* Area 5a: a to do's steps in the two Physare themes: hairline rows, square. */
html:is([data-theme="plasmodium"],[data-theme="oat"]) .td-step-track{border-radius:0;border-width:1px 0;}
