*{box-sizing:border-box}body{margin:0;background:#f3f6f4;color:#20332e;font:15px system-ui,-apple-system,Segoe UI,sans-serif}header{background:#173d35;color:white;padding:18px max(18px,calc((100% - 1100px)/2));display:flex;align-items:center;justify-content:space-between;gap:15px}.brand{display:flex;align-items:center;gap:12px}.logo{width:44px;height:44px;border-radius:12px;background:#d9b66f;color:#173d35;display:grid;place-items:center;font-weight:900}h1{font-size:20px;margin:0}header p{margin:3px 0 0;color:#d8e4df;font-size:13px}nav{display:flex;gap:6px;overflow:auto;padding:10px max(12px,calc((100% - 1100px)/2));background:white;border-bottom:1px solid #dce5df}button,.filebtn{border:0;border-radius:9px;padding:10px 14px;background:#176b52;color:white;font-weight:650;cursor:pointer;font:inherit}nav button{white-space:nowrap;background:#edf3ef;color:#34534a}nav button.active{background:#176b52;color:white}.outline{background:transparent;border:1px solid currentColor;color:inherit}main{max-width:1100px;margin:24px auto;padding:0 16px;min-height:70vh}.tab{display:none}.tab.active{display:block}h2{font-size:22px;margin:0 0 16px}h3{font-size:17px;margin:0 0 14px}.panel,.card{background:white;border:1px solid #e0e8e3;border-radius:13px;padding:17px;margin:0 0 16px;box-shadow:0 2px 8px #173d3509}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.section-head h2{margin:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:650;color:#496057}input,select,textarea{width:100%;padding:10px;border:1px solid #ccd9d1;border-radius:8px;background:#fff;color:#20332e;font:inherit}textarea{min-height:68px;resize:vertical}.wide{grid-column:1/-1}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.hidden{display:none!important}.cards,.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.card h3{margin-bottom:5px}.muted,.hint{color:#6d8178;font-size:13px}.stat{background:white;border:1px solid #e0e8e3;border-radius:12px;padding:15px}.stat strong{display:block;font-size:23px;color:#176b52;margin-top:5px}.item{padding:10px 0;border-bottom:1px solid #edf1ee}.item:last-child{border:0}.tag{display:inline-block;border-radius:20px;padding:3px 8px;background:#edf4ef;color:#315d4c;font-size:12px}.danger{color:#a23d35}.filebtn{display:inline-block}.filebtn input{display:none}dialog{border:0;border-radius:14px;max-width:440px;width:calc(100% - 30px);padding:22px;box-shadow:0 12px 50px #0003}dialog::backdrop{background:#10251f88}footer{text-align:center;padding:20px;color:#718078;font-size:12px}@media(max-width:600px){header{padding:14px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.section-head{align-items:flex-start;gap:10px}main{margin:18px auto}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.brand-logo{width:48px;height:48px;border-radius:12px;object-fit:cover;border:1px solid #d9b66f}
@media print{body{background:white;color:#111}header,nav,footer,button,.filebtn{display:none!important}main{max-width:none;margin:0;padding:0}.tab{display:none!important}#relatorios{display:block!important}.panel{box-shadow:none;border:0;padding:0}.report-print{display:block!important}.report-print h1{color:#173d35}.report-print table{width:100%;border-collapse:collapse;margin-top:12px}.report-print th,.report-print td{border:1px solid #bbb;padding:6px;text-align:left;font-size:11px}.report-print th{background:#edf3ef}.report-print p{font-size:12px}}

.dog-card{position:relative}.dog-photo{width:112px;height:112px;object-fit:cover;border-radius:14px;border:1px solid #d8e2dc;display:block;margin:8px 0}.dog-photo.preview{width:150px;height:150px}.tree-wrap{display:flex;gap:14px;overflow:auto;padding:14px 0;align-items:flex-start}.tree-node{display:flex;align-items:center;gap:9px;min-width:170px;padding:9px;border:1px solid #d8e2dc;border-radius:12px;background:#fff;margin:6px}.tree-node small{display:block;color:#64756c;font-size:12px}.tree-photo{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#edf3ef;display:grid;place-items:center}.tree-photo.placeholder{font-size:24px}.tree-children{display:flex;flex-direction:column;gap:4px;border-left:2px solid #a9c2b3;margin-left:24px;padding-left:10px}.hint{color:#65756d;font-size:.9rem;line-height:1.5}

.dog-photo.placeholder{display:grid;place-items:center;background:#edf3ef;color:#6d8178;font-size:42px;min-height:140px;border-radius:10px}.dog-photo{width:100%;max-height:220px;object-fit:cover;border-radius:10px}.tree-wrap{overflow:auto}
