@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#123f49;--green:#126e7f;--lime:#d8ebed;--bg:#f4f7f7;--muted:#71858a;--line:#dce7e8;--coral:#c35454}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px 'DM Sans',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #c35454;outline-offset:3px}aside{width:244px;background:#dcebef;color:#234b54;position:fixed;inset:0 auto 0 0;padding:36px 22px;display:flex;flex-direction:column}.brand{font:800 30px Manrope;letter-spacing:3px;color:white}.brand small{display:block;font:10px 'DM Sans';letter-spacing:2px;margin-top:8px;color:#a5c2b0}.navlabel{font-size:10px;letter-spacing:1.6px;color:#467b84;margin:46px 12px 14px}nav button{background:none;border:0;color:#315d66;text-align:left;width:100%;padding:13px 14px;border-radius:8px;margin:3px 0;display:flex;gap:12px;align-items:center}nav button.active{background:#f0dcdc;color:#9f4447;font-weight:700;border-left:3px solid #c35454;padding-left:11px}nav button span{margin-left:auto;font-size:9px;opacity:.6}.asidebottom{margin-top:auto;border-top:1px solid #bdd2d7;padding-top:22px}.user{display:flex;gap:10px;align-items:center}.avatar{background:#f0dcdc;color:#a34d4d;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:700}.user small{display:block;font-size:11px;color:#527983;margin-top:4px}main{margin-left:244px}header{height:84px;background:#fff;border-bottom:1px solid var(--line);padding:0 46px;display:flex;align-items:center;justify-content:space-between}header small{color:var(--muted)}.secure{font-size:11px;background:#eff5e8;border:1px solid #e1eacd;padding:8px 12px;border-radius:30px;color:#5b7550}.content{max-width:1360px;padding:38px 46px;margin:auto}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--green);text-transform:uppercase}h1{font:700 32px Manrope;margin:10px 0 9px;letter-spacing:-1px}h2{font:700 19px Manrope;margin:0 0 8px}h3{font:700 15px Manrope;margin:0}.muted,p{color:var(--muted);line-height:1.6}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.btn{border:1px solid var(--line);background:white;border-radius:7px;padding:12px 18px;color:var(--ink);font-weight:600}.btn.primary{background:var(--green);color:white;border-color:var(--green)}.btn.light{background:var(--lime);border-color:var(--lime)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px 0}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;display:flex;justify-content:space-between;align-items:center}.stat strong{font:700 32px Manrope;display:block;margin:10px 0 5px}.stat small{color:var(--muted)}.stat .icon{font-size:22px;background:#e6f0f2;border-radius:12px;padding:14px}.hero{border-radius:12px;background:#e6f0f2;display:grid;grid-template-columns:1.4fr 1fr;overflow:hidden;margin:28px 0}.herotext{padding:30px}.herotext h2{font-size:24px;max-width:430px;margin-top:10px}.herotext p{max-width:420px;color:#607980}.art{position:relative;display:grid;place-items:center;background:radial-gradient(ellipse,#c9e2e6 0%,#e6f0f2 68%);overflow:hidden}.orb{width:190px;height:190px;border:1px solid #9cbec1;border-radius:50%;position:relative;transform:rotate(-25deg)}.orb:after,.orb:before{content:'';position:absolute;border:1px solid #aecacc;border-radius:50%;inset:18px}.orb:before{inset:-23px}.sperm{position:absolute;top:70px;left:65px;width:25px;height:16px;border-radius:50%;background:#126e7f;box-shadow:0 0 0 8px #126e7f12}.sperm:after{content:'';position:absolute;width:115px;height:38px;border-top:2px solid #126e7f;left:20px;top:7px;border-radius:50%}.sperm.two{top:125px;left:48px;transform:scale(.65) rotate(50deg)}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:26px;margin:22px 0}.paneltitle{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.link{border:0;background:none;color:var(--green);font-weight:600}.tag{font-size:10px;background:#f8e9e8;color:#a34d4d;border-radius:4px;padding:5px 8px}.tag.gray{background:#f1f3f0;color:#818b82}.empty{padding:36px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:8px}.empty h3{color:var(--ink);margin:12px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}label{display:block;font-size:12px;font-weight:600;margin-bottom:7px}input,select,textarea{width:100%;border:1px solid #dce2d8;border-radius:6px;background:white;color:var(--ink);padding:11px;outline-color:#60885d}textarea{min-height:90px}.field{margin-bottom:4px}.choice{padding:22px;text-align:left;border:1px solid var(--line);background:white;border-radius:10px;color:var(--ink)}.choice.selected{border:2px solid var(--green);background:#f3f7ed;padding:21px}.choice strong{display:block;font-size:16px;margin-bottom:8px}.choice small{display:block;color:var(--muted);line-height:1.6}.steps{display:flex;gap:9px;margin:26px 0}.steps span{padding:9px 12px;font-size:11px;border-radius:20px;background:#e9ede5;color:#7e8d7c}.steps span.on{background:#d8edb3;color:#31563d}.actions{display:flex;justify-content:space-between;margin-top:26px;gap:12px}.actions .right{display:flex;gap:10px}.counterhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.counterhead strong{font:700 42px Manrope}.progress{height:7px;background:#edf0e9;border-radius:10px;overflow:hidden;margin:15px 0 25px}.progress div{height:100%;background:var(--green);transition:width .15s}.keygrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.key{display:flex;gap:12px;align-items:center;background:#fafbf8;border:1px solid var(--line);border-radius:7px;padding:14px;text-align:left;color:var(--ink)}kbd{background:white;border:1px solid #d9e0d5;border-bottom:3px solid #d9e0d5;border-radius:5px;min-width:30px;padding:6px;text-align:center}.key b{margin-left:auto}.notice{font-size:12px;color:#7a7144;background:#fbf8e9;border:1px solid #eee7c7;border-radius:7px;padding:12px 16px;line-height:1.6;margin:15px 0}.success{background:#edf5e4;color:#47763d;border-color:#d8e8cc}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#8a948b;background:#fafbf8}th,td{padding:15px 12px;border-bottom:1px solid var(--line)}td small{display:block;color:var(--muted);margin-top:5px}.upload{padding:28px;border:1px dashed #9caf8e;border-radius:10px;background:#f8faf4;text-align:center;margin:18px 0}.report{max-width:850px;margin:auto;background:white;padding:44px;border:1px solid var(--line)}.reporthead{display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid var(--green);padding-bottom:24px;margin-bottom:26px}.report .brand{color:var(--green)}.signature{text-align:center;margin:55px auto 15px;width:300px;border-top:1px solid #9aab9c;padding-top:15px}.signature small{display:block;margin-top:6px}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.loginaside{background:#113c47;padding:12%;color:white;display:flex;flex-direction:column;justify-content:center}.loginaside h1{font-size:45px;max-width:420px;margin-top:50px}.loginaside p{color:#a7c1b0}.loginform{max-width:420px;width:100%;margin:auto;padding:30px}.loginform input{margin-bottom:18px}.loginform .btn{width:100%;margin-top:12px}.demo{font-size:11px;color:#315d66;background:#e7f1f3;border:1px solid #c8dfe3;padding:10px 14px;border-radius:6px;margin-bottom:20px}#toast{position:fixed;bottom:25px;right:25px;background:#183e33;color:white;padding:14px 22px;border-radius:8px;display:none;z-index:100}footer{font-size:10px;color:#9aa395;display:flex;justify-content:space-between;margin-top:25px}a{color:var(--green)}@media(max-width:900px){aside{width:190px;padding:25px 12px}main{margin-left:190px}.content{padding:25px}header{padding:0 25px}.keygrid{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:1fr 1fr}}@media(max-width:650px){aside{position:relative;width:100%;padding:20px}.brand{font-size:24px}.brand small,.navlabel,.asidebottom{display:none}nav{display:flex;overflow:auto;margin-top:15px}nav button{width:auto;white-space:nowrap}nav button span{display:none}main{margin-left:0}header{height:60px}.content{padding:20px}.heading{align-items:flex-start;gap:14px}h1{font-size:26px}.stats,.grid,.grid.three{grid-template-columns:1fr}.stat{padding:15px}.hero{grid-template-columns:1fr}.art{display:none}.keygrid{grid-template-columns:1fr 1fr}.steps{overflow:auto}.steps span{white-space:nowrap}.login{grid-template-columns:1fr}.loginaside{padding:30px}.loginaside h1{font-size:28px;margin-top:20px}.report{padding:20px}table{font-size:12px}th,td{padding:10px 5px}.secure{display:none}}@media print{body{background:white}aside,header,.noprint,footer,#toast{display:none!important}main{margin:0}.content{padding:0}.report{border:0;padding:10px;max-width:none}.panel{break-inside:avoid}tr{break-inside:avoid}@page{size:A4;margin:14mm}}

