/* Dentigram doctor focus (3.41) — see doctor-focus.js. Presentation only. */

/* ── Session: notes, reminders and tasks are not part of recording a session ── */
#mo-quickflow .dtx-pay-choices,
#mo-quickflow .dtx-pay:not(:has(.dtx-pay-set)) .dtx-pay-when,
#mo-quickflow .dtx-pay:not(:has(.dtx-pay-set)) .dtx-hint { display: none !important; }
#mo-quickflow .qf-postsave-quick[onclick="QF.openExtraNote()"],
#mo-quickflow .qf-postsave-more-grid button[onclick="QF.openPostWA()"],
#mo-quickflow .qf-postsave-more-grid button[onclick="QF.openStaffReminder()"],
#mo-quickflow .qf-note-draft-hint { display: none !important; }
#mo-quickflow .qf-postsave-essentials { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

/* ── One top bar on every screen: ☰ · back · title · 📝 · 🔔 · ↶ ── */
.dgf-unified #app .topbar .topbar-search,
.dgf-unified #app .topbar-actions .sync-chip,
.dgf-unified #app .topbar-actions .clinicpage-btn,
.dgf-unified #app .topbar-actions .signout-btn,
.dgf-unified #app .topbar-actions button[onclick="App.toggleLang()"],
.dgf-unified #app .topbar-actions button[onclick="App.toggleTheme()"],
.dgf-unified #app .topbar-actions button[onclick="App.openSettings()"] { display: none !important; }
.dgf-unified #app .topbar-actions .dgf-note-btn,
.dgf-unified #app .topbar-actions .bell-btn,
.dgf-unified #app .topbar #menu-toggle,
.dgf-unified #app .topbar-actions .undo-btn { display: inline-flex !important; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.dgf-unified #app .topbar-actions { gap: 6px; flex: none; }
.dgf-unified #app .topbar .topbar-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dgf-unified #app .topbar-actions .dgf-note-btn { font-size: 18px; }

/* ── 📝 hub sheet ── */
.dgf-hub .sf-panel > .sf-hint:first-of-type { margin-top: 6px; }
.dgf-hub .dgf-results { display: grid; gap: 6px; margin-top: 8px; }
.dgf-hub .dgf-results button,
.dgf-hub .dgf-picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: start; }
.dgf-hub .dgf-picked { min-height: 48px; padding: 6px 6px 6px 12px; padding-inline-start: 12px; border: 1px solid var(--teal-500, #339ba0); border-radius: 12px; background: var(--ink-50, #eff6f5); box-sizing: border-box; }
.dgf-hub .dgf-picked b, .dgf-hub .dgf-results b { font-size: 15px; }
.dgf-hub .dgf-picked small, .dgf-hub .dgf-results small { color: var(--ink-500, #617980); font-size: 12px; }
.dgf-hub .dgf-picked button { margin-inline-start: auto; }
.dgf-hub .dgf-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.dgf-hub .dgf-actions button { display: flex; align-items: center; gap: 8px; min-height: 56px; text-align: start; font-size: 14px; font-weight: 700; line-height: 1.4; }
.dgf-hub .dgf-actions button > span:first-child { font-size: 20px; flex: none; }
.dgf-hub .dgf-actions button[disabled] { opacity: .45; cursor: not-allowed; }
.dgf-hub .dgf-actions button:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 360px) { .dgf-hub .dgf-actions { grid-template-columns: 1fr; } .dgf-hub .dgf-actions button:last-child:nth-child(odd) { grid-column: auto; } }
body.theme-dark .dgf-hub .dgf-picked { background: rgba(255,255,255,.06); }

/* ── Smart Rx: quantity is optional ── */
.dgf-optional { font-weight: 500; color: var(--ink-500, #617980); font-size: .85em; margin-inline-start: 4px; }
/* The "calculated quantity" hint was squeezed inside the quantity stepper; show it under it. */
#rxp-overlay .rxf-stepper:has(.rx-smart-qty) { height: auto !important; grid-template-rows: 32px auto; }
#rxp-overlay .rxf-stepper .rx-smart-qty { grid-column: 1 / -1; margin: 0; border-radius: 0; border-top: 1px solid #d6e3e8; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; }
#rxp-overlay .rxf-stepper .rx-smart-qty button { height: 28px; min-height: 28px; padding: 2px 10px; border-radius: 999px; background: #0d5c7a; color: #fff; font-size: 11px; }
#rxp-overlay .rxf-core-fields > label { align-self: start; }
