/* File: tadaysWeb/src/tasks/features/tasks/taskbox/datepicker.css */
/* DATEPICKER -- the move picker under the task box's status chip:
   Tasks · Far Out · Date along the top, the month, the period row when
   periods are on, and the same cancel and check capsule as the task box
   (.tb-cap / .tb-btn from taskbox.css). The chosen day fills with the
   task's color (--task-color, set on the picker by datepicker.js). */

.dp-pop {
  position: absolute; z-index: 60; width: 288px; box-sizing: border-box;
  padding: 12px; border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.dp-pop:focus { outline: none; }

/* ---- segmented choices: where, and period ---- */

.dp-seg {
  display: flex; gap: 2px; padding: 3px;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-alt);
}
.dp-periods { margin-top: 10px; }
.dp-opt {
  flex: 1; height: 30px; padding: 0 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border: none; border-radius: 999px; background: transparent;
  font: inherit; font-size: 12px; color: var(--text-muted); white-space: nowrap;
}
.dp-opt i { font-size: 14px; line-height: 1; }
.dp-opt:hover { color: var(--text); }
.dp-opt.on {
  color: var(--text);
  background: var(--surface);
  background: color-mix(in srgb, var(--task-color) 16%, transparent);
}
.dp-opt:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }

/* ---- month ---- */

.dp-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 12px 2px 6px; font-size: 13px; font-weight: 500;
}
.dp-nav {
  width: 28px; height: 28px; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; background: transparent; color: var(--text-muted);
}
.dp-nav:hover { background: var(--surface-alt); color: var(--text); }
.dp-nav:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }

.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { height: 18px; line-height: 18px; text-align: center; font-size: 10px; color: var(--text-muted); }
.dp-day {
  position: relative; justify-self: center;
  width: 32px; height: 32px; padding: 0; cursor: pointer;
  border: none; border-radius: 50%; background: transparent;
  font: inherit; font-size: 12px; color: var(--text);
}
.dp-day:hover { background: var(--surface-alt); }
.dp-day:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.dp-day.out { color: var(--text-muted); }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--text-muted); }
.dp-day.sel { background: var(--task-color); color: #fff; box-shadow: none; }
.dp-day.busy::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--text-muted);
}
.dp-day.sel.busy::after { background: rgba(255, 255, 255, .85); }

/* ---- Tasks / Far Out explanation ---- */

.dp-explain {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 8px; text-align: center; font-size: 12px; color: var(--text-muted);
}
.dp-explain i { font-size: 24px; line-height: 1; }
.dp-explain strong { font-size: 13px; font-weight: 500; color: var(--text); }

/* ---- footer: what the check will do, then cancel / check ---- */

.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.dp-summary {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; color: var(--text-muted);
}
