/* NUESA Dues Payment Plugin v2.0 */
*,*::before,*::after{box-sizing:border-box;}
#nuesa-dues-app{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;color:#1a1a2e;max-width:880px;margin:0 auto;padding:0 14px;}
.nd-section{background:#fff;border-radius:14px;padding:28px 32px;margin-bottom:22px;box-shadow:0 1px 5px rgba(0,0,0,.08);}
.nd-find-section{background:#f8f9fa;border:1px solid #e8e8e8;}
.nd-badge-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#1c7a43;margin-bottom:10px;}
.nd-org-lines{display:flex;flex-direction:column;gap:2px;margin-bottom:14px;}
.nd-org-lines span{font-size:12.5px;font-weight:600;color:#555;letter-spacing:.04em;text-transform:uppercase;}
.nd-main-title{font-size:28px;font-weight:900;color:#1a1a2e;margin:0 0 8px;line-height:1.2;}
.nd-subtitle{font-size:14px;color:#666;margin:0 0 22px;line-height:1.5;}
.nd-alert{padding:12px 16px;border-radius:8px;font-size:13.5px;margin-bottom:18px;font-weight:500;line-height:1.5;}
.nd-alert.error{background:#fff3f3;color:#cc3333;border:1px solid #fca5a5;}
.nd-alert.success{background:#e8f5ee;color:#1c5c33;border:1px solid #b2dfcb;}
.nd-alert.info{background:#e8f0ff;color:#1a4bb5;border:1px solid #b2c6f5;}
.nd-row-2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:14px;}
.nd-find-row{max-width:560px;}
.nd-field{display:flex;flex-direction:column;gap:5px;}
.nd-field-half{max-width:240px;margin-bottom:14px;}
.nd-label{font-size:13px;font-weight:600;color:#333;}
.nd-req{color:#cc3333;}
.nd-inp{width:100%;padding:11px 14px;border:1.5px solid #ddd;border-radius:8px;font-size:14px;color:#333;background:#f8f8f8;outline:none;transition:border-color .2s;-webkit-appearance:none;appearance:none;}
.nd-inp:focus{border-color:#1c7a43;background:#fff;}
.nd-hint{font-size:11.5px;color:#aaa;}
.nd-summary-box{background:#f8f9fa;border:1px solid #e8e8e8;border-radius:10px;padding:16px 20px;margin-bottom:14px;display:flex;flex-direction:column;gap:8px;}
.nd-summary-row{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#555;flex-wrap:wrap;gap:4px;}
.nd-summary-row strong{color:#1a1a2e;font-weight:700;}
.nd-amount{color:#1c7a43;font-size:16px;font-weight:800;}
.nd-confirm-label{display:flex;align-items:flex-start;gap:8px;font-size:13.5px;color:#444;cursor:pointer;line-height:1.5;margin-bottom:14px;}
.nd-confirm-label input[type=checkbox]{margin-top:2px;accent-color:#1c7a43;flex-shrink:0;width:16px;height:16px;}
.nd-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:13px 22px;border:none;border-radius:8px;background:#1c7a43;color:#fff;font-size:14px;font-weight:700;cursor:pointer;transition:all .2s;text-decoration:none;letter-spacing:.02em;}
.nd-btn:hover{background:#165f35;color:#fff;}
.nd-btn:disabled,.nd-btn[disabled]{background:#aaa;cursor:not-allowed;}
.nd-btn.full{width:100%;}
.nd-btn-outline{background:transparent;color:#1c7a43;border:2px solid #1c7a43;}
.nd-btn-outline:hover{background:#1c7a43;color:#fff;}
.nd-find-btn{margin-top:4px;}
.nd-secure{text-align:center;font-size:12px;color:#aaa;margin-top:8px;}
.nd-result-card{background:#f8fff9;border:1.5px solid #b2dfcb;border-radius:12px;padding:26px 24px;text-align:center;}
.nd-result-card h3{font-size:20px;font-weight:800;color:#1a1a2e;margin:8px 0 12px;}
.nd-result-icon{font-size:44px;line-height:1;}
.nd-rcpt-badge{display:inline-block;background:#e8f5ee;color:#1c7a43;border:1.5px solid #c8e6d4;border-radius:20px;padding:5px 18px;font-size:15px;font-weight:800;letter-spacing:1px;margin-bottom:12px;}
.nd-receipt-table{width:100%;border-collapse:collapse;font-size:13.5px;margin:14px auto;max-width:440px;text-align:left;}
.nd-receipt-table td{padding:7px 10px;border-bottom:1px solid #f0f0f0;}
.nd-receipt-table td:first-child{font-weight:600;color:#555;width:42%;}
.nd-receipt-table tr:last-child td{border-bottom:none;}
.nd-result-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:18px;}
.nd-find-title{font-size:22px;font-weight:800;color:#1a1a2e;margin:0 0 8px;}
.nd-find-sub{font-size:14px;color:#666;margin:0 0 20px;line-height:1.5;}

.nd-history-list{display:flex;flex-direction:column;gap:10px;}
.nd-history-item{background:#fff;border:1px solid #e4e7e5;border-radius:10px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px;}
.nd-history-main{min-width:0;flex:1;}
.nd-history-main strong{font-family:monospace;font-size:12px;color:#333;word-break:break-all;}
.nd-history-date{display:block;font-size:11px;color:#999;margin-top:4px;}
.nd-history-meta{display:flex;align-items:center;gap:10px;margin-top:8px;font-size:13px;font-weight:700;color:#555;flex-wrap:wrap;}
.nd-history-status{display:inline-flex;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:800;}
.nd-history-status.paid{background:#e8f5ee;color:#1c7a43;}
.nd-history-status.pending{background:#fff3e8;color:#b96312;}
.nd-history-status.failed{background:#fff3f3;color:#cc3333;}
.nd-history-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;}
.nd-btn-small{padding:8px 12px;font-size:12px;border-radius:7px;}
@media(max-width:640px){.nd-history-item{align-items:stretch;flex-direction:column;}.nd-history-actions{justify-content:flex-start;}.nd-history-actions .nd-btn{width:auto;}}
/* Responsive */
@media(max-width:640px){
  .nd-section{padding:18px 14px;}
  .nd-main-title{font-size:20px;}
  .nd-find-title{font-size:18px;}
  .nd-row-2{grid-template-columns:1fr;}
  .nd-find-btn,.nd-btn.full{width:100%;}
  .nd-result-actions{flex-direction:column;}
  .nd-result-actions a,.nd-result-actions button{width:100%;}
  .nd-field-half{max-width:100%;}
}
@media print{
  .nd-btn,.nd-find-section,.nd-org-lines,.nd-badge-label,.nd-subtitle,.nd-find-sub,
  .nd-pay-form-wrap,.nd-result-actions,.nd-secure{display:none!important;}
  .nd-section{box-shadow:none!important;border:none!important;}
}
