/* LAMOI Portal v0.47.11 - mobile polish, chat launcher, login/header/footer, report controls */

/* Public header: keep brand identity visible on phones instead of a large empty gap. */
.mobile-header-brand,.admin-mobile-brand{display:none}
@media (max-width:600px){
  .site-header .header-inner{position:relative;min-height:82px;gap:10px}
  .site-header .brand-copy{display:none!important}
  .mobile-header-brand{display:grid;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(46vw,190px);text-align:center;line-height:1.1;pointer-events:none}
  .mobile-header-brand strong{font-size:16px;letter-spacing:.08em;color:#18351f}
  .mobile-header-brand small{margin-top:4px;font-size:8px;line-height:1.25;letter-spacing:.06em;color:#6c786d}
  .site-header .brand-mark{width:46px;height:46px}
  .site-header .main-nav{margin-left:auto}
}

/* Home/login typography alignment on phone. */
@media (max-width:600px){
  .hero .eyebrow,.hero .managed-account-note,.auth-card-head,.auth-managed-note{text-align:center}
  .hero .eyebrow{max-width:100%;margin-left:auto;margin-right:auto;line-height:1.55}
  .managed-account-note{display:block!important;max-width:none!important;width:100%}
  .auth-card-head .eyebrow{margin-left:auto;margin-right:auto}
  .auth-card-head h2,.auth-card-head p{width:100%;text-align:center}
  .auth-managed-note{display:block;width:100%;margin-left:auto;margin-right:auto}
  .auth-check{justify-content:flex-start;gap:12px;padding:8px 2px}
  .auth-check input[type=checkbox]{width:24px!important;height:24px!important;flex:0 0 24px;accent-color:var(--brand-dark);margin:0}
}

/* Footer: a centered, branded closing block. */
.site-footer{background:linear-gradient(180deg,#fff,#f3f8f1);padding:28px 0 32px}
.site-footer-inner{text-align:center}
.site-footer-inner>strong{display:block;color:var(--brand-dark);font-size:18px;letter-spacing:.08em}
.site-footer-inner>span{display:block;margin-top:2px;color:#315b38;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.site-footer-inner>p{max-width:780px;margin:12px auto 0;color:var(--muted);line-height:1.65}
@media(max-width:600px){.site-footer{padding:24px 0 30px}.site-footer-inner>p{font-size:12px;text-align:center}}

/* Admin top bar: fill the visual dead-space on phone with LAMOI identity. */
@media(max-width:700px){
  .admin-topbar{position:sticky;min-height:82px;padding:9px 14px}
  .admin-mobile-brand{display:grid;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:165px;text-align:center;line-height:1.05;pointer-events:none}
  .admin-mobile-brand strong{font-size:15px;letter-spacing:.08em;color:#18351f}
  .admin-mobile-brand small{margin-top:4px;font-size:7.5px;line-height:1.3;letter-spacing:.055em;color:#6f7b70}
  .admin-topbar-left>div:not(.admin-mobile-brand){max-width:115px}
}

/* Clinical search suggestion chips are labels only, not actions. */
.clinical-hint-chip{display:inline-flex;align-items:center;min-height:30px;padding:5px 11px;border:1px solid #d9e5d7;border-radius:999px;background:#f8fbf7;color:#637065;font-size:11px;cursor:default;user-select:none}

/* Mobile report history navigation: balanced grid, no oversized third-row button. */
@media(max-width:700px){
  .report-history-nav-actions,.customer-report-history-inner>div{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;width:100%}
  .report-history-nav-actions>a,.customer-report-history-inner>div>a{width:100%;min-width:0!important;white-space:normal;text-align:center;justify-content:center}
  .report-history-nav-actions>a:last-child:nth-child(3),.customer-report-history-inner>div>a:last-child:nth-child(3){grid-column:1/-1}
  .report-history-nav-card,.customer-report-history-inner{align-items:stretch!important}
}

/* PDF viewer can be collapsed; improve controls on mobile. */
.pdf-viewer-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
[data-pdf-viewer-body][hidden]{display:none!important}
@media(max-width:700px){
  .pdf-viewer-head{align-items:flex-start!important;gap:12px}
  .pdf-viewer-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .pdf-viewer-actions>*{width:100%;justify-content:center}
  .pdf-inline-frame{min-height:360px!important;height:62vh!important}
}

/* Mobile chatbot launcher: smaller, no speech bubble, above sticky compare actions. It remains draggable. */
@media(max-width:600px){
  .lamoi-chat-widget{right:12px!important;bottom:112px!important;top:auto;left:auto}
  .lamoi-chat-launcher{width:54px!important;height:54px!important;border-width:3px!important;border-radius:18px!important;touch-action:none}
  .lamoi-chat-launcher img{width:36px!important;height:36px!important}
  .lamoi-chat-callout{display:none!important}
  .lamoi-chat-pulse{width:13px;height:13px;border-width:2px}
  .lamoi-chat-panel{inset:0!important;width:100%!important;height:100dvh!important;max-width:none!important;max-height:none!important}
  .clinical-compare-bar,.customer-compare-toolbar{z-index:80}
}
