/* BHD–MBH–LA Graduate Stage Dashboard, Oct 2026 */
#nbu-stage-panel {margin-top:22px; --nbu-blue:#16385c;--nbu-accent:#11767e;}
#nbu-stage-panel .nbu-stage-hd {display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:15px}
#nbu-stage-panel h3 {font-size:1.3em;margin:0;color:var(--nbu-blue)}
#nbu-stage-panel .nbu-note {color:#506581;font-size:.94em;margin:8px 0 14px;line-height:1.55}
#nbu-stage-panel .nbu-stage-tabs {display:flex;gap:8px;flex-wrap:wrap}
#nbu-stage-panel button {cursor:pointer}
#nbu-stage-panel .nbu-stage-tabs button {border:1px solid #bdcee2;border-radius:10px;background:#fff;color:#24425f;padding:9px 16px;font-weight:600}
#nbu-stage-panel .nbu-stage-tabs button[aria-pressed="true"] {background:#0d4c83;color:#fff;border-color:#0d4c83}
#nbu-stage-panel .nbu-stage-total {display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 18px;font-size:.95em}
#nbu-stage-panel .nbu-stage-total span {background:#eaf3ff;padding:8px 12px;border-radius:10px}
#nbu-stage-panel .nbu-stage-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
#nbu-stage-panel .nbu-stage-card {text-align:left;border:1px solid #d2deee;background:#fff;border-radius:13px;padding:15px;min-height:102px;display:flex;flex-direction:column;gap:5px;justify-content:space-between;box-shadow:0 1px 5px #122b4410}
#nbu-stage-panel .nbu-stage-card:hover {border-color:#2b719f;box-shadow:0 2px 10px #153b5418}
#nbu-stage-panel .nbu-stage-card[aria-pressed="true"] {outline:3px solid #0f8197;background:#edfaff}
#nbu-stage-panel .nbu-stage-card .nbu-stage-card-label {font-size:.96em;font-weight:650;color:#24425f}
#nbu-stage-panel .nbu-stage-card .nbu-stage-count {font-size:2rem;color:#144d79;font-weight:800;line-height:1}
#nbu-stage-panel .nbu-stage-results {border:1px solid #d7e3f2;border-radius:12px;margin-top:17px;padding:15px;background:#fff}
#nbu-stage-panel .nbu-stage-toolbar {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
#nbu-stage-panel .nbu-stage-toolbar input {min-width:160px;max-width:340px;flex:1 1 220px;padding:10px 12px;border:1px solid #b6cde0;border-radius:8px;background:#fff}
#nbu-stage-panel .nbu-stage-btn {padding:9px 13px;border-radius:8px;border:1px solid #b9cce0;color:#184f7f;background:#fff;font-weight:600}
#nbu-stage-panel .nbu-stage-btn-primary {background:#17669d;color:#fff;border-color:#17669d}
#nbu-stage-panel .nbu-stage-tablewrap {max-width:100%;overflow:auto;border-radius:8px;border:1px solid #dce6f0}
#nbu-stage-panel table {border-collapse:collapse;width:100%;min-width:735px}
#nbu-stage-panel th {background:#153b60;color:#fff;text-align:left;padding:10px;font-weight:650}
#nbu-stage-panel td {padding:9px 10px;border-bottom:1px solid #e0e8f0;vertical-align:top}
#nbu-stage-panel tbody tr:nth-child(even) {background:#f5f9fd}
#nbu-stage-panel .nbu-stage-tag {display:inline-block;background:#e7eff8;border-radius:7px;padding:2px 7px;white-space:nowrap}
#nbu-stage-panel .nbu-stage-alert {padding:11px 13px;border-radius:8px;background:#fff7e6;border:1px solid #efd29c;color:#63461a}
#nbu-stage-dialog {border:0;border-radius:15px;padding:0;max-width:520px;width:calc(100% - 28px);box-shadow:0 14px 70px #001d4060}
#nbu-stage-dialog::backdrop {background:#07274699}
#nbu-stage-dialog .nbu-dialog-inner {padding:22px;background:#fff}
#nbu-stage-dialog h3 {margin:0 0 8px;color:#16385c}
#nbu-stage-dialog label {display:block;margin:15px 0 5px;font-weight:600}
#nbu-stage-dialog select,#nbu-stage-dialog textarea {display:block;width:100%;font:inherit;padding:10px;border:1px solid #a6bfd9;border-radius:8px}
#nbu-stage-dialog .nbu-dialog-actions {display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
#nbu-stage-print-sheet {display:none;font-family:'TH SarabunPSK','TH Sarabun New',sans-serif;background:white;color:#122d46}
#nbu-stage-print-sheet h1 {font-size:20pt}
#nbu-stage-print-sheet table {width:100%;border-collapse:collapse;font-size:12pt}
#nbu-stage-print-sheet th,#nbu-stage-print-sheet td {border:1px solid #777;padding:6px 8px}
#nbu-stage-print-sheet th {background:#e8f0f8}
@media (max-width:690px) {#nbu-stage-panel .nbu-stage-results{padding:10px}#nbu-stage-panel .nbu-stage-cards{grid-template-columns:repeat(2,minmax(0,1fr))}#nbu-stage-panel .nbu-stage-card{padding:12px;min-height:95px}#nbu-stage-panel .nbu-stage-toolbar .nbu-stage-btn{flex:1 1 auto}}
@media print {body.nbu-stage-printing > *:not(#nbu-stage-print-sheet){display:none!important} body.nbu-stage-printing #nbu-stage-print-sheet {display:block!important;position:static!important;width:100%!important}body.nbu-stage-printing{background:white!important} @page{size:A4 landscape;margin:12mm}}
