/**
 * todo-panel.css — the floating "Todo și alarme" panel (todo-panel.js; user, 21.10.2026, AGENTMOB D-082): over the
 * thread, in the page's palette (rag-ai.css variables, light and dark) and the menu's look (bands, cards, VOGO blue).
 * Laptop: the window's whole height against the right edge; phone: the full screen (user, 21.10.2026).
 * @file_version 1.0.7 (10.11.2026: the microphone next to the add field, red while listening, user)
 */
.tdp { position: fixed; z-index: 40; display: flex; flex-direction: column; background: var(--panel); color: var(--fg); border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: -8px 0 28px rgba(0, 0, 0, .22); overflow: hidden; }
/* Phone: the full screen, the bar under the status bar's notch */
.tdp.tdp--phone { border-left: 0; box-shadow: none; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); box-sizing: border-box; }
.tdp-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--vogo-icon-blue); color: #fff; }
.tdp-name { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: .3px; }
.tdp-bar .tdp-icon { color: #fff; border-color: rgba(255, 255, 255, .45); }
.tdp-bar .tdp-icon:hover { background: rgba(255, 255, 255, .15); }
.tdp-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; font-size: 16px; color: var(--vogo-icon-blue); background: transparent; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; text-decoration: none; }
.tdp-icon:hover { border-color: var(--acc); }
.tdp-add { display: flex; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tdp-field { position: relative; flex: 1; min-width: 0; display: flex; }
.tdp-clear { position: absolute; right: 4px; top: 3px; width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); background: transparent; border: 0; border-radius: 5px; cursor: pointer; }
.tdp-clear:hover { color: var(--fg); }
.tdp-new { flex: 1; min-width: 0; height: 34px; box-sizing: border-box; padding: 0 34px 0 10px; font: inherit; font-size: 15px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; }
.tdp-new:focus { outline: none; border-color: var(--acc); }
.tdp-mic[hidden] { display: none; }
.tdp-mic.listening { color: #fff; background: var(--off); border-color: var(--off); }
.tdp-note { padding: 6px 12px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
/* the anchors to the sections (user, 21.10.2026): a row of small buttons above the list */
.tdp-jump { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.tdp-jump:empty { display: none; }
.tdp-anchor { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; font: inherit; font-size: 13px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--vogo-icon-blue); background: transparent;
  border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.tdp-anchor:hover { border-color: var(--acc); }
/* The buttons on top are filters (user, 28.10.2026): the pressed one filled with VOGO blue; a second tap takes it off */
.tdp-anchor[aria-pressed="true"] { color: #fff; background: var(--vogo-icon-blue); border-color: var(--vogo-icon-blue); }
.tdp-anchor[aria-pressed="true"] .tdp-count { color: var(--vogo-icon-blue); background: #fff; }
/* What each filter hides: Urgențe alone; the interleaved list's alarms only; its todos only */
.tdp-lists[data-view="urgent"] .tdp-section[data-sec="list"] { display: none; }
.tdp-lists[data-view="alarms"] .tdp-section[data-sec="urgent"],
.tdp-lists[data-view="todo"] .tdp-section[data-sec="urgent"] { display: none; }
.tdp-lists[data-view="alarms"] .tdp-section[data-sec="list"] .tdp-row[data-code],
.tdp-lists[data-view="alarms"] .tdp-section[data-sec="list"] .tdp-scope { display: none; }
.tdp-lists[data-view="todo"] .tdp-section[data-sec="list"] .tdp-row.tdp-alarm { display: none; }
.tdp-lists { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 10px; position: relative; }
.tdp-section { margin-top: 8px; }
.tdp-head { padding: 4px 2px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--vogo-icon-blue); }
.tdp-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px; text-align: center; color: #fff; background: var(--vogo-icon-blue); }
.tdp-empty { padding: 6px 2px; font-size: 14px; color: var(--muted); }
.tdp-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.tdp-row.late .tdp-meta { color: var(--off); }
.tdp-row.off { opacity: .55; }
.tdp-main { flex: 1; min-width: 0; }
.tdp-title { font-size: 15px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tdp-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tdp-done { flex: none; width: 22px; height: 22px; padding: 0; border: 2px solid var(--muted); border-radius: 50%; background: transparent; cursor: pointer; }
.tdp-done:hover { border-color: var(--acc); background: var(--acc); }
.tdp-alarm-icon { flex: none; width: 22px; text-align: center; color: var(--vogo-icon-blue); font-size: 16px; }
/* The top bar's button (index.php), next to the theme switch */
.bar-btn .bi { font-size: 18px; }

/* The calendar of a todo's due date (user, 21.10.2026): an invisible date field next to its button; only its
   picker shows. */
/* The date field fills the calendar button, invisible: the tap lands on it and the phone opens its calendar;
   the picker indicator stretched over it does the same on a desktop (user, 29.10.2026) */
.tdp-datebtn { position: relative; overflow: hidden; }
.tdp-datebtn .tdp-date-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0; font-size: 16px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.tdp-datebtn .tdp-date-input::-webkit-calendar-picker-indicator { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }

/* The Todo section's switch (KANBAN D-020 D6a): outlined like the panel's anchors; the pressed one with the accent
   outline on a faint accent fill, not a solid block. The # shared with the conversation in bold. */
.tdp-scope { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 8px; }
.tdp-scope-btn { min-height: 28px; padding: 3px 10px; font: inherit; font-size: 12px; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.tdp-scope-btn:hover { border-color: var(--acc); }
.tdp-scope-btn[aria-pressed="true"] { color: var(--acc); border-color: var(--acc); background: rgba(15, 108, 189, .08);
  font-weight: 600; }
.tdp-scope-note { font-size: 12px; color: var(--muted); }
.tdp-mark-hit { font-weight: 700; }
