.ncd-status,.ncd-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}.ncd-card{padding:18px;border:1px solid #ccd8d4;border-top:8px solid #86928d;border-radius:15px;background:#fff;color:#15382f}.ncd-card.white{border-top-color:#d1d5db}.ncd-card.lightgreen{border-top-color:#a3d65c}.ncd-card.green{border-top-color:#16823d}.ncd-card.yellow{border-top-color:#f3d432}.ncd-card.orange{border-top-color:#f58b24}.ncd-card.red{border-top-color:#d93141}.ncd-card.black{border-top-color:#20252b}.ncd-card strong{font-size:1.5rem}.ncd-chart{padding:18px;margin:18px 0;background:#f5f9f7;border-radius:16px}.ncd-chart svg{width:100%;max-height:230px}.ncd-scroll{overflow:auto}.ncd-scroll th,.ncd-scroll td{padding:9px;text-align:left;border-bottom:1px solid #dbe4df}#ncd-person{margin-top:24px}#ncd-list button{display:block;margin:8px 0}.ncd-intro{padding:24px;background:#eaf5ee;border-radius:18px;margin-bottom:20px}

.ncd-main{max-width:1200px;margin:auto;padding:24px}.ncd-main select{padding:12px;border:1px solid #abc6b8;border-radius:8px}.ncd-main button.ncd-card{font:inherit;text-align:left;cursor:pointer}.ncd-main #ncd-list a{display:inline-block;margin:5px}
/* Large colour headers for the village traffic-light cards. */
.ncd-cards .ncd-card{--ncd-fill:#e5e9e7;border-top-width:1px;overflow:hidden;padding:0 18px 18px;min-height:190px}
.ncd-cards .ncd-card>span:first-child{display:flex;align-items:center;justify-content:center;text-align:center;min-height:92px;margin:0 -18px 14px;padding:18px;background:var(--ncd-fill);font-weight:700;color:#132e25;box-sizing:border-box}
.ncd-cards .ncd-card>br{display:none}.ncd-cards .ncd-card>strong{display:block;font-size:2rem;margin:6px 0}.ncd-cards .ncd-card>small{display:block}
.ncd-cards .white{--ncd-fill:#fff;border:2px solid #aab5af}.ncd-cards .lightgreen{--ncd-fill:#b4e77d}.ncd-cards .green{--ncd-fill:#198343}.ncd-cards .yellow{--ncd-fill:#ffe04b}.ncd-cards .orange{--ncd-fill:#ff963d}.ncd-cards .red{--ncd-fill:#db3548}.ncd-cards .black{--ncd-fill:#24292e}
.ncd-cards .green>span:first-child,.ncd-cards .red>span:first-child,.ncd-cards .black>span:first-child{color:white}

#ncd-list{margin-top:24px;padding:16px;background:#fff;border-radius:16px}#ncd-list:empty{display:none}#ncd-list table{width:100%}#ncd-list input{padding:12px;margin:8px;border:1px solid #abc6b8;border-radius:8px}.ncd-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:12px}#ncd-list .ncd-pagination button{display:inline-block}

.ncd-card-help{font-size:13px;line-height:1.6;font-weight:400;text-align:left;margin:12px 0 0;color:#455b55}

/* Align every colour band to the card top, including native buttons. */
.ncd-cards{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch}
.ncd-cards .ncd-card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:0 0 18px;border-width:1px;min-width:0;appearance:none}
.ncd-cards .ncd-card>span:first-child{flex:0 0 112px;height:112px;min-height:112px;margin:0 0 12px;padding:14px 12px;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.ncd-cards .ncd-card>strong,.ncd-cards .ncd-card>small,.ncd-cards .ncd-card>.ncd-card-help{margin-left:16px;margin-right:16px}
.ncd-cards .ncd-card>strong{margin-top:0}
@media(max-width:900px){.ncd-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.ncd-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.ncd-main{padding:14px}.ncd-cards .ncd-card>span:first-child{font-size:15px}}

.ncd-cards .ncd-card>strong,.ncd-cards .ncd-card>small{text-align:center}.ncd-cards .ncd-card>strong{font-variant-numeric:tabular-nums;font-size:2.25rem;line-height:1.3}.ncd-cards .ncd-card>.ncd-card-help{text-align:center}
.ncd-public-supplement{margin-top:2rem;padding:1.25rem;border:1px solid #d7e4df;border-radius:1rem;background:#fff}.ncd-public-supplement h2{margin-top:0}.ncd-supplement-total{font-size:1.1rem;margin:.75rem 0}.ncd-supplement-table-wrap{overflow-x:auto}.ncd-public-supplement table{width:100%;border-collapse:collapse}.ncd-public-supplement th,.ncd-public-supplement td{padding:.65rem;border-bottom:1px solid #e4ece9;text-align:left}.ncd-public-supplement th{background:#f1f7f5}
