/* QDoctor V1.25 · feedback and announcement visibility */
/* V1.26: feedback lives inside the authenticated Doctor sidebar, never in the global header.
   The dashboard has a purpose-built sidebar, other pages use the unified sidebar. */
.qd113-doctor-nav a.qd125-doctor-feedback-pulse,
.qduni-sidebar .qduni-nav-link.qd125-doctor-feedback-pulse,
.qduni-mobile-menu .qduni-nav-link.qd125-doctor-feedback-pulse,
.qd114-mobile-menu a.qd125-doctor-feedback-pulse {
 display:flex!important;align-items:center!important;gap:10px!important;
 color:#fff!important;-webkit-text-fill-color:#fff!important;
 background:#075985!important;border:2px solid #72b7ed!important;
 border-radius:11px!important;min-height:43px!important;
 text-decoration:none!important;font-weight:800!important;opacity:1!important;
 box-shadow:0 0 0 0 rgba(14,165,233,.5);
 animation:qd125FeedbackPulse 2.7s ease-in-out infinite;
}
.qd113-doctor-nav a.qd125-doctor-feedback-pulse span,
.qduni-sidebar .qd125-doctor-feedback-pulse span,
.qduni-mobile-menu .qd125-doctor-feedback-pulse span,
.qd114-mobile-menu a.qd125-doctor-feedback-pulse span {
 color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;
}
:is(.qd113-doctor-nav,.qduni-sidebar,.qduni-mobile-menu,.qd114-mobile-menu) a.qd125-doctor-feedback-pulse:hover,
:is(.qd113-doctor-nav,.qduni-sidebar,.qduni-mobile-menu,.qd114-mobile-menu) a.qd125-doctor-feedback-pulse:focus-visible {
 background:#0c4a6e!important;outline:3px solid #facc15!important;outline-offset:2px!important;
}
@keyframes qd125FeedbackPulse {0%,100%{box-shadow:0 0 0 0 rgba(14,165,233,.48);transform:scale(1)}45%{box-shadow:0 0 0 6px rgba(14,165,233,.10);transform:scale(1.035)}}
@media(prefers-reduced-motion:reduce){:is(.qd113-doctor-nav,.qduni-sidebar,.qduni-mobile-menu,.qd114-mobile-menu) a.qd125-doctor-feedback-pulse{animation:none!important;transform:none!important}}
/* Announcement light cards keep dark labels and legible inputs regardless of old theme. */
body:has(form input[name="action"][value="create"]) section.card form label,
body:has(form input[name="action"][value="edit"]) section.card form label{color:#12263d!important;-webkit-text-fill-color:#12263d!important;opacity:1!important;font-weight:700!important}
body:has(form input[name="action"][value="create"]) section.card form input:not([type="checkbox"]):not([type="hidden"]),
body:has(form input[name="action"][value="create"]) section.card form textarea,
body:has(form input[name="action"][value="create"]) section.card form select,
body:has(form input[name="action"][value="edit"]) section.card form input:not([type="checkbox"]):not([type="hidden"]),
body:has(form input[name="action"][value="edit"]) section.card form textarea,
body:has(form input[name="action"][value="edit"]) section.card form select{background:#fff!important;color:#152238!important;-webkit-text-fill-color:#152238!important;border:2px solid #64748b!important;opacity:1!important}
/* New feedback management page is readable regardless of global portal theme */
.qd125-feedback-panel{background:#fff!important;color:#0f172a!important;max-width:1100px;margin:20px auto;padding:20px;border-radius:14px}
.qd125-feedback-panel h1,.qd125-feedback-panel h2,.qd125-feedback-panel p,.qd125-feedback-panel small,.qd125-feedback-panel dt,.qd125-feedback-panel dd{color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;opacity:1!important}
.qd125-feedback-panel article{border-bottom:1px solid #94a3b8;padding:16px 0;overflow-wrap:anywhere}
.qd125-feedback-panel .qd125-feedback-person{background:#f1f5f9;color:#0f172a;border-radius:8px;padding:10px;margin:8px 0}
.qd125-feedback-panel .qd125-feedback-person span{display:inline-block;margin-right:16px}
.qd125-feedback-panel .qd125-feedback-delete{background:#991b1b!important;color:#fff!important;border:0;border-radius:8px;padding:9px 14px;font-weight:700;cursor:pointer}
@media(max-width:600px){.qd125-feedback-panel{padding:12px;margin:8px}.qd125-feedback-panel .qd125-feedback-person span{display:block;margin:4px 0}}

/* QD125 feedback delete control, including hover, focus and confirmation text */
.qd125-feedback-panel details,.qd125-feedback-panel details summary,
.qd125-feedback-panel details form,.qd125-feedback-panel details label,
.qd125-feedback-panel details strong {color:#10253f!important;-webkit-text-fill-color:#10253f!important;opacity:1!important}
.qd125-feedback-panel input[name="confirmation"] {background:#fff!important;color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;border:2px solid #334155!important;opacity:1!important;padding:10px!important}
.qd125-feedback-panel .qd125-feedback-delete,
.qd125-feedback-panel .qd125-feedback-delete:hover,
.qd125-feedback-panel .qd125-feedback-delete:focus-visible {
 background:#b91c1c!important;color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;border:2px solid #7f1d1d!important;
}
.qd125-feedback-panel .qd125-feedback-delete:hover {background:#7f1d1d!important;box-shadow:0 0 0 3px rgba(185,28,28,.24)!important}
.qd125-feedback-panel .qd125-feedback-delete:focus-visible {outline:3px solid #fbbf24!important;outline-offset:2px}
/* Doctor portal ANNOUNCEMENT DISPLAY, distinct from the admin edit form. */
.qd-announcement, .qd-announcement article, .qd-announcement .qd-announcement-body,
.qd-announcement .qd-announcement-title, .qd-announcement p, .qd-announcement strong,
.qd-announcement h2,.qd-announcement h3,.qd-announcement small,
.qd-announcement time,.qd-announcement .qd-announce-message {
 color:#172b46!important;-webkit-text-fill-color:#172b46!important;opacity:1!important;text-shadow:none!important;
}
.qd-announcement .qd-announcement-body,.qd-announcement .qd-announce-message {font-weight:500!important;line-height:1.55!important}

/* QDoctor V1.26 six-fix: Doctor feedback stays visible just below Dashboard and is accessible by keyboard/mobile scroll. */
.qd113-doctor-sidebar .qd113-doctor-nav,.qduni-sidebar .qduni-nav{overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;}
.qd113-doctor-nav a.qd125-doctor-feedback-pulse,.qduni-sidebar a.qd125-doctor-feedback-pulse,.qduni-mobile-menu a.qd125-doctor-feedback-pulse{display:flex!important;visibility:visible!important;opacity:1!important;min-height:42px!important;}

/* V1.26: feedback at the top of Doctor sidebar, never hidden by overflow. */
body.qd113-doctor-theme .qd113-doctor-nav a[data-qd126-feedback-location="sidebar"],
.qduni-shell .qduni-sidebar a.qd125-doctor-feedback-pulse {display:flex!important;visibility:visible!important;opacity:1!important;color:#fff!important;-webkit-text-fill-color:#fff!important}

/* QDoctor V1.26 — Doctor sidebar: vertical menu scrolling only.
   Prevent Chrome from resolving overflow-x:visible to auto when overflow-y:auto.
   Long item labels wrap instead of creating horizontal scrollbars. */
body.qd113-doctor-theme .qd113-doctor-sidebar,
body.qd-unified-dashboard .qduni-shell .qduni-sidebar {
  min-width:0!important;max-width:100%!important;overflow-x:clip!important;
}
body.qd113-doctor-theme .qd113-doctor-sidebar .qd113-doctor-nav,
body.qd-unified-dashboard .qduni-shell .qduni-sidebar .qduni-nav {
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
  min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
}
body.qd113-doctor-theme .qd113-doctor-nav a,
body.qd-unified-dashboard .qduni-nav-group,
body.qd-unified-dashboard .qduni-nav a {
  box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
}
body.qd113-doctor-theme .qd113-doctor-nav a span:last-child,
body.qd-unified-dashboard .qduni-nav a span:last-child {
  min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
}
body.qd113-doctor-theme .qd113-doctor-nav::-webkit-scrollbar:horizontal,
body.qd-unified-dashboard .qduni-nav::-webkit-scrollbar:horizontal {height:0!important;display:none!important}
/* Shared Doctor non-dashboard sidebar brand. Dashboard itself already uses OPD-style DOC. */
body.qd-unified-dashboard .qduni-sidebar .qduni-sidebrand.qd126-doctor-opd-brand {
  display:flex!important;flex-direction:row!important;text-align:left!important;align-items:center!important;
  gap:9px!important;padding:0 0 9px!important;min-width:0!important;max-width:100%!important;
}
body.qd-unified-dashboard .qduni-sidebar .qd126-doctor-brand-icon {
  display:grid!important;place-items:center!important;flex:0 0 39px!important;
  width:39px!important;height:39px!important;border-radius:11px!important;font-size:25px!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;background:linear-gradient(145deg,#ff0b72,#c6004d)!important;
}
body.qd-unified-dashboard .qduni-sidebar .qd126-doctor-brand-words {
  min-width:0!important;display:flex!important;flex-direction:column!important;gap:2px!important;
}
body.qd-unified-dashboard .qduni-sidebar .qd126-doctor-brand-words strong {
  font-size:17px!important;line-height:1.12!important;letter-spacing:-.02em!important;
  white-space:normal!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
}
body.qd-unified-dashboard .qduni-sidebar .qd126-doctor-brand-words b {
  color:#ff3287!important;-webkit-text-fill-color:#ff3287!important;
}
body.qd-unified-dashboard .qduni-sidebar .qd126-doctor-brand-words small {
  color:#bed9fe!important;-webkit-text-fill-color:#bed9fe!important;font-size:11px!important;
}
