/* Namespaced PWA UI. Clinical module styles and printing remain unchanged. */
.vv-pwa-link{display:inline-flex;align-items:center;min-height:44px;margin:8px 0;padding:10px 14px;border:1px solid #a9d1c8;border-radius:8px;color:#0f766e;background:#fff;text-decoration:none;font:700 14px/1.4 Arial,sans-serif}
.vv-pwa-link:focus-visible{outline:3px solid #e76f51;outline-offset:3px}
@media(max-width:700px){.layout .content{min-width:0;max-width:100%}.modal-compromisso-agenda-caixa{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto}}
@media print{.vv-pwa-link,.vv-pwa-install-tools{display:none!important}}

/* Progressive mobile navigation: above 768px, original groups keep their layout. */
.vv-mobile-panel,.vv-table-scroll{display:contents}
.vv-mobile-toggle,.vv-saas-mobile-bar,.vv-drawer-close,.vv-menu-backdrop{display:none}
.vv-pwa-link[hidden],[data-vv-install-link][hidden],[data-vv-install][hidden],a[href="/instalar"][hidden],a[href="/instalar/"][hidden]{display:none!important}
.vv-mobile-toggle:focus-visible,.vv-drawer-close:focus-visible{outline:3px solid #e76f51;outline-offset:3px}
@media(max-width:768px){
  html{scroll-padding-top:18px}
  .vv-responsive-nav{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:12px!important;min-height:60px;max-width:100%}
  .vv-responsive-nav>.brand,.vv-responsive-nav>.marca,.vv-responsive-nav>.vv-home-brand{position:static!important;width:auto!important;max-width:calc(100% - 100px);margin:0!important;font-size:20px!important;gap:9px!important;white-space:normal}
  .vv-responsive-nav .brand-mark{flex:0 0 36px;width:36px;height:36px}
  .vv-responsive-nav>.brand img{width:36px;height:36px}
  .vv-mobile-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-width:86px;min-height:44px;padding:9px 12px;border:1px solid #b8d8d2;border-radius:8px;background:#fff;color:#115e59;font:700 14px/1.3 Arial,sans-serif;cursor:pointer}
  .vv-mobile-toggle>span:first-child{font-size:21px;line-height:1}
  .vv-responsive-nav .vv-mobile-panel{display:flex!important;flex-direction:column!important;flex:1 0 100%!important;width:100%;min-width:0;border-top:1px solid #dfe8e5;padding:12px 0 2px;gap:12px}
  .vv-responsive-nav .vv-mobile-panel[hidden]{display:none!important}
  .vv-responsive-nav .nav-links,.vv-responsive-nav .vv-nav-links,.vv-responsive-nav .links{display:grid!important;grid-template-columns:1fr 1fr;flex:none!important;order:0!important;width:100%!important;gap:4px!important;border:0!important;padding:0!important;margin:0!important}
  .vv-responsive-nav .nav-links>a,.vv-responsive-nav .vv-nav-links>a,.vv-responsive-nav .links>a{display:flex!important;align-items:center;justify-content:flex-start;min-height:44px!important;margin:0!important;padding:10px 12px!important;font-size:15px!important;color:#115e59!important;border:0!important;border-radius:7px;white-space:normal;overflow-wrap:anywhere;background:#f2f8f5}
  .vv-responsive-nav .nav-actions,.vv-responsive-nav .vv-access-links{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px;width:100%!important;margin:0!important}
  .vv-responsive-nav .nav-actions a,.vv-responsive-nav .vv-access-links a,.vv-responsive-nav .nav-cliente,.vv-mobile-panel>.button{display:flex!important;align-items:center;justify-content:center;min-height:46px!important;width:100%;margin:0!important;padding:12px!important;font-size:14px!important;white-space:normal;text-align:center;line-height:1.35}
  .vv-responsive-nav .nav-actions a span{display:inline!important}
  .site-header:has(.vv-responsive-nav){height:auto!important;min-height:64px;padding:10px 0!important}
  .vv-navigation.vv-responsive-nav{padding:12px 14px!important}
  .hero>nav.vv-responsive-nav{padding:12px 14px!important}
  body.vv-login-mobile .access-panel{min-height:0!important;padding:28px 18px 36px!important;justify-content:flex-start!important;box-shadow:none}
  body.vv-login-mobile .access-panel>.brand{display:none!important}
  body.vv-login-mobile .page-shell{min-height:0!important}
  body.vv-login-mobile .intro{margin:0 0 20px!important}
  body.vv-login-mobile h1{font-size:clamp(27px,7vw,36px)!important;line-height:1.12}
  body.vv-login-mobile .intro>p:last-child{font-size:15px!important;margin-top:12px}
  body.vv-login-mobile .login-card{max-width:none;padding:18px!important;width:100%}
  body.vv-login-mobile .field-row{grid-template-columns:1fr!important;gap:16px}
  body.vv-login-mobile input{font-size:16px;min-height:48px}
  body.vv-login-mobile .form-footer{gap:14px}
  body.vv-login-mobile .forgot{min-height:44px;display:flex;align-items:center;justify-content:center}
  body.vv-login-mobile .visual-panel{min-height:260px!important}
  body.vv-login-mobile .photo-caption{position:relative;right:auto;bottom:auto;margin:145px 14px 14px;width:calc(100% - 28px)}
  body.vv-tutor-login-mobile .tutor-access-panel{min-height:0!important;padding:28px 18px 36px!important}
  body.vv-tutor-login-mobile .tutor-brand{display:none!important}
  body.vv-tutor-login-mobile .tutor-login-shell{min-height:0!important}
  body.vv-tutor-login-mobile input{font-size:16px!important}
  body.vv-saas-mobile{padding-left:0!important;overflow-x:visible}
  .vv-saas-mobile-bar{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;padding-top:max(10px,env(safe-area-inset-top));background:#fff;border-bottom:1px solid #dfe8e5;min-height:64px}
  .vv-mobile-brand{font:850 21px/1.2 Arial,sans-serif;text-decoration:none;color:#115e59;min-height:44px;display:flex;align-items:center}
  body.vv-saas-mobile .sidebar{position:fixed!important;inset:0 auto 0 0!important;width:min(86vw,310px)!important;height:100dvh!important;max-height:var(--vv-usable-height,100dvh)!important;z-index:21000!important;padding:14px 16px!important;overflow-y:auto!important;overscroll-behavior:contain;transform:translateX(-105%);visibility:hidden;transition:transform .18s ease,visibility .18s}
  body.vv-saas-mobile .sidebar.vv-navigation-open{transform:translateX(0);visibility:visible}
  body.vv-saas-mobile .sidebar .menu-text,body.vv-saas-mobile .sidebar .menu-section-title,body.vv-saas-mobile .sidebar .clinic-brand-label,body.vv-saas-mobile .sidebar .clinic-brand-name,body.vv-saas-mobile .sidebar .app-brand-text,body.vv-saas-mobile .sidebar .user-box div{display:block!important}
  body.vv-saas-mobile .sidebar .menu-item{justify-content:flex-start!important;min-height:46px!important;padding:11px 12px!important;gap:12px}
  body.vv-saas-mobile .sidebar .menu-text{white-space:normal;line-height:1.35;font-size:14px}
  body.vv-saas-mobile .sidebar .clinic-logo-large{width:100%!important;height:78px!important}
  body.vv-saas-mobile .sidebar-top{margin:10px 0 16px}
  body.vv-saas-mobile .sidebar .user-email{overflow-wrap:anywhere}
  .vv-drawer-close{display:flex!important;align-items:center;justify-content:center;min-height:44px;width:100%;padding:10px;border:1px solid #c7dcd5;border-radius:8px;color:#115e59;background:white;font:700 14px/1.3 Arial,sans-serif;cursor:pointer}
  .vv-menu-backdrop{display:block;position:fixed;inset:0;width:100%;height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#102c2a80;z-index:20999;cursor:pointer}
  .vv-menu-backdrop[hidden]{display:none!important}
  body.vv-saas-mobile .layout{display:block!important;min-height:calc(100dvh - 64px)}
  body.vv-saas-mobile .layout>.content{width:100%!important;max-width:100%!important;margin:0!important;min-width:0!important;padding:16px 12px!important}
  body.vv-saas-mobile .content>.topbar{display:flex!important;flex-wrap:wrap;align-items:center;gap:10px;padding:16px!important;min-width:0}
  body.vv-saas-mobile .topbar h1{font-size:clamp(21px,6vw,28px);line-height:1.2;overflow-wrap:anywhere}
  body.vv-saas-mobile .topbar .user-info{text-align:left;overflow-wrap:anywhere;max-width:100%;font-size:12px}
  body.vv-saas-mobile .content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),body.vv-saas-mobile .content select,body.vv-saas-mobile .content textarea{max-width:100%;min-width:0;font-size:16px!important;scroll-margin:20px 0 100px}
  body.vv-saas-mobile .content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),body.vv-saas-mobile .content select{min-height:44px}
  body.vv-saas-mobile .content textarea{min-height:88px}
  body.vv-saas-mobile .content form,body.vv-saas-mobile .content fieldset,body.vv-saas-mobile .content label{min-width:0;max-width:100%}
  body.vv-saas-mobile .content .cards-vacinas{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important}
  body.vv-saas-mobile .content .vacina-card{min-width:0;max-width:100%;overflow-wrap:anywhere}
  body.vv-saas-mobile .content button,body.vv-saas-mobile .content .botao,body.vv-saas-mobile .content .btn,body.vv-saas-mobile .content input[type="submit"]{min-height:44px;white-space:normal}
  body.vv-saas-mobile .form-grid,body.vv-saas-mobile .form-grid-2,body.vv-saas-mobile .form-grid-3,body.vv-saas-mobile .filtros-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important}
  .vv-table-scroll{display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  body.vv-saas-mobile .menu-clinico-horizontal,body.vv-saas-mobile .pdv-menu{max-width:100%;min-width:0;overflow-x:auto;flex-wrap:nowrap;overscroll-behavior-x:contain}
  body.vv-saas-mobile .menu-clinico-horizontal a,body.vv-saas-mobile .pdv-menu a{flex:0 0 auto;min-height:44px;display:inline-flex;align-items:center}
  body.vv-saas-mobile .modal-overlay,body.vv-saas-mobile .modal-compromisso-agenda,body.vv-saas-mobile .modal-alerta-agenda-local{max-height:var(--vv-usable-height,100dvh);overflow-y:auto;overscroll-behavior:contain}
  body.vv-saas-mobile .modal-box,body.vv-saas-mobile .modal-ia-conteudo,body.vv-saas-mobile .modal-content,body.vv-saas-mobile .modal-compromisso-agenda-caixa,body.vv-saas-mobile .modal-alerta-agenda-local-caixa,body.vv-saas-mobile dialog{max-width:calc(100vw - 24px)!important;max-height:calc(var(--vv-usable-height,100dvh) - 24px)!important;overflow-y:auto!important;min-width:0;overscroll-behavior:contain}
  body.vv-saas-mobile .modal-box input,body.vv-saas-mobile .modal-box select,body.vv-saas-mobile .modal-box textarea,body.vv-saas-mobile dialog input,body.vv-saas-mobile dialog select,body.vv-saas-mobile dialog textarea{max-width:100%;min-width:0;font-size:16px!important;scroll-margin:16px 0 100px}
  body.vv-saas-mobile .modal-box button,body.vv-saas-mobile dialog button{min-height:44px}
}
@media(max-width:768px){.product-view{overflow:hidden}}
@media(max-width:430px){
  body.vv-saas-mobile .form-grid,body.vv-saas-mobile .form-grid-2,body.vv-saas-mobile .form-grid-3,body.vv-saas-mobile .filtros-grid{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){body.vv-saas-mobile .sidebar{transition:none}}
@media print{.vv-mobile-toggle,.vv-saas-mobile-bar,.vv-drawer-close,.vv-menu-backdrop{display:none!important}.vv-table-scroll{display:contents}}

.vv-install-help{display:block;margin-top:14px;padding:12px 18px;min-height:44px;max-width:100%;border:1px solid #115e59;border-radius:8px;background:white;color:#115e59;cursor:pointer;font:inherit}
.vv-install-help[hidden]{display:none!important}
#vv-install-guide{box-sizing:border-box;width:calc(100% - 32px);max-width:440px;max-height:85vh;overflow:auto;padding:24px;border:1px solid #dfe8e5;border-radius:16px;color:#17212b;overflow-wrap:anywhere}
#vv-install-guide::backdrop{background:#0007}
#vv-install-guide li{line-height:1.6;margin:16px 0}
#vv-install-guide svg{width:26px;height:26px;vertical-align:middle;color:#115e59}
#vv-install-guide button{min-height:44px;padding:10px 18px;font:inherit;cursor:pointer}
.vv-install-help:focus-visible,#vv-install-guide button:focus-visible{outline:3px solid #0f766e;outline-offset:3px}
