:root{font-family:Nunito Sans,Segoe UI,sans-serif;color:#0f172a}*{box-sizing:border-box}body{margin:0;background:#f1f5f9}.portal-screen{min-height:100vh;padding:24px;display:flex;align-items:center;justify-content:center}.portal-login-card{width:100%;max-width:420px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:28px;text-align:center}.portal-logo{width:64px;height:64px;border-radius:16px;margin:0 auto 16px;background:#059669;color:#fff;display:flex;align-items:center;justify-content:center;font-size:32px}.portal-login-card h1{margin:0;font-size:34px;letter-spacing:-.02em}.portal-login-card p{margin:8px 0 0;font-size:14px;color:#64748b}.portal-form{margin-top:22px;display:grid;gap:12px;text-align:left}.portal-form label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#475569}.portal-form input{height:44px;border:1px solid #cbd5e1;border-radius:10px;padding:0 12px;font-size:15px}.portal-form small{text-align:center;font-size:12px;color:#94a3b8}.portal-wrap{width:100%;max-width:860px;display:grid;gap:16px}.portal-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.portal-header h2{margin:0;font-size:32px;letter-spacing:-.02em}.portal-header p{margin:2px 0 0;color:#64748b}.portal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.portal-stats article{border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:14px}.portal-stats article.success{background:#ecfdf5;border-color:#86efac}.portal-stats article.warning{background:#fffbeb;border-color:#fde68a}.portal-stats article.danger{background:#fff1f2;border-color:#fecdd3}.portal-stats span{display:block;font-size:12px;color:#64748b}.portal-stats strong{display:block;margin-top:2px;font-size:34px;letter-spacing:-.02em}.portal-stats small{display:block;margin-top:2px;font-size:12px;color:#64748b}.portal-panel{border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:16px}.portal-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.portal-panel h3{margin:0;font-size:18px}.portal-list{display:grid;gap:8px}.portal-item{width:100%;border:1px solid #f1f5f9;background:#fff;border-radius:10px;padding:12px;display:flex;align-items:center;gap:12px;cursor:pointer}.portal-item.selected{border-color:#6ee7b7;background:#f0fdf4}.portal-item-main{flex:1;min-width:0}.portal-item-main .line1{display:flex;align-items:center;gap:8px;margin-bottom:3px}.code{font-family:JetBrains Mono,Consolas,monospace;font-size:13px;font-weight:700}.portal-item-main span{font-size:12px;color:#64748b}.amount{font-weight:800;color:#111827;white-space:nowrap}.check{width:20px;height:20px;border:2px solid #cbd5e1;border-radius:5px;display:flex;align-items:center;justify-content:center;color:#fff}.check.on{border-color:#10b981;background:#10b981}.portal-paid-item{border:1px solid #f1f5f9;border-radius:10px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.portal-paid-item .period{font-weight:700;color:#1f2937}.portal-paid-item .code{color:#94a3b8;font-size:12px}.portal-paid-item .right{display:flex;align-items:center;gap:8px}.portal-pay-bar{background:#111827;border-radius:14px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.portal-pay-bar h4{margin:0;color:#fff}.portal-pay-bar p{margin:2px 0 0;font-size:12px;color:#9ca3af}button{height:40px;border:0;border-radius:10px;padding:0 14px;font-weight:700;cursor:pointer;background:#059669;color:#fff;display:inline-flex;align-items:center;gap:8px}button:disabled{opacity:.6;cursor:not-allowed}button.ghost{background:#f1f5f9;color:#475569}button.tiny{background:#f1f5f9;color:#475569;height:32px;font-size:12px}button.pay-btn{background:#10b981}.badge{display:inline-flex;align-items:center;border-radius:999px;font-size:11px;font-weight:700;padding:4px 8px;font-style:normal}.badge.overdue{background:#fee2e2;color:#dc2626}.badge.paid{background:#dcfce7;color:#15803d}.icon-btn{width:30px;height:30px;border-radius:8px;padding:0;background:#f8fafc;color:#64748b;border:1px solid #e2e8f0}.portal-inline-error{margin:0;color:#dc2626;font-size:12px;display:flex;align-items:center;gap:6px}.portal-error-box{border:1px solid #fecaca;background:#fef2f2;color:#991b1b;border-radius:10px;padding:10px 12px;font-size:14px}.portal-empty{text-align:center;padding:18px}.portal-empty p{margin:0;font-weight:700}.portal-empty small{color:#94a3b8}.portal-empty-icon{width:44px;height:44px;border-radius:999px;margin:0 auto 8px;display:flex;align-items:center;justify-content:center;background:#dcfce7;color:#16a34a;font-size:24px}.portal-modal-backdrop{position:fixed;inset:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:50;padding:16px}.portal-modal{width:100%;max-width:380px;background:#fff;border-radius:16px;padding:18px}.portal-modal.center{text-align:center}.portal-modal .icon{width:48px;height:48px;border-radius:999px;margin:0 auto 8px;background:#dcfce7;color:#059669;display:flex;align-items:center;justify-content:center;font-size:26px}.portal-modal .icon.spin i{animation:spin .9s linear infinite}.portal-modal .icon.success{font-size:30px}.portal-modal h5{margin:0;font-size:18px}.portal-modal p{margin:8px 0 0;color:#64748b}.portal-modal .summary{margin:12px 0;background:#f8fafc;border-radius:10px;padding:10px;display:grid;gap:6px}.portal-modal .summary .row{display:flex;align-items:center;justify-content:space-between;font-size:13px}.portal-modal .summary .row.total{border-top:1px solid #e2e8f0;margin-top:4px;padding-top:6px;font-weight:700}.portal-modal .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:900px){.portal-screen{padding:16px;align-items:flex-start}.portal-stats{grid-template-columns:1fr}.portal-header,.portal-item,.portal-paid-item{flex-direction:column;align-items:flex-start}.portal-paid-item .right{width:100%;justify-content:space-between}.portal-pay-bar{flex-direction:column;align-items:stretch}}
