 
#desk-handled { display: none !important; }
.bd-logout-btn, .bd-header-icon[onclick*="openAdminModal"] { display: none !important; }
.tour-badge { position: fixed; right: 10px; bottom: 10px; z-index: 2147483000; background: #1f2937;
  color: #fff; font: 600 11px/1 system-ui, -apple-system, sans-serif; padding: 6px 9px; border-radius: 999px;
  opacity: .88; pointer-events: none; }
.tour-toast { position: fixed; left: 50%; bottom: 46px; transform: translateX(-50%); z-index: 2147483001;
  background: #1f2937; color: #fff; font: 500 14px/1.35 system-ui, -apple-system, sans-serif;
  padding: 10px 14px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.25); max-width: 92vw;
  text-align: center; transition: opacity .25s; }

 
html.tour-framed #documentViewerModal, html.tour-framed .modal, html.tour-framed #reassignPatientModal {
  top: var(--tv-top, 0px) !important; height: var(--tv-h, 100vh) !important; bottom: auto !important; }
html.tour-framed .viewer-modal-content, html.tour-framed .document-viewer-modal-content {
  height: calc(var(--tv-h, 100vh) - 40px) !important; }
@media (max-width: 768px) {
  html.tour-framed .viewer-modal-content, html.tour-framed .document-viewer-modal-content {
    height: var(--tv-h, 100vh) !important; } }
 
@media (max-width: 768px) {
  #documentViewerModal .viewer-sidebar, #documentViewerModal .viewer-breadcrumb { display: none !important; }
  #documentViewerModal .viewer-body { flex: 1 1 auto !important; min-height: 0 !important; }
  #documentViewerModal .viewer-content { flex: 1 1 auto !important; min-height: 60vh !important; }
  #documentViewerModal .pdf-viewer { width: 100% !important; height: 100% !important; min-height: 60vh !important; } }
html.tour-framed .pdf-help-panel { max-height: calc(var(--tv-h, 100vh) * .65) !important; }
html.tour-framed .search-tips-panel { max-height: calc(var(--tv-h, 100vh) * .7) !important; }
html.tour-framed .modal-body { max-height: calc(var(--tv-h, 100vh) * .8) !important; }
html.tour-framed .matter-browser { height: calc(var(--tv-h, 100vh) - 200px) !important; }
html.tour-framed #matter-list { height: calc(var(--tv-h, 100vh) - 350px) !important; }
html.tour-framed body { min-height: 0 !important; }
 
@media (max-width: 600px) {
   
  .recon-table th, .recon-table td, #dash-list th, #dash-list td { padding-left: 6px !important; padding-right: 6px !important; }
  .dash-box-value .dash-box-when { display: block; margin: 2px 0 0; }
  .dash-trio { grid-template-columns: 1fr !important; gap: 6px !important; }
  .dash-trio > div { display: block; min-width: 0; }
  .dash-trio-label { white-space: nowrap; }
  .dash-trio-value { display: block; overflow-wrap: anywhere; }
  .documents-table col:nth-child(1), .documents-table col:nth-child(4), .documents-table col:nth-child(6),
  .documents-table th:nth-child(1), .documents-table td:nth-child(1),
  .documents-table th:nth-child(4), .documents-table td:nth-child(4),
  .documents-table th:nth-child(6), .documents-table td:nth-child(6) { display: none !important; }
  .documents-table { table-layout: auto !important; width: 100% !important; }
  .documents-table td, .documents-table th { white-space: normal !important; overflow-wrap: anywhere; }
}
 
.recon-tab-card.tour-wide::before { content: "Wide table: swipe sideways for the other columns.";
  display: block; position: sticky; left: 0; font: 500 12px/1.3 system-ui, sans-serif; color: #6b7280;
  margin: 0 0 6px; }
@media (min-width: 761px) { .recon-tab-card.tour-wide::before { display: none; } }
 
.tour-spot { outline: 3px solid #f59e0b !important; outline-offset: 2px; border-radius: 6px;
  animation: tour-spot 1.4s ease-in-out 3; }
tr.tour-spot > td { background: #fef3c7 !important; }
@keyframes tour-spot { 50% { outline-color: rgba(245, 158, 11, .25); } }
html.tour-framed .tour-badge { top: calc(var(--tv-top, 0px) + var(--tv-h, 100vh) - 38px); bottom: auto; }
html.tour-framed .tour-toast { top: calc(var(--tv-top, 0px) + var(--tv-h, 100vh) - 100px); bottom: auto; }
