/* Nodra Club · Gerencia: estilo exclusivamente del piloto. */
.management-page{background:#f3f7f6;color:#143a3d}
.mg-wrap{width:min(1220px,calc(100% - 32px));margin:30px auto 56px;min-height:55vh}
.mg-wrap [hidden]{display:none!important}
.mg-access{max-width:500px;margin:40px auto;padding:30px!important}
.mg-access h1{font-size:clamp(26px,4vw,38px);line-height:1.2;letter-spacing:-1px;margin:10px 0}
.mg-access p{line-height:1.6;color:#58716f}
.mg-access form{display:grid;gap:14px;margin-top:22px}
.mg-access form label{display:grid;gap:7px;font-weight:750}
.mg-access form input{min-height:46px;font-size:16px}
.mg-access a{color:#077d75}
.mg-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:10px 0 22px}
.mg-heading h1{font-size:clamp(31px,4vw,48px);line-height:1.06;letter-spacing:-1.5px;margin:8px 0 12px}
.mg-heading h1 span{color:#07887d}
.mg-heading p{margin:0;color:#637d77;font-size:14px}
.mg-heading-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mg-heading-actions a{display:inline-flex;align-items:center;text-decoration:none!important}
.mg-heading-actions button,.mg-heading-actions a{min-height:42px}
.mg-notice{background:#e9f5f2;border:1px solid #b8dfd5;border-left:4px solid #078c80;border-radius:12px;padding:15px 17px;font-size:13px;line-height:1.55;color:#214f4b;margin:18px 0}
.mg-filters{display:grid;grid-template-columns:minmax(190px,1.4fr) repeat(2,minmax(125px,1fr)) auto;gap:14px;align-items:end;padding:17px!important;margin:20px 0 8px!important}
.mg-filters label{font-size:12px;font-weight:800;display:grid;gap:7px;color:#3c5a56}
.mg-filters input,.mg-filters select{min-height:44px;border-radius:9px;width:100%;font-size:14px;background:#fff}
.mg-filter-buttons{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.mg-filter-buttons button{min-height:44px}
.mg-scope{font-size:12px;color:#4c6a65;line-height:1.6;margin:11px 2px 20px}
.mg-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:18px}
.mg-kpi{background:#fff;border:1px solid #dce8e4;box-shadow:0 4px 16px #16453809;border-radius:16px;padding:23px;min-width:0;display:flex;flex-direction:column;gap:9px}
.mg-kpi span{font-size:12px;font-weight:750;color:#4c6a65}
.mg-kpi strong{font-size:clamp(31px,4vw,44px);letter-spacing:-1.6px;color:#0d4845;line-height:1}
.mg-kpi small{font-size:11px;color:#7a8f88;line-height:1.4}
.mg-analytics{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:16px;align-items:stretch;margin-bottom:17px}
.mg-analytics>.card,.mg-breakdown{padding:24px!important;margin:0!important}
.mg-section-heading{display:flex;justify-content:space-between;align-items:start;gap:14px;margin-bottom:20px}
.mg-analytics h2,.mg-breakdown h2{font-size:23px;letter-spacing:-.5px;margin:8px 0 2px}
.mg-legend{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;color:#657d78;white-space:nowrap}
.mg-legend i,.mg-legend em{display:inline-block;width:9px;height:9px;border-radius:3px;background:#0b9388}
.mg-legend em{background:#a8d9d0}
.mg-chart{height:205px;display:flex;align-items:stretch;gap:3px;overflow-x:auto;padding:10px 2px 3px}
.mg-day{min-width:8px;flex:1 0 auto;max-width:50px;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;align-items:stretch}
.mg-bars{flex:1;display:flex;align-items:end;gap:2px;border-bottom:1px solid #dfebe5;padding:0 2px}
.mg-bar{flex:1;min-width:2px;max-width:16px;display:block;border-radius:4px 4px 0 0}
.mg-bar-registrations{background:#0b9388}
.mg-bar-uses{background:#a8d9d0}
.mg-day small{font-size:9px;color:#81938e;text-align:center;min-height:12px;white-space:nowrap}
.mg-muted{font-size:11px;color:#718983;line-height:1.55;margin:10px 0 0}
.mg-ranking-items{display:grid;gap:15px;margin:22px 0}
.mg-rank{display:grid;gap:8px}
.mg-rank-header{display:flex;justify-content:space-between;gap:15px;font-size:12px;color:#416360;font-weight:750}
.mg-rank-header strong{font-size:12px;color:#0c8176;white-space:nowrap}
.mg-track{height:9px;border-radius:99px;background:#e8f3f0;overflow:hidden}
.mg-track span{display:block;background:#0c9589;height:100%;min-width:0;border-radius:99px}
.mg-scroll{overflow:auto;margin-top:15px}
.mg-breakdown table{width:100%;border-collapse:collapse;min-width:715px;font-size:12px}
.mg-breakdown thead{background:#f0f8f5}
.mg-breakdown th{text-align:left;font-size:11px;color:#50726b;padding:13px 11px;font-weight:800;white-space:nowrap}
.mg-breakdown td{padding:15px 11px;border-bottom:1px solid #e2ede8;white-space:nowrap}
.mg-breakdown td:first-child{font-weight:800;color:#0e514b}
.mg-money{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:17px}
.mg-money article{margin:0!important;padding:20px!important;display:flex;flex-direction:column;gap:5px}
.mg-money span{color:#637b76;font-size:12px;font-weight:750}
.mg-money strong{font-size:35px;color:#adc1bc}
.mg-money small{font-size:11px;color:#738b84}
.mg-footer-note{text-align:center;color:#718a82;font-size:12px;line-height:1.6;margin-top:27px}
#mgStatus{max-width:1200px;margin:14px 0;font-size:12px;min-height:18px}
@media(max-width:900px){
 .mg-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mg-filter-buttons{justify-content:stretch}
 .mg-filter-buttons button{flex:1}
 .mg-analytics{grid-template-columns:1fr}
}
@media(max-width:600px){
 .mg-wrap{width:calc(100% - 24px);margin-top:24px}
 .mg-heading{align-items:stretch;flex-direction:column}
 .mg-heading-actions{width:100%}
 .mg-heading-actions a,.mg-heading-actions button{flex:1;justify-content:center}
 .mg-filters{grid-template-columns:1fr}
 .mg-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .mg-kpi{padding:17px 13px}
 .mg-kpi strong{font-size:32px}
 .mg-money{grid-template-columns:1fr}
 .mg-section-heading{flex-direction:column}
 .mg-analytics>.card,.mg-breakdown{padding:18px!important}
 .mg-chart{height:175px}
}
