*{box-sizing:border-box}body{margin:0;background:#f6f8f7;color:#17221f;font:14px Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}header{height:72px;padding:0 max(24px,calc((100vw - 1240px)/2));display:flex;align-items:center;gap:45px;background:#fff;border-bottom:1px solid #e3e8e6}.brand{display:flex;align-items:center;font-size:20px;font-weight:800}.brand b{display:inline-grid;place-items:center;width:38px;height:38px;margin-right:9px;border-radius:10px;color:#fff;background:#168463;overflow:hidden}.brand b img{width:100%;height:100%;object-fit:contain;background:#fff}.brand span span{color:#168463}nav{display:flex;align-self:stretch}nav button{border:0;background:transparent;padding:0 16px;color:#64716d}nav button.active{color:#168463;border-bottom:2px solid #168463}.user{margin-left:auto;display:flex;gap:12px;align-items:center;font-size:12px}.user button{border:0;background:#eef4f2;padding:8px 10px;border-radius:7px}.auth{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top,#e4f3ee,#f7f9f8 50%);padding:20px}.auth-card{width:min(410px,100%);background:#fff;border:1px solid #e0e8e5;border-radius:18px;padding:34px;box-shadow:0 24px 70px #17372c18}.auth-card>p{color:#70807a;margin:22px 0}.auth-card label{display:block;font-size:12px;font-weight:700;margin:14px 0}.auth-card input{display:block;width:100%;border:1px solid #d7e0dd;border-radius:8px;padding:12px;margin-top:7px}.auth-card .primary{width:100%;margin-top:10px}.error{color:#bd4740!important;font-size:12px}main{max-width:1240px;margin:auto;padding:38px 24px}.hero{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px}.hero small,.modal small{color:#168463;font-weight:800;letter-spacing:1.5px}.hero h1{font-size:29px;margin:7px 0}.hero p,.panel p,.modal p{color:#6d7975;margin:0}.primary{border:0;border-radius:9px;background:#168463;color:white;padding:12px 18px;font-weight:700}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:18px}.cards article{background:white;border:1px solid #e3e8e6;border-radius:12px;padding:20px;display:flex;gap:14px;align-items:center}.cards i{width:44px;height:44px;border-radius:10px;background:#e4f4ee;color:#168463;display:grid;place-items:center;font-size:20px;font-style:normal;font-weight:800}.cards i.red{background:#fdebea;color:#c94b43}.cards i.blue{background:#eaf1fb;color:#3374bd}.cards small{display:block;color:#7d8985;font-size:10px;font-weight:bold;margin-bottom:6px}.cards strong{font-size:23px}.panel{background:#fff;border:1px solid #e3e8e6;border-radius:13px;overflow:hidden;margin-bottom:18px}.panel-head{padding:20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e3e8e6}.panel h2{margin:0 0 4px}.filters,.report-actions{display:flex;gap:8px}.filters input,.filters select,.grid input,.grid textarea,.report-actions input{border:1px solid #dbe2df;border-radius:8px;padding:10px;background:#fff}.report-actions button:not(.primary){border:1px solid #dbe2df;background:#fff;border-radius:8px}.filters input{width:270px}.table{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{background:#f8faf9;color:#7d8985;font-size:10px;text-align:left;padding:12px 16px}td{border-top:1px solid #edf0ef;padding:14px 16px;color:#56625e;font-size:12px}td:first-child b,td:first-child small{display:block}td:first-child small{font-size:10px;color:#89938f;margin-top:4px}code{background:#f2f5f4;padding:5px}.status{border:0;border-radius:20px;padding:6px 10px;font-size:10px;font-weight:bold}.status.pendente{background:#fff3d6;color:#a66a0f}.status.atrasado{background:#fde9e8;color:#bd4740}.status.pago{background:#e1f3ec;color:#16785c}.trash{border:0;background:none;color:#a77;font-size:18px}.empty{text-align:center;padding:38px;color:#75817d}.backdrop{display:none;position:fixed;inset:0;background:#13201dcc;place-items:center;padding:20px;z-index:20}.backdrop.show{display:grid}.modal{background:#fff;border-radius:16px;width:min(680px,100%);max-height:95vh;overflow:auto}.modal-head{display:flex;justify-content:space-between;padding:24px 28px;border-bottom:1px solid #e3e8e6}.modal-head h2{margin:6px 0}.modal-head button{border:0;background:#f0f4f2;width:32px;height:32px;border-radius:7px;font-size:20px}.modal form{padding:22px 28px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.grid label{font-size:11px;font-weight:700}.grid input,.grid textarea{display:block;width:100%;margin-top:6px}.grid textarea{min-height:70px}.wide{grid-column:span 2}.grid em,.grid small{font-size:9px;color:#89938f;font-style:normal}.buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.buttons>button:first-child{border:1px solid #dbe2df;background:#fff;border-radius:8px;padding:10px 16px}.client-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.client-card{background:#fff;border:1px solid #e1e7e5;border-radius:13px;padding:20px;display:grid;grid-template-columns:auto 1fr;gap:14px}.client-logo{width:48px;height:48px;border-radius:10px;background:#e4f4ee;color:#168463;display:grid;place-items:center;font-weight:800;overflow:hidden}.client-logo img{width:100%;height:100%;object-fit:contain}.client-card h3{margin:2px 0 6px}.client-card p,.client-card small{color:#75817d;margin:0}.client-card button{grid-column:span 2;border:1px solid #b7d8cc;background:#f1f9f6;color:#137358;border-radius:8px;padding:9px;font-weight:700}.report-brand{display:flex;align-items:center;gap:14px;padding:22px}.report-brand img{width:60px;height:60px;object-fit:contain}.report-brand h2{margin:0 0 5px}.report-sheet .cards{padding:0 22px}.history #reportHistory{display:grid}.history #reportHistory button{display:flex;justify-content:space-between;border:0;border-top:1px solid #edf0ef;background:#fff;padding:14px 20px;text-align:left;color:#50605a}.history #reportHistory button:hover{background:#f7faf9}@media(max-width:800px){nav button{padding:0 8px;font-size:11px}.client-grid{grid-template-columns:1fr 1fr}}@media(max-width:700px){header{gap:10px;padding:0 12px}.brand{font-size:14px}.brand b{width:32px;height:32px}nav{overflow:auto}.user span{display:none}main{padding:24px 14px}.hero{align-items:start;gap:20px;flex-direction:column}.hero .primary{width:100%}.cards,.client-grid{grid-template-columns:1fr}.panel-head,.filters,.report-actions{align-items:stretch;flex-direction:column}.filters input{width:100%}.grid{grid-template-columns:1fr}.wide{grid-column:auto}}@media print{header,.hero>.report-actions,.history,#dashboardView,#clientsView{display:none!important}body,main{background:#fff;padding:0}.report-sheet{border:0}.report-sheet .cards{grid-template-columns:repeat(3,1fr)}#reportsView{display:block!important}}