.brandmark{display:block;width:100%;max-width:174px;height:auto;margin:0 auto 26px}.report .brandmark{max-width:165px;margin:0}.loginaside .brandmark{max-width:280px;margin:0 0 42px;filter:brightness(0) invert(1)}.brandmark img{display:block;width:100%;height:auto}.brand{display:none}

/* Login: logotipo original no fundo claro e formulário sobre o azul da marca. */
.loginaside{background:#f2f4f4;color:#123f49}
.loginaside .brandmark,.loginaside .brandmark img{filter:none}
.loginaside p{color:#627b81}
.loginaside h1{color:#123f49}
.loginform{max-width:none;width:100%;height:100vh;margin:0;padding:clamp(28px,8vw,112px);background:#113c47;color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:stretch}
.loginform>*{width:min(100%,430px);align-self:center}
.loginform h1{color:#fff}
.loginform p{color:#bfd0d2}
.loginform label{color:#f0f4f3}
.loginform .field{margin-bottom:7px}
.loginform input{background:#fff;color:#123f49}
.loginform .notice{background:#fff6dc;border-color:#eadca9;color:#695b2b}
.loginform .btn:not(.primary){background:transparent;border-color:#78979b;color:#fff}
.loginform .btn.primary{background:#c35454;border-color:#c35454}
.loginaside .brandmark{max-width:390px;margin:0 0 42px}
@media(max-width:650px){.loginform{height:auto;min-height:58vh;padding:32px 25px}.loginaside .brandmark{max-width:250px;margin:0 0 26px}.loginaside h1{font-size:28px;margin:20px 0 9px}}

.loginform .eyebrow{color:#9fcbd0}
.art svg{display:block;width:min(100%,420px);height:auto;overflow:visible}
.art .orbit{fill:none;stroke:#87b9c0;stroke-width:2}
.art .egg{fill:#f6d9d5;stroke:#126e7f;stroke-width:5}
.art .membrane{fill:#fff8f5;stroke:#c35454;stroke-width:3}
.art .nucleus{fill:#c35454}
.art .sperm-head{fill:#126e7f}
.art .acrosome{fill:#c35454}
.art .sperm-tail{fill:none;stroke:#126e7f;stroke-width:4;stroke-linecap:round}
.art .approach{fill:#c35454}
/* Navegação e prontuários */
nav{display:flex;flex-direction:column;gap:5px}nav button.active{background:#f0dcdc;color:#9f4447}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:25px 0}.quick{border:1px solid var(--line);background:#fff;border-radius:11px;text-align:left;padding:20px;display:grid;grid-template-columns:42px 1fr;align-items:center;column-gap:12px;color:var(--ink)}.quick span{grid-row:span 2;display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#e6f0f2;color:var(--green);font-size:22px}.quick b{font:700 15px Manrope}.quick small{color:var(--muted);margin-top:3px}.table-wrap{overflow:auto}.table-photo{width:34px;height:34px;object-fit:cover;border-radius:50%;vertical-align:middle;margin-right:9px}.owner-picker{padding:18px;background:#f5f8f8;border-radius:9px;margin-bottom:22px}.animal-photo-field{display:flex;align-items:center;gap:18px;margin:20px 0}.photo-preview{width:92px;height:92px;border-radius:12px;background:#e6f0f2;display:grid;place-items:center;overflow:hidden;text-align:center;color:#527983;font-size:12px;flex:none}.photo-preview img,.animal-summary img{width:100%;height:100%;object-fit:cover}.animal-photo-field small{display:block;color:var(--muted);margin-top:8px}.inner-panel{background:#f9fbfb}.breedline{display:grid;grid-template-columns:1fr auto;gap:8px}.breed-add{display:flex;gap:8px;margin-top:9px}.breed-add[hidden]{display:none}.animal-summary{display:flex;align-items:center;gap:20px;padding:20px;background:#eaf2f3;border:1px solid #d6e5e7;border-radius:12px;margin-bottom:18px}.animal-summary img,.photo-fallback{width:96px;height:96px;border-radius:12px;object-fit:cover;flex:none}.photo-fallback{background:#d5e8eb;display:grid;place-items:center;font-size:32px;color:#397782}.animal-summary h2{margin:0 0 6px}.animal-summary p{margin:0}.animal-summary-actions{margin-left:auto;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.subnav{display:flex;gap:5px;border-bottom:1px solid var(--line);margin-bottom:18px;overflow-x:auto}.subnav button{border:0;background:transparent;color:#55737a;padding:13px 16px;border-bottom:3px solid transparent;white-space:nowrap}.subnav button.active{border-color:var(--coral);color:#a34d4d;font-weight:700}.subnav span{border-radius:20px;background:#e6f0f2;padding:2px 7px;font-size:10px}.panel p b{color:var(--ink)}.inline-form{margin-bottom:20px}.modal-backdrop{position:fixed;inset:0;background:#102f35a8;z-index:50;display:grid;place-items:center;padding:20px}.modal{background:#fff;border-radius:14px;padding:26px;width:min(760px,100%);max-height:90vh;overflow:auto;box-shadow:0 24px 90px #102f3540}.modal textarea{min-height:92px}.field.full{grid-column:1/-1}.actions{align-items:center}
@media(max-width:900px){.quick-actions{grid-template-columns:1fr}.quick{padding:15px}.animal-summary{flex-wrap:wrap}.animal-summary-actions{width:100%;margin-left:0;justify-content:flex-start}}
@media(max-width:650px){nav{flex-direction:row}.quick-actions{grid-template-columns:1fr}.animal-photo-field{align-items:flex-start}.animal-summary{gap:12px}.animal-summary img,.photo-fallback{width:70px;height:70px}.animal-summary-actions .btn{padding:9px}.subnav button{padding:12px 10px}.modal{padding:18px}.field.full{grid-column:auto}}
.quick span svg,.icon svg,nav button svg{width:23px;height:23px;display:block;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.icon svg{width:26px;height:26px}.quick span{font-size:0}nav button svg{width:17px;height:17px;display:inline-block;vertical-align:-3px;margin-right:5px}
.head-actions{display:flex;align-items:center;gap:8px}.icon-button{width:38px;height:38px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:22px;line-height:1;display:inline-grid;place-items:center;vertical-align:middle}.icon-button.danger{color:#a84549;border-color:#e8c7c8;background:#fbf1f1}.icon-button:hover{background:#f6e3e3}.species-glyph{display:grid;place-items:center;font-size:48px;line-height:1}.consult-list{display:grid;gap:14px}.consult-card{border:1px solid var(--line);border-radius:11px;padding:18px;background:#fff}.consult-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}.consult-card-head h3{margin:5px 0;font:700 17px Manrope}.consult-card-head p{margin:0;color:var(--muted)}.consult-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.consult-detail{padding:12px;background:#f7f9f9;border-radius:8px;min-height:76px}.consult-detail small{display:block;color:var(--muted);font-weight:700;margin-bottom:6px}.consult-detail p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.table-wrap .icon-button{margin-left:7px}
@media(max-width:650px){.head-actions{flex-wrap:wrap;justify-content:flex-end}.consult-details{grid-template-columns:1fr}.consult-card-head{align-items:flex-start;flex-direction:column}.species-glyph{font-size:36px}}

/* Resultado de exame compacto para leitura em tela e impressão em uma página A4. */
.report{font-size:10px;line-height:1.3}.reporthead{padding-bottom:10px;margin-bottom:8px;border-bottom-width:2px}.report .brandmark{max-width:128px}.report-title{text-align:right}.report-title small{display:block;margin-top:4px;color:var(--muted)}.institution{display:grid;text-align:center;gap:2px;padding:0 0 8px;border-bottom:1px solid var(--line);font-size:8.5px;color:var(--muted)}.institution b{font-size:10px;color:var(--ink)}.report-meta{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:8px 0;border-bottom:1px solid var(--line)}.report-meta>div{display:grid;grid-template-columns:auto 1fr;column-gap:6px;row-gap:3px}.report-meta span{color:var(--muted)}.report-meta b{text-align:right}.report-section{margin-top:8px}.report-section h2{font-size:12px;margin:0 0 4px}.report-section>small{font-size:8px;color:var(--muted)}.result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}.result-item{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:3px 0;border-bottom:1px solid #e7eded;min-width:0}.result-item span{color:#516d73;overflow-wrap:anywhere}.result-item b{text-align:right;white-space:nowrap}.morph-grid{font-size:8.5px}.membrane-section h2 small{font:400 8px 'DM Sans',sans-serif;color:var(--muted);margin-left:5px}.report-notes{margin:2px 0;white-space:pre-wrap}.cbra-result{margin-top:8px;padding:7px 9px;border:1px solid #c6dfe2;border-radius:5px;background:#edf6f7;display:grid;gap:3px;font-size:8.5px;break-inside:avoid}.cbra-result small{color:#536d72;line-height:1.25}.cbra-result.within{background:#edf6ed;border-color:#c7ddc8;color:#315e39}.cbra-result.outside{background:#fbefef;border-color:#e7c7c7;color:#8a3338}.cbra-result.incomplete,.cbra-result.unavailable{background:#f5f5f0;border-color:#deded1;color:#665f42}.standard-checks{display:flex;flex-wrap:wrap;gap:3px 10px}.standard-checks .pass{color:#315e39}.standard-checks .fail{color:#8a3338}.signature-pair{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:10px 10px 8px}.signature-pair .signature{width:auto;margin:0;text-align:center;border-top:1px solid #899b9a;padding-top:5px;font-size:9px}.signature-pair .signature small{font-size:8px;margin-top:2px}.report-footer{border-top:1px solid var(--line);padding-top:6px;font-size:7.4px;line-height:1.22;color:#52686c}.report-footer p{margin:0 0 3px;color:inherit;line-height:inherit}.report-footer>b{display:block;margin-top:3px;color:var(--ink)}.report-footer ol{margin:2px 0 0;padding-left:15px}.report-footer li{margin:0 0 2px;overflow-wrap:anywhere}
@media print{@page{size:A4 portrait;margin:8mm}html,body{width:auto!important;height:auto!important;background:#fff!important}.report{width:194mm;max-width:none;margin:0;padding:0;border:0;font-size:7.2pt;line-height:1.18;color:#123f49}.reporthead{padding-bottom:2mm;margin-bottom:1.5mm}.report .brandmark{max-width:31mm}.report-title h3{font-size:11pt}.report-title small{font-size:6.5pt}.institution{font-size:6.4pt;padding-bottom:1.5mm}.institution b{font-size:7.5pt}.report-meta{padding:1.5mm 0;font-size:7pt}.report-section{margin-top:1.5mm}.report-section h2{font-size:8.5pt;margin-bottom:.5mm}.report-section>small{font-size:6.2pt}.result-item{padding:.45mm 0;font-size:6.6pt}.morph-grid{font-size:6.2pt}.membrane-section h2 small{font-size:6.2pt}.cbra-result{margin-top:1.5mm;padding:1mm 1.5mm;font-size:6.4pt;line-height:1.15}.cbra-result small{font-size:5.8pt}.standard-checks{gap:.5mm 2mm}.signature-pair{gap:8mm;margin:2mm 2mm 1.5mm}.signature-pair .signature{font-size:7pt;padding-top:1mm}.signature-pair .signature small{font-size:6pt;margin-top:.3mm}.report-footer{padding-top:1mm;font-size:5.5pt;line-height:1.12}.report-footer ol{padding-left:3mm;margin-top:.3mm}.report-footer li{margin-bottom:.2mm}.report-section,.cbra-result,.signature-pair,.report-footer{break-inside:avoid}.report h2,.report b,.report span,.report small{orphans:2;widows:2}}

.animal-table-identity{display:flex;align-items:center;gap:12px;min-width:190px}.animal-table-identity .table-photo,.animal-table-identity .table-photo-placeholder{width:48px;height:48px;object-fit:cover;border-radius:50%;flex:none;margin:0}.animal-table-copy{min-width:0}.animal-table-copy b{display:block}.animal-table-copy small{display:block;color:var(--muted);margin-top:4px}.table-photo-placeholder{background:#e6f0f2;display:grid;place-items:center;font-size:22px;color:var(--green)}@media(max-width:650px){.animal-table-identity .table-photo,.animal-table-identity .table-photo-placeholder{width:42px;height:42px}}
.reference-selectors{margin:18px 0}.reference-row{display:grid;grid-template-columns:minmax(180px,1fr) 132px 120px 56px 40px;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--line)}.reference-row select,.reference-row input{min-width:0}.reference-row [data-ref-unit]{color:var(--muted);font-size:13px}.reference-row .icon-button{width:36px;height:36px}.reference-row select:disabled,.reference-row input:disabled{opacity:.75}@media(max-width:700px){.reference-row{grid-template-columns:1fr 1fr 92px 50px 36px}.reference-row select:first-child{grid-column:1/-1}}
.weight-chart-wrap{margin:22px 0 18px;padding:16px 18px;border:1px solid var(--line);border-radius:10px;background:#fbfdfd}.weight-chart-title{display:flex;align-items:center;justify-content:space-between}.weight-chart-title h3{margin:0;font:700 15px Manrope;color:var(--ink)}.weight-chart-title span{font-size:12px;color:var(--muted)}.weight-chart{display:block;width:100%;height:auto;max-height:300px;overflow:visible;margin-top:8px}.weight-chart line{stroke:#dbe6e7;stroke-width:1}.weight-chart text{fill:#668087;font:11px 'DM Sans',sans-serif}.weight-chart polyline{fill:none;stroke:var(--green);stroke-width:3;stroke-linejoin:round;stroke-linecap:round}.weight-chart circle{fill:#fff;stroke:var(--green);stroke-width:3}.reproductive-modal{width:min(980px,100%)}.consult-type-modal{width:min(700px,100%)}.consult-type-modal .choice{min-height:120px}.repro-assessment{margin-top:18px}.repro-section{padding:16px 0;border-top:1px solid var(--line)}.repro-section h3{margin:0 0 12px;font:700 16px Manrope;color:var(--ink)}.repro-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.repro-field{min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff}.repro-field>label,.repro-field legend{display:block;margin-bottom:8px;font-size:13px;font-weight:700;color:var(--ink)}.repro-field legend{padding:0 4px}.radio-options{display:flex;flex-wrap:wrap;gap:8px}.radio-options label{display:flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #dbe6e7;border-radius:18px;background:#f8fbfb;font-size:12px;cursor:pointer}.radio-options input{accent-color:var(--green);margin:0}.repro-field textarea{width:100%;min-height:58px;margin-top:8px}.repro-description[hidden]{display:none}.consult-repro-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:14px}.consult-repro-summary>div{padding:8px;background:#f5f8f8;border-radius:6px;font-size:12px}.consult-repro-summary p{margin:0;color:var(--muted)}@media(max-width:700px){.repro-fields,.consult-repro-summary{grid-template-columns:1fr}.weight-chart-wrap{padding:12px}}
.radio-options label span{white-space:nowrap}.repro-field .repro-description{margin-top:10px}.repro-conditional{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}.repro-conditional[hidden],#mammary-map-wrap[hidden]{display:none}.repro-conditional p{margin:0 0 8px;font-weight:700;font-size:13px}.repro-conditional .grid{gap:10px}.repro-conditional label{font-size:12px;font-weight:700}.section-observations{margin-top:12px}.section-observations label,.vaginoscopy-upload>label{display:block;margin-bottom:6px;font-size:13px;font-weight:700;color:var(--ink)}.section-observations textarea{width:100%;min-height:54px}.vaginoscopy-upload{margin-top:14px;padding:12px;border:1px dashed #bdced0;border-radius:8px;background:#f8fbfb}.vaginoscopy-preview-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.vaginoscopy-preview{display:grid;grid-template-columns:64px minmax(0,1fr) 32px;align-items:center;gap:8px;max-width:360px;padding:6px;border:1px solid var(--line);border-radius:8px;background:#fff}.vaginoscopy-preview img{width:64px;height:48px;object-fit:cover;border-radius:5px}.vaginoscopy-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.mammary-neoplasia{margin-top:14px}.mammary-map-layout{display:grid;grid-template-columns:1fr minmax(250px,360px) 1fr;align-items:center;gap:8px;max-width:680px;margin:12px auto}.mammary-side-labels{display:flex;justify-content:space-around;gap:8px;font-size:11px;color:var(--muted)}.mammary-side-labels span{max-width:80px;text-align:center}.mammary-map{width:100%;max-height:310px}.dog-body,.dog-head{fill:#e8f1f2;stroke:#68838a;stroke-width:3}.dog-ear,.dog-limb,.dog-tail{fill:none;stroke:#68838a;stroke-width:7;stroke-linecap:round;stroke-linejoin:round}.mammary-marker{cursor:pointer;outline:none}.mammary-marker circle{fill:#fff;stroke:var(--green);stroke-width:2}.mammary-marker text{fill:var(--ink);font:700 7px 'DM Sans',sans-serif;text-anchor:middle;pointer-events:none}.mammary-marker.selected circle,.mammary-marker:focus circle{fill:#efc8c8;stroke:#bd4141;stroke-width:3}.mammary-nodule{margin:10px 0;padding:12px;border:1px solid var(--line);border-radius:8px}.mammary-nodule legend{font-weight:700;color:var(--ink)}.mammary-nodule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.mammary-nodule-grid>label{display:grid;gap:6px;font-size:12px;font-weight:700}.mammary-nodule-grid>label span{display:flex;align-items:center;gap:6px}.mammary-nodule-grid input[type=number]{min-width:0;width:50%}.mammary-nodule-grid select{width:100%}.mammary-nodule-grid fieldset{display:flex;gap:12px;border:0;padding:0;margin:0}.mammary-nodule-grid fieldset legend{font-size:12px;margin-bottom:6px}.exam-row-actions,.report-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.exam-row-actions .icon-button{width:32px;height:32px;min-width:32px}.report-actions .icon-button{margin:0}
@media(max-width:700px){.mammary-map-layout{grid-template-columns:1fr;gap:0}.mammary-side-labels{justify-content:space-evenly;order:2}.mammary-map{max-width:340px;margin:auto}.mammary-nodule-grid{grid-template-columns:1fr}.report-actions{flex-wrap:wrap}.exam-row-actions{gap:4px}}
.mammary-map-layout{display:flex;justify-content:center;max-width:none;margin:14px auto}.mammary-map{display:block;width:min(100%,380px);max-height:390px}.dog-body,.dog-head{fill:#e8f1f2;stroke:#68838a;stroke-width:4;stroke-linejoin:round}.dog-leg,.dog-tail,.dog-ear{fill:none;stroke:#68838a;stroke-width:9;stroke-linecap:round;stroke-linejoin:round}.dog-muzzle{fill:#fff;stroke:#68838a;stroke-width:2}.dog-eye,.dog-nose{fill:#34565e}.dog-mouth{fill:none;stroke:#68838a;stroke-width:2;stroke-linecap:round}.mammary-marker text{font-size:6px}.mammary-nodule-grid>fieldset{display:block;min-width:0}.mammary-nodule-grid>fieldset .radio-options{gap:8px}.mammary-nodule-grid>fieldset .radio-options label{min-width:76px;justify-content:center}.mammary-nodule-grid>fieldset legend{display:block;padding:0;margin-bottom:7px}.mammary-nodule-grid .radio-options input{flex:none}.repro-fields>[data-repro-condition="progesterone"]{margin:0;align-self:stretch}.repro-fields>[data-repro-condition="progesterone"] .input-unit{display:flex;align-items:center;gap:8px}.repro-fields>[data-repro-condition="progesterone"] .input-unit input{min-width:0;flex:1}.repro-fields>[data-repro-condition="progesterone"][hidden]{display:none}

.morph-input-groups{display:grid;gap:18px}.morph-input-group h3,.morph-key-group h3{font:700 14px Manrope;color:var(--ink);margin:0 0 10px}.morph-key-group{margin:16px 0}.morph-keygrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.morph-keygrid .key{padding:10px;gap:7px}.morph-summary-title{font:700 11px Manrope;margin:8px 0 2px}.morph-group-title{font:700 10px Manrope;margin:5px 0 1px}.morph-summary .result-item{font-weight:700}.morph-summary .result-item span{color:var(--ink)}@media(max-width:700px){.morph-keygrid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.owner-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap}.owner-row-actions .icon-button{width:32px;height:32px;min-width:32px}.btn.danger{color:#a84549;border-color:#e8c7c8;background:#fbf1f1}.btn.danger:hover{background:#f6e3e3}
/* Consulta reprodutiva: anamnese própria e escolhas mamárias alinhadas. */
.repro-anamnesis{margin-top:14px}.repro-anamnesis textarea{width:100%;min-height:90px}.mammary-nodule-grid>fieldset{display:grid;gap:6px;align-content:start;min-width:0}.mammary-nodule-grid>fieldset .radio-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mammary-nodule-grid>fieldset .radio-options label{box-sizing:border-box;width:100%;min-width:0;min-height:38px;justify-content:center;white-space:nowrap;padding:7px 10px}

.consult-repro-summary .consult-repro-anamnesis{grid-column:1/-1}
/* Safari applied the global full-width input rule to radio controls. */
.radio-options input[type="radio"]{appearance:auto;-webkit-appearance:radio;width:16px;min-width:16px;max-width:16px;height:16px;flex:0 0 16px;padding:0;margin:0;}

.owner-name-link{border:0;background:transparent;padding:0;color:var(--ink);font:inherit;text-align:left;cursor:pointer}.owner-name-link b{display:inline-block}.owner-name-link:hover{color:var(--green);text-decoration:underline}.owner-profile-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 22px;margin-top:18px}.owner-profile-info-item{min-width:0}.owner-profile-info-item small{display:block;color:var(--muted);margin-bottom:5px}.owner-profile-info-item b{display:block;overflow-wrap:anywhere}@media(max-width:700px){.owner-profile-info{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ultrasound-section{border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.ultrasound-section h2{margin-bottom:16px}.ultrasound-patient{display:flex;align-items:center;gap:14px;padding:14px 16px;background:#e9f2f3;border-radius:8px;margin-bottom:20px}.ultrasound-patient span{color:var(--muted)}.ultrasound-animal-list{display:grid;gap:8px;max-height:45vh;overflow:auto}.ultrasound-animal-option{display:flex;justify-content:space-between;gap:14px;text-align:left;padding:14px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink)}.ultrasound-animal-option span{color:var(--muted)}.ultrasound-female{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.ultrasound-female .choice{min-height:100px}.ultrasound-image-previews{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-top:14px}.ultrasound-image-preview{display:grid;grid-template-columns:58px minmax(0,1fr) 32px;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;padding:7px}.ultrasound-image-preview img{width:58px;height:48px;object-fit:cover;border-radius:5px}.ultrasound-image-preview span{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ultrasound-image-preview .icon-button{min-width:30px;width:30px;height:30px}.ultrasound-result{min-height:28px}.ultrasound-report-images{margin-top:12px}.ultrasound-report-images h2{font-size:12px}.ultrasound-image-page{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,minmax(0,1fr));gap:5mm 8mm;margin:5mm 0;break-after:page;page-break-after:always}.ultrasound-image-page figure{margin:0;min-width:0;display:flex;flex-direction:column;justify-content:center;break-inside:avoid}.ultrasound-image-page img{width:100%;max-height:110mm;object-fit:contain}.ultrasound-image-page figcaption{text-align:center;font-size:8pt;color:var(--muted);margin-top:2mm}@media(max-width:700px){.ultrasound-animal-option{flex-direction:column}.ultrasound-image-page{gap:12px}}@media print{.ultrasound-section{break-inside:avoid}.ultrasound-image-page{min-height:250mm;margin:0;align-items:center}.ultrasound-image-page img{max-height:68mm}.ultrasound-image-page:last-child{break-after:auto;page-break-after:auto}}

/* Ajustes de usabilidade do resultado de exame ultrassonográfico. */
.ultrasound-animal-search{margin:12px 0}.ultrasound-animal-search input{width:100%}.ultrasound-animal-search small{display:block;margin-top:5px;color:var(--muted)}.ultrasound-animal-option[hidden],.ultrasound-animal-list .empty[hidden]{display:none}.ultrasound-nodules{margin-top:12px}.ultrasound-hint{margin:-8px 0 14px;color:var(--muted);font-size:13px}.ultrasound-report .report-meta b{text-align:left}.ultrasound-report .result-item{justify-content:flex-start}.ultrasound-report .result-item b{text-align:left;white-space:normal}

.ultrasound-report .ultrasound-bmode{display:grid;gap:3px;margin-top:5px;padding:7px 9px;border:1px solid #c8dfe2;border-left:3px solid var(--green);border-radius:4px;background:#f0f7f7;white-space:normal}.ultrasound-report .ultrasound-bmode span{font-weight:700;color:var(--ink)}.ultrasound-report .ultrasound-bmode b{font-weight:500}.ultrasound-institution{display:grid;gap:2px;margin-top:5px;font-size:8px;line-height:1.2;color:var(--muted)}.ultrasound-institution b{color:var(--ink)}@media print{.ultrasound-institution{font-size:6pt}.ultrasound-report .ultrasound-bmode{padding:1.2mm 1.5mm;margin-top:1mm}}

/* Evita cortes dentro dos rótulos e reserva área para assinatura manuscrita. */
.ultrasound-report .result-grid{grid-template-columns:minmax(0,1fr)}.ultrasound-report .result-item{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:12px;align-items:baseline}.ultrasound-report .result-item span{white-space:nowrap;overflow-wrap:normal;word-break:normal}.ultrasound-report .result-item b{min-width:0;overflow-wrap:normal;word-break:normal;hyphens:none}.ultrasound-report .signature-pair{margin-top:48px}@media print{.ultrasound-report .signature-pair{margin-top:25mm;margin-bottom:8mm}}

@media print{.demo{display:none!important}}

@media print{@page ultrasound-report-page{size:A4 portrait;margin:0}.ultrasound-report{page:ultrasound-report-page;font-size:10px!important;line-height:1.3!important}.ultrasound-report.report{width:210mm;max-width:none;margin:0;padding:44px;border:1px solid var(--line)}.ultrasound-report .reporthead{padding-bottom:10px;margin-bottom:8px;border-bottom-width:2px}.ultrasound-report .report-title h3{font-size:15px}.ultrasound-report .report-title small{font-size:8px}.ultrasound-report .institution{font-size:8px;padding-bottom:8px}.ultrasound-report .institution b{font-size:10px}.ultrasound-report .report-meta{padding:8px 0;font-size:10px}.ultrasound-report .report-section{margin-top:8px}.ultrasound-report .report-section h2{font-size:12px;margin-bottom:4px}.ultrasound-report .result-item{padding:3px 0;font-size:10px}.ultrasound-report .ultrasound-institution{font-size:8px}.ultrasound-report .ultrasound-bmode{padding:7px 9px;margin-top:5px}.ultrasound-report .signature-pair{margin-top:48px;margin-bottom:0}}
.ultrasound-doppler-footnote{margin-top:14px;padding-top:9px;border-top:1px solid var(--line);font-size:8px;line-height:1.35;color:var(--muted);break-inside:avoid;page-break-inside:avoid}.ultrasound-doppler-footnote p{margin:0 0 5px}.ultrasound-doppler-footnote p:last-child{margin-bottom:0}.ultrasound-doppler-footnote sup{font-size:.8em;vertical-align:super;line-height:0}.ultrasound-report .signature small{display:block}
@media print{.ultrasound-report-images{break-before:page;page-break-before:always}.ultrasound-report-images h2{break-after:avoid-page;page-break-after:avoid}.ultrasound-image-page{break-inside:avoid;page-break-inside:avoid}}

/* Mantém o destaque azul-claro dos quadros em modo B também na impressão. */
@media print{.ultrasound-report .ultrasound-bmode{background-color:#f0f7f7!important;border-color:#c8dfe2!important;border-left-color:var(--green)!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Repete a identificação do exame no topo de cada página de imagens. */
.ultrasound-image-page{display:flex;flex-direction:column;gap:3mm}
.ultrasound-image-page-head{display:grid;grid-template-columns:31mm minmax(0,1fr);align-items:start;gap:8mm;padding-bottom:3mm;margin-bottom:1mm;border-bottom:2px solid var(--green)}
.ultrasound-image-page-head .brandmark{max-width:31mm;margin:0}
.ultrasound-image-page-head .report-title{text-align:right}
.ultrasound-image-page-head .report-title h3{font-size:11px;margin:0 0 1mm}
.ultrasound-image-page-head .report-title small{font-size:7px}
.ultrasound-image-page-head .ultrasound-institution{font-size:6px}
.ultrasound-report .ultrasound-image-page-meta{padding:2mm 0;font-size:8px;border-bottom:1px solid var(--line)}
.ultrasound-image-page h2{font-size:12px;margin:0}
.ultrasound-image-page-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:4mm 8mm;flex:1;min-height:0}
.ultrasound-image-page-grid figure{margin:0;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;break-inside:avoid}
.ultrasound-image-page-grid img{display:block;width:100%;max-height:54mm;object-fit:contain}
.ultrasound-image-page-grid figcaption{text-align:center;font-size:7pt;color:var(--muted);margin-top:1mm;overflow-wrap:anywhere}
@media print{.ultrasound-image-page{min-height:250mm;margin:0;break-inside:avoid;page-break-inside:avoid}.ultrasound-image-page-grid img{max-height:54mm}}

/* Formulário e resultado de ultrassonografia gestacional. */
.gestational-breed{font-weight:800;color:#08788a;background:#e9f5f6;padding:2px 6px;border-radius:4px}.gestational-fetus-card{border-color:#cbdfe2}.gestational-fetus-card .paneltitle{align-items:flex-start}.gestational-fetus-card output{display:block;min-height:44px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f5f9f9;color:var(--ink);font-weight:700}.gestational-organogenesis,.gestational-cardiac{margin:20px 0 0;padding:14px;border:1px solid var(--line);border-radius:8px}.gestational-organogenesis legend,.gestational-cardiac legend{padding:0 6px;font-weight:700;color:var(--ink)}.gestational-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.check-pill{display:flex;align-items:flex-start;gap:8px;padding:9px;border:1px solid var(--line);border-radius:7px;background:#fff}.check-pill input,.gestational-estimate input{width:auto;min-width:16px;margin:2px 0 0;accent-color:var(--green)}.check-pill small{color:var(--muted)}.gestational-estimate-list{display:grid;gap:8px}.gestational-estimate{display:flex;gap:12px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fbfdfd}.gestational-estimate span{display:grid;gap:4px}.gestational-estimate small{color:var(--muted)}.gestational-estimate strong{color:#08788a}.gestational-footnotes{margin-top:12px;padding-top:8px;border-top:1px solid var(--line);font-size:8px;line-height:1.4;color:var(--muted);break-inside:avoid}.gestational-footnotes p{margin:0 0 5px}.gestational-report .report-section{break-inside:avoid}.gestational-report .report-notes{white-space:pre-wrap}.gestational-report .signature-pair{margin-top:30px}
@media(max-width:700px){.gestational-check-grid{grid-template-columns:1fr}}
@media print{.gestational-fetus-card{padding:0;border:0}.gestational-organogenesis,.gestational-cardiac{padding:2mm;margin-top:3mm}.gestational-footnotes{font-size:6.5pt}.gestational-report .report-section{break-inside:avoid}.gestational-report .signature-pair{margin-top:18mm}}

/* Margens das folhas de imagens iguais à área útil da primeira página. */
.ultrasound-image-page{width:100%;max-width:100%;align-self:stretch}
.ultrasound-image-page-head,.ultrasound-image-page-meta,.ultrasound-image-page-grid{width:100%;max-width:100%;box-sizing:border-box}
@media print{.ultrasound-report-images{width:100%;max-width:100%;margin:0;padding:0}.ultrasound-image-page{width:100%;max-width:100%;margin:0;align-items:stretch}.ultrasound-image-page-head,.ultrasound-image-page-meta,.ultrasound-image-page-grid{width:100%;max-width:100%;box-sizing:border-box}}

/* Usa o mesmo formato e recuo do relatório principal nas folhas seguintes. */
@media print{.ultrasound-report-images{page:ultrasound-report-page;break-before:page;page-break-before:always}.ultrasound-image-page{padding-top:44px}}

/* Mantém alinhadas as medidas e avaliações do exame gestacional. */
.gestational-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}
.gestational-fetus-card .grid.three,.gestational-findings .grid.three,.gestational-cardiac .grid.three{align-items:start}
.gestational-fetus-card .gestational-field>label{min-height:2.7em}
.gestational-cardiac .grid.three>.field>label,.gestational-findings .grid.three>.field>label{min-height:3.2em;display:block}
.gestational-cardiac .grid.three>.field output{margin-top:0}
.field-hint{display:block;min-height:3em;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.45}
.gestational-findings .field textarea{margin-top:8px}
.gestational-estimate-section{display:grid;gap:8px;margin:18px 0}
.gestational-estimate-section h3{margin-bottom:2px;padding-bottom:7px;border-bottom:1px solid var(--line)}
.gestational-estimate-section .gestational-estimate{margin:0}
.gestational-estimate-section .gestational-estimate>span{min-width:0;flex:1}
.gestational-estimate-section .gestational-estimate strong{display:block;line-height:1.5}
.gestational-calculations{padding-bottom:18px}
@media(max-width:900px){.gestational-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.gestational-meta-grid{grid-template-columns:1fr}.gestational-fetus-card .gestational-field>label,.gestational-cardiac .grid.three>.field>label,.gestational-findings .grid.three>.field>label{min-height:0}.field-hint{min-height:0}}
.single-fetus-warning{margin:12px 0;padding:12px 14px;border:1px solid #e5bcbc;border-left:4px solid #bd4d4d;border-radius:6px;background:#fff0ef;color:#713838;line-height:1.55}
@media print{.single-fetus-warning{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.gestational-report .gestational-fetus-report{margin:14px 0;padding:14px 16px;border:1px solid #cbdfe2;border-radius:8px;background:#fbfdfd}
.gestational-report .gestational-fetus-report>h2{margin:0 0 8px;font-size:17px;line-height:1.25;color:var(--ink)}
.gestational-report .gestational-fetus-report>h3{margin:10px 0 4px;font-size:11px;line-height:1.35;font-weight:700;color:var(--muted)}
.gestational-report .gestational-fetus-report .result-grid{margin-top:0}
.gestational-report .gestational-fetus-report .gestational-organogenesis-report{margin:4px 0 0;padding-left:18px}
.gestational-report .single-fetus-warning{margin:16px 0 12px;break-inside:avoid}
.gestational-report .gestational-organogenesis-report{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px;row-gap:1px;padding-left:16px}
.gestational-report .gestational-organogenesis-report li{min-width:0;break-inside:avoid}
.selected-estimates-report{display:grid;gap:0}
.selected-estimate-row{align-items:flex-start}
.selected-estimate-row>span{display:block;min-width:0;flex:1}
.selected-estimate-row .estimate-formula{display:block;margin-top:2px;white-space:normal}
.selected-estimate-row>b{white-space:normal;text-align:right}
.dpp-sign-disclaimer{font-size:9px}
@media(max-width:650px){.gestational-report .gestational-organogenesis-report{grid-template-columns:1fr}}
@media print{.gestational-report .gestational-fetus-report{padding:3mm 4mm;margin:3mm 0;background:#fbfdfd!important;border-color:#cbdfe2!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.gestational-report .gestational-fetus-report>h2{font-size:13pt}.gestational-report .gestational-fetus-report>h3{font-size:8.5pt}.gestational-report .single-fetus-warning{margin-top:5mm}}
.gestational-footnotes .gestational-reference-list{margin:0;padding-left:16px}.gestational-footnotes .gestational-reference-list li{margin:0 0 5px;padding-left:2px}.dpp-sign-disclaimer{margin:5px 0 0;font-size:8px;line-height:1.35;color:var(--muted)}.birth-estimates>b{display:inline-block;margin-bottom:3px}
@page gestational-report-page{size:A4 portrait;margin:48mm 10mm 32mm;@bottom-right{content:counter(page) " / " counter(pages);font:7pt 'DM Sans',sans-serif;color:#71858a}}
@media print{
 .gestational-report{page:gestational-report-page}
 .gestational-report.report{width:100%;max-width:none;margin:0;padding:0;border:0}
 .gestational-running-header{position:fixed;top:-43mm;left:0;right:0;background:#fff;z-index:10}
 .gestational-running-header .reporthead{padding-bottom:2mm;margin-bottom:1.5mm;border-bottom-width:2px}
 .gestational-running-header .report-meta{padding:1.5mm 0;font-size:7pt}
 .gestational-report .gestational-footnotes{position:fixed;bottom:-29mm;left:0;right:14mm;margin:0;padding:1.5mm 0 0;border-top:1px solid #dce7e8;background:#fff;font-size:5.6pt;line-height:1.2;break-inside:auto;z-index:10}
 .gestational-report .gestational-footnotes .gestational-reference-list li{margin:0 0 .6mm;padding-left:.5mm}
 .gestational-report .report-section{break-inside:auto;page-break-inside:auto}
 .gestational-report .gestational-fetus-report,.gestational-report .gestational-findings-report,.gestational-report .signature-pair{break-inside:avoid;page-break-inside:avoid}
 .gestational-report .signature-pair{margin-top:8mm}
 .gestational-report .birth-estimates{background:#fbf8e9!important;border-color:#eee7c7!important;color:#7a7144!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .gestational-report .single-fetus-warning{-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .gestational-report .ultrasound-report-images{page:gestational-report-page!important}
}
@media print{.gestational-report .gestational-footnotes .gestational-reference-list .dpp-sign-disclaimer{margin-top:2.5mm}}
@media print{
 .gestational-report{font-size:8.5pt!important;line-height:1.35!important}
 .gestational-report .report-meta,.gestational-report .result-item,.gestational-report .gestational-organogenesis-report,.gestational-report .selected-estimate-row,.gestational-report .birth-estimates,.gestational-report .report-notes,.gestational-report .report-conclusion{font-size:8.5pt!important;line-height:1.35!important}
 .gestational-report .gestational-footnotes{font-size:6.5pt;line-height:1.25}
 .gestational-report .dpp-sign-disclaimer{font-size:7pt;line-height:1.3}
}
@page gestational-report-page{size:A4 portrait;margin:8mm;@bottom-right{content:counter(page) " / " counter(pages);font:7pt 'DM Sans',sans-serif;color:#71858a}}
@media print{
 .gestational-running-header{position:static!important;inset:auto!important;background:transparent;z-index:auto}
 .gestational-report .gestational-footnotes{position:static!important;inset:auto!important;margin:4mm 0 0;padding:2mm 0 0;border-top:1px solid #dce7e8;background:transparent;z-index:auto}
 .gestational-report .ultrasound-report-images{page:gestational-report-page!important}
}

/* Impressão individual de uma consulta do prontuário. */
#consult-print-root{display:none}
.consult-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.consult-print-report{max-width:850px;margin:0 auto;background:#fff}
.consult-print-report .report-meta{grid-template-columns:1fr 1fr}
.consult-print-report .consult-repro-summary{grid-template-columns:1fr 1fr;gap:5px}
.consult-print-report .consult-repro-summary>div{padding:5px 7px;border-bottom:1px solid var(--line);background:transparent;font-size:9px}
.consult-print-report .consult-repro-summary p{margin:1px 0}
.consult-print-footer{border-top:1px solid var(--line);margin-top:12mm;padding-top:3mm;text-align:center;color:var(--muted);font-size:8px}
@media(max-width:650px){.consult-card-actions{width:100%}}
@media print{
 body.consult-print-active{background:#fff!important}
 body.consult-print-active>#app{display:none!important}
 body.consult-print-active>#consult-print-root{display:block!important;width:100%;margin:0;padding:0}
 body.consult-print-active #consult-print-root .consult-print-report{width:100%;max-width:none;margin:0;padding:0;border:0;font-size:9pt;line-height:1.35}
 body.consult-print-active #consult-print-root .reporthead{padding-bottom:4mm;margin-bottom:4mm}
 body.consult-print-active #consult-print-root .report-meta{font-size:8.5pt;padding:3mm 0}
 body.consult-print-active #consult-print-root .report-section{margin-top:5mm;break-inside:avoid;page-break-inside:avoid}
 body.consult-print-active #consult-print-root .report-section h2{font-size:11pt;margin-bottom:2mm}
 body.consult-print-active #consult-print-root .report-notes{font-size:9pt;white-space:pre-wrap;overflow-wrap:anywhere}
 body.consult-print-active #consult-print-root .consult-repro-summary{grid-template-columns:1fr 1fr;gap:1mm 4mm}
 body.consult-print-active #consult-print-root .consult-repro-summary>div{font-size:8.5pt;padding:1.5mm 0;border-bottom:1px solid #e7eded}
 body.consult-print-active #consult-print-root .signature-pair{margin:18mm 5mm 5mm;break-inside:avoid}
 body.consult-print-active #consult-print-root .consult-print-footer{margin-top:8mm;font-size:7pt}
}
@media print{body.consult-print-active>#toast{display:none!important}}

/* Ajustes dos formulários e legibilidade dos prontuários impressos. */
.selected-owner-card{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#edf6f3;border:1px solid #bcd8cb;border-radius:8px}.selected-owner-card>div{flex:1}.selected-owner-card small{display:block;color:#4e6870;margin-top:3px}.selected-owner-check{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:#d5eadf;color:#17633f;font-weight:800}.owner-search-controls{display:flex;gap:10px;align-items:end}.owner-search-controls input{flex:1}.owner-search-results{display:grid;gap:6px;max-height:220px;overflow:auto;margin-top:10px}.owner-search-result{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#fff;text-align:left;color:var(--ink)}.owner-search-result:hover{border-color:var(--green);background:#f5fafb}.owner-search-result small{color:var(--muted)}.repro-conditional[hidden]{display:none!important}.consult-author{display:block;margin:8px 0 0;color:#425c62;font-size:12px}
@media(max-width:650px){.owner-search-controls{align-items:stretch;flex-direction:column}.selected-owner-card{align-items:flex-start;flex-wrap:wrap}.selected-owner-card .btn{margin-left:40px}}
@media print{.consult-print-report,.consult-print-report p,.consult-print-report .report-notes,.consult-print-report .report-meta,.consult-print-report .consult-repro-summary,.consult-print-report .consult-print-footer{color:#202b2f!important}.consult-print-report .muted,.consult-print-report small,.consult-print-report .report-meta span{color:#39494e!important}.consult-print-report{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

@media print{.ultrasound-report.report{border:0!important}.gestational-report .birth-estimates{background:#fbf8e9!important;border-color:#eee7c7!important;color:#665f3c!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}

.female-uterine-horns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.female-horn-entry{margin-top:0}.female-uterine-horns .female-horn-entry h2{margin-bottom:8px}.female-horn-report{min-width:0;break-inside:avoid}.female-ultrasound-report-images{break-before:page;page-break-before:always}@media(max-width:650px){.female-uterine-horns{grid-template-columns:minmax(0,1fr)}}@media print{.female-uterine-horns{grid-template-columns:repeat(2,minmax(0,1fr));gap:6mm}.female-horn-report{margin-top:2mm}.female-ultrasound-report-images{break-before:page;page-break-before:always}}

.female-ovary-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;align-items:start}.female-ovary-pair .report-section{margin-top:8px;min-width:0;break-inside:avoid}@media(max-width:650px){.female-ovary-pair{grid-template-columns:minmax(0,1fr)}}@media print{.female-ovary-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:3mm 6mm}.female-ovary-pair .report-section{break-inside:avoid;page-break-inside:avoid}}

@media print{.ultrasound-report,.ultrasound-report p,.ultrasound-report .report-notes{color:#263a3f!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.ultrasound-report .report-title small,.ultrasound-report .report-meta span,.ultrasound-report .result-item span,.ultrasound-report .ultrasound-institution,.ultrasound-report .signature small,.ultrasound-report .ultrasound-image-page-grid figcaption{color:#40565c!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.ultrasound-report .report-meta,.ultrasound-report .result-item,.ultrasound-report .ultrasound-image-page-meta{border-color:#aebdc0!important}}
