body.app-shell{--nav-width:224px;padding-top:72px!important;background:#edf7fb}body.app-shell .topbar{position:fixed!important;inset:0 0 auto 0;height:72px!important;min-height:0!important;z-index:100;background:linear-gradient(110deg,#102d4b,#176c86)!important}body.app-shell .topbar-inner{max-width:none!important;width:100%!important;min-height:0!important;height:72px;display:flex!important;align-items:center;padding:0 24px;gap:22px}body.app-shell .topbar .brand{flex:none}body.app-shell .session-user{margin-left:auto!important}.topbar .main-nav{display:none!important}.zanuto-sidebar{position:fixed;left:0;top:72px;bottom:0;width:var(--nav-width);background:#fff;border-right:1px solid #d4e4ed;z-index:90;display:flex;flex-direction:column;padding:16px 12px;color:#123b60}.zanuto-sidebar nav{overflow:auto;flex:1}.nav-group{text-transform:uppercase;letter-spacing:.1em;font-size:11px;font-weight:700;color:#678296;margin:18px 12px 8px}.zanuto-sidebar nav>a{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 12px;border-radius:9px;color:#234d68;font-size:14px;text-decoration:none;line-height:1.3;margin:3px 0}.zanuto-sidebar nav>a:hover{background:#f0f7fa}.zanuto-sidebar nav>a[aria-current=page]{background:#dff0f1;color:#096e79;font-weight:700}.zanuto-sidebar svg{width:21px;height:21px;flex:none}.nav-patient{margin:6px 10px 12px;padding:12px 0;border-bottom:1px solid #e0ebf1;font-size:12px}.nav-patient strong{display:block;overflow-wrap:anywhere}.nav-patient a{display:block;margin-top:7px;color:#176c86}.sidebar-collapse{background:#edf5f8!important;color:#234d68!important;margin-top:12px;border:1px solid #d4e4ed!important;min-height:40px;font:inherit}.sidebar-mobile-toggle{display:none}.app-shell>main{margin-left:var(--nav-width)!important;width:calc(100% - var(--nav-width))!important;max-width:none!important;padding:28px 32px!important;min-height:calc(100vh - 130px)}.app-shell>footer{margin-left:var(--nav-width)}.app-shell.nav-collapsed{--nav-width:68px}.nav-collapsed .zanuto-sidebar{padding:12px 6px}.nav-collapsed .zanuto-sidebar nav>a{justify-content:center;padding:12px}.nav-collapsed .zanuto-sidebar nav>a span,.nav-collapsed .nav-group,.nav-collapsed .nav-patient,.nav-collapsed .sidebar-collapse span{display:none}.app-shell .patient-hero{min-height:0!important;padding:24px!important;margin-top:0}.app-shell .patient-hero h1{font-size:clamp(24px,2.4vw,36px)!important}.module-permission-table{width:100%;border-collapse:collapse}.module-permission-table td,.module-permission-table th{padding:12px;text-align:left;border-bottom:1px solid #d8e7ef}.module-permission-table select{min-height:40px}.permission-method td:first-child{padding-left:30px}.bio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.bio-grid label{display:flex;flex-direction:column;gap:7px;font-size:14px}.bio-grid input{min-height:44px;width:100%;font:inherit}.bio-section{border:1px solid #d4e4ed;border-radius:12px;padding:20px;margin:16px 0}.bio-section h3{margin:0 0 16px}.bio-imported{background:#eef9f4!important;border-color:#75b7a5!important}.bio-import-review{padding:16px;background:#eff8f5;border-radius:10px;margin:14px 0}.bio-import-review:empty{display:none}.bio-import-review select{width:100%;min-height:44px}.app-shell .skinfold-comparison svg text{font-family:inherit;font-size:12px}.app-shell .skinfold-comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1000px){.app-shell>main{padding:22px 18px!important}.bio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar .session-user span{display:none}}
@media(max-width:760px){body.app-shell{--nav-width:0px}.zanuto-sidebar{width:224px;transform:translateX(-100%);box-shadow:8px 0 22px #123b601a}.nav-open .zanuto-sidebar{transform:translateX(0)}.sidebar-mobile-toggle{display:block!important;background:transparent!important;border:1px solid #aac6d1!important;color:white!important;padding:8px!important}.topbar-inner{gap:10px!important;padding:0 12px!important}.topbar .session-user{font-size:11px}.topbar .session-user small,.topbar .brand span,.topbar .link-button{display:none}.app-shell>main{width:100%!important;margin-left:0!important;padding:18px 12px!important}.bio-grid{grid-template-columns:1fr}.app-shell .skinfold-comparison-grid{grid-template-columns:1fr}.app-shell.nav-collapsed{--nav-width:0px}.nav-collapsed .zanuto-sidebar nav>a span,.nav-collapsed .nav-group,.nav-collapsed .nav-patient,.nav-collapsed .sidebar-collapse span{display:initial}}

/* Cabeçalhos compactos — 06/09/2026 */
body.app-shell>main{margin-top:0!important;padding-top:12px!important}
body.app-shell>main>:first-child{margin-top:0}
body.app-shell .hero-with-actions{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
body.app-shell .hero-with-actions>div:first-child{flex:1 1 360px;min-width:0}
body.app-shell .hero-page-actions{display:flex;flex-direction:column;align-items:flex-end;gap:12px;margin-left:auto;flex:0 1 auto}
body.app-shell .hero-page-actions .metabolic-view-tabs{margin:0;justify-content:flex-end;gap:10px}
body.app-shell .hero-page-actions .metabolic-view-tabs a{font-size:14px;padding:11px 16px;white-space:nowrap;color:#153e59!important;background:#fff!important;border:1px solid #d1e4ec}
body.app-shell .hero-page-actions .metabolic-view-tabs a[aria-current]{background:#dceff3!important;color:#103a63!important;border-color:#dceff3;font-weight:700;box-shadow:inset 0 -3px #79b9c8}
body.app-shell .hero-page-actions .back-link{margin:0;color:#fff!important;font-size:13px}
body.app-shell .hero-page-actions .back-link:hover{text-decoration:underline}
@media(max-width:760px){body.app-shell .hero-page-actions{width:100%;align-items:flex-start;margin-left:0}body.app-shell .hero-page-actions .metabolic-view-tabs{justify-content:flex-start}body.app-shell .hero-with-actions{gap:16px}}

body.app-shell .hero-page-actions .metabolic-view-tabs{align-items:center}body.app-shell .hero-page-actions .metabolic-count{margin:0;align-self:center;white-space:nowrap}

/* Campos de anexos alinhados */
.app-shell .document-upload-grid{align-items:start!important}.app-shell .document-upload-grid>label{display:flex!important;flex-direction:column;gap:8px!important;margin:0!important;min-width:0}.app-shell .document-upload-grid input[name=display_label],.app-shell .document-upload-grid .z-file-field{box-sizing:border-box!important;height:48px!important;min-height:48px!important;margin:0!important;width:100%}.app-shell .document-upload-grid .z-file-field{display:flex;align-items:center;padding:4px!important;gap:10px}.app-shell .document-upload-grid .z-file-button{height:38px!important;min-height:0!important;margin:0!important;padding:0 14px!important;white-space:nowrap}.app-shell .document-upload-grid .z-file-status{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
