@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',sans-serif;background:#f5f7f6;color:#20352f;font-synthesis:none;--green:#167c65;--deep:#0b2c26;--border:#e5ebe8;--muted:#82918b}*{box-sizing:border-box}body{margin:0}a{text-decoration:none;color:inherit}button,input,select{font:inherit}button,.btn{border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;background:var(--green);color:#fff;padding:12px 19px;border-radius:12px;font-weight:700;transition:transform .25s,background .25s,box-shadow .25s}button:hover,.btn:hover{background:#0d604d;transform:translateY(-1px);box-shadow:0 8px 20px #0b6c4f25}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7cd5b0;outline-offset:3px}.shell{display:flex;min-height:100vh}.side{width:265px;flex-shrink:0;background:white;border-right:1px solid var(--border);padding:30px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar-brand{display:flex;flex-direction:column;align-items:flex-start;padding:1px 15px 46px;gap:14px}.sidebar-brand img{width:171px;height:auto}.sidebar-brand small{font-size:10px;letter-spacing:2.5px;font-weight:800;color:#a5b2ac}.nav-label{color:#99a8a0;font-size:10px;letter-spacing:2px;font-weight:800;padding:0 16px 15px}.nav a{display:flex;align-items:center;padding:14px 16px;margin-bottom:6px;color:#75827b;border-radius:11px;font-size:13px;font-weight:650;transition:.2s}.nav a:before{content:'';width:6px;height:6px;border:1.7px solid currentColor;border-radius:2px;margin-right:13px;transform:rotate(45deg)}.nav a:hover,.nav a.active{background:#edf5f1;color:#14765f}.nav a.active{font-weight:800}.sidebar-footer{margin-top:auto;border-top:1px solid var(--border);padding:22px 8px 0;display:flex;align-items:center;gap:10px;min-width:0}.sidebar-avatar{height:39px;width:39px;border-radius:12px;background:#e0f0e8;color:var(--green);display:grid;place-items:center;font-weight:800}.sidebar-footer strong{font-size:12px;display:block;max-width:165px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-footer small{display:block;font-size:10px;color:#99a8a0;margin-top:3px}.content{flex:1;min-width:0;padding:43px clamp(22px,4vw,72px) 80px;max-width:1600px;animation:rise .65s ease both}.top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:31px}h1,h2,h3{font-family:Manrope,sans-serif}h1{font-size:clamp(25px,2.4vw,34px);letter-spacing:-1.3px;margin:0 0 7px;font-weight:800}h2{font-size:18px;letter-spacing:-.5px;margin:0 0 18px}p.muted,.muted{color:var(--muted)}.top .muted{font-size:10px;font-weight:800;letter-spacing:1.5px}p{line-height:1.6}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:25px}.card,.panel{background:#fff;border:1px solid var(--border);border-radius:18px;padding:27px;box-shadow:0 10px 35px rgba(13,51,38,.025)}.card{position:relative;min-height:150px;overflow:hidden}.card:after{content:'';position:absolute;width:95px;height:95px;border:1px solid #d8eee2;border-radius:50%;top:-45px;right:-25px}.card span{display:block;color:#7e9287;font-size:12px;font-weight:600}.card strong{font-family:Manrope,sans-serif;font-size:31px;display:block;margin-top:15px;letter-spacing:-1px}.panel{margin-bottom:20px}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;border-bottom:1px solid #edf2ef;padding:17px 12px}th{color:#86988d;font-size:11px;font-weight:800;letter-spacing:.5px}tr:last-child td{border-bottom:none}tbody tr:hover{background:#f9fcfa}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}label{font-size:12px;font-weight:700;color:#455e52;display:block;margin-bottom:9px}input,select{width:100%;height:49px;border:1px solid #dce7e1;border-radius:11px;padding:10px 15px;background:#fff;outline-color:#2d9476;transition:border-color .2s,box-shadow .2s}input:focus,select:focus{border-color:#42a985;box-shadow:0 0 0 4px #42a98514;outline:0}.field{margin-bottom:18px}.badge{display:inline-block;border-radius:20px;padding:7px 12px;background:#e7f5eb;color:#146e5b;font-size:11px;font-weight:800}.alert{border-radius:11px;padding:13px 16px;background:#fff1ec;color:#a14b35;margin-bottom:18px;font-size:13px;border:1px solid #f5d4c7}.help{font-size:12px;color:#8b9b92;margin-top:23px;text-align:center;line-height:1.6}.empty{padding:38px;text-align:center;color:#8b9b91;font-size:13px}.logout-btn{background:#eef5f1;color:#246b58;padding:10px 17px}.logout-btn:hover{background:#deeee6;color:#165b49}
/* Premium split-screen login */
.auth-body{background:#f7f9f7}.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.06fr) minmax(450px,.94fr)}.auth-story{background:radial-gradient(ellipse at 93% 78%,#225f4b 0,transparent 42%),linear-gradient(140deg,#113a30,#092c27 60%,#092922);color:#fff;position:relative;min-height:100vh;padding:clamp(30px,5vw,78px);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.auth-story:after{content:'';position:absolute;inset:11% -34% auto auto;width:630px;height:630px;border:1px solid #ffffff13;border-radius:50%;pointer-events:none}.ambient{position:absolute;border-radius:50%;pointer-events:none}.ambient-one{width:480px;height:480px;border:1px solid #ffffff16;right:-180px;top:13%}.ambient-two{width:350px;height:350px;border:1px solid #ffffff16;right:-115px;top:26%}.story-top,.story-content,.story-bottom{z-index:1;position:relative}.brand-logo-light{width:190px;display:block;margin-bottom:24px}.story-pill{font-size:11px;color:#c5ded4;letter-spacing:.2px;display:inline-flex;align-items:center;gap:9px}.pulse-dot{width:7px;height:7px;background:#80e7b8;border-radius:50%;box-shadow:0 0 0 6px #80e7b81c;animation:pulse 2.5s infinite}.story-content{margin:auto 0;max-width:680px;animation:rise .85s ease both}.story-kicker{font-size:10px;font-weight:800;letter-spacing:3px;color:#a5d4bf}.story-content h1{font-family:Manrope,sans-serif;font-weight:700;font-size:clamp(39px,4vw,68px);letter-spacing:-3.5px;line-height:1.19;margin:23px 0}.story-content h1 em{font-style:normal;color:#a2ddba}.story-content>p{font-size:clamp(14px,1.25vw,17px);line-height:1.85;color:#c6d9d1;max-width:500px}.story-features{display:flex;gap:32px;flex-wrap:wrap;margin-top:54px}.story-features span{display:flex;flex-direction:column;gap:12px;color:#e1eee7;font-size:12px}.story-features b{color:#95cbb0;font-size:10px;letter-spacing:2px}.story-bottom{display:flex;justify-content:space-between;color:#9dbbb0;font-size:11px;gap:12px}.dot-separator{padding:0 6px}.auth-form-area{padding:clamp(22px,5vw,78px);display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;background:radial-gradient(circle at 80% 9%,#e9f5ee 0,transparent 33%),#fbfcfb}.login-card{width:min(430px,100%);animation:rise .9s .15s ease both}.auth-mobile-brand{display:none}.eyebrow{display:block;font-size:10px;letter-spacing:2.1px;font-weight:800;color:#228d6c;margin-bottom:19px}.login-card h2{font-size:clamp(27px,2.4vw,36px);line-height:1.35;letter-spacing:-1.6px;margin:0 0 14px;color:#183c31}.login-card h2 span{color:#168368}.form-subtitle{font-size:13px;color:#8b9b93;line-height:1.8;margin-bottom:35px}.login-form .field{margin-bottom:23px}.login-form label{font-size:12px;color:#39594b;margin-bottom:11px}.input-wrap{position:relative}.input-wrap>svg{position:absolute;left:16px;top:17px;width:18px;height:18px;stroke:#8ca79a;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.input-wrap input{height:54px;padding-left:48px;padding-right:53px;border-radius:12px;background:#fff;border:1px solid #e0ebe4;box-shadow:0 6px 20px #183c3106;font-size:13px}.input-wrap input::placeholder{color:#adbbb3}.field-label-row{display:flex;justify-content:space-between}.password-toggle{position:absolute;right:8px;top:7px;padding:8px;background:transparent;color:#8ba99a;box-shadow:none!important}.password-toggle svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.6;fill:none}.password-toggle:hover{background:#edf6f0;color:var(--green)}.login-submit{height:54px;width:100%;margin-top:13px;border-radius:12px;font-size:13px;background:linear-gradient(110deg,#167b61,#0c5d4a);justify-content:space-between;padding:0 21px;box-shadow:0 12px 28px #13694e25}.login-submit svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8}.login-submit:hover{background:linear-gradient(110deg,#0f6f56,#094533);box-shadow:0 14px 30px #13694e35}.auth-bottom{position:absolute;bottom:32px;width:calc(100% - clamp(44px,10vw,156px));max-width:540px;display:flex;justify-content:space-between;gap:12px;color:#9bab9f;font-size:10px}.security-chip{color:#268869;font-weight:700}.page-loader{position:fixed;z-index:9999;inset:0;background:#f8fbf8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;transition:opacity .45s,visibility .45s}.page-loader.is-hidden{opacity:0;visibility:hidden;pointer-events:none}.loader-symbol{height:76px;width:76px;border-radius:22px;background:#e5f3eb;display:grid;place-items:center;animation:loaderBreath 1.5s infinite}.loader-symbol img{width:48px}.loader-line{width:122px;height:3px;border-radius:10px;background:#e4eee9;overflow:hidden;position:relative}.loader-line:before{content:'';height:100%;position:absolute;width:40%;background:#168568;border-radius:10px;animation:loadBar 1s ease-in-out infinite alternate}.is-submitting .login-submit{opacity:.75;cursor:wait}.is-submitting .login-submit span:after{content:'...';letter-spacing:3px}.dashboard-body .page-loader{background:#f7faf8}
@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{50%{box-shadow:0 0 0 11px #80e7b800}}@keyframes loaderBreath{50%{transform:scale(1.07);box-shadow:0 0 0 15px #e2f2e850}}@keyframes loadBar{from{left:0}to{left:60%}}@media(max-width:1080px){.auth-layout{grid-template-columns:1fr 1fr}.auth-story{padding:42px}.auth-form-area{padding:35px}.story-content h1{font-size:42px;letter-spacing:-2px}.story-features{gap:20px}}@media(max-width:780px){.auth-layout{display:block}.auth-story{display:none}.auth-form-area{min-height:100vh;padding:76px 24px 105px}.auth-mobile-brand{display:block;margin-bottom:45px}.auth-mobile-brand img{width:180px}.login-card{max-width:440px}.auth-bottom{bottom:28px;width:calc(100% - 48px)}.shell{display:block}.side{width:auto;height:auto;position:relative;padding:14px;border-right:0;border-bottom:1px solid var(--border)}.sidebar-brand{padding:8px 8px 16px}.sidebar-brand img{width:145px}.sidebar-brand small,.sidebar-footer,.nav-label{display:none}.nav{display:flex;overflow-x:auto;gap:5px}.nav a{white-space:nowrap;padding:11px;font-size:12px}.nav a:before{display:none}.content{padding:26px 16px}.cards,.grid{grid-template-columns:1fr}.top{align-items:flex-start;flex-direction:column}.panel{overflow-x:auto}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* V3 — premium admin / financial */
.page-loader{background:radial-gradient(circle at center,#164c3d,#082b25 72%);color:#eaf9f0;gap:26px}
.loader-symbol{background:rgba(236,255,243,.94);box-shadow:0 20px 85px #041b1780;width:96px;height:96px;border-radius:28px}.loader-symbol img{width:65px}.loader-line{width:200px;height:4px;background:#ffffff25}.loader-line:before{animation:loadSeven 7s linear forwards;width:100%;left:0;transform-origin:left;transform:scaleX(0)}
@keyframes loadSeven{to{transform:scaleX(1)}}
.dashboard-body{background:#f6f8f7}.side{background:#fff;padding-top:35px;box-shadow:8px 0 50px #0b382709}.nav a{border:1px solid transparent}.nav a.active{border-color:#d7eee0;background:linear-gradient(90deg,#e7f4ed,#f8fcfa)}
.content{max-width:none;padding:44px clamp(20px,4vw,72px) 80px}.content>.top{padding-bottom:22px;border-bottom:1px solid #e4ebe6}.content>.top h1{font-size:clamp(28px,2.6vw,39px)}
.cards{grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:15px}.card{min-height:160px;padding:25px;border-radius:20px;transition:transform .25s,box-shadow .25s}.card:hover{transform:translateY(-3px);box-shadow:0 20px 38px #0c5b3511}.card strong{font-size:clamp(23px,2.1vw,32px)}.card-money{background:#0c4335;border-color:#0c4335}.card-money span{color:#bddbd0}.card-money strong{color:#fff}
.hero-panel{background:linear-gradient(115deg,#0e4034,#0a302a);color:white;padding:34px;border-radius:22px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 24px;position:relative;overflow:hidden}.hero-panel:after{content:'';position:absolute;width:320px;height:320px;border:1px solid #ffffff20;border-radius:50%;right:13%;top:-220px;pointer-events:none}.hero-panel h2{font-size:clamp(19px,2.5vw,29px);margin:12px 0 9px}.hero-panel p{font-size:13px;color:#d0e2d7;margin:0}.hero-eyebrow{color:#a1dfc3;letter-spacing:2px;font-size:10px;font-weight:800}.hero-action{background:#d6f4e4;color:#0b4b38;white-space:nowrap}.hero-action:hover{background:#fff;color:#0b4b38}.section-intro,.table-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.section-intro h2{font-size:26px;margin:6px 0}.section-intro p,.table-title p{font-size:12px;margin:0}.table-scroll{overflow-x:auto}.btn-ghost{background:#edf6f0;color:#216851;font-size:12px}.status-paga{background:#e2f6e9;color:#0a714d}.status-vencida{background:#fff1e7;color:#9b4c19}.status-pendente{background:#f0f4f3;color:#53685f}.text-link{color:#127d5c;font-weight:800}.text-link:hover{text-decoration:underline}.login-card:has([name=public_signup]){width:min(500px,100%)}.login-card:has([name=public_signup]) .form-subtitle{margin-bottom:22px}.login-card:has([name=public_signup]) .field{margin-bottom:14px}.login-card:has([name=public_signup]) input,.login-card:has([name=public_signup]) select{height:46px}.login-card:has([name=public_signup]) .grid{gap:12px}
@media(max-width:780px){.hero-panel,.section-intro,.table-title{align-items:flex-start;flex-direction:column}.login-card:has([name=public_signup]) .grid{grid-template-columns:1fr}.auth-form-area:has([name=public_signup]){padding-top:45px}}

/* Nutri360 V4 — interface executiva */
:root{--deep:#083d31;--green:#176e51;--sage:#dfeee6;--ink:#172e2b;--muted:#778782}
.dashboard-body{background:#f5f8f6;color:var(--ink)}
.dashboard-body .shell{background:#f5f8f6}
.dashboard-body .side{width:254px;background:linear-gradient(155deg,#06362d,#0c4839 63%,#092d28);border:0;color:#e5f4ed;padding:26px 14px;box-shadow:7px 0 24px #12372a0b;z-index:2}
.dashboard-body .sidebar-brand{padding:2px 14px 34px;gap:5px}
.dashboard-body .sidebar-brand img{width:187px}
.dashboard-body .sidebar-brand small{color:#a6c8b8;letter-spacing:2px;margin-left:53px}
.dashboard-body .nav-label{color:#85ac9e;padding:8px 15px 15px}
.dashboard-body .nav a{color:#e3f1e9;font-size:14px;font-weight:550;padding:14px 16px;border-radius:12px;margin:4px 0;transition:.18s ease}
.dashboard-body .nav a:hover,.dashboard-body .nav a.active{background:#ffffff20;color:white;box-shadow:inset 3px 0 0 #8fc9a9}
.dashboard-body .sidebar-footer{border-top:1px solid #ffffff2e;margin-top:auto;color:white}
.dashboard-body .sidebar-footer strong{color:white}.dashboard-body .sidebar-footer small{color:#b1cbbf}
.dashboard-body .sidebar-avatar{background:#276f58;color:#fff}
.dashboard-body .content{flex:1;min-width:0;padding:35px clamp(22px,2.9vw,56px) 55px;max-width:none}
.dashboard-body .top{padding:0 0 27px;margin-bottom:23px;border-bottom:0;align-items:center}
.dashboard-body .top h1{font-size:clamp(25px,2.2vw,35px);line-height:1.16;letter-spacing:-1.35px;font-weight:800;color:#122c28;margin:6px 0}
.dashboard-body .top .muted{letter-spacing:2px;font-size:10px;font-weight:700;color:#8e9b95}
.header-subtitle{margin:3px 0 0;color:#71827b;font-size:14px}
.dashboard-body .logout-btn{background:#0d4739;color:#fff;padding:12px 24px;border-radius:11px}
.executive-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:16px}
.dashboard-body .card,.dashboard-body .panel{border:1px solid #e6ede8;border-radius:18px;background:#fff;box-shadow:0 7px 32px #1e4b3410}
.dashboard-body .card.stat{min-width:0;min-height:166px;padding:18px 17px;display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.stat-symbol{width:38px;height:38px;background:#ebf6ef;border-radius:11px;display:grid;place-items:center;font-size:22px;color:#176e51;font-weight:900;margin-bottom:5px}
.stat-symbol.amber{color:#b77c16;background:#fff6e7}.stat-symbol.red{color:#b83e3e;background:#fff0f0}
.dashboard-body .stat span:not(.stat-symbol){font-size:12px;color:#53675f;font-weight:650}
.dashboard-body .stat strong{font-size:clamp(19px,1.7vw,27px);letter-spacing:-1.1px;color:#122c28;white-space:nowrap}
.dashboard-body .stat small{font-size:11px;color:#86948d;line-height:1.4}
.executive-grid{display:grid;grid-template-columns:1.12fr 1fr 1fr;gap:14px;margin-bottom:16px}
.dashboard-body .executive-grid .panel{padding:20px;min-width:0;min-height:318px}
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.dashboard-body .panel-head h2{font-size:16px;font-weight:800;margin:0 0 6px;color:#172b28;letter-spacing:-.35px}
.dashboard-body .panel-head .muted{font-size:11px;margin:0;color:#8a9992}
.subtle-link{font-size:11px;color:#177c59;font-weight:750;white-space:nowrap}
.chart-total{font-size:25px;font-weight:800;letter-spacing:-.9px}
.chart-wrapper{margin-top:10px}.chart-wrapper svg{width:100%;height:184px}.chart-labels{display:flex;justify-content:space-between;gap:2px;color:#94a19a;font-size:9px;margin-top:5px}
.bar-visual{display:flex;align-items:flex-end;gap:35px;justify-content:center;height:215px;border-bottom:1px solid #e5ede7;margin:12px 4px 22px}
.bar-col{height:100%;width:70px;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:7px;position:relative;font-size:12px}
.bar-col>div{max-height:82%;width:100%;border-radius:8px 8px 0 0;background:linear-gradient(#1c7759,#a4d2b7);min-height:8px}
.bar-col>.pending-bar{background:linear-gradient(#c5a55f,#eee0bd)}.bar-col>.other-bar{background:linear-gradient(#819d90,#d5e3dc)}
.bar-col>span{position:absolute;bottom:-21px;color:#80938a;font-size:11px}
.finance-mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.finance-mini>div{background:#f9fbf9;border:1px solid #e7eee8;border-radius:12px;padding:12px 9px;min-width:0}
.finance-mini small{display:block;font-size:10px;color:#82948a;margin-bottom:7px}
.finance-mini strong{font-size:clamp(12px,1.1vw,17px);color:#21372f;white-space:nowrap}
.finance-foot{display:flex;align-items:center;gap:23px;justify-content:center;margin:23px 0 10px}
.donut-ring{width:122px;height:122px;flex:0 0 122px;border-radius:50%;background:conic-gradient(#126b4d calc(var(--percentage)*1%),#dfeee5 0);display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;isolation:isolate}
.donut-ring:before{content:'';position:absolute;inset:24px;background:white;border-radius:50%;z-index:-1}
.donut-ring strong{font-size:23px}.donut-ring small{font-size:11px;color:#84948a}
.finance-foot h3{font-size:12px;margin:0 0 14px}.finance-foot p{font-size:11px;color:#6b7c74;white-space:nowrap}.dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:4px}.dot.green{background:#16835f}.dot.gold{background:#c7ad66}.dot.gray{background:#b7cbc0}
.footnote{font-size:10px!important;line-height:1.4}
.bottom-grid{display:grid;grid-template-columns:1.75fr 1fr;gap:14px}
.dashboard-body .bottom-grid>.panel{min-width:0;padding:21px}
.dashboard-body table{border-collapse:collapse;width:100%}.dashboard-body table th{background:#f6f9f7;color:#6b8073;font-size:11px;padding:13px 12px;font-weight:700}.dashboard-body table td{padding:14px 12px;border-bottom:1px solid #eff3ef;font-size:12px;color:#324b40}.dashboard-body table tr:last-child td{border:0}
.client-dot{display:inline-grid;place-items:center;background:#e5efe9;width:28px;height:28px;border-radius:50%;margin-right:9px;font-weight:700;color:#195940}
.action-row{display:flex;align-items:center;gap:13px;padding:16px 6px;border-bottom:1px solid #edf2ee}.action-row:last-child{border:0}.action-row>span{display:grid;place-items:center;background:#eaf5ef;width:39px;height:39px;border-radius:12px;color:#167550;font-size:22px}.action-row div{flex:1}.action-row strong,.action-row small{display:block}.action-row strong{font-size:13px}.action-row small{font-size:11px;color:#8a9a91;margin-top:4px}.action-row b{color:#23845f}
.pro-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.stat strong.text-value{font-size:23px;white-space:normal}.pro-grid{grid-template-columns:1.3fr 1fr}.welcome-panel{background:linear-gradient(130deg,#083a2f,#176e51)!important;color:white;min-height:275px}.welcome-panel h2{font-size:26px;color:white;max-width:500px;letter-spacing:-.5px}.welcome-panel p{color:#d4e6dc;max-width:560px}.welcome-panel .eyebrow{color:#afcfbe}.welcome-panel .btn{background:#fff;color:#155b42;margin-top:18px}
.dashboard-body .panel{margin-bottom:18px}
@media(max-width:1300px){.executive-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.executive-grid{grid-template-columns:1fr 1fr}.finance-widget{grid-column:1/-1}.finance-mini strong{font-size:18px}}
@media(max-width:920px){.executive-grid,.bottom-grid{grid-template-columns:1fr}.finance-widget{grid-column:auto}.dashboard-body .side{width:215px}.dashboard-body .content{padding:25px 18px}.executive-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.executive-kpis{grid-template-columns:1fr 1fr}.dashboard-body .card.stat{min-height:145px}.dashboard-body .stat strong{font-size:21px}.dashboard-body .side{width:100%;height:auto;position:relative;padding:12px}.dashboard-body .sidebar-brand{padding:5px 12px}.dashboard-body .sidebar-footer,.dashboard-body .nav-label{display:none}.dashboard-body .nav{display:flex;overflow-x:auto;gap:5px}.dashboard-body .nav a{white-space:nowrap;font-size:12px}.dashboard-body .shell{display:block}.dashboard-body .top{gap:8px;align-items:flex-start}.dashboard-body .logout-btn{padding:9px 12px}.finance-mini{grid-template-columns:1fr 1fr}}

/* Nutri360 V5 */
.dashboard-body .sidebar-brand img{width:185px;max-width:100%;filter:none}.dashboard-body .sidebar-brand{padding:2px 9px 26px}.dashboard-body .sidebar-brand small{margin-left:15px}.forgot-link{text-align:right;margin:-10px 0 20px;font-size:12px;color:#177d60}.plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}.promo-form{border:1px solid #e1eae3;border-radius:16px;padding:22px}.landing{background:#fbfcfa;color:#183d31}.landing-header{background:#0b3429;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:21px max(5vw,24px);gap:25px}.landing-header img{width:175px}.landing-header nav{display:flex;gap:25px;align-items:center;font-size:13px}.landing-header nav .btn{background:#2b8c6c}.landing-hero{background:radial-gradient(circle at 82% 25%,#24654d,transparent 46%),linear-gradient(120deg,#0d382c,#06271f);color:#fff;padding:125px max(6vw,24px);min-height:560px}.landing-hero h1{max-width:970px;font-size:clamp(42px,5.1vw,77px);line-height:1.14;letter-spacing:-2.5px;margin:25px 0}.landing-hero h1 em{color:#a2dfb8;font-style:normal}.landing-hero p{max-width:590px;color:#c3dbcc;font-size:17px;margin-bottom:34px}.landing-secondary{margin-left:26px;color:#b4dcca}.landing-features,.landing-pricing{padding:90px max(6vw,24px)}.landing-features h2,.landing-pricing h2{font-size:clamp(29px,3vw,42px)}.landing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:34px}.landing-grid article{background:#fff;border:1px solid #e2eae4;border-radius:22px;padding:32px;box-shadow:0 12px 40px #0b342908}.landing-grid h3{font-size:23px;margin:18px 0 12px}.landing-grid p{color:#73857a}.landing-pricing{background:#eaf2eb}.landing-pricing .landing-grid{grid-template-columns:repeat(2,1fr)}.landing-footer{padding:30px max(6vw,24px);background:#092e25;color:#e4ede7;font-size:12px}@media(max-width:760px){.plan-grid,.landing-grid,.landing-pricing .landing-grid{grid-template-columns:1fr}.landing-header nav{gap:9px}.landing-header nav a:not(.btn){display:none}.landing-hero{padding-top:85px;padding-bottom:85px}.landing-secondary{display:block;margin:22px 0}}

/* V6: conteúdo dinâmico e transição limpa */
.dashboard-body .page-loader{display:none!important}
.dashboard-body .content{transition:opacity .15s ease;min-height:65vh}
.dashboard-body .content.content-changing{opacity:.58;pointer-events:none}
.welcome-overlay{position:fixed;inset:0;z-index:99999;background:radial-gradient(ellipse at 30% 20%,#1d5947,#092d25 65%);display:flex;align-items:center;justify-content:center;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .32s,visibility .32s;padding:20px}
.welcome-overlay.visible{visibility:visible;opacity:1;pointer-events:auto}
.welcome-brand{width:min(430px,100%);text-align:center;color:#fff}.welcome-brand img{width:220px;height:auto;display:block;margin:0 auto 40px}.welcome-eyebrow{letter-spacing:4px;font-size:10px;font-weight:700;color:#8dcfaf}.welcome-brand h2{font-size:clamp(23px,4vw,35px);line-height:1.25;letter-spacing:-.8px;margin:18px 0 10px;color:#fff}.welcome-brand p{font-size:13px;color:#bddecf;margin:0 0 35px}
.welcome-progress{height:3px;border-radius:4px;display:block;overflow:hidden;background:#ffffff29}.welcome-progress i{height:100%;background:#b3e1c6;width:100%;display:block;transform-origin:left;animation:welcomeFill 7s linear forwards}@keyframes welcomeFill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.welcome-progress i{animation:none!important;transform:scaleX(1)}}

/* V7: área clínica */
.clinical-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:20px;align-items:start}.clinical-grid .panel{min-width:0}.clinical-grid h3{font-size:15px;margin:20px 0 10px;color:#194734}.clinical-grid textarea,.panel textarea{min-height:88px;width:100%;font:inherit;border:1px solid #d8e6dc;border-radius:10px;padding:12px;color:#1b3b2f;background:#fff;resize:vertical}.patient-name-link{color:#167852;font-weight:700;text-decoration:none}.patient-name-link:hover{text-decoration:underline}.patient-banner{padding:26px 30px;background:linear-gradient(120deg,#09392c,#14624a);color:white;border-radius:20px;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center;gap:18px}.patient-banner h2{font-size:29px;color:white;margin:5px 0}.patient-banner p{color:#d5e8dc}.patient-banner .eyebrow{color:#9de1b9}.patient-banner .btn{color:#173f32;background:#fff}.clinical-tabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:19px}.clinical-tabs a{padding:10px 15px;border:1px solid #d6e5db;border-radius:12px;background:#fff;color:#28624a;font-size:12px;text-decoration:none;font-weight:700}.clinical-record{padding:13px 0;border-bottom:1px solid #e7efea;overflow-wrap:anywhere}.clinical-record small{color:#668578}.clinical-record p{font-size:13px;line-height:1.6;margin:5px 0 10px}.panel form button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:980px){.clinical-grid{grid-template-columns:1fr}}

/* Nutri360 V8.1 — prontuário com organização modular */
.v81-heading{margin:28px 0 14px;padding:23px 26px;background:linear-gradient(120deg,#e9f3ed,#fff);border:1px solid #ddece2;border-radius:18px}.v81-heading h2{margin:7px 0}.v81-nav{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 20px;position:sticky;top:0;z-index:3;background:#f6f9f7;padding:12px 0}.v81-nav a{padding:10px 14px;border-radius:10px;background:#fff;border:1px solid #deebe2;color:#164c3c;text-decoration:none;font-size:13px;font-weight:700}.v81-nav a:hover{background:#e6f4eb}.v81-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.v81-grid .field{min-width:0}.v81-title{display:flex;justify-content:space-between;align-items:center}.v81-record{border:1px solid #dce9e3;border-radius:12px;padding:14px;margin-top:14px;background:#fbfdfb}.v81-record summary{cursor:pointer;font-weight:700;color:#215644}.v81-record p{overflow-wrap:anywhere}.v81-record[open] summary{margin-bottom:12px}.panel[id]{scroll-margin-top:80px}@media(max-width:800px){.v81-grid{grid-template-columns:1fr}.v81-heading{padding:18px}.v81-nav{position:static}}

/* V8.1 correção: prontuário acessível */
.btn-record{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;background:#0b4b3b;color:#fff!important;border-radius:10px;padding:11px 15px;font-size:13px;font-weight:700;text-decoration:none;transition:background .16s ease,transform .16s ease}.btn-record:hover{background:#176a50;transform:translateY(-1px)}.clinical-tabs{display:flex;flex-wrap:wrap;gap:10px}.clinical-tabs a{scroll-margin-top:22px}.panel[id]{scroll-margin-top:25px}.table-scroll{overflow-x:auto}

/* Revisão integrada do prontuário e diretório — escopo visual isolado */
.clinical-tab-panel[hidden],.patient-search-row[hidden],.directory-no-results[hidden]{display:none!important}
.clinical-tabs{display:flex;flex-wrap:wrap;gap:7px;padding:9px;background:#eaf1ec;border:1px solid #dce8e0;border-radius:15px;margin:0 0 20px}
.clinical-tabs a{padding:11px 15px;border-radius:9px;color:#446559;font-size:12px;font-weight:750;transition:background .15s,color .15s;white-space:nowrap}
.clinical-tabs a:hover{background:#dcebe2;color:#164c3a}
.clinical-tabs a.active{background:#0d4938;color:#fff;box-shadow:0 4px 12px #164a3828}
.clinical-tab-panel{animation:clinicalReveal .18s ease-out;min-width:0}
.clinical-tab-panel .panel{margin-bottom:0;padding:26px 28px}
.clinical-tab-panel .panel h2{font-size:21px;letter-spacing:-.6px;margin:0 0 17px;color:#133f31}
.clinical-tab-panel .panel form{border-top:1px solid #e9efea;padding-top:19px}
.clinical-tab-panel .field label{display:block;font-size:12px;line-height:1.5;font-weight:750;color:#39584c;margin-bottom:7px}
.clinical-tab-panel .field input,.clinical-tab-panel .field textarea,.clinical-tab-panel .field select{background:#fbfdfb;border:1px solid #dfe8e2;border-radius:10px;width:100%;padding:12px;min-height:44px;color:#233c32}
.clinical-tab-panel .field textarea{min-height:82px;resize:vertical}
.clinical-tab-panel .v81-grid{gap:20px 17px}
.clinical-tab-panel button[type=submit],.clinical-tab-panel form>button{margin-top:17px}
.archive-intro{padding:18px 21px;background:#eaf3ed;border:1px solid #dce9e2;border-radius:13px;margin-bottom:15px}.archive-intro h2{margin:0 0 6px}.archive-intro p{font-size:13px;color:#566b60;margin:0}
.patient-directory{border:1px solid #e4eae5;border-radius:20px;background:#fff;box-shadow:0 12px 34px #1e4b3410;overflow:hidden}
.directory-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:28px 30px 18px}
.directory-header h2{margin:7px 0 7px;font-size:26px;color:#163e32}.directory-header p{font-size:13px;margin:0}
.directory-toolbar{padding:0 30px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.directory-toolbar input{width:min(440px,100%);padding:13px 16px;background:#f8faf8;border:1px solid #dfe8e2;border-radius:11px;font-size:13px}
.directory-total{font-size:12px;color:#608070;font-weight:700;white-space:nowrap}
.patient-table-wrap{overflow-x:auto}.patient-table{width:100%;border-collapse:collapse}.patient-table thead{background:#f6f9f7}.patient-table th{text-align:left;color:#71867a;letter-spacing:.05em;text-transform:uppercase;font-size:10px;padding:15px 27px}.patient-table td{padding:16px 27px;border-top:1px solid #edf2ee;color:#4c6458;font-size:13px}
.patient-table tbody tr:hover{background:#fbfdfb}.patient-identity{display:flex;align-items:center;gap:12px;min-width:180px}.patient-avatar{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:13px;background:#e4f2e9;color:#135b42;font-weight:800;font-size:16px}.patient-identity strong{display:block;color:#1e4033;font-weight:800}.patient-identity small,.patient-contact small{display:block;font-size:11px;color:#83988a;margin-top:4px}.patient-actions{text-align:right!important;white-space:nowrap}.patient-table .btn-record{font-size:12px;padding:10px 14px;background:#e6f3ea;color:#145b44;box-shadow:none}.patient-table .btn-record:hover{background:#d7ebde;color:#104733}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes clinicalReveal{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:820px){.directory-header{align-items:flex-start;flex-direction:column}.directory-toolbar{flex-direction:column;align-items:stretch}.directory-header,.directory-toolbar{padding-left:18px;padding-right:18px}.clinical-tab-panel .panel{padding:19px}.clinical-tabs{overflow-x:auto;flex-wrap:nowrap}}

/* V8.1 — cards de agrupamento para formulários clínicos */
.clinical-tab-panel .clinical-field-card{display:block;min-width:0;margin:0 0 18px;padding:20px 22px 22px;border:1px solid #dce8df;border-radius:17px;background:#f9fcfa;box-shadow:0 4px 14px rgba(16,58,44,.035)}
.clinical-tab-panel .clinical-field-title{display:flex;align-items:center;gap:10px;padding:0 7px 0 0;color:#103f33;font-weight:750;font-size:16px;letter-spacing:-.2px}
.clinical-field-number{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;flex-shrink:0;border-radius:9px;background:#e0f1e8;color:#17634a;font-size:11px;letter-spacing:.2px}
.clinical-field-description{margin:0 0 17px;color:#687e72;font-size:13px;line-height:1.55}
.clinical-tab-panel .clinical-field-card .v81-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:0}
.clinical-tab-panel .clinical-field-card .field{min-width:0}
.clinical-tab-panel .clinical-field-card .field textarea{min-height:85px}
.clinical-tab-panel .clinical-section>form{display:block}
.clinical-tab-panel .clinical-section>form>button{margin-top:2px}
@media(max-width:700px){.clinical-tab-panel .clinical-field-card{padding:17px 15px}.clinical-tab-panel .clinical-field-card .v81-grid{grid-template-columns:1fr}}

/* V8.1 Hotfix: readable actions, independent clinical cards and reliable forms */
.patient-table .btn-record,.patient-table .btn-record:visited{background:#0c5b45!important;color:#fff!important;opacity:1!important;border:1px solid #0c5b45!important;box-shadow:0 4px 12px rgba(11,80,58,.13);font-weight:800}
.patient-table .btn-record:hover{background:#084534!important;color:#fff!important}
.patient-create-btn,.patient-create-btn:visited{background:#116c51!important;color:white!important;opacity:1!important;font-weight:800;min-height:46px}
.patient-create-panel{margin:0 auto}.patient-create-panel form{margin-top:20px}.patient-create-panel .field{min-width:0}
.clinical-tab-panel[hidden]{display:none!important}.clinical-tab-panel .clinical-field-card{display:block!important;border:1px solid #cddfd3!important;background:#fff!important;border-radius:16px!important;padding:24px!important;margin:0 0 20px!important;box-shadow:0 6px 22px rgba(22,63,47,.055)!important}
.clinical-tab-panel .clinical-field-title{font-size:17px!important;color:#0e4535!important}.clinical-tab-panel .clinical-field-description{margin-top:8px!important}
.clinical-tab-panel .clinical-section>form{background:#f5f9f6;border-radius:18px;padding:19px!important;border:1px solid #e6eee8!important}
.clinical-tab-panel .clinical-field-card .field label{font-size:12px;color:#355b48}
.clinical-archive-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px}.clinical-archive-grid .clinical-field-card{margin:0!important}
.patient-directory .directory-header,.patient-directory .directory-toolbar{background:#fff}
@media(max-width:700px){.patient-table td,.patient-table th{padding:12px}.patient-create-btn{width:100%}.clinical-tab-panel .clinical-field-card{padding:16px!important}}

/* Nutri360 Agenda V8.2: calendário e alertas */
.top{position:relative}.notification-holder{position:relative;margin-left:auto;margin-right:12px}.notification-trigger{background:#eaf4ef;color:#0c4939;border:1px solid #d9e9e0;border-radius:14px;min-width:44px;height:44px;cursor:pointer;font-size:24px}.notification-count{position:absolute;top:-6px;right:-6px;background:#b83232;color:white;font-size:11px;min-width:19px;height:19px;border-radius:20px;display:grid;place-items:center}.notification-popover{position:absolute;right:0;top:54px;z-index:40;width:min(370px,85vw);max-height:440px;overflow:auto;background:white;border:1px solid #dbe6e0;box-shadow:0 16px 50px #12372e24;border-radius:16px;padding:14px}.notification-popover[hidden]{display:none}.notification-heading{display:flex;justify-content:space-between;align-items:center;padding:8px 8px 14px}.notification-heading small{color:#678478}.notification-entry{display:flex;gap:10px;padding:12px 8px;border-top:1px solid #eff2f0;color:#153c32;text-decoration:none}.notification-entry small{display:block;color:#647f73;margin-top:4px}.notification-dot{background:#278866;width:9px;height:9px;border-radius:50%;margin-top:6px;flex-shrink:0}.notification-empty{padding:20px;color:#71837a}.notification-all{display:block;text-align:center;color:#08764f;padding:10px;font-weight:700}
.agenda-workspace{display:grid;gap:18px}.agenda-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.agenda-stat{background:#fff;border:1px solid #e2ebe5;border-radius:16px;padding:22px;box-shadow:0 10px 25px #12372e08}.agenda-stat small{display:block;color:#678074}.agenda-stat strong{display:block;font-size:31px;margin-top:10px;color:#0d4436}.agenda-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,1fr);gap:18px;align-items:start}.agenda-grid .panel{margin:0}.calendar-side{display:grid;gap:18px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:22px}.calendar-toolbar h2{margin:8px 0}.calendar-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.calendar-controls strong{text-transform:capitalize;min-width:130px;text-align:center;color:#154839}.calendar-nav,.calendar-today{border:1px solid #dcebe2;background:#f2f7f4;color:#145442;border-radius:9px;padding:8px 12px;cursor:pointer}.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.calendar-weekdays{text-align:center;color:#6e8278;font-size:12px;font-weight:700;margin-bottom:8px}.calendar-blank{height:83px}.calendar-day{background:#fbfdfb;border:1px solid #e7eeea;border-radius:10px;height:83px;color:#234538;text-align:left;padding:10px;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;transition:background .15s,border-color .15s}.calendar-day:hover{background:#eaf5ee;border-color:#79b899}.calendar-day.selected{background:#e1f3e9;border:2px solid #157552}.calendar-day.is-today>span:first-child{background:#0e5b42;color:white;width:25px;height:25px;border-radius:50%;display:grid;place-items:center}.calendar-dots{display:flex;gap:3px}.calendar-dots i,.legend-dot{width:7px;height:7px;border-radius:50%;display:inline-block}.scheduled{background:#1a9b70}.done{background:#7c8c9b}.cancelled{background:#ca8181}.calendar-legend{display:flex;gap:18px;flex-wrap:wrap;color:#6b7f73;font-size:12px;margin-top:15px}.calendar-legend>span{display:flex;gap:6px;align-items:center}.agenda-day-list{margin-top:16px;max-height:380px;overflow:auto}.day-appointment{display:flex;align-items:start;gap:12px;padding:12px 0;border-bottom:1px solid #e8efea}.day-time{font-weight:700;color:#176547}.day-appointment>div{flex:1;display:grid;gap:5px}.day-appointment small{color:#637c70}.day-appointment a{color:#146f4d;font-size:12px;font-weight:700}.appt-status{font-size:11px;text-transform:capitalize;color:#637c70}.agenda-empty{padding:22px 10px;color:#75867c;text-align:center}.agenda-form h2{margin:8px 0 16px}
@media(max-width:1100px){.agenda-grid{grid-template-columns:1fr}}@media(max-width:650px){.agenda-stats{grid-template-columns:1fr}.calendar-day,.calendar-blank{height:60px}.calendar-day{padding:5px}.calendar-weekdays{font-size:10px}.calendar-controls strong{min-width:100px}.notification-holder{margin:0 8px 0 0}}


/* V8.3 — Design system: pacientes e prontuário */
.patient-directory{background:white;border:1px solid #dfeae3;border-radius:22px;box-shadow:0 14px 46px rgba(10,57,42,.06);overflow:hidden;padding:26px 27px}
.patient-directory .directory-header{padding:0 0 19px;gap:16px}
.patient-directory .directory-header h2{font-size:clamp(22px,2.2vw,30px);letter-spacing:-.04em;margin:6px 0}
.patient-directory .directory-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
.patient-directory .directory-toolbar input{background:#f7faf8;border:1px solid #dbe7df;border-radius:12px;min-height:46px;padding:0 16px;width:min(100%,500px)}
.patient-table-wrap{border:1px solid #e1e9e3;border-radius:14px;overflow-x:auto}
.patient-table{width:100%;border-collapse:separate;border-spacing:0}
.patient-table thead th{background:#f1f6f2;color:#50695d;font-size:11px;text-transform:uppercase;letter-spacing:.09em;padding:15px 18px}
.patient-table tbody td{padding:18px;border-top:1px solid #edf2ee;vertical-align:middle}
.patient-table tbody tr:hover{background:#f8fbf8}
.patient-table .btn-record{display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap;min-height:42px;padding:10px 16px;background:#0c6248!important;color:#fff!important;border:1px solid #0c6248!important;border-radius:10px;opacity:1!important;text-decoration:none;font-weight:700}
.patient-table .btn-record:hover{background:#074632!important;color:#fff!important}
.patient-create-panel{max-width:860px;margin:0 auto;padding:30px!important}
.patient-intake-form{margin-top:24px;padding:25px;background:#f7faf8;border:1px solid #e3ebe5;border-radius:16px}
.patient-intake-form .field{margin-bottom:18px}
.patient-intake-form button{min-height:45px}
.clinical-tabs{position:sticky;top:0;z-index:8;display:flex;gap:8px;overflow-x:auto;padding:12px 0;background:#f6f9f7;scrollbar-width:thin}
.clinical-tabs a{white-space:nowrap;padding:10px 15px;border-radius:10px;border:1px solid #dbe8de;text-decoration:none;color:#39594b;font-weight:650}
.clinical-tabs a.active,.clinical-tabs a[aria-selected=true]{background:#0e644d;color:white;border-color:#0e644d}
.clinical-tab-panel[hidden]{display:none!important}
.clinical-tab-panel .clinical-section{background:#fff;border-radius:18px;border:1px solid #e2ebe5;padding:25px}
.clinical-tab-panel .clinical-field-card{margin:18px 0!important;padding:24px!important;border:1px solid #dce8df!important;background:#f8fbf9!important;border-radius:16px!important;box-shadow:none!important}
.clinical-tab-panel .clinical-field-title{padding:0 10px 0 0;font-weight:750;color:#0d4939}
.clinical-tab-panel .clinical-field-description{color:#5e766b;margin:5px 0 18px}
.clinical-tab-panel .clinical-field-card .field{min-width:0}
.clinical-tab-panel .clinical-field-card input,.clinical-tab-panel .clinical-field-card textarea,.clinical-tab-panel .clinical-field-card select{width:100%;box-sizing:border-box;border:1px solid #d7e3db;border-radius:10px;background:white}
.clinical-tab-panel .clinical-section>form{background:transparent!important;padding:0!important;border:none!important}
.clinical-tab-panel .clinical-section>form>button{margin-top:10px;min-height:45px;background:#106849;color:white;border-radius:10px}
@media(max-width:800px){.patient-directory{padding:17px}.patient-directory .directory-toolbar{flex-direction:column;align-items:stretch}.patient-directory .directory-header{flex-wrap:wrap}.clinical-tab-panel .clinical-section{padding:16px}.clinical-tab-panel .clinical-field-card{padding:16px!important}}


/* Nutri360 V8.4: resumo clínico premium */
.patient-clinical-summary{margin:20px 0 26px}.clinical-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.clinical-summary-heading h2{margin:5px 0;font-size:1.4rem;letter-spacing:-.035em;color:#153e33}.clinical-summary-heading p{margin:0;color:#72857c;font-size:.9rem}.clinical-summary-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.clinical-stat-card,.clinical-summary-card{background:#fff;border:1px solid #e3ebe7;box-shadow:0 8px 28px rgba(22,65,52,.035);border-radius:17px;padding:22px}.clinical-stat-card{min-height:121px;display:flex;flex-direction:column;gap:12px}.clinical-stat-label{color:#687d74;font-size:.84rem;font-weight:600}.clinical-stat-value{font-size:1.75rem;font-weight:750;letter-spacing:-.04em;color:#173e34;line-height:1.2}.clinical-stat-value small{font-size:.83rem;font-weight:500;letter-spacing:0;color:#788c83}.clinical-stat-empty{font-size:1rem;font-weight:550;letter-spacing:0;color:#869b91}.clinical-stat-date{font-size:.76rem;color:#81948b}.clinical-summary-bottom{display:grid;grid-template-columns:1.2fr 1fr;gap:15px;margin-top:15px}.clinical-summary-card h3{font-size:1.05rem;margin:0 0 7px;color:#183f34}.clinical-weight-chart{display:block;width:100%;height:160px;margin-top:12px}.clinical-weight-labels{display:flex;justify-content:space-between;gap:10px;color:#71867b;font-size:.76rem}.clinical-chart-empty{padding:36px 8px;text-align:center;color:#8a9d95;font-size:.88rem}.clinical-summary-detail{padding:11px 0;border-bottom:1px solid #eaf0ed}.clinical-summary-detail:last-child{border-bottom:0}.clinical-summary-detail strong{color:#2f594b;font-size:.83rem}.clinical-summary-detail p{margin:6px 0 0;line-height:1.45;overflow-wrap:anywhere;font-size:.89rem}.clinical-summary-disclaimer{font-size:.77rem;color:#7e9188;line-height:1.55;margin:15px 2px 0}@media(max-width:940px){.clinical-summary-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.clinical-summary-bottom{grid-template-columns:1fr}}@media(max-width:570px){.clinical-summary-stats{grid-template-columns:1fr}.clinical-summary-heading{align-items:flex-start;flex-direction:column}.clinical-stat-card{min-height:auto}}

/* Nutri360 V8.5 — identidade visual unificada; camada única de refinamento */
:root{--green:#126a51;--deep:#10382d;--border:#dce9e2;--muted:#698074;--canvas:#f4f7f5}
.dashboard-body{background:var(--canvas);color:#1d3c31}
.dashboard-body .side{background:#103d30;color:#f2f8f4;border:0;box-shadow:10px 0 38px #092c2410;padding:26px 16px}
.dashboard-body .sidebar-brand small,.dashboard-body .nav-label{color:#a5c9b8}
.dashboard-body .sidebar-brand{padding-bottom:30px}
.dashboard-body .nav a{color:#c1d9cc;margin-bottom:5px;gap:13px;border:1px solid transparent;padding:13px 15px;font-size:13px}
.dashboard-body .nav a:before{display:none!important}
.dashboard-body .nav a:hover,.dashboard-body .nav a.active{color:#fff;background:#23614b;border-color:#41745e;box-shadow:none}
.dashboard-body .nav a .nutri-icon{opacity:.85;width:19px;height:19px;flex-shrink:0}
.dashboard-body .nav a.active .nutri-icon{opacity:1}
.dashboard-body .sidebar-footer{border-top:1px solid #ffffff20;color:#fff}
.dashboard-body .sidebar-footer strong{color:white}
.dashboard-body .sidebar-footer small{color:#b3cfc1}
.dashboard-body .content{padding:34px clamp(22px,3vw,56px) 70px;max-width:none;animation:none}
.dashboard-body .top{border-bottom:1px solid #e2ebe5;padding-bottom:22px;margin-bottom:24px}
.dashboard-body h1{font-size:clamp(26px,2.6vw,37px);letter-spacing:-1.2px}
.dashboard-body .panel,.dashboard-body .card{border-radius:19px;border-color:#e2eae5;box-shadow:0 6px 28px #174d3310}
.dashboard-body .btn,.dashboard-body button{transition:background .16s ease,transform .16s ease,box-shadow .16s ease}
.dashboard-body .btn:hover,.dashboard-body button:hover{transform:translateY(-1px)}
.dashboard-body table th{background:#f7faf8;color:#587467}
.dashboard-body table td{color:#274b3a}
.nutri-icon{display:inline-block;width:20px;height:20px;vertical-align:middle;flex-shrink:0}
.stat-symbol .nutri-icon{width:24px;height:24px}
.patient-banner{background:linear-gradient(125deg,#104938,#166b52);border-radius:19px!important;color:white;padding:25px 30px!important;margin-bottom:18px}
.patient-banner h2,.patient-banner p,.patient-banner .eyebrow{color:white!important}
.patient-banner .btn{background:#ffffffed!important;color:#0d4c3b!important}
.patient-section-heading{display:flex;align-items:end;justify-content:space-between;margin:6px 0 15px}
.patient-section-heading h2{margin:5px 0;font-size:22px;color:#193e2e}
.patient-section-heading p{margin:0;color:#708879;font-size:13px}
/* Seções passam a ser acessadas antes dos dados clínicos, em cartões clicáveis */
.clinical-tabs.clinical-tabs-premium{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;background:transparent!important;border:0!important;padding:0!important;margin:0 0 22px!important;position:static!important;overflow:visible!important}
.clinical-tabs.clinical-tabs-premium a{background:#fff;color:#375f4e;min-height:74px;display:flex;align-items:center;gap:13px;padding:15px 17px;border:1px solid #dfeae3;border-radius:14px!important;box-shadow:0 4px 15px #164b2f0b;font-size:13px;font-weight:700;white-space:normal;transition:.16s}
.clinical-tabs.clinical-tabs-premium a .nutri-icon{width:22px;height:22px;color:#26785e}
.clinical-tabs.clinical-tabs-premium a:hover{border-color:#7cbb9c;background:#eff8f2;transform:translateY(-1px)}
.clinical-tabs.clinical-tabs-premium a.active,.clinical-tabs.clinical-tabs-premium a[aria-selected=true]{color:#fff;background:#155c47;border-color:#155c47;box-shadow:0 10px 24px #0d604b27}
.clinical-tabs.clinical-tabs-premium a.active .nutri-icon{color:#d7f7e6}
.clinical-tab-panel[hidden]{display:none!important}
.clinical-tab-panel .clinical-section{padding:25px!important}
.clinical-tab-panel .clinical-field-card{background:#fff!important;border:1px solid #dce8df!important;padding:23px!important;box-shadow:0 3px 12px #103f3210!important}
.clinical-tab-panel .clinical-field-title{font-weight:800;color:#194c3b}
.clinical-tab-panel .clinical-section>form{padding:0!important;background:transparent!important}
.clinical-summary-stats{gap:13px}
.clinical-stat-card{border:1px solid #e1ebe5!important;border-radius:15px!important;box-shadow:none!important}
.patient-directory{background:#fff;border:1px solid #e1ebe5;border-radius:20px;box-shadow:0 6px 25px #103f3210}
.patient-table tbody tr:hover{background:#f3f9f5}
.dashboard-body .content.content-changing{opacity:.85;pointer-events:none}
@media(max-width:1150px){.clinical-tabs.clinical-tabs-premium{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.clinical-tabs.clinical-tabs-premium{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-body .side{background:#103d30}.dashboard-body .nav a{color:#c1d9cc}}
@media(max-width:510px){.clinical-tabs.clinical-tabs-premium{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.clinical-tabs.clinical-tabs-premium a{min-height:64px;padding:10px;font-size:12px;gap:6px}.clinical-tabs.clinical-tabs-premium a .nutri-icon{width:18px}.dashboard-body .content{padding:20px 12px}.patient-banner{padding:20px!important}}
@media(prefers-reduced-motion:reduce){.clinical-tabs.clinical-tabs-premium a,.dashboard-body .btn{transition:none!important}}

/* V8.6 — identificação compacta e dados cadastrais em aba própria */
.patient-compact-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid #e0eae4;border-radius:14px;padding:10px 15px;margin-bottom:13px;box-shadow:0 4px 15px rgba(16,63,50,.035)}
.patient-compact-identity{display:flex;gap:11px;align-items:center;min-width:0}.patient-compact-avatar{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;background:#e5f2ea;color:#14583f;border-radius:10px;font-weight:750}.patient-compact-identity strong{display:block;font-size:15px;color:#193d32;line-height:1.25}.patient-compact-identity small{display:block;color:#70867c;margin-top:3px;font-size:11px}.patient-compact-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.patient-profile-shortcut{display:inline-flex;align-items:center;gap:7px;border:1px solid #dce9df;border-radius:9px;padding:9px 12px;background:#f6faf7;color:#125d45;font-size:12px;font-weight:700;text-decoration:none}.patient-profile-shortcut .nutri-icon{width:16px;height:16px}.patient-compact-actions .btn{padding:9px 13px!important;font-size:12px!important;background:#fff!important;color:#315b4e!important;border:1px solid #dce9df!important;white-space:nowrap}.patient-section-heading{margin:0 0 12px!important}.patient-section-heading h2{font-size:19px!important}.patient-section-heading p{font-size:12px!important}.patient-section-heading .eyebrow{font-size:9px!important}.patient-profile-panel{padding:25px!important}.patient-profile-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.patient-profile-head h2{margin:5px 0;font-size:23px}.patient-profile-head p{margin:0}.patient-profile-pill{border:1px solid #d5e7dc;background:#f0f7f2;border-radius:30px;padding:8px 12px;font-size:12px;color:#23624c}.patient-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.patient-profile-field{background:#f8faf9;border:1px solid #e5eee9;border-radius:13px;padding:16px;min-width:0}.patient-profile-field small{display:block;color:#788b81;font-size:12px;margin-bottom:7px}.patient-profile-field strong{display:block;color:#234639;font-size:15px;overflow-wrap:anywhere}.patient-profile-note{margin:17px 0 0;color:#7b8d83;font-size:12px}
@media(max-width:850px){.patient-compact-bar{flex-wrap:wrap}.patient-compact-actions{width:100%;justify-content:flex-start}.patient-profile-grid{grid-template-columns:1fr}}@media(max-width:480px){.patient-compact-actions .btn,.patient-profile-shortcut{font-size:11px!important}.patient-profile-panel{padding:16px!important}}

/* V8.8: perfil horizontal + indicadores visíveis sem cabeçalho redundante */
.patient-info-row{display:grid!important;grid-template-columns:minmax(180px,1fr) minmax(360px,2fr) auto;align-items:center;gap:20px;padding:15px 20px!important;background:#fff!important;border:1px solid #dfebe4!important;border-radius:16px!important;box-shadow:0 4px 18px #173b2f0a!important;margin-bottom:16px!important}
.patient-inline-details{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;min-width:0}
.patient-inline-details>div{min-width:0;flex:1 1 110px}
.patient-inline-details span{display:block;color:#72877b;font-size:11px;margin-bottom:3px;font-weight:550}
.patient-inline-details strong{display:block;max-width:100%;color:#173f33;font-size:12px;overflow-wrap:anywhere;line-height:1.35}
.patient-back{white-space:nowrap!important}
.patient-profile-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 10px}
.patient-profile-intro h2{margin:4px 0 3px;color:#173f34;font-size:21px;letter-spacing:-.035em}
.patient-profile-intro p{font-size:12px;color:#71877b;margin:0}
.patient-clinical-summary{margin:0!important}
.patient-metrics-subtitle{margin:0 0 13px;font-size:14px;color:#34594b;font-weight:700}
.clinical-summary-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.clinical-stat-card{padding:16px!important;min-height:98px!important;gap:8px!important}
.clinical-stat-value{font-size:23px!important}
.clinical-summary-bottom{margin-top:12px!important}
@media(max-width:1150px){.patient-info-row{grid-template-columns:1fr auto!important}.patient-inline-details{grid-column:1 / -1;grid-row:2}.patient-back{grid-column:2;grid-row:1}}
@media(max-width:780px){.clinical-summary-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.patient-profile-intro{flex-wrap:wrap}}
@media(max-width:540px){.patient-info-row{grid-template-columns:1fr!important}.patient-inline-details,.patient-back{grid-column:auto;grid-row:auto}.patient-inline-details{display:grid;grid-template-columns:1fr 1fr;width:100%}.clinical-summary-stats{grid-template-columns:1fr!important}}


/* V8.11 — duas colunas: conteúdo à esquerda, menu vertical de seções à direita */
.patient-workspace-layout{display:grid;grid-template-columns:minmax(0,1fr) 246px;gap:18px;align-items:start;margin:12px 0 22px}
.patient-workspace-content{grid-column:1;grid-row:1;min-width:0}
.patient-workspace-layout .patient-clinical-navigation{grid-column:2;grid-row:1;display:flex!important;flex-direction:column;position:sticky;top:22px;align-self:start;margin:0!important;padding:16px!important;gap:14px!important;min-width:0;background:#fff;border:1px solid #e2ebe5;border-radius:16px;box-shadow:0 5px 20px rgba(16,70,49,.045)}
.patient-workspace-layout .patient-clinical-navigation .patient-section-heading{margin:0!important}
.patient-workspace-layout .patient-clinical-navigation .patient-section-heading h2{font-size:16px!important;line-height:1.35!important;margin:6px 0!important}
.patient-workspace-layout .patient-clinical-navigation .patient-section-heading p{font-size:11px;line-height:1.5;margin:0}
.patient-workspace-layout .patient-clinical-navigation .clinical-tabs.clinical-tabs-premium{display:flex!important;flex-direction:column!important;grid-template-columns:none!important;gap:7px!important;width:100%;margin:0!important}
.patient-workspace-layout .patient-clinical-navigation .clinical-tabs.clinical-tabs-premium a{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;text-align:left!important;width:100%;min-width:0;min-height:43px!important;padding:10px 12px!important;font-size:12px!important;gap:11px!important;border-radius:10px!important}
.patient-workspace-layout .patient-clinical-navigation .clinical-tabs.clinical-tabs-premium a .nutri-icon{width:18px;height:18px;flex-shrink:0}
.patient-workspace-content .clinical-tab-panel{min-width:0}
.patient-workspace-content .clinical-tab-panel .panel{margin-top:0}
@media(max-width:900px){.patient-workspace-layout{grid-template-columns:minmax(0,1fr) 205px;gap:12px}.patient-workspace-layout .patient-clinical-navigation{padding:12px!important}}
@media(max-width:710px){.patient-workspace-layout{grid-template-columns:minmax(0,1fr)}.patient-workspace-layout .patient-clinical-navigation{grid-column:1;grid-row:1;position:static}.patient-workspace-layout .patient-workspace-content{grid-column:1;grid-row:2}.patient-workspace-layout .patient-clinical-navigation .clinical-tabs.clinical-tabs-premium{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* V8.12: indicadores e histórico lado a lado; componentes locais sem alterar navegação */
.patient-overview-duo{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(315px,1fr);gap:16px;align-items:start;margin:16px 0 22px}
.patient-overview-card{background:#fff;border:1px solid #e0e9e4;border-radius:18px;padding:20px;box-shadow:0 8px 23px rgba(15,65,48,.045);min-width:0}
.patient-overview-duo .patient-immediate-summary{margin:0!important}
.patient-overview-duo .patient-immediate-heading{gap:12px;margin-bottom:14px}
.patient-overview-duo .patient-immediate-heading h2{font-size:20px;margin:3px 0 4px}
.patient-overview-duo .patient-immediate-summary .clinical-summary-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.patient-overview-duo .clinical-stat-card{min-height:94px;padding:13px 14px;background:#f9fbfa;box-shadow:none;border:1px solid #e7eeea}
.clinical-stat-top{display:flex;align-items:center;gap:9px;min-width:0}
.clinical-stat-top .clinical-stat-label{flex:1;font-size:12px;line-height:1.35}
.clinical-stat-symbol{flex:0 0 34px;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#0e7660;background:#dff3eb}
.clinical-stat-symbol svg{width:18px;height:18px;stroke:currentColor;fill:none}
.clinical-stat-symbol-weight{color:#3265af;background:#e8efff}
.clinical-stat-symbol-trend{color:#a45c08;background:#fff0d9}
.clinical-stat-symbol-height{color:#7c4cb6;background:#f2eaff}
.clinical-stat-symbol-waist{color:#c35a73;background:#ffeaf0}
.clinical-stat-symbol-calendar{color:#09778a;background:#def4f6}
.patient-overview-duo .clinical-summary-bottom{grid-template-columns:1fr;gap:10px}
.patient-overview-duo .clinical-summary-card{background:#f9fbfa;border:1px solid #e7eeea;padding:14px;box-shadow:none}
.patient-overview-duo .clinical-weight-chart{height:112px}
.patient-history-card .patient-immediate-heading{margin-bottom:10px}
.patient-history-group{padding:13px 0;border-top:1px solid #eaf0ec}
.patient-history-group h3{display:flex;align-items:center;gap:9px;font-size:14px;color:#174e3c;margin:0 0 12px}
.patient-history-group h3 svg{width:18px;height:18px;color:#258169}
.patient-history-entry{padding:11px 12px;border-radius:10px;background:#f8faf9;margin:0 0 8px;border:1px solid #ebf0ed}
.patient-history-entry time{color:#476b5a;font-size:11px;font-weight:700}
.patient-history-entry p{margin:5px 0 0;color:#334f43;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.patient-history-empty{font-size:13px;color:#7d9185;margin:6px 0 2px}
.patient-overview-brief{background:#fff;padding:22px!important}
@media(max-width:1150px){.patient-overview-duo{grid-template-columns:1fr}.patient-overview-duo .patient-immediate-summary .clinical-summary-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.patient-overview-duo .clinical-summary-bottom{grid-template-columns:1.2fr 1fr}}
@media(max-width:760px){.patient-overview-duo .patient-immediate-summary .clinical-summary-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.patient-overview-duo .clinical-summary-bottom{grid-template-columns:1fr}}
@media(max-width:510px){.patient-overview-card{padding:14px}.patient-overview-duo .patient-immediate-summary .clinical-summary-stats{grid-template-columns:1fr}.patient-overview-duo .patient-immediate-heading{align-items:flex-start;flex-direction:column}}


/* V8.13 — Painel clínico: dois cards leves + detalhes opcionais */
.patient-overview-duo{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px;align-items:stretch;margin:16px 0 14px}
.patient-overview-duo>.patient-overview-card{min-width:0;padding:20px;border:1px solid #e1eae5;border-radius:17px;background:#fff;box-shadow:0 4px 18px rgba(20,64,47,.04)}
.patient-overview-duo .patient-immediate-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.patient-overview-duo .patient-immediate-heading h2{font-size:19px;margin:2px 0 4px;letter-spacing:-.025em}
.patient-overview-duo .patient-immediate-heading p{font-size:12px;color:#75877e;margin:0}
.patient-overview-duo .patient-immediate-heading .btn{font-size:12px;white-space:nowrap;padding:10px 12px}
.patient-overview-duo .patient-clinical-summary{margin:0!important}
.patient-overview-duo .patient-metrics-subtitle{font-size:12px;font-weight:600;color:#637b6e;margin:0 0 10px}
.patient-overview-duo .clinical-summary-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.patient-overview-duo .clinical-stat-card{min-height:98px;padding:12px;border:1px solid #e8efeb;border-radius:12px;background:#f9fbfa;box-shadow:none;gap:7px}
.patient-overview-duo .clinical-stat-top{display:flex;align-items:center;gap:7px}
.patient-overview-duo .clinical-stat-label{font-size:11px;line-height:1.35}
.patient-overview-duo .clinical-stat-symbol{width:30px;height:30px;flex-basis:30px}
.patient-overview-duo .clinical-stat-symbol svg{width:16px;height:16px}
.patient-overview-duo .clinical-stat-value{font-size:21px;line-height:1.15}
.patient-overview-duo .clinical-stat-empty{font-size:12px}
.patient-overview-duo .clinical-stat-date{font-size:10px}
.patient-history-card .patient-history-groups{display:grid;gap:12px}
.patient-history-card .patient-history-group{border:1px solid #e8efeb;border-radius:12px;padding:13px;background:#f9fbfa;min-width:0}
.patient-history-card .patient-history-group h3{margin:0 0 10px;font-size:13px}
.patient-history-card .patient-history-entry{background:#fff;border:1px solid #e9efeb;border-radius:9px;padding:9px 11px;margin-bottom:7px}
.patient-history-card .patient-history-entry:last-child{margin-bottom:0}
.patient-history-card .patient-history-entry p{font-size:12px;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.patient-history-card .patient-history-empty{margin:0;font-size:12px;line-height:1.5}
.patient-extra-details{border:1px solid #e1eae5;border-radius:15px;background:#fff;margin:0 0 20px;overflow:hidden}
.patient-extra-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:15px 19px;color:#19523f;font-size:13px;font-weight:700}
.patient-extra-details>summary::-webkit-details-marker{display:none}
.patient-extra-details>summary>span:first-child{display:inline-flex;align-items:center;gap:9px}
.patient-extra-details>summary svg{width:18px;height:18px}
.patient-extra-hint{font-size:11px;color:#798e82;font-weight:500}
.patient-extra-details[open] .patient-extra-hint{font-size:0}
.patient-extra-details[open] .patient-extra-hint:after{content:'Recolher detalhes';font-size:11px}
.patient-extra-body{padding:0 18px 18px;border-top:1px solid #edf2ef}
.patient-extra-body .clinical-summary-bottom{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0 0}
.patient-extra-body .clinical-summary-card{padding:15px;box-shadow:none;background:#f9fbfa;border:1px solid #e8efeb;border-radius:12px}
.patient-extra-body .clinical-summary-disclaimer{margin:12px 2px 0;line-height:1.4;font-size:11px}
@media(max-width:1000px){.patient-overview-duo{grid-template-columns:1fr}.patient-history-card .patient-history-groups{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.patient-history-card .patient-history-groups,.patient-extra-body .clinical-summary-bottom{grid-template-columns:1fr}.patient-overview-duo .patient-immediate-heading{flex-wrap:wrap}}
@media(max-width:430px){.patient-overview-duo .clinical-summary-stats{grid-template-columns:1fr}.patient-overview-duo>.patient-overview-card{padding:14px}}


/* V8.14 | Cards de identificação visual distintos: resumo x funcionalidades */
.patient-workspace-layout .patient-navigation-card{
  background:linear-gradient(150deg,#f0f5fa 0%,#e9f0f8 100%)!important;
  border:1.5px solid #b7cce0!important;
  border-left:4px solid #5482af!important;
  box-shadow:0 8px 24px rgba(36,75,116,.07)!important;
  border-radius:17px!important;
}
.patient-navigation-card .patient-section-heading .eyebrow{color:#55769b!important;letter-spacing:.12em}
.patient-navigation-card .patient-section-heading h2{color:#234765!important;font-size:17px!important}
.patient-navigation-card .patient-section-heading p{color:#557089!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium a{
  background:rgba(255,255,255,.92)!important;
  border:1px solid #cddae8!important;
  color:#254d6a!important;
  box-shadow:none!important;
  transition:background .15s ease,border-color .15s ease!important;
}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium a:hover{background:#fff!important;border-color:#80a2c2!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium a.is-active,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium a.active,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium a[aria-selected="true"]{
  color:#fff!important;background:#225b73!important;border-color:#225b73!important;
}
.patient-workspace-content .patient-followup-card{
  background:linear-gradient(145deg,#f0f9f4 0%,#e9f5ec 100%)!important;
  border:1.5px solid #afd6bf!important;
  border-left:4px solid #249466!important;
  border-radius:17px!important;
  box-shadow:0 8px 24px rgba(24,92,62,.06)!important;
  padding:22px 24px!important;
}
.patient-followup-heading{display:flex;align-items:center;gap:13px;margin-bottom:12px}
.patient-followup-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;background:#d6eddf;color:#176c47;border-radius:12px}
.patient-followup-icon svg{width:21px;height:21px}
.patient-followup-card .eyebrow{color:#36805c!important;font-size:10px}
.patient-followup-card h2{margin:4px 0 0!important;color:#194f38!important;font-size:19px!important;line-height:1.3}
.patient-followup-card p{margin:0!important;color:#476958!important;font-size:13px;line-height:1.65;max-width:72ch}
@media(max-width:710px){.patient-workspace-content .patient-followup-card{padding:17px!important}.patient-workspace-layout .patient-navigation-card{border-left-width:3px!important}}


/* V8.15 — Painel do paciente reestruturado e design unificado */
.patient-page-shell{display:block}
.patient-info-row{padding:14px 18px!important;border-radius:18px!important;border:1px solid #dfe8e3!important;background:#ffffff!important;box-shadow:0 8px 24px rgba(20,64,47,.05)!important}
.patient-compact-avatar{background:#e8f3ed!important;color:#1c6a4b!important}
.patient-inline-details > div{background:#fbfcfb;border:1px solid #e8efeb;border-radius:12px;padding:10px 12px;min-height:58px}
.patient-inline-details > div span{display:block;font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:#7d9288;margin-bottom:4px}
.patient-inline-details > div strong{font-size:13px;color:#153d31;line-height:1.35}
.patient-back{border-radius:12px!important}

.patient-overview-duo{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)!important;gap:18px!important;margin:18px 0 16px!important}
.patient-overview-duo>.patient-overview-card,
.patient-workspace-content .patient-followup-card,
.patient-workspace-layout .patient-navigation-card,
.patient-extra-details,
.patient-workspace-content .clinical-tab-panel .panel{
  border-radius:18px!important;
  border:1px solid #dde8e2!important;
  box-shadow:0 8px 24px rgba(20,64,47,.05)!important;
}

.patient-overview-duo>.patient-overview-card{padding:22px!important;background:#fff!important;position:relative;overflow:hidden}
.patient-overview-duo>.patient-overview-card:before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:#dceae2}
.patient-immediate-summary.patient-overview-card{background:#f8fcf9!important}
.patient-immediate-summary.patient-overview-card:before{background:#1f8a5b}
.patient-history-card.patient-overview-card{background:#fbfcfe!important}
.patient-history-card.patient-overview-card:before{background:#6f8eab}

.patient-immediate-heading{margin-bottom:16px!important}
.patient-immediate-heading .eyebrow,
.patient-section-heading .eyebrow,
.patient-followup-card .eyebrow{font-size:10px!important;letter-spacing:.14em!important;font-weight:800!important}
.patient-immediate-heading h2,
.patient-followup-card h2,
.patient-navigation-card .patient-section-heading h2{font-size:22px!important;line-height:1.2!important;margin:4px 0 6px!important;letter-spacing:-.03em}
.patient-immediate-heading p,
.patient-followup-card p,
.patient-navigation-card .patient-section-heading p{font-size:13px!important;line-height:1.5!important;color:#62796d!important}

.patient-immediate-summary .clinical-summary-stats{gap:12px!important}
.patient-immediate-summary .clinical-stat-card{background:#fff!important;border:1px solid #e4ede7!important;border-radius:14px!important;padding:14px!important;min-height:96px!important}
.patient-immediate-summary .clinical-stat-value{font-size:20px!important;color:#173d31!important}
.patient-immediate-summary .clinical-stat-empty{font-size:13px!important;color:#74877d!important}
.patient-immediate-summary .clinical-stat-symbol{box-shadow:inset 0 0 0 1px rgba(0,0,0,.03)}

.patient-history-card .patient-history-groups{gap:10px!important}
.patient-history-card .patient-history-group{background:#fff!important;border:1px solid #e5ebf0!important;border-radius:14px!important;padding:14px!important}
.patient-history-card .patient-history-group h3{font-size:14px!important;color:#1a415f!important}
.patient-history-card .patient-history-group h3 svg{color:#5b7e9f!important}
.patient-history-card .patient-history-entry{background:#f9fbfc!important;border:1px solid #e8eef2!important;border-radius:12px!important;padding:10px 12px!important}
.patient-history-card .patient-history-empty{color:#7b8b95!important;font-size:13px!important}

.patient-extra-details{background:#fff!important;overflow:hidden!important;margin-bottom:18px!important}
.patient-extra-details>summary{padding:14px 18px!important;background:#fbfcfb!important;border-bottom:1px solid #eef3f0;color:#23493b!important}
.patient-extra-body{padding:0 18px 18px!important}
.patient-extra-body .clinical-summary-card{background:#fbfcfb!important;border:1px solid #e6eeea!important;border-radius:14px!important}

.patient-workspace-layout{grid-template-columns:minmax(0,1fr) 300px!important;gap:18px!important;align-items:start!important}
.patient-workspace-content{display:flex;flex-direction:column;gap:18px}
.patient-workspace-content .patient-followup-card{
  background:#ffffff!important;
  padding:20px 22px!important;
  border-left:4px solid #1f8a5b!important;
}
.patient-followup-heading{margin-bottom:10px!important}
.patient-followup-icon{background:#e6f4ec!important;color:#1f8a5b!important;border-radius:12px!important}
.patient-followup-card p{max-width:none!important}

.patient-workspace-layout .patient-navigation-card{
  background:#ffffff!important;
  border-left:4px solid #5f83a8!important;
  padding:18px!important;
}
.patient-navigation-card .patient-section-heading{padding-bottom:8px;border-bottom:1px solid #edf2f5;margin-bottom:6px!important}
.patient-navigation-card .patient-section-heading h2{font-size:20px!important;color:#1d4668!important}
.patient-navigation-card .patient-section-heading p{font-size:13px!important;color:#678097!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium{gap:8px!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium a{
  min-height:46px!important;
  border-radius:12px!important;
  border:1px solid #dbe6ef!important;
  background:#f8fbfd!important;
  color:#224c6e!important;
  font-weight:700!important;
}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium a:hover{background:#ffffff!important;border-color:#96b2cb!important;transform:none!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium a.is-active,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium a.active,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium a[aria-selected="true"]{
  background:#1f6b8a!important;
  border-color:#1f6b8a!important;
  color:#fff!important;
  box-shadow:0 10px 20px rgba(31,107,138,.18)!important;
}

.patient-workspace-content .clinical-tab-panel .panel{background:#fff!important;padding:20px!important}
.patient-workspace-content .clinical-tab-panel h3{font-size:15px!important;color:#1a4637!important}
.patient-workspace-content .field label{font-size:12px!important;color:#587065!important;font-weight:700}
.patient-workspace-content input,
.patient-workspace-content select,
.patient-workspace-content textarea{border-radius:12px!important;border:1px solid #dbe6df!important;background:#fcfdfc!important}
.patient-workspace-content table{border-collapse:separate;border-spacing:0 8px}
.patient-workspace-content tbody tr{background:#fbfcfb}
.patient-workspace-content tbody td{border-top:1px solid #e7efea;border-bottom:1px solid #e7efea}
.patient-workspace-content tbody td:first-child{border-left:1px solid #e7efea;border-radius:10px 0 0 10px}
.patient-workspace-content tbody td:last-child{border-right:1px solid #e7efea;border-radius:0 10px 10px 0}

@media(max-width:1120px){
  .patient-overview-duo{grid-template-columns:1fr!important}
  .patient-workspace-layout{grid-template-columns:minmax(0,1fr) 270px!important}
}
@media(max-width:840px){
  .patient-workspace-layout{grid-template-columns:1fr!important}
  .patient-workspace-layout .patient-clinical-navigation{position:static!important}
  .patient-inline-details{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:560px){
  .patient-inline-details{grid-template-columns:1fr!important}
  .patient-immediate-summary .clinical-summary-stats{grid-template-columns:1fr!important}
  .patient-history-card .patient-history-groups,
  .patient-extra-body .clinical-summary-bottom{grid-template-columns:1fr!important}
}


/* V8.16 — Estrutura premium do card de atendimento e acabamento global */
.patient-overview-duo>.patient-overview-card,
.patient-workspace-content .patient-followup-card,
.patient-workspace-layout .patient-navigation-card,
.patient-extra-details,
.patient-workspace-content .clinical-tab-panel .panel,
.patient-inline-details>div{
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.patient-overview-duo>.patient-overview-card:hover,
.patient-workspace-content .patient-followup-card:hover,
.patient-workspace-layout .patient-navigation-card:hover,
.patient-extra-details:hover,
.patient-workspace-content .clinical-tab-panel .panel:hover{
  box-shadow:0 12px 28px rgba(21,67,49,.08)!important;
}
.patient-overview-duo>.patient-overview-card{padding:24px!important}
.patient-immediate-summary.patient-overview-card,
.patient-history-card.patient-overview-card,
.patient-workspace-content .patient-followup-card,
.patient-workspace-layout .patient-navigation-card,
.patient-extra-details,
.patient-workspace-content .clinical-tab-panel .panel{position:relative;overflow:hidden}
.patient-workspace-content .patient-followup-card:before,
.patient-workspace-layout .patient-navigation-card:before,
.patient-extra-details:before,
.patient-workspace-content .clinical-tab-panel .panel:before{
  content:"";position:absolute;left:0;top:0;right:0;height:4px;background:#dfeae4;
}
.patient-workspace-content .patient-followup-card:before{background:#22a06b}
.patient-workspace-layout .patient-navigation-card:before{background:#4d7aa5}
.patient-extra-details:before{background:#91a9bf}
.patient-workspace-content .clinical-tab-panel .panel:before{background:#d9e8df}

.patient-workspace-content .patient-followup-card{
  background:linear-gradient(180deg,#ffffff 0%,#fbfdfc 100%)!important;
  border-left:none!important;
}
.patient-followup-heading{align-items:flex-start!important}
.patient-followup-icon{width:46px!important;height:46px!important;box-shadow:inset 0 0 0 1px rgba(31,138,91,.08)}
.patient-followup-heading > div{flex:1}
.patient-followup-card .patient-followup-lead{margin:8px 0 0!important;color:#557266!important;font-size:13px!important;line-height:1.6!important}
.patient-followup-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.patient-followup-tag{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#eef7f1;border:1px solid #d6eadc;color:#215f43;font-size:11px;font-weight:700;letter-spacing:.02em}

.patient-workspace-layout .patient-navigation-card{
  background:linear-gradient(180deg,#ffffff 0%,#f9fbfd 100%)!important;
  border-left:none!important;
  padding:18px!important;
}
.patient-nav-heading-card{display:flex;align-items:flex-start;gap:12px!important;margin-bottom:10px!important}
.patient-nav-badge{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#eaf2f9;color:#2b628b;flex:none;box-shadow:inset 0 0 0 1px rgba(43,98,139,.08)}
.patient-nav-badge svg{width:22px;height:22px}
.patient-nav-meta{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 12px;margin:0 0 10px;border-bottom:1px solid #ebf1f5}
.patient-nav-meta-item{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#f0f5fa;border:1px solid #dde8f1;color:#5b7791;font-size:11px;font-weight:700}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed{gap:10px!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a{
  min-height:58px!important;
  padding:11px 12px!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center!important;
  gap:10px!important;
  background:#ffffff!important;
  border:1px solid #dfe8ef!important;
}
.patient-navigation-card .clinical-tabs-detailed .clinical-tab-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eff5fa;color:#2f6286}
.patient-navigation-card .clinical-tabs-detailed .clinical-tab-icon svg{width:17px;height:17px}
.patient-navigation-card .clinical-tabs-detailed .clinical-tab-copy{display:flex;flex-direction:column;min-width:0}
.patient-navigation-card .clinical-tabs-detailed .clinical-tab-copy strong{font-size:13px;line-height:1.25;color:inherit}
.patient-navigation-card .clinical-tabs-detailed .clinical-tab-copy small{font-size:11px;line-height:1.35;color:#7390a7;white-space:normal}
.patient-navigation-card .clinical-tabs-detailed .clinical-tab-arrow{font-size:18px;line-height:1;color:#7f9ab2;padding-right:2px}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:hover{background:#f8fbfd!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.is-active .clinical-tab-icon,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.active .clinical-tab-icon,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a[aria-selected="true"] .clinical-tab-icon{background:rgba(255,255,255,.16);color:#fff}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.is-active .clinical-tab-copy small,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.active .clinical-tab-copy small,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a[aria-selected="true"] .clinical-tab-copy small,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.is-active .clinical-tab-arrow,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.active .clinical-tab-arrow,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a[aria-selected="true"] .clinical-tab-arrow{color:rgba(255,255,255,.85)}
.patient-nav-footer{margin-top:12px;padding-top:10px;border-top:1px solid #edf2f5;color:#70879a;font-size:11px;line-height:1.5}

.patient-history-card .patient-history-group,
.patient-immediate-summary .clinical-stat-card,
.patient-extra-body .clinical-summary-card,
.patient-workspace-content .clinical-tab-panel .panel,
.patient-inline-details > div{
  background:linear-gradient(180deg,#ffffff 0%,#fbfcfb 100%)!important;
}
.patient-immediate-summary .clinical-stat-card:hover,
.patient-history-card .patient-history-group:hover,
.patient-extra-body .clinical-summary-card:hover,
.patient-inline-details > div:hover{border-color:#d2e3d9!important}
.patient-history-card .patient-history-group{padding:15px!important}
.patient-history-card .patient-history-entry{padding:11px 12px!important}
.patient-workspace-content .clinical-tab-panel .panel{padding:22px!important}
.patient-workspace-content .clinical-tab-panel .panel h2{font-size:23px!important;letter-spacing:-.03em;color:#173e31}
.patient-workspace-content .clinical-tab-panel .panel .muted{font-size:13px;line-height:1.55}
.patient-workspace-content .clinical-tab-panel .clinical-field-card,
.patient-workspace-content .clinical-tab-panel .clinical-record,
.patient-workspace-content .clinical-tab-panel .clinical-section .panel{border-radius:14px}

@media(max-width:840px){
  .patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a{grid-template-columns:34px minmax(0,1fr) auto!important}
}
@media(max-width:560px){
  .patient-nav-heading-card{flex-direction:column}
  .patient-workspace-content .patient-followup-card,
  .patient-workspace-layout .patient-navigation-card,
  .patient-overview-duo>.patient-overview-card{padding:16px!important}
}


/* V8.17 — Correção definitiva do card Atendimento e acompanhamento */
.patient-workspace-layout{grid-template-columns:minmax(0,1fr) 340px!important;gap:20px!important;align-items:start!important}
.patient-workspace-layout .patient-navigation-card{
  padding:0!important;
  background:#ffffff!important;
  border:1px solid #d8e5ee!important;
  border-radius:20px!important;
  overflow:hidden!important;
  box-shadow:0 14px 34px rgba(24,58,86,.08)!important;
}
.patient-workspace-layout .patient-navigation-card:before{display:none!important}
.patient-nav-shell{padding:18px!important}
.patient-nav-heading-card{
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:start!important;
  margin:0 0 14px!important;
  padding:0 0 14px!important;
  border-bottom:1px solid #e7eff5!important;
}
.patient-nav-badge{
  width:46px!important;height:46px!important;border-radius:14px!important;
  background:linear-gradient(180deg,#ecf5fc 0%,#e5eff8 100%)!important;
  color:#2f648c!important;
  box-shadow:inset 0 0 0 1px rgba(47,100,140,.08)!important;
}
.patient-nav-badge svg{width:21px!important;height:21px!important}
.patient-navigation-card .patient-section-heading .eyebrow{font-size:10px!important;letter-spacing:.14em!important;color:#6b86a0!important;margin-bottom:4px!important}
.patient-navigation-card .patient-section-heading h2{font-size:21px!important;line-height:1.18!important;margin:0 0 6px!important;color:#173d5b!important}
.patient-navigation-card .patient-section-heading p{font-size:13px!important;line-height:1.5!important;color:#637f96!important;margin:0!important}

.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed{display:flex!important;flex-direction:column!important;gap:10px!important;margin:0!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a{
  min-height:64px!important;
  padding:12px 13px!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 16px!important;
  align-items:center!important;
  gap:12px!important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdfe 100%)!important;
  border:1px solid #dce7ef!important;
  border-radius:14px!important;
  color:#1f4f73!important;
  box-shadow:0 4px 10px rgba(31,79,115,.04)!important;
}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:hover{
  background:#f7fbfe!important;
  border-color:#adc7dd!important;
  box-shadow:0 8px 18px rgba(31,79,115,.08)!important;
  transform:translateY(-1px)!important;
}
.patient-navigation-card .clinical-tabs-detailed .clinical-tab-icon{
  width:38px!important;height:38px!important;border-radius:12px!important;
  background:#eef5fb!important;color:#336b93!important;
  box-shadow:inset 0 0 0 1px rgba(51,107,147,.06)!important;
}
.patient-navigation-card .clinical-tabs-detailed .clinical-tab-icon svg{width:18px!important;height:18px!important}
.patient-navigation-card .clinical-tabs-detailed .clinical-tab-copy strong{display:block;font-size:13px!important;line-height:1.25!important;font-weight:800!important;color:inherit!important}
.patient-navigation-card .clinical-tabs-detailed .clinical-tab-copy small{display:block;margin-top:2px;font-size:11px!important;line-height:1.35!important;color:#7591a7!important;white-space:normal!important}
.patient-navigation-card .clinical-tabs-detailed .clinical-tab-arrow{font-size:18px!important;color:#8aa3b8!important;justify-self:end!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.is-active,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.active,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a[aria-selected="true"]{
  background:linear-gradient(180deg,#1c6a86 0%,#145b77 100%)!important;
  border-color:#145b77!important;
  color:#ffffff!important;
  box-shadow:0 12px 24px rgba(20,91,119,.22)!important;
}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.is-active .clinical-tab-icon,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.active .clinical-tab-icon,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a[aria-selected="true"] .clinical-tab-icon{background:rgba(255,255,255,.14)!important;color:#fff!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.is-active .clinical-tab-copy small,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.active .clinical-tab-copy small,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a[aria-selected="true"] .clinical-tab-copy small,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.is-active .clinical-tab-arrow,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.active .clinical-tab-arrow,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a[aria-selected="true"] .clinical-tab-arrow{color:rgba(255,255,255,.88)!important}

/* Elegância adicional para os demais cards */
.patient-info-row,
.patient-overview-duo>.patient-overview-card,
.patient-workspace-content .patient-followup-card,
.patient-extra-details,
.patient-workspace-content .clinical-tab-panel .panel{
  border-radius:20px!important;
}
.patient-info-row{box-shadow:0 10px 24px rgba(20,64,47,.04)!important}
.patient-overview-duo>.patient-overview-card{box-shadow:0 14px 30px rgba(20,64,47,.05)!important}
.patient-workspace-content .patient-followup-card{box-shadow:0 14px 28px rgba(20,64,47,.05)!important}
.patient-extra-details,
.patient-workspace-content .clinical-tab-panel .panel{box-shadow:0 12px 28px rgba(20,64,47,.05)!important}
.patient-overview-duo>.patient-overview-card .eyebrow,
.patient-workspace-content .patient-followup-card .eyebrow,
.patient-extra-details summary,
.patient-workspace-content .clinical-tab-panel .eyebrow{letter-spacing:.14em!important}
.patient-workspace-content .clinical-tab-panel .panel{background:linear-gradient(180deg,#ffffff 0%,#fbfcfb 100%)!important}
.patient-workspace-content .clinical-tab-panel .panel h2{margin-bottom:6px!important}
.patient-immediate-summary .clinical-stat-card,
.patient-history-card .patient-history-group,
.patient-extra-body .clinical-summary-card,
.patient-inline-details > div{border-radius:16px!important}

@media(max-width:1160px){
  .patient-workspace-layout{grid-template-columns:minmax(0,1fr) 320px!important}
}
@media(max-width:900px){
  .patient-workspace-layout{grid-template-columns:1fr!important}
  .patient-clinical-navigation{order:-1}
}
@media(max-width:560px){
  .patient-nav-shell{padding:14px!important}
  .patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a{min-height:58px!important;padding:10px 11px!important;grid-template-columns:34px minmax(0,1fr) 14px!important}
  .patient-navigation-card .clinical-tabs-detailed .clinical-tab-icon{width:34px!important;height:34px!important}
}


/* V8.18 — Fundos diferenciados por card */
.patient-info-row{
  background:linear-gradient(180deg,#ffffff 0%,#fbfcfb 100%)!important;
}

/* Cards principais do prontuário */
.patient-immediate-summary.patient-overview-card{
  background:linear-gradient(180deg,#f5fcf8 0%,#edf8f2 100%)!important;
  border-color:#cfe7d8!important;
}
.patient-history-card.patient-overview-card{
  background:linear-gradient(180deg,#f7fbff 0%,#eef5fb 100%)!important;
  border-color:#d5e4f1!important;
}
.patient-extra-details{
  background:linear-gradient(180deg,#fffdf7 0%,#f9f5ea 100%)!important;
  border-color:#eadfbc!important;
}
.patient-extra-details > summary{
  background:transparent!important;
}
.patient-workspace-content .patient-followup-card{
  background:linear-gradient(180deg,#f7fcf8 0%,#eef7f1 100%)!important;
  border-color:#d4e8d9!important;
}
.patient-workspace-layout .patient-navigation-card{
  background:linear-gradient(180deg,#f7faff 0%,#eef4fb 100%)!important;
  border-color:#d7e2ef!important;
}
.patient-workspace-content .clinical-tab-panel .panel{
  background:linear-gradient(180deg,#ffffff 0%,#f9fbfa 100%)!important;
  border-color:#dce8e1!important;
}

/* Cards internos elegantes */
.patient-immediate-summary .clinical-stat-card:nth-child(1){background:linear-gradient(180deg,#ffffff 0%,#f1fbf6 100%)!important;border-color:#d3eadc!important}
.patient-immediate-summary .clinical-stat-card:nth-child(2){background:linear-gradient(180deg,#ffffff 0%,#f2f7ff 100%)!important;border-color:#d8e4f6!important}
.patient-immediate-summary .clinical-stat-card:nth-child(3){background:linear-gradient(180deg,#ffffff 0%,#fff7ec 100%)!important;border-color:#f0dec1!important}
.patient-immediate-summary .clinical-stat-card:nth-child(4){background:linear-gradient(180deg,#ffffff 0%,#f8f2ff 100%)!important;border-color:#e2d6f4!important}
.patient-immediate-summary .clinical-stat-card:nth-child(5){background:linear-gradient(180deg,#ffffff 0%,#fff1f6 100%)!important;border-color:#f3d2df!important}
.patient-immediate-summary .clinical-stat-card:nth-child(6){background:linear-gradient(180deg,#ffffff 0%,#eefbff 100%)!important;border-color:#cfe8ef!important}

.patient-history-card .patient-history-group:first-child{
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%)!important;
  border-color:#dce7f1!important;
}
.patient-history-card .patient-history-group:last-child{
  background:linear-gradient(180deg,#ffffff 0%,#f6fcfa 100%)!important;
  border-color:#d8ebe3!important;
}

.patient-workspace-content .patient-followup-card .patient-followup-tag:nth-child(1){background:#ebf7ef!important;border-color:#d1ead8!important;color:#205d42!important}
.patient-workspace-content .patient-followup-card .patient-followup-tag:nth-child(2){background:#eef5fc!important;border-color:#d6e3f1!important;color:#2f5f87!important}
.patient-workspace-content .patient-followup-card .patient-followup-tag:nth-child(3){background:#fff6ea!important;border-color:#f0dfc3!important;color:#8d6428!important}

.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(1){background:linear-gradient(180deg,#ffffff 0%,#f3f9ff 100%)!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(2){background:linear-gradient(180deg,#ffffff 0%,#f6fcf8 100%)!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(3){background:linear-gradient(180deg,#ffffff 0%,#fff8ef 100%)!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(4){background:linear-gradient(180deg,#ffffff 0%,#f7f3ff 100%)!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(5){background:linear-gradient(180deg,#ffffff 0%,#eefbff 100%)!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(6){background:linear-gradient(180deg,#ffffff 0%,#fff5f8 100%)!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(7){background:linear-gradient(180deg,#ffffff 0%,#f7f7fb 100%)!important}
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(8){background:linear-gradient(180deg,#ffffff 0%,#f7fbf9 100%)!important}

/* Hover refinado */
.patient-immediate-summary .clinical-stat-card:hover,
.patient-history-card .patient-history-group:hover,
.patient-navigation-card .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:hover,
.patient-workspace-content .patient-followup-card:hover,
.patient-workspace-content .clinical-tab-panel .panel:hover{
  box-shadow:0 12px 24px rgba(26,64,48,.08)!important;
}


/* V8.19 — Correção definitiva do painel lateral e item selecionado */
.patient-workspace-layout{grid-template-columns:minmax(0,1fr) 330px!important;gap:22px!important;align-items:start!important}
.patient-clinical-navigation.patient-navigation-card{
  background:linear-gradient(180deg,#edf4fb 0%,#e6eef8 100%)!important;
  border:1px solid #cbd9e7!important;
  border-radius:20px!important;
  box-shadow:0 14px 30px rgba(27,60,92,.10)!important;
  padding:16px!important;
}
.patient-clinical-navigation .patient-nav-shell,
.patient-clinical-navigation.patient-navigation-card{overflow:visible!important}
.patient-clinical-navigation .patient-nav-shell{background:rgba(255,255,255,.38)!important;border:1px solid rgba(255,255,255,.55)!important;border-radius:16px!important;padding:14px!important}
.patient-clinical-navigation .patient-nav-heading-card{margin:0 0 14px!important;padding:0 0 14px!important;border-bottom:1px solid #d7e3ef!important;display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;gap:12px!important;align-items:start!important}
.patient-clinical-navigation .patient-nav-badge{width:44px!important;height:44px!important;border-radius:14px!important;background:#dbe9f6!important;color:#24557d!important;box-shadow:inset 0 0 0 1px rgba(36,85,125,.08)!important}
.patient-clinical-navigation .patient-section-heading .eyebrow{font-size:10px!important;letter-spacing:.14em!important;color:#6984a0!important;margin-bottom:4px!important}
.patient-clinical-navigation .patient-section-heading h2{font-size:21px!important;line-height:1.18!important;margin:0 0 6px!important;color:#163e5d!important}
.patient-clinical-navigation .patient-section-heading p{font-size:13px!important;line-height:1.55!important;color:#647f96!important;margin:0!important}

.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed{display:flex!important;flex-direction:column!important;gap:10px!important;margin:0!important}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a{
  min-height:64px!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 14px!important;
  align-items:center!important;
  gap:12px!important;
  padding:12px 13px!important;
  border-radius:14px!important;
  border:1px solid #cedbe8!important;
  background:#f9fbfe!important;
  color:#234f72!important;
  box-shadow:0 4px 10px rgba(33,79,114,.05)!important;
  text-decoration:none!important;
}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(1){background:linear-gradient(180deg,#fcfeff 0%,#eef6ff 100%)!important}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(2){background:linear-gradient(180deg,#fcfffd 0%,#eef9f3 100%)!important}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(3){background:linear-gradient(180deg,#fffdfa 0%,#fff4e7 100%)!important}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(4){background:linear-gradient(180deg,#fdfcff 0%,#f3edff 100%)!important}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(5){background:linear-gradient(180deg,#fbfeff 0%,#eaf8ff 100%)!important}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(6){background:linear-gradient(180deg,#fffdfd 0%,#fff1f5 100%)!important}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(7){background:linear-gradient(180deg,#fcfcff 0%,#f1f2f9 100%)!important}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:nth-child(8){background:linear-gradient(180deg,#fcfffe 0%,#eef8f4 100%)!important}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:hover{
  border-color:#98b4cb!important;
  box-shadow:0 8px 18px rgba(33,79,114,.10)!important;
  transform:translateY(-1px)!important;
}
.patient-clinical-navigation .clinical-tabs-detailed .clinical-tab-icon{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:12px!important;background:rgba(255,255,255,.75)!important;color:#2c648f!important;box-shadow:inset 0 0 0 1px rgba(44,100,143,.08)!important}
.patient-clinical-navigation .clinical-tabs-detailed .clinical-tab-icon svg{width:18px!important;height:18px!important}
.patient-clinical-navigation .clinical-tabs-detailed .clinical-tab-copy strong{display:block!important;font-size:13px!important;line-height:1.25!important;font-weight:800!important;color:inherit!important}
.patient-clinical-navigation .clinical-tabs-detailed .clinical-tab-copy small{display:block!important;margin-top:2px!important;font-size:11px!important;line-height:1.35!important;color:#6d8aa3!important;white-space:normal!important}
.patient-clinical-navigation .clinical-tabs-detailed .clinical-tab-arrow{font-size:18px!important;color:#88a0b5!important;justify-self:end!important}

/* Estado selecionado com contraste forte */
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.active,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.is-active,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a[aria-selected="true"],
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:focus-visible{
  background:linear-gradient(180deg,#166483 0%,#0f5571 100%)!important;
  border-color:#0f5571!important;
  color:#ffffff!important;
  box-shadow:0 12px 24px rgba(15,85,113,.24)!important;
  outline:none!important;
}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.active .clinical-tab-icon,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.is-active .clinical-tab-icon,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a[aria-selected="true"] .clinical-tab-icon,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:focus-visible .clinical-tab-icon{
  background:rgba(255,255,255,.16)!important;
  color:#ffffff!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)!important;
}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.active .clinical-tab-copy strong,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.is-active .clinical-tab-copy strong,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a[aria-selected="true"] .clinical-tab-copy strong,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:focus-visible .clinical-tab-copy strong,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.active .clinical-tab-copy small,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.is-active .clinical-tab-copy small,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a[aria-selected="true"] .clinical-tab-copy small,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:focus-visible .clinical-tab-copy small,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.active .clinical-tab-arrow,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a.is-active .clinical-tab-arrow,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a[aria-selected="true"] .clinical-tab-arrow,
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:focus-visible .clinical-tab-arrow{
  color:#ffffff!important;
}

/* Ajuste visual geral dos painéis */
.patient-workspace-content .patient-followup-card{background:linear-gradient(180deg,#f4fbf7 0%,#edf7f1 100%)!important;border:1px solid #d4e8d9!important}
.patient-immediate-summary.patient-overview-card{background:linear-gradient(180deg,#f5fcf8 0%,#ecf7f0 100%)!important}
.patient-history-card.patient-overview-card{background:linear-gradient(180deg,#f6fbff 0%,#eef5fb 100%)!important}
.patient-extra-details{background:linear-gradient(180deg,#fffdf7 0%,#f9f4e8 100%)!important}
.patient-workspace-content .clinical-tab-panel .panel{background:linear-gradient(180deg,#ffffff 0%,#f9fbfa 100%)!important}

@media(max-width:900px){
  .patient-workspace-layout{grid-template-columns:1fr!important}
}


/* V8.20 — Identidade cromática do prontuário. Regras finais sem competição com nth-child. */
.patient-overview-duo > .patient-immediate-summary.patient-overview-card {background:#E1F2E6!important;border:1px solid #8BC8A0!important;}
.patient-overview-duo > .patient-history-card.patient-overview-card {background:#E1EDF9!important;border:1px solid #92B4DA!important;}
.patient-workspace-content .patient-followup-card {background:#FFF0D8!important;border:1px solid #E3BC7B!important;border-left:4px solid #BE8838!important;}
.patient-workspace-layout .patient-clinical-navigation.patient-navigation-card {background:#E6E2F6!important;border:1px solid #AFA2DB!important;box-shadow:0 10px 28px rgba(84,64,128,.10)!important;}
.patient-clinical-navigation .patient-nav-shell {background:transparent!important;border:0!important;padding:6px!important;}
.patient-clinical-navigation .patient-nav-heading-card {border-bottom:1px solid #CBC1E7!important;}
.patient-clinical-navigation .patient-section-heading h2 {color:#43316C!important;}
.patient-clinical-navigation .patient-section-heading p {color:#625687!important;}
.patient-clinical-navigation .patient-section-heading .eyebrow {color:#5A4786!important;}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:not(.active):not(.is-active):not([aria-selected="true"]) {background:#FFFFFF!important;color:#43316C!important;border-color:#C9BFE2!important;}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:is(.active,.is-active,[aria-selected="true"]) {background:#215F50!important;background-image:none!important;color:#FFFFFF!important;border:2px solid #174B3E!important;box-shadow:0 9px 22px rgba(22,83,68,.22)!important;}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:is(.active,.is-active,[aria-selected="true"]) :is(.clinical-tab-copy,.clinical-tab-copy strong,.clinical-tab-copy small,.clinical-tab-arrow,.clinical-tab-icon,.clinical-tab-icon svg,.nutri-icon) {color:#FFFFFF!important;stroke:currentColor!important;}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:is(.active,.is-active,[aria-selected="true"]) .clinical-tab-icon {background:rgba(255,255,255,.15)!important;box-shadow:none!important;}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:focus-visible {outline:3px solid #2D8070!important;outline-offset:2px;}
.patient-extra-details {background:#F8F3E8!important;border-color:#E3CF9F!important;}
.patient-extra-details > summary {background:transparent!important;}
@media (prefers-reduced-motion:reduce){.patient-clinical-navigation .clinical-tabs a{transition:none!important;transform:none!important}}

/* V8.21 — tons de fundo mais presentes, mantendo contraste e foco ativo */
.patient-overview-duo > .patient-immediate-summary.patient-overview-card {
 background:#CEE8D6!important;border:1.5px solid #70B58C!important;
}
.patient-overview-duo > .patient-history-card.patient-overview-card {
 background:#CFDFF1!important;border:1.5px solid #749DC9!important;
}
.patient-workspace-content .patient-followup-card {
 background:#F4DCA8!important;border:1.5px solid #C79A4F!important;border-left:4px solid #B47C24!important;
}
.patient-workspace-layout .patient-clinical-navigation.patient-navigation-card {
 background:#D8CFEF!important;border:1.5px solid #947EC5!important;
}
.patient-extra-details {background:#F1E2BE!important;border:1.5px solid #C7A96B!important;}
.patient-extra-details > summary {background:transparent!important;}
/* Subcards com cores visíveis, mais suaves que os cards de contexto */
.patient-immediate-summary .clinical-summary-stats .clinical-stat-card:nth-child(1){background:#E5F4EA!important;border-color:#A5D2B5!important}
.patient-immediate-summary .clinical-summary-stats .clinical-stat-card:nth-child(2){background:#E3EDFB!important;border-color:#B2C9E9!important}
.patient-immediate-summary .clinical-summary-stats .clinical-stat-card:nth-child(3){background:#FBEACD!important;border-color:#E6BE7A!important}
.patient-immediate-summary .clinical-summary-stats .clinical-stat-card:nth-child(4){background:#EFE4F9!important;border-color:#CBB3E7!important}
.patient-immediate-summary .clinical-summary-stats .clinical-stat-card:nth-child(5){background:#F9DFE9!important;border-color:#E6B1C4!important}
.patient-immediate-summary .clinical-summary-stats .clinical-stat-card:nth-child(6){background:#DCF1F5!important;border-color:#A0D2DE!important}
.patient-history-card .patient-history-group:first-child{background:#E9F0FA!important;border-color:#A8C1DD!important}
.patient-history-card .patient-history-group:last-child{background:#E2F1EB!important;border-color:#A4CDBB!important}
/* Prioridade absoluta do estado selecionado após regras cromáticas */
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:is(.active,.is-active,[aria-selected="true"]),
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:is(.active,.is-active,[aria-selected="true"]):hover {
 background:#195B4B!important;background-image:none!important;color:#fff!important;border:2px solid #104938!important;
}
.patient-clinical-navigation .clinical-tabs.clinical-tabs-premium.clinical-tabs-detailed a:is(.active,.is-active,[aria-selected="true"]) :is(.clinical-tab-copy,.clinical-tab-copy strong,.clinical-tab-copy small,.clinical-tab-arrow,.clinical-tab-icon,.clinical-tab-icon svg,.nutri-icon) {color:#fff!important;stroke:currentColor!important}

/* V9.0 — Módulos de planejamento e clínica */
.v9-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.v9-panel{margin-bottom:20px;padding:24px!important;border:1px solid #d9e8de!important;border-radius:18px!important;background:linear-gradient(180deg,#fff,#f8fcfa)!important;box-shadow:0 10px 24px rgba(19,61,45,.04)!important}
.v9-panel h2{font-size:22px;color:#184936;margin:5px 0 12px}
.v9-panel p{line-height:1.55}
.v9-panel .field{margin:12px 0}.v9-panel .field label{display:block;font-size:12px;font-weight:700;margin-bottom:6px;color:#315d48}
.v9-panel .field input,.v9-panel .field select,.v9-panel .field textarea{width:100%;border:1px solid #cfe1d6;background:#fff;border-radius:11px;min-height:42px;padding:10px;font:inherit}
.v9-panel form button,.v9-print-button{border:0;border-radius:11px;padding:11px 16px;background:#14694d;color:white;font-weight:700;cursor:pointer}
.v9-fields4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 13px}
.v9-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.v9-stats>div{padding:18px;border:1px solid #cfe5d6;background:#ecf7f0;border-radius:13px}.v9-stats small{display:block;color:#426654}.v9-stats strong{display:block;font-size:18px;color:#174c36;margin-top:7px}
.v9-panel .table-scroll{overflow-x:auto}.v9-panel table{width:100%}.v9-panel th{white-space:nowrap}
@media(max-width:900px){.v9-grid{grid-template-columns:1fr}.v9-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.side,.top,.v9-no-print,.v9-print-button,.v9-grid,.notification-holder{display:none!important}.shell,.content{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}.v9-print{border:0!important;box-shadow:none!important}body{background:white!important}}


/* V9.1 — Cores clínicas unificadas para Consultas e Planejamento Alimentar */
.consultation-premium,.v9-plan-creation,.v9-food-creation,.v9-plan-list,.v9-food-list,.v9-plan-detail,.v9-meal-editor,.v9-plan-finalize{position:relative;overflow:hidden;border-radius:20px!important;box-shadow:0 10px 25px rgba(23,55,44,.08)!important}
.consultation-premium:before,.v9-plan-creation:before,.v9-food-creation:before,.v9-plan-list:before,.v9-food-list:before,.v9-plan-detail:before,.v9-meal-editor:before,.v9-plan-finalize:before{content:"";position:absolute;top:0;left:0;right:0;height:5px}
.consultation-premium,.v9-plan-list{background:#CFDFF1!important;border:1.5px solid #749DC9!important}
.consultation-premium:before,.v9-plan-list:before{background:#568ABD}
.v9-plan-creation,.v9-plan-detail{background:#CEE8D6!important;border:1.5px solid #70B58C!important}
.v9-plan-creation:before,.v9-plan-detail:before{background:#39956A}
.v9-food-creation,.v9-food-list{background:#F4DCA8!important;border:1.5px solid #C79A4F!important}
.v9-food-creation:before,.v9-food-list:before{background:#B8873F}
.v9-meal-editor{background:#D8CFEF!important;border:1.5px solid #947EC5!important}
.v9-meal-editor:before{background:#826AB5}
.v9-plan-finalize{background:#D3E6E6!important;border:1.5px solid #83B7B3!important}
.v9-plan-finalize:before{background:#398F89}
.consultation-premium{padding:24px!important}
.consultation-premium .table-title{margin-bottom:16px}
.consultation-premium h2,.v9-plan-list h2{color:#204D74!important}
.v9-plan-creation h2,.v9-plan-detail h2{color:#205E40!important}
.v9-food-creation h2,.v9-food-list h2{color:#78521D!important}
.v9-meal-editor h2{color:#594286!important}
.v9-plan-finalize h2{color:#225D59!important}
.consultation-premium .table-scroll,.v9-panel .table-scroll{background:rgba(255,255,255,.9)!important;border:1px solid rgba(255,255,255,.8)!important;border-radius:14px!important;padding:9px!important}
.consultation-premium table,.v9-panel table{border-collapse:collapse;width:100%}
.consultation-premium th,.v9-panel th{background:#f4f8f6!important;color:#27493e!important;font-size:12px!important}
.consultation-premium td,.v9-panel td{background:rgba(255,255,255,.95)!important;border-bottom:1px solid #e5eee8!important}
.consultation-premium .empty,.v9-panel .muted{color:#46665a!important}
.v9-panel form{padding:16px;border-radius:15px;background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.75)}
.v9-panel form input,.v9-panel form select,.v9-panel form textarea{background:#fff!important;border:1px solid #cbdcd3!important}
.v9-panel form button{background:#195b4b!important;color:#fff!important}
.v9-panel .v9-stats>div:nth-child(1){background:#e3f1e8!important;border-color:#a7cdb7!important}
.v9-panel .v9-stats>div:nth-child(2){background:#e5edfb!important;border-color:#a9c0e2!important}
.v9-panel .v9-stats>div:nth-child(3){background:#fbe8c9!important;border-color:#dcb779!important}
.v9-panel .v9-stats>div:nth-child(4){background:#eee3f7!important;border-color:#c8ace0!important}
@media print{.v9-plan-detail{background:#fff!important;border:0!important;box-shadow:none!important}.v9-plan-detail:before{display:none}}



/* Nutri360 V9.2 — Agenda clínica premium. Escopado para não alterar demais módulos. */
.dashboard-body .agenda-workspace{gap:22px;--agenda-ink:#203f35;--agenda-green:#155e49;--agenda-blue:#416d9b;--agenda-gold:#9d6d25}
.dashboard-body .agenda-workspace .agenda-stats{gap:16px}
.dashboard-body .agenda-workspace .agenda-stat{position:relative;overflow:hidden;border-radius:20px!important;padding:23px 24px!important;min-height:132px;border:1px solid transparent!important;box-shadow:0 12px 25px rgba(19,58,44,.075)!important;transition:transform .2s ease,box-shadow .2s ease}
.dashboard-body .agenda-workspace .agenda-stat:hover{transform:translateY(-2px);box-shadow:0 15px 30px rgba(19,58,44,.11)!important}
.dashboard-body .agenda-workspace .agenda-stat:after{content:"";position:absolute;width:102px;height:102px;border:1px solid currentColor;opacity:.12;border-radius:50%;top:-52px;right:-28px}
.dashboard-body .agenda-workspace .agenda-stat-today{background:linear-gradient(135deg,#cde8d5,#e6f4e9)!important;border-color:#80bb92!important;color:#155a3d}
.dashboard-body .agenda-workspace .agenda-stat-upcoming{background:linear-gradient(135deg,#cbdff4,#e5eef9)!important;border-color:#8cb1d9!important;color:#285a8c}
.dashboard-body .agenda-workspace .agenda-stat-pending{background:linear-gradient(135deg,#f5ddb3,#fff0d5)!important;border-color:#dfb978!important;color:#8a571f}
.dashboard-body .agenda-workspace .agenda-stat small{color:inherit!important;font-size:12px!important;font-weight:800;letter-spacing:.015em}
.dashboard-body .agenda-workspace .agenda-stat strong{color:inherit!important;font-size:34px!important;line-height:1.2;margin-top:12px!important;font-weight:800}
.dashboard-body .agenda-workspace .agenda-grid{grid-template-columns:minmax(0,1.52fr) minmax(325px,.95fr);gap:20px;align-items:start}
.dashboard-body .agenda-workspace .calendar-card{background:linear-gradient(155deg,#e3f0e9 0%,#f1f7f2 60%,#eaf3ed 100%)!important;border:1px solid #9fc9ae!important;box-shadow:0 15px 34px rgba(23,82,55,.09)!important;border-radius:22px!important;padding:25px!important;position:relative}
.dashboard-body .agenda-workspace .calendar-card:before,.dashboard-body .agenda-workspace .agenda-day-panel:before,.dashboard-body .agenda-workspace .agenda-form:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;border-radius:22px 22px 0 0}
.dashboard-body .agenda-workspace .calendar-card:before{background:#328264}
.dashboard-body .agenda-workspace .calendar-toolbar{margin-bottom:24px;gap:18px;align-items:start}
.dashboard-body .agenda-workspace .calendar-toolbar h2{font-size:23px;letter-spacing:-.65px;color:#154836;margin:6px 0 5px}
.dashboard-body .agenda-workspace .calendar-toolbar .muted{font-size:12px;color:#537667;margin:0}
.dashboard-body .agenda-workspace .calendar-controls{gap:7px;padding:5px;border:1px solid #c6dfce;border-radius:14px;background:rgba(255,255,255,.75)}
.dashboard-body .agenda-workspace .calendar-controls strong{font-size:12px;min-width:118px;color:#1c5140}
.dashboard-body .agenda-workspace .calendar-nav,.dashboard-body .agenda-workspace .calendar-today{border:1px solid #c8dfd1!important;color:#195740!important;background:#f5fcf7!important;border-radius:10px!important;min-height:36px;padding:7px 10px!important;box-shadow:none!important}
.dashboard-body .agenda-workspace .calendar-nav:hover,.dashboard-body .agenda-workspace .calendar-today:hover{background:#d9eee1!important}
.dashboard-body .agenda-workspace .calendar-weekdays{gap:7px;margin-bottom:10px;font-size:11px;color:#527868;text-transform:uppercase;letter-spacing:.05em}
.dashboard-body .agenda-workspace .calendar-days{gap:7px}
.dashboard-body .agenda-workspace .calendar-day{min-height:81px;height:81px;background:#f9fcfa;border:1px solid #cde0d2;border-radius:13px!important;padding:10px;box-shadow:0 3px 9px rgba(17,68,44,.03);color:#254e3d;font-weight:750;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
.dashboard-body .agenda-workspace .calendar-day:hover{background:#ebf6ed!important;border-color:#84b99a!important;transform:translateY(-1px);box-shadow:0 6px 12px rgba(17,68,44,.08)}
.dashboard-body .agenda-workspace .calendar-day.selected{border:2px solid #0d6a49!important;background:#b9e1c8!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),0 8px 16px rgba(23,96,63,.13)!important;color:#0b4930!important}
.dashboard-body .agenda-workspace .calendar-day.is-today>span:first-child{background:#155e49;color:#fff;border-radius:9px;width:29px;height:29px}
.dashboard-body .agenda-workspace .calendar-blank{height:81px}
.dashboard-body .agenda-workspace .calendar-dots{gap:4px;min-height:8px}
.dashboard-body .agenda-workspace .calendar-dots i{height:8px;width:8px}
.dashboard-body .agenda-workspace .calendar-legend{border-top:1px solid #c5dccb;padding-top:16px;margin-top:19px;gap:20px;color:#446957;font-weight:650}
.dashboard-body .agenda-workspace .calendar-side{gap:18px}
.dashboard-body .agenda-workspace .agenda-day-panel{position:relative;background:linear-gradient(165deg,#d6e5f6,#edf4fc)!important;border:1px solid #9dbbdc!important;border-radius:22px!important;padding:23px!important;box-shadow:0 14px 30px rgba(40,82,128,.075)!important}
.dashboard-body .agenda-workspace .agenda-day-panel:before{background:#4878a7}
.dashboard-body .agenda-workspace .agenda-day-panel h2{color:#244f7b!important;font-size:18px!important;line-height:1.3;margin:5px 0 0!important;text-transform:capitalize}
.dashboard-body .agenda-workspace .agenda-day-list{margin-top:15px;max-height:400px}
.dashboard-body .agenda-workspace .day-appointment{padding:13px 12px!important;margin-bottom:9px;background:rgba(255,255,255,.85);border:1px solid #c9daeb;border-radius:13px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px 11px;align-items:start}
.dashboard-body .agenda-workspace .day-time{padding:6px 8px;border-radius:8px;background:#e5eef8;color:#285b89;font-size:12px}
.dashboard-body .agenda-workspace .day-appointment>div{min-width:0;overflow-wrap:anywhere;font-size:13px;color:#25475e}
.dashboard-body .agenda-workspace .day-appointment a{grid-column:2;justify-self:start;color:#1d638a}
.dashboard-body .agenda-workspace .appt-status{font-weight:800;color:#4b708d}
.dashboard-body .agenda-workspace .agenda-empty{padding:25px 12px;background:rgba(255,255,255,.68);border:1px dashed #acc6e0;border-radius:13px;color:#53738f}
.dashboard-body .agenda-workspace .agenda-form{position:relative;background:linear-gradient(155deg,#f6dfb9,#fff2dd)!important;border:1px solid #d7b778!important;border-radius:22px!important;padding:23px!important;box-shadow:0 14px 30px rgba(116,81,26,.07)!important}
.dashboard-body .agenda-workspace .agenda-form:before{background:#b58238}
.dashboard-body .agenda-workspace .agenda-form h2{font-size:19px!important;color:#734e21!important;margin:7px 0 20px!important}
.dashboard-body .agenda-workspace .agenda-form label{color:#755526;font-size:12px;font-weight:800}
.dashboard-body .agenda-workspace .agenda-form input,.dashboard-body .agenda-workspace .agenda-form select,.dashboard-body .agenda-workspace .agenda-form textarea{background:#fffdf9!important;border:1px solid #d8bc8e!important;border-radius:11px!important;color:#4a3a26;width:100%;min-height:46px}
.dashboard-body .agenda-workspace .agenda-form textarea{min-height:76px;padding:12px 15px;resize:vertical}
.dashboard-body .agenda-workspace .agenda-form button[type=submit]{background:#155e49;color:#fff;border-radius:11px;min-height:46px;width:100%;box-shadow:0 8px 18px rgba(21,94,73,.17)}
.dashboard-body .agenda-workspace .agenda-form button[type=submit]:hover{background:#104a3a}
@media(max-width:1240px){.dashboard-body .agenda-workspace .agenda-grid{grid-template-columns:1fr}}
@media(max-width:760px){.dashboard-body .agenda-workspace .agenda-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.dashboard-body .agenda-workspace .agenda-stat{padding:15px!important;min-height:102px}.dashboard-body .agenda-workspace .agenda-stat strong{font-size:25px!important}.dashboard-body .agenda-workspace .calendar-card{padding:15px!important}.dashboard-body .agenda-workspace .calendar-day,.dashboard-body .agenda-workspace .calendar-blank{min-height:55px;height:55px}.dashboard-body .agenda-workspace .calendar-day{padding:5px!important}.dashboard-body .agenda-workspace .calendar-weekdays,.dashboard-body .agenda-workspace .calendar-days{gap:3px}}
@media(max-width:500px){.dashboard-body .agenda-workspace .agenda-stats{grid-template-columns:1fr}.dashboard-body .agenda-workspace .agenda-stat{min-height:85px}.dashboard-body .agenda-workspace .calendar-controls{width:100%;justify-content:space-between}.dashboard-body .agenda-workspace .calendar-controls strong{min-width:0}.dashboard-body .agenda-workspace .calendar-day,.dashboard-body .agenda-workspace .calendar-blank{height:47px;min-height:47px}.dashboard-body .agenda-workspace .calendar-weekdays{font-size:9px}}
@media(prefers-reduced-motion:reduce){.dashboard-body .agenda-workspace .agenda-stat,.dashboard-body .agenda-workspace .calendar-day{transition:none!important}}

.clinical-input-help{display:block;margin-top:7px;font-size:12px;line-height:1.5;color:#416b5b}.v9-food-creation textarea{min-height:145px}


/* V10.0 — Perfil do administrador e assinante com cards elegantes */
.profile-shell{display:flex;flex-direction:column;gap:18px}
.profile-hero-card{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border-radius:24px!important;box-shadow:0 16px 34px rgba(18,59,47,.08)!important}
.profile-hero-card h2{margin:6px 0 10px!important;font-size:28px!important;line-height:1.15!important;color:#173d35}
.profile-hero-card p{margin:0!important;max-width:760px!important;line-height:1.6!important;color:#355d54!important}
.profile-hero-copy{flex:1}
.profile-hero-badges{display:flex;flex-direction:column;gap:10px;min-width:220px}
.profile-badge-pill{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:999px;background:rgba(255,255,255,.72);border:1px solid rgba(28,76,63,.12);font-weight:700;color:#275247;box-shadow:0 8px 18px rgba(27,72,58,.08)}
.profile-card-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.9fr);gap:18px;align-items:start}
.profile-info-card,.profile-summary-card{border-radius:22px!important;box-shadow:0 14px 28px rgba(20,64,47,.06)!important}
.profile-info-card h2,.profile-summary-card h2{margin:6px 0 10px!important;font-size:22px!important;color:#143d34}
.profile-form-stack{margin-top:16px}
.profile-actions{display:flex;justify-content:flex-start;margin-top:14px}
.profile-side-stack{display:flex;flex-direction:column;gap:18px}
.profile-summary-list{display:grid;gap:14px;margin-top:10px}
.profile-summary-list div{padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.58);border:1px solid rgba(25,69,55,.10)}
.profile-summary-list small{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#5f7b71;margin-bottom:5px}
.profile-summary-list strong{display:block;font-size:15px;line-height:1.45;color:#1a4339;word-break:break-word}
.profile-tip-list{margin:10px 0 0;padding-left:18px;color:#5d5140;line-height:1.7}
.profile-tip-list li+li{margin-top:8px}
.bg-admin-emerald{background:linear-gradient(180deg,#dbeee4 0%,#cfe5d8 100%)!important;border:1px solid #9ec4ad!important}
.bg-admin-sky{background:linear-gradient(180deg,#ddebf8 0%,#d1e2f2 100%)!important;border:1px solid #a4bfd8!important}
.bg-admin-mint{background:linear-gradient(180deg,#eef7f2 0%,#dfeee5 100%)!important;border:1px solid #bdd7c8!important}
.bg-admin-blue{background:linear-gradient(180deg,#edf4fb 0%,#dfeaf7 100%)!important;border:1px solid #bfd3e7!important}
.bg-admin-amber{background:linear-gradient(180deg,#fbf3e4 0%,#f5ead3 100%)!important;border:1px solid #dfc79a!important}
.bg-admin-rose{background:linear-gradient(180deg,#fbe8eb 0%,#f6dce0 100%)!important;border:1px solid #ddb1bb!important}
.profile-info-card .field input,.profile-info-card .field select,.profile-info-card .field textarea{background:rgba(255,255,255,.88)!important;border:1px solid rgba(43,91,74,.18)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.65)!important}
.profile-info-card .field label{font-weight:700;color:#21473d!important}
.profile-shell .eyebrow{letter-spacing:.14em!important}
@media(max-width:980px){.profile-card-grid{grid-template-columns:1fr}.profile-hero-card{flex-direction:column}.profile-hero-badges{min-width:0;width:100%;flex-direction:row;flex-wrap:wrap}}
@media(max-width:640px){.profile-hero-card h2{font-size:24px!important}.profile-summary-list div{padding:12px 14px}}

/* V10.1 — Design system do administrador: cards com áreas delimitadas */
body.admin-theme{--admin-emerald:#cfebdc;--admin-blue:#d5e6f8;--admin-violet:#e5ddf7;--admin-amber:#fae6c1;--admin-rose:#f7dce3;--admin-teal:#d5efed;--admin-outline:#9bb5a9}
body.admin-theme .content{background:#eef3f1!important}
body.admin-theme .content :is(.card,.panel,.promo-form){border-width:1.5px!important;border-style:solid!important;border-radius:21px!important;box-shadow:0 10px 24px rgba(24,58,48,.075),0 1px 3px rgba(24,58,48,.035)!important;background-image:none}
body.admin-theme .content :is(.card,.panel,.promo-form):hover{box-shadow:0 16px 29px rgba(24,58,48,.11)!important}
body.admin-theme .content :is(.panel,.promo-form) h2{color:#173a32}
body.admin-theme .content :is(.card,.panel,.promo-form) :is(input,select,textarea){background:#fff!important;border:1px solid #abc6bb!important;color:#193d33!important}
body.admin-theme .content :is(.card,.panel,.promo-form) input:focus-visible{border-color:#1c795e!important}
body.admin-theme .content .table-scroll,body.admin-theme .content table{border-radius:12px;overflow:hidden}
body.admin-theme .content table thead{background:rgba(255,255,255,.46)!important}
body.admin-theme .content table td{border-bottom:1px solid rgba(57,98,82,.15)}
body.admin-theme .content .empty{background:rgba(255,255,255,.46);border:1px dashed rgba(57,98,82,.25);border-radius:14px;margin-top:12px}
/* Visão geral: cinco KPIs com cores únicas */
body.admin-page-dashboard .executive-kpis .card:nth-child(5n+1){background:#cae8d4!important;border-color:#81b897!important}
body.admin-page-dashboard .executive-kpis .card:nth-child(5n+2){background:#d3e4fa!important;border-color:#93b4dc!important}
body.admin-page-dashboard .executive-kpis .card:nth-child(5n+3){background:#f8e2b9!important;border-color:#d6ad68!important}
body.admin-page-dashboard .executive-kpis .card:nth-child(5n+4){background:#f6d9dd!important;border-color:#daa3ae!important}
body.admin-page-dashboard .executive-kpis .card:nth-child(5n+5){background:#e4ddf7!important;border-color:#b6a1db!important}
body.admin-page-dashboard .executive-grid>.panel:nth-child(3n+1){background:#d5e8f9!important;border-color:#9fbedb!important}
body.admin-page-dashboard .executive-grid>.panel:nth-child(3n+2){background:#d5eddf!important;border-color:#9ccbaa!important}
body.admin-page-dashboard .executive-grid>.panel:nth-child(3n+3){background:#f6e4c2!important;border-color:#d9ba83!important}
body.admin-page-dashboard .bottom-grid>.panel:nth-child(odd){background:#e4def6!important;border-color:#b9aadd!important}
body.admin-page-dashboard .bottom-grid>.panel:nth-child(even){background:#d8efed!important;border-color:#a0cdca!important}
/* Financeiro: três indicadores e tabela */
body.admin-page-finance .finance-cards>.card:nth-child(1){background:#cde8d7!important;border-color:#86bd9a!important}
body.admin-page-finance .finance-cards>.card:nth-child(2){background:#d5e5f9!important;border-color:#92b3dc!important}
body.admin-page-finance .finance-cards>.card:nth-child(3){background:#f6dce1!important;border-color:#dba6b0!important}
body.admin-page-finance .content>.panel{background:#e4def7!important;border-color:#b6a4dc!important}
/* Planos e descontos: separar plano individual, clínica e campanha */
body.admin-page-plans .plan-grid>.panel:nth-child(odd){background:#cfe9d9!important;border-color:#83ba99!important}
body.admin-page-plans .plan-grid>.panel:nth-child(even){background:#d8e7f8!important;border-color:#91b3dc!important}
body.admin-page-plans .content>.panel{background:#f5e2c0!important;border-color:#d5ac6d!important}
body.admin-page-plans .promo-form{background:#fff0d4!important;border-color:#d7b77f!important;padding:23px!important;margin:0!important}
body.admin-page-plans .promo-form:focus-within{border-color:#a67631!important}
/* Assinantes: área de listagem marcadamente azul */
body.admin-page-tenants .content>.panel{background:#d9e8f8!important;border-color:#95b8dc!important}
body.admin-page-tenants .content>.panel .table-scroll{background:rgba(255,255,255,.48)}
/* Novo assinante: destaque dourado, com formulários leves */
body.admin-page-tenant_new .content>.panel{background:#f6e5c5!important;border-color:#d7b57b!important;max-width:880px!important}
body.admin-page-tenant_new .content>.panel form{background:rgba(255,255,255,.30);padding:20px;border:1px solid rgba(171,121,49,.21);border-radius:16px}
/* Meu perfil: manter cores diferentes inclusive quando CSS legado tenta sobrescrever */
body.admin-page-profile .profile-hero-card{background:#cfe8d9!important;border-color:#8dbb9e!important}
body.admin-page-profile .profile-info-card{background:#d9eddf!important;border-color:#a0c9ad!important}
body.admin-page-profile .bg-admin-blue{background:#d4e6f8!important;border-color:#95b9dc!important}
body.admin-page-profile .bg-admin-amber{background:#f6e2ba!important;border-color:#d8b178!important}
body.admin-page-profile .bg-admin-rose{background:#f4dbe0!important;border-color:#dca7b2!important}
/* Consistência: tipografia e contraste sobre os fundos */
body.admin-theme .content :is(.card,.panel,.promo-form) p,body.admin-theme .content :is(.card,.panel,.promo-form) .muted{color:#47645b!important}
body.admin-theme .content .card>span{color:#426054!important}
body.admin-theme .content .card strong{color:#163a30!important}
@media(max-width:780px){body.admin-theme .content{padding:23px 14px!important}body.admin-theme .content :is(.card,.panel,.promo-form){padding:17px!important}}


/* Nutri360 — Patch visual admin V10.2. Somente fundos/bordas; sem alterar componentes funcionais. */
body.admin-theme .content { background: #edf3f0 !important; }
body.admin-theme .content .panel,
body.admin-theme .content .card,
body.admin-theme .content .promo-form {
    border: 2px solid #97b7a8 !important;
    border-radius: 21px !important;
    box-shadow: 0 12px 25px rgba(25,63,49,.09) !important;
    background-image: none !important;
}
/* Áreas com fundos mais intensos, por aba e posição. */
body.admin-page-dashboard .content .card:nth-child(6n+1),
body.admin-page-dashboard .content .panel:nth-child(6n+1) {background-color:#cbe7d5!important;border-color:#78b491!important}
body.admin-page-dashboard .content .card:nth-child(6n+2),
body.admin-page-dashboard .content .panel:nth-child(6n+2) {background-color:#cfdef3!important;border-color:#8badd2!important}
body.admin-page-dashboard .content .card:nth-child(6n+3),
body.admin-page-dashboard .content .panel:nth-child(6n+3) {background-color:#f3dfb7!important;border-color:#cba15e!important}
body.admin-page-dashboard .content .card:nth-child(6n+4),
body.admin-page-dashboard .content .panel:nth-child(6n+4) {background-color:#e1d8f2!important;border-color:#ae95d0!important}
body.admin-page-dashboard .content .card:nth-child(6n+5),
body.admin-page-dashboard .content .panel:nth-child(6n+5) {background-color:#f2d9df!important;border-color:#cb97a6!important}
body.admin-page-dashboard .content .card:nth-child(6n),
body.admin-page-dashboard .content .panel:nth-child(6n) {background-color:#cae6e8!important;border-color:#83b7bc!important}
body.admin-page-finance .finance-cards .card:nth-child(1){background-color:#c5e6d2!important;border-color:#74b48c!important}
body.admin-page-finance .finance-cards .card:nth-child(2){background-color:#cbddf5!important;border-color:#8bacdb!important}
body.admin-page-finance .finance-cards .card:nth-child(3){background-color:#f3d3da!important;border-color:#cc93a0!important}
body.admin-page-finance .content .panel{background-color:#e1daf4!important;border-color:#a99bce!important}
body.admin-page-plans .plan-grid > .panel:nth-child(1){background-color:#c9e8d5!important;border-color:#82b997!important}
body.admin-page-plans .plan-grid > .panel:nth-child(2){background-color:#cedff4!important;border-color:#8baed5!important}
body.admin-page-plans .content > .panel{background-color:#f0dcae!important;border-color:#cea665!important}
body.admin-page-plans .promo-form{background-color:#f7e8c8!important;border-color:#d0b17a!important}
body.admin-page-tenants .content > .panel{background-color:#d0e1f4!important;border-color:#8eafd0!important}
body.admin-page-tenant_new .content > .panel{background-color:#f2dfbc!important;border-color:#c9a473!important}
body.admin-page-profile .profile-hero-card{background-color:#c7e7d4!important;border-color:#78ad91!important}
body.admin-page-profile .profile-info-card{background-color:#d2e9da!important;border-color:#8bb99b!important}
body.admin-page-profile .bg-admin-blue{background-color:#cadcf2!important;border-color:#8da9d4!important}
body.admin-page-profile .bg-admin-amber{background-color:#efd8a9!important;border-color:#c8a267!important}
body.admin-page-profile .bg-admin-rose{background-color:#f0d3dc!important;border-color:#c78ea2!important}
body.admin-theme .content .panel input,
body.admin-theme .content .panel select,
body.admin-theme .content .panel textarea,
body.admin-theme .content .promo-form input{background-color:#fff!important;border:1px solid #a6bcb1!important}
body.admin-theme .content .table-scroll{border:1px solid rgba(38,88,65,.16);border-radius:13px;background:rgba(255,255,255,.48)}
@media(max-width:760px){body.admin-theme .content .panel,body.admin-theme .content .card{border-radius:16px!important}}

/* V10.4 — Aparência do Master: cartões com fundos opacos e limites distintos. */
body.dashboard-body.admin-theme main.content{background:#f0f4f2!important}
body.dashboard-body.admin-theme main.content :is(.card,.panel,.promo-form){
  background:#d8ebe2!important;background-image:none!important;
  border:2px solid #91bfa8!important;border-radius:21px!important;
  box-shadow:0 8px 0 rgba(40,75,63,.045),0 17px 30px rgba(28,59,48,.085)!important;
  opacity:1!important;
}
body.dashboard-body.admin-theme main.content :is(.executive-kpis,.executive-grid,.bottom-grid,.plan-grid,.cards,.profile-card-grid){gap:22px!important}
body.dashboard-body.admin-theme main.content .panel{margin-bottom:24px!important}
/* Visão geral: indicadores e grupos de análise. */
body.dashboard-body.admin-page-dashboard main.content .executive-kpis>.card:nth-child(5n+1){background:#c8ead6!important;border-color:#72af89!important}
body.dashboard-body.admin-page-dashboard main.content .executive-kpis>.card:nth-child(5n+2){background:#cfe1f9!important;border-color:#87acd8!important}
body.dashboard-body.admin-page-dashboard main.content .executive-kpis>.card:nth-child(5n+3){background:#f3e0b8!important;border-color:#d0aa68!important}
body.dashboard-body.admin-page-dashboard main.content .executive-kpis>.card:nth-child(5n+4){background:#f3d5df!important;border-color:#cd91a6!important}
body.dashboard-body.admin-page-dashboard main.content .executive-kpis>.card:nth-child(5n){background:#e0d6f4!important;border-color:#ac97cd!important}
body.dashboard-body.admin-page-dashboard main.content .executive-grid>.panel:nth-child(3n+1){background:#d1e6f9!important;border-color:#91b5d7!important}
body.dashboard-body.admin-page-dashboard main.content .executive-grid>.panel:nth-child(3n+2){background:#d4eedd!important;border-color:#96c7aa!important}
body.dashboard-body.admin-page-dashboard main.content .executive-grid>.panel:nth-child(3n){background:#f5e2c5!important;border-color:#d7b27d!important}
body.dashboard-body.admin-page-dashboard main.content .bottom-grid>.panel:nth-child(odd){background:#e3dcf6!important;border-color:#b7a8da!important}
body.dashboard-body.admin-page-dashboard main.content .bottom-grid>.panel:nth-child(even){background:#d0eeeb!important;border-color:#92c8c1!important}
/* Financeiro: recebimentos, aberto, vencidas e movimentações. */
body.dashboard-body.admin-page-finance main.content .finance-cards>.card:nth-child(1){background:#c9ebd7!important;border-color:#75b58c!important}
body.dashboard-body.admin-page-finance main.content .finance-cards>.card:nth-child(2){background:#cfdff8!important;border-color:#86add9!important}
body.dashboard-body.admin-page-finance main.content .finance-cards>.card:nth-child(3){background:#f5d7df!important;border-color:#cb91a2!important}
body.dashboard-body.admin-page-finance main.content>.panel{background:#e1dbf6!important;border-color:#b3a3d6!important}
/* Planos: azul/verde e campanha âmbar com promoção individual em rosa. */
body.dashboard-body.admin-page-plans main.content>.plan-grid>.panel:nth-child(odd){background:#d0ecd9!important;border-color:#7eb895!important}
body.dashboard-body.admin-page-plans main.content>.plan-grid>.panel:nth-child(even){background:#d0e2fa!important;border-color:#8bb0da!important}
body.dashboard-body.admin-page-plans main.content>.panel{background:#f4e2bd!important;border-color:#d1ac69!important}
body.dashboard-body.admin-page-plans main.content .promo-form{background:#efd4df!important;border-color:#ca94ab!important}
/* Assinantes e cadastro: cards delimitados. */
body.dashboard-body.admin-page-tenants main.content>.panel{background:#d2e4f8!important;border-color:#88afd8!important}
body.dashboard-body.admin-page-tenant_new main.content>.panel{background:#f1dfbf!important;border-color:#c9a369!important}
/* Perfil do administrador: exatamente a lógica cromática dos assinantes. */
body.dashboard-body.admin-page-profile main.content .profile-hero-card{background:#c8e8d5!important;border-color:#80b795!important}
body.dashboard-body.admin-page-profile main.content .profile-info-card{background:#d9ecdf!important;border-color:#9cc7ac!important}
body.dashboard-body.admin-page-profile main.content .profile-summary-card.bg-admin-blue{background:#d1e3f8!important;border-color:#8badd6!important}
body.dashboard-body.admin-page-profile main.content .profile-summary-card.bg-admin-amber{background:#f2dfb9!important;border-color:#d2ac74!important}
body.dashboard-body.admin-page-profile main.content .profile-summary-card.bg-admin-rose{background:#f2d5dc!important;border-color:#d095a5!important}
body.dashboard-body.admin-theme main.content :is(.panel,.card,.promo-form) h2,
body.dashboard-body.admin-theme main.content .card strong{color:#203c33!important}
body.dashboard-body.admin-theme main.content :is(.panel,.card,.promo-form) .muted{color:#53665c!important}
body.dashboard-body.admin-theme main.content :is(.panel,.promo-form) input:not([type=checkbox]),
body.dashboard-body.admin-theme main.content :is(.panel,.promo-form) select{background:#fff!important;border:1px solid #9eafa6!important}
body.dashboard-body.admin-theme main.content table{background:rgba(255,255,255,.44);border-radius:12px}
body.dashboard-body.admin-theme main.content th{color:#345348!important}
body.dashboard-body.admin-theme main.content td{border-bottom-color:rgba(57,99,75,.15)!important}
@media(max-width:780px){body.dashboard-body.admin-theme main.content :is(.executive-kpis,.executive-grid,.bottom-grid,.plan-grid,.cards,.profile-card-grid){gap:14px!important}}

/* V10.5 — Visualização de modalidades de pagamento (sem processamento até integração UD.Pay) */
.payment-methods-preview{margin:18px 0 14px;padding:20px;border:2px solid #bad3c6;border-radius:18px;background:#e5f2eb}
.payment-methods-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.payment-method-option{padding:16px;border:1px solid #abc8d7;background:#e1edf7;border-radius:14px}
.payment-method-option:nth-child(2){border-color:#a9d1b6;background:#d9ecde}
.payment-method-option:nth-child(3){border-color:#dfc396;background:#f4e6ca}
.payment-method-option strong,.payment-method-option small{display:block}.payment-method-option small{margin-top:7px;line-height:1.5;color:#40594e}
@media(max-width:850px){.payment-methods-grid{grid-template-columns:1fr}}


/* Billing redesign */
.billing-shell{display:flex;flex-direction:column;gap:22px}
.billing-summary-cards{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:0}
.billing-summary-cards .card{min-height:132px;padding:24px}
.billing-summary-cards .card small{display:block;margin-top:10px;color:#587064;font-size:12px;line-height:1.45}
.billing-accent-plan{background:#eef6f2;border-color:#cfe2d7}
.billing-accent-charge{background:#e8f1fb;border-color:#c3d7f1}
.billing-accent-due{background:#f4eee1;border-color:#dfcfaf}
.billing-accent-status{background:#f0ecfb;border-color:#cabde8}
.billing-alert{margin:0;background:#fff3ea;border-color:#f2d0bf;color:#935339}
.billing-overview-panel h2,.billing-payment-panel h2,.billing-current-panel h2,.billing-history-panel h2,.billing-preferences-panel h2,.billing-cancel-panel h2{margin-bottom:10px}
.billing-header-copy{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.billing-inline-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#eaf5ef;color:#14654f;font-size:11px;font-weight:800;letter-spacing:.3px;text-transform:uppercase}
.billing-inline-badge.complimentary{background:#e6efff;color:#315d97}
.billing-copy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.billing-copy-card{padding:18px;border-radius:18px;border:1px solid #dbe6e1}
.billing-copy-card h3{margin:10px 0 8px;font-size:18px}
.billing-copy-card p{margin:0 0 8px}
.billing-copy-soft-green{background:#ecf7f1;border-color:#cce2d4}
.billing-copy-soft-blue{background:#edf4fb;border-color:#cddcf0}
.billing-copy-soft-amber{background:#faf2e4;border-color:#e7d3aa}
.billing-bullet-list{margin:0;padding-left:18px;color:#355446}
.billing-bullet-list li+li{margin-top:8px}
.billing-main-grid{display:grid;grid-template-columns:1.2fr .95fr;gap:20px;align-items:start}
.billing-payment-panel,.billing-current-panel,.billing-history-panel,.billing-preferences-panel,.billing-cancel-panel{min-width:0}
.billing-checkout-form{margin-top:18px}
.billing-method-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.billing-method-card{position:relative;display:block;padding:18px;border:1.5px solid #d6e5dd;border-radius:16px;background:#fff;cursor:pointer;transition:transform .2s,box-shadow .2s,border-color .2s,background .2s}
.billing-method-card:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(15,63,47,.08)}
.billing-method-card input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.billing-method-card strong,.billing-method-card small{display:block}
.billing-method-card strong{font-size:15px;color:#173b31}
.billing-method-card small{margin-top:7px;line-height:1.5;color:#5a7268}
.billing-method-card.selected{border-color:#2d9476;background:#edf8f3;box-shadow:0 0 0 4px rgba(45,148,118,.08)}
.billing-method-copy{padding:14px 16px;border-radius:14px;background:#f5f9f7;border:1px solid #dbe8e2;color:#365247;margin-bottom:16px;line-height:1.6}
.billing-boleto-fields{padding:18px;border-radius:16px;background:#fbfdfc;border:1px solid #e2ece7;margin-bottom:18px}
.billing-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.billing-submit-row{display:flex;align-items:center;justify-content:flex-start;gap:12px}
.billing-current-panel{background:linear-gradient(180deg,#fbfefd 0%,#f7fbf8 100%)}
.billing-empty-box{padding:34px 20px;border:1px dashed #c8d8cf;border-radius:16px;background:#f9fcfa}
.billing-qr-box{margin:16px 0 18px;padding:18px;border-radius:18px;background:#fff;border:1px solid #dfeae4;display:flex;justify-content:center}
.billing-qr-box img{max-width:210px;width:100%;height:auto;display:block}
.billing-copy-field textarea{min-height:112px;overflow-wrap:anywhere}
.billing-action-list{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
.billing-footnote{margin:12px 0 0}
.billing-order-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.billing-order-summary div{padding:14px;border-radius:14px;background:#fff;border:1px solid #dce8e2}
.billing-order-summary small{display:block;color:#74877f;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;margin-bottom:6px}
.billing-order-summary strong{display:block;font-size:14px;color:#173a30;overflow-wrap:anywhere}
.billing-secondary-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:20px;align-items:start}
.billing-preferences-panel{background:#eef4fe;border-color:#b7cbea}
.billing-cancel-panel{background:#fdf0f2;border-color:#e2bcc5}
.billing-preferences-panel form,.billing-cancel-panel form{margin-top:16px}
.billing-preferences-panel button,.billing-cancel-panel button{margin-top:14px}
.badge.status-processing,.badge.status-pending,.badge.status-pendente{background:#edf1f0;color:#52675d}
.badge.status-approved,.badge.status-paid,.badge.status-pago{background:#e3f6ea;color:#0b714f}
.badge.status-cancelled,.badge.status-canceled,.badge.status-cancelada,.badge.status-rejected{background:#fdecee;color:#a24a61}
.billing-inline-badge.status-processing,.billing-inline-badge.status-pending,.billing-inline-badge.status-pendente{background:#edf1f0;color:#52675d}
.billing-inline-badge.status-approved,.billing-inline-badge.status-paid,.billing-inline-badge.status-pago{background:#e3f6ea;color:#0b714f}
.billing-inline-badge.status-cancelled,.billing-inline-badge.status-canceled,.billing-inline-badge.status-cancelada,.billing-inline-badge.status-rejected{background:#fdecee;color:#a24a61}
@media(max-width:1180px){.billing-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.billing-copy-grid,.billing-secondary-grid,.billing-main-grid{grid-template-columns:1fr}.billing-method-grid{grid-template-columns:1fr}.billing-grid-3{grid-template-columns:1fr}}
@media(max-width:760px){.billing-summary-cards{grid-template-columns:1fr}.billing-header-copy{flex-direction:column}.billing-order-summary{grid-template-columns:1fr}}

.signup-price-summary{margin:16px 0 19px;padding:18px 20px;border:1px solid #9cccb4;border-radius:16px;background:linear-gradient(135deg,#e2f5e9,#f4fbf6);color:#174b38}.signup-offer-eyebrow{display:block;font-size:10px;letter-spacing:1.8px;font-weight:800;margin-bottom:7px}.signup-price-summary strong{display:block;font:800 27px/1.2 Manrope,sans-serif;letter-spacing:-.5px}.signup-price-summary p{margin:8px 0 0;font-size:12px;color:#356251;line-height:1.5}
