@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');
[hidden]{display:none!important}
:root{font-family:Arial,sans-serif;color:#202a3d;background:#f6f8fb;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #dce3ed;border-radius:9px;background:#fff;color:#202a3d;outline:none}input:focus,select:focus,textarea:focus{border-color:#5978d7;box-shadow:0 0 0 3px #e4eaff}textarea{min-height:100px;resize:vertical}label{display:block;font-weight:700;font-size:12px;color:#526078}label input,label select,label textarea{margin-top:6px;font-weight:400}h1,h2,h3{font-family:Manrope,Arial,sans-serif}h1{font-size:25px;margin:2px 0}h2{font-size:19px;margin:0}h3{font-size:15px;margin:0 0 14px}p{line-height:1.5}
.auth{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 80% 10%,#304a83,#101f3a 60%);padding:20px}.auth-card{width:min(100%,400px);background:#fff;padding:38px;border-radius:18px;box-shadow:0 20px 60px #0012}.auth-card h1{margin-top:20px}.auth-card p{color:#718099;margin-bottom:28px}.auth-card label{margin:16px 0}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;color:#fff;background:#5274d3;font-size:28px}.auth-card .brand-mark{width:50px;height:50px}.primary,.secondary,.danger,.ghost{border:0;border-radius:9px;padding:10px 15px;font-weight:700;white-space:nowrap}.primary{background:#536fca;color:#fff}.primary:hover{background:#405ebd}.secondary{background:#e9eefb;color:#425daa}.danger{background:#ffebeb;color:#ba4343}.ghost{background:#f4f6fa;color:#526078}.link{border:0;background:none;color:#536fca;padding:12px}.auth-card .primary{width:100%;margin-top:6px}.auth-card .link{width:100%}
#app{min-height:100vh;display:flex}.sidebar{width:230px;flex-shrink:0;background:#14243f;color:#aebbd1;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh}.logo{padding:27px 22px 34px;display:flex;align-items:center;gap:10px;color:#fff}.logo strong{display:block;font-family:Manrope;font-size:17px}.logo small{font-size:10px;color:#93a3bf}.sidebar nav{padding:0 11px;display:grid;gap:4px}.sidebar nav button{display:flex;align-items:center;gap:13px;text-align:left;background:transparent;color:#b4c0d2;border:0;border-radius:9px;padding:12px 13px;font-weight:600}.sidebar nav button:hover,.sidebar nav button.active{background:#344a72;color:#fff}.sidebar nav span{font-size:19px;width:20px;text-align:center}.sidebar nav em,.top-actions em{font-style:normal;background:#ed6171;color:#fff;border-radius:30px;padding:1px 5px;font-size:10px}.side-bottom{margin-top:auto;padding:20px;border-top:1px solid #ffffff1a;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;word-break:break-all}.side-bottom button{background:none;color:#d7e0f1;border:0}
.main{flex:1;min-width:0}.topbar{height:90px;padding:20px 34px;background:#fff;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9edf3}.topbar small{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#99a6b8}.top-actions{display:flex;align-items:center;gap:20px;color:#7a879c}.top-actions button{background:#f2f5fb;border:0;border-radius:9px;padding:8px 11px;color:#536fca;font-size:20px}#menuToggle{display:none;background:none;border:0;font-size:22px}main{padding:32px 34px;max-width:1600px}.hero{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.hero h2{font-size:23px}.hero p{color:#8a98aa;margin:5px 0 0}.actions{display:flex;gap:8px;flex-wrap:wrap}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat,.panel{background:#fff;border:1px solid #e9edf3;border-radius:14px;box-shadow:0 3px 14px #26355508}.stat{padding:20px 22px}.stat .icon{width:35px;height:35px;background:#eaf0ff;color:#5273d0;display:grid;place-items:center;border-radius:10px;margin-bottom:15px;font-size:18px}.stat small{font-size:11px;font-weight:800;color:#8491a4;letter-spacing:.6px}.stat strong{display:block;font-family:Manrope;font-size:26px;color:#21304b;margin:5px 0}.stat span{font-size:11px;color:#8b98a8}.stat.red .icon{background:#fff0ed;color:#d66a52}.stat.green .icon{background:#e8f8ef;color:#39a46c}.panel{padding:22px;margin-bottom:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;font-size:10px;letter-spacing:.7px;color:#9aa7ba;padding:13px 12px;border-bottom:1px solid #eef1f6;text-transform:uppercase}td{padding:14px 12px;border-bottom:1px solid #f1f3f7;color:#526078}td strong{color:#22314b}tr:last-child td{border-bottom:0}
.badge{display:inline-block;padding:5px 9px;border-radius:20px;font-size:11px;font-weight:800;background:#eaf1ff;color:#5475c6}.badge.PAID,.badge.ACTIVE{background:#e4f7ed;color:#2a9762}.badge.OVERDUE{background:#ffefec;color:#d15d4e}.badge.CANCELED,.badge.INACTIVE,.badge.ARCHIVED,.badge.ENDED{background:#edf0f4;color:#7d899c}.badge.TODAY,.badge.PAUSED{background:#fff3d6;color:#a7791d}.row-actions{display:flex;gap:5px}.row-actions button{border:0;background:#eef2fb;color:#5269ad;border-radius:7px;padding:6px 9px;font-size:12px}.row-actions button:hover{background:#dce5fb}.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}.filters input,.filters select{max-width:210px}.filters button{border:0;background:#f1f4f9;color:#65748d;border-radius:8px;padding:9px 12px}.filters button.selected{background:#526fcb;color:#fff}.muted{color:#8b98a8}.empty{text-align:center;padding:40px;color:#91a0b4}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.full{grid-column:1/-1}
dialog{border:0;border-radius:16px;padding:0;width:min(96vw,700px);max-height:90vh;box-shadow:0 25px 80px #0b183b55}dialog::backdrop{background:#12203e99}.modal-head{padding:20px 24px;border-bottom:1px solid #edf0f5;display:flex;justify-content:space-between;align-items:center}.modal-head button{border:0;background:none;color:#7a879a;font-size:26px}.modal-body{padding:24px;max-height:72vh;overflow:auto}.modal-foot{display:flex;gap:8px;justify-content:flex-end;padding:15px 24px;border-top:1px solid #edf0f5;flex-wrap:wrap}.section-title{font-weight:800;color:#273653;margin:16px 0 10px}.section-title:first-child{margin-top:0}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.detail-grid div{background:#f7f9fc;border-radius:9px;padding:12px}.detail-grid small{display:block;color:#9aa6b7;margin-bottom:3px}.message-preview{white-space:pre-wrap;background:#f7f9fc;border:1px solid #e8edf4;padding:15px;border-radius:10px;line-height:1.6}.mini-card{background:#f7f9fc;border-radius:10px;padding:15px;margin:10px 0}.mini-card p{margin:5px 0}.tabs{display:flex;gap:6px;border-bottom:1px solid #e8edf4;margin-bottom:16px;overflow:auto}.tabs button{border:0;background:none;padding:10px;color:#8290a5;white-space:nowrap}.tabs button.active{color:#536fca;border-bottom:2px solid #536fca;font-weight:800}#toast{position:fixed;right:22px;bottom:20px;background:#233758;color:white;padding:12px 18px;border-radius:9px;box-shadow:0 8px 20px #0002;opacity:0;pointer-events:none;transition:opacity .2s;z-index:9}#toast.show{opacity:1}
@media(max-width:1000px){.stats{grid-template-columns:repeat(2,1fr)}.sidebar{width:195px}.topbar,main{padding-left:22px;padding-right:22px}}@media(max-width:700px){.sidebar{position:fixed;z-index:5;transform:translateX(-100%);transition:transform .2s;width:240px}.sidebar.open{transform:translateX(0)}#menuToggle{display:block}.topbar{padding:16px;height:75px;gap:10px}.topbar h1{font-size:19px}.top-actions span{display:none}main{padding:20px 14px}.hero{align-items:flex-start;flex-direction:column}.stats{gap:9px}.stat{padding:14px}.stat strong{font-size:20px}.grid,.grid.three{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}.panel{padding:15px}.modal-body{padding:17px}}
