/* File: tadaysWeb/src/tasks/features/tasks/duplicate/duplicate.css */
/* DUPLICATE -- the Duplicate / Complete & Repeat dialog (duplicate.js):
   the Where chips, its month grid, the "More" section, and the old
   estimate stepper that only this dialog still draws.
   Shared panel chrome comes from common/dialog.css. */

.dup-panel { width: 380px; max-height: 88vh; overflow-y: auto; }

.detail-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.color-grid-d { display: flex; flex-wrap: wrap; gap: 6px; width: 174px; flex: 0 0 auto; }
.color-grid-d.wide { width: 100%; }

/* ---- Where: chips ---- */

.where-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.chip {
  font: inherit; font-size: 11px; padding: 5px 10px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-alt); color: var(--text-muted); white-space: nowrap;
}
.chip:hover { color: var(--text); }
.chip:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.chip.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.chip-cal { padding: 5px 9px; display: flex; align-items: center; }
.chip-cal i { font-size: 12px; }

.dup-cal { border: 1px solid var(--border); border-radius: 14px; padding: 10px; margin-bottom: 12px; }
.mcell.msel { background: var(--text); color: var(--surface); border-color: var(--text); }
.mcell.msel .mdot { background: var(--surface); }

/* ---- More ---- */

.more-toggle {
  width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: 11px; color: var(--text-muted);
  background: transparent; border: none; border-top: 1px solid var(--border);
  padding: 8px 0 4px; display: flex; align-items: center; gap: 4px;
}
.more-toggle:hover { color: var(--text); }
.more-toggle i { font-size: 13px; }
.dup-more { padding-top: 6px; }
.dup-more .note-wrap { width: 100%; }
.dup-check { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text); cursor: pointer; margin-bottom: 7px; }
.dup-subs { border: 1px solid var(--border); border-radius: 12px; padding: 6px 9px; max-height: 110px; overflow-y: auto; }
.dup-sub { font-size: 11px; color: var(--text); padding: 2px 0; }
.dup-sub.done { color: var(--text-muted); text-decoration: line-through; }

#dupNote {
  width: 100%; font: inherit; font-size: 12px; line-height: 1.45;
  padding: 8px 10px; resize: none;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-alt); color: var(--text);
}
#dupNote:focus { outline: none; border-color: var(--text-muted); background: var(--surface); }

/* ---- the old estimate stepper (only this dialog draws it) ---- */

.clock-wrap { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.dur-line {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  width: 44px; font-size: 9px; color: var(--text-muted); height: 12px;
}
.dur-line.set { color: var(--text); font-size: 10px; }
.clock-btn {
  width: 44px; height: 44px; flex: 0 0 auto; cursor: pointer;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface-alt); color: var(--text); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  user-select: none;
}
.clock-btn:hover { border-color: var(--text-muted); }
.clock-btn.pressing { border-color: var(--text); }
.clock-btn.maxed { color: var(--text-muted); border-style: dashed; background: transparent; }

#dupDurClear {
  appearance: none; -webkit-appearance: none;
  background: none; border: none; box-shadow: none; outline: none;
  padding: 0 1px; margin: 0; line-height: 1;
  font-size: 9px; color: var(--text-muted); cursor: pointer;
}
#dupDurClear:hover { color: #c0392b; }
