/* The shared controls (views/controls.js). The calendar (mock 2): the field's name, pills «Сегодня» / «Без срока»,
   the month with small arrows, the days of this month only (round, 32 px; the chosen one in the brand colour, today in
   a thin ring), «Отмена» and «Сохранить» at the foot. */
.popover.dpk { width: 280px; }
.dpk-title { padding: 8px 8px 6px; color: var(--text); font-size: var(--fs-body); font-weight: 600; }
.dpk-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 8px; }
.dpk-pills button { height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-full); background: var(--hover); color: var(--text-2); font: inherit; font-size: var(--fs-body); cursor: pointer; white-space: nowrap; }
.dpk-pills button:active { background: var(--press); }
.dpk-pills button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.dpk-head { display: flex; align-items: center; gap: 2px; padding: 2px 2px 4px 8px; font-size: var(--fs-body); }
.dpk-head b { font-weight: 550; }
.dpk-head .spacer { flex: 1; }
.dpk-head .btn.ic { width: 28px; height: 28px; padding: 0; justify-content: center; border-radius: var(--r-full); color: var(--icon); }
.dpk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 0 2px; }
.dpk-grid > span { padding: 4px 0; color: var(--text-4); font-size: var(--fs-caption); text-align: center; }
.dpk-grid button { height: 32px; padding: 0; border: 0; border-radius: var(--r-full); background: transparent; color: var(--text); font: inherit; font-size: var(--fs-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.dpk-grid button:active { background: var(--press); }
.dpk-grid button.today { box-shadow: inset 0 0 0 1px var(--border); }
.dpk-grid button.on { background: var(--accent); color: var(--on-accent); font-weight: 550; }
@media (hover: hover) {
  .dpk-pills button:not([aria-pressed="true"]):hover, .dpk-grid button:not(.on):hover { background: var(--hover); }
  .dpk-pills button:not([aria-pressed="true"]):hover { background: var(--press); }
}
.dpk-foot { display: flex; align-items: center; gap: 8px; padding: 10px 6px 6px; }
.dpk-foot .spacer { flex: 1; }
.dpk-foot .btn { height: 32px; padding: 0 14px; }
