﻿/* A single phone-sized portal shell, including large screens. */
body.portal-mobile-layout { --portal-width:480px; --brand:#138a3c; --brand-2:#033c1c; width:100%; max-width:480px; margin:0 auto; min-height:100dvh; box-shadow:0 0 45px #05351e14; }
.portal-mobile-layout .portal { width:100%; max-width:480px; min-height:100dvh; padding-top:calc(74px + env(safe-area-inset-top,0px)); padding-bottom:24px; }
.portal-mobile-layout .topbar { left:50%; right:auto; transform:translateX(-50%); width:min(100%,480px); height:calc(74px + env(safe-area-inset-top,0px)); padding:env(safe-area-inset-top,0px) 20px 0; justify-content:flex-start; background:linear-gradient(135deg,#218d3e,#07924a); border-bottom:1px solid #ffffff4d; box-shadow:0 12px 28px #06392333; }
.portal-mobile-layout .topbar .logo-shell { display:flex; justify-content:flex-start; position:static; width:calc(100% - 120px); height:auto; margin:0; transform:none; }
.portal-mobile-layout .topbar .logo-img { display:block; width:174px; max-width:100%; height:48px; object-fit:contain; }
.portal-mobile-layout .desktop-avatar { display:none; }
.portal-mobile-layout .topbar :is(.mobile-menu-toggle,.portal-notifications) { display:inline-flex; position:absolute; top:calc(11px + env(safe-area-inset-top,0px)); width:52px; height:52px; border:1px solid #ffffff8a; border-radius:19px; background:linear-gradient(145deg,#ffffff26,#ffffff05),#ffffff0d; color:#fff; padding:12px; align-items:center; justify-content:center; box-shadow:inset 0 1px #ffffff66,0 5px 16px #0a41241a; backdrop-filter:blur(18px) saturate(145%); cursor:pointer; }
.portal-mobile-layout .topbar .mobile-menu-toggle { right:14px; }
.portal-mobile-layout .topbar .portal-notifications { right:76px; }
.portal-mobile-layout .topbar button svg { width:27px; height:27px; }
.portal-mobile-layout .sidebar { display:block; position:fixed; left:max(0px,calc((100vw - 480px)/2)); top:calc(74px + env(safe-area-inset-top,0px)); bottom:0; width:min(86vw,320px); max-width:calc(100% - 24px); padding:16px 14px 22px; background:#fffffff5; box-shadow:20px 0 46px #05351e2e; opacity:0; transform:translateX(-112%); pointer-events:none; z-index:55; }
.portal-mobile-layout .sidebar.is-open { transform:translateX(0); opacity:1; pointer-events:auto; }
.portal-mobile-layout :is(.mobile-menu-close,.menu-profile-card) { display:flex; }
.portal-mobile-layout .mobile-menu-backdrop { z-index:54; display:block; left:max(0px,calc((100vw - 480px)/2)); right:max(0px,calc((100vw - 480px)/2)); top:calc(74px + env(safe-area-inset-top,0px)); bottom:0; }
.portal-mobile-layout .mobile-menu-backdrop[hidden] { display:none; }
.portal-mobile-layout .content { width:100%; max-width:100%; margin:0; padding:22px 18px 32px; min-height:calc(100dvh - 74px); }
.portal-mobile-layout .content > .page { width:100%; max-width:100%; margin:0; padding:8px 6px 20px; min-width:0; }
.portal-mobile-layout .page-title { font-size:29px; line-height:1.3; margin:0 0 12px; }
.portal-mobile-layout .page-sub { font-size:14px; line-height:1.7; }
.portal-mobile-layout .dashboard-greeting { font-size:17px; margin:0 0 20px; line-height:1.6; }
.portal-mobile-layout .dashboard-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.portal-mobile-layout .dashboard-action { min-height:112px; padding:18px 8px; gap:11px; border-radius:16px; font-size:15px; font-weight:600; border:1px solid #ffffff55; background:linear-gradient(145deg,#ffffff30,#ffffff00 48%,#ffffff08),linear-gradient(135deg,#198b3c,#06924a); box-shadow:inset 0 1px #ffffff88,0 7px 18px #0a41241a; color:#fff; }
.portal-mobile-layout .dashboard-action > span:last-child { font-size:15px; line-height:1.4; overflow-wrap:anywhere; }
.portal-mobile-layout .dashboard-action-icon { width:28px; height:28px; }
.portal-mobile-layout .dashboard-action-icon svg { width:27px; height:27px; }
.portal-mobile-layout .dashboard-shell { gap:0; }
.portal-mobile-layout .btn { border-radius:14px; min-height:44px; font-size:14px; }
.portal-mobile-layout :is(.pet-report-selector-grid,.feeding-grid,.feeding-result-grid,.pets-grid,.pets-ready-grid,.dependents-grid,.species-manuals-grid) { grid-template-columns:minmax(0,1fr); }
.portal-mobile-layout .feeding-field-wide { grid-column:auto; }
.portal-mobile-layout :is(.plan-grid,.service-grid) { grid-template-columns:1fr; }
.portal-mobile-layout :is(.queue-card,.service-card,.pet-report-card,.pet-carousel-card,.pet-attendance-card,.profile-edit-card) { border-radius:16px; min-width:0; }
.portal-mobile-layout .pet-carousel-card { max-width:100%; }
.portal-mobile-layout .pets-carousel-track { min-width:0; }
.portal-mobile-layout .pet-activities-shell { padding:0; }
.portal-mobile-layout :is(.pet-activity-hero-stats,.pet-activities-hero) { flex-wrap:wrap; }
.portal-mobile-layout .support-floating-whatsapp { right:max(12px,calc((100vw - 480px)/2 + 12px)); bottom:14px; min-height:40px; padding:10px 12px; font-size:12px; }
.portal-mobile-layout :is(input,select,textarea) { max-width:100%; min-width:0; }
.portal-mobile-layout .content table { display:block; max-width:100%; overflow-x:auto; }
@media(max-width:360px) { .portal-mobile-layout .content { padding-inline:12px; } .portal-mobile-layout .topbar { padding-inline:14px; } .portal-mobile-layout .topbar .logo-img { width:145px; } .portal-mobile-layout .topbar .logo-shell { width:calc(100% - 116px); } .portal-mobile-layout .dashboard-action > span:last-child { font-size:13px; } }
@media(prefers-reduced-motion:reduce) { .portal-mobile-layout .sidebar { transition:none; } }

.portal-mobile-layout .menu-link .mi svg,.portal-mobile-layout .mobile-menu-close svg { width:22px; height:22px; }

.portal-mobile-layout .content > .training-activities-page { background:#fff; border-radius:20px; padding:20px 18px 26px; }

/* Hidden selection controls must not use the desktop viewport as their width. */
.portal-mobile-layout :is(.achievement-tabs,.achievement-pet-switcher) > input,
.portal-mobile-layout .feeding-pet-card input[type="radio"] { width:1px; height:1px; min-width:0; max-width:1px; margin:0; padding:0; border:0; overflow:hidden; clip-path:inset(50%); }

.portal-mobile-layout :is(.achievement-tabs,.achievement-pet-switcher,.feeding-pet-card) { position:relative; }
/* O portal usa a mesma coluna no computador e no telefone. */
.portal-mobile-layout .vaccine-card-grid { grid-template-columns:minmax(0,1fr); }
.portal-mobile-layout .vaccine-card-grid > * { min-width:0; }
.portal-mobile-layout .vaccine-card-page { min-width:0; max-width:100%; padding-inline:0; }
.portal-mobile-layout .portal-notifications[aria-pressed="true"] svg { fill:#fff; }
