/* M NGO - clean professional theme */
:root{--o:#f97316;--od:#ea580c;--ink:#1f2937;--mut:#6b7280;--line:#e5e7eb;--bg:#f4f6f9}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--ink);font-size:14.5px;line-height:1.5}
a{color:inherit;text-decoration:none}

/* Sidebar */
#side{position:fixed;inset:0 auto 0 0;width:250px;background:#fff;border-right:1px solid var(--line);padding:18px 12px;overflow:auto;z-index:30;transition:transform .25s}
.brand{display:flex;gap:12px;align-items:center;padding:0 6px;margin-bottom:22px}
.brand b{display:block;font-size:18px;letter-spacing:.3px}.brand small{display:block;color:var(--mut);font-size:11.5px}
.logoimg{width:44px;height:44px;border-radius:12px;flex:none}
.logoimg.big{width:72px;height:72px;border-radius:18px;margin-bottom:12px;display:block}
#side nav a{display:flex;gap:12px;align-items:center;padding:10px 12px;border-radius:8px;margin-bottom:2px;color:#374151;font-weight:500}
#side nav a:hover{background:#f3f4f6}
#side nav a.on{background:#fff4ec;color:var(--od);font-weight:600;box-shadow:inset 3px 0 0 var(--o)}
#side nav i{font-style:normal;width:22px;text-align:center}
#side nav a.out{color:#dc2626}

/* Header + main */
header{position:sticky;top:0;margin-left:250px;height:60px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:0 24px;z-index:20}
header h1{font-size:18px;font-weight:650;margin:0;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.burger{display:none;border:0;background:none;font-size:24px;cursor:pointer;color:var(--ink)}
.who{display:flex;gap:10px;align-items:center;flex:none}
.av{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--o);color:#fff;font-weight:600}
.pw{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;color:#dc2626;background:#fef2f2;flex:none}.pw:hover{background:#fee2e2}
.pw svg,.out svg{display:block}
main{margin-left:250px;padding:24px}
.hello{font-size:17px;margin:0 0 18px}

/* Dashboard cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.stat{position:relative;background:#fff;border:1px solid var(--line);border-top:3px solid var(--c,var(--o));border-radius:12px;padding:18px;box-shadow:0 1px 2px rgba(16,24,40,.05)}
.stat span{position:absolute;right:14px;top:14px;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;font-size:19px;background:#f3f4f6}
.stat small{display:block;color:var(--mut);font-size:13px}.stat b{display:block;font-size:30px;margin-top:6px;font-weight:700}
.c1{--c:#8b5cf6}.c2{--c:#f97316}.c3{--c:#f43f5e}.c4{--c:#0ea5e9}.c5{--c:#14b8a6}.c6{--c:#22c55e}

/* Panels, forms */
.panel,.card3d{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:18px;box-shadow:0 1px 2px rgba(16,24,40,.05)}
.panel h3{margin:0 0 14px;font-size:16px}
label{display:block;font-weight:600;font-size:13px;margin:12px 0 6px;color:#374151}
input,select{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14.5px;background:#fff;color:var(--ink);outline:0;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus{border-color:var(--o);box-shadow:0 0 0 3px rgba(249,115,22,.15)}
.row{display:flex;gap:10px}.fgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:2px 16px}.full{grid-column:1/-1}
.actions{display:flex;gap:10px}.lh{display:flex;justify-content:space-between;align-items:center;gap:10px}
.btn{display:block;width:100%;margin-top:16px;padding:11px 16px;border:0;border-radius:8px;font-weight:600;font-size:15px;color:#fff;background:var(--o);cursor:pointer;transition:background .15s}
.btn:hover{background:var(--od)}.btn:disabled{opacity:.6;cursor:default}
.btn.light{background:#fff4ec;color:var(--od);margin:0;width:auto}.btn.light:hover{background:#ffe8d6}
.btn.red{background:#fef2f2;color:#dc2626}.btn.red:hover{background:#fee2e2}
.btn.sm{padding:6px 12px;font-size:13px;border-radius:7px;margin:0}
.fgrid .btn,.actions .btn{width:auto;min-width:140px}
.alert{background:#fff7ed;border:1px solid #fed7aa;border-left:4px solid var(--o);padding:10px 14px;border-radius:8px;margin:12px 0}
.muted{color:var(--mut);font-size:13.5px}.tiny{color:var(--mut);font-size:12px;margin-top:18px}

/* Tables */
.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:11px 10px;border-bottom:1px solid #eef0f3;font-size:14px}
th{color:var(--mut);font-weight:600;font-size:12.5px;text-transform:uppercase;letter-spacing:.4px;background:#fafafa}
tr:hover td{background:#fcfcfd}.acts{white-space:nowrap}
.pill{padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600}.g{background:#dcfce7;color:#15803d}.r{background:#fee2e2;color:#b91c1c}

/* Login */
.loginbody{min-height:100vh;background:var(--bg)}
.scene{min-height:100vh;display:grid;place-items:center;padding:18px}
.login{width:100%;max-width:400px;padding:30px 26px}
.login h2{margin:0 0 2px;font-size:22px}
.tabs{display:flex;background:#f3f4f6;padding:4px;border-radius:10px;margin:18px 0 6px}
.tabs button{flex:1;border:0;background:none;padding:10px 6px;border-radius:7px;font-weight:600;font-size:14px;color:var(--mut);cursor:pointer}
.tabs .on{background:#fff;color:var(--od);box-shadow:0 1px 2px rgba(0,0,0,.1)}

/* Install button, banner, modal */
.installBtn{border:0;cursor:pointer;font-weight:600;color:#fff;background:var(--o);padding:8px 12px;border-radius:8px;font-size:13px}.installBtn:hover{background:var(--od)}
.btn.installBtn{color:var(--od);background:#fff4ec;padding:11px;font-size:15px}.btn.installBtn:hover{background:#ffe8d6}
.ibar{position:fixed;left:12px;right:12px;z-index:90;display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;box-shadow:0 8px 24px rgba(16,24,40,.18)}
.ibar img{width:44px;height:44px;border-radius:10px;flex:none}.ibar div{flex:1;min-width:0}.ibar b{display:block;font-size:15px}.ibar small{color:var(--mut);font-size:12px}
.ibtn{border:0;border-radius:8px;padding:9px 16px;font-weight:600;color:#fff;background:var(--o)}
.ix{border:0;background:none;font-size:16px;color:var(--mut);padding:6px}
.modal{position:fixed;inset:0;background:rgba(17,24,39,.45);display:grid;place-items:center;z-index:99;padding:20px}
.mbox{background:#fff;border-radius:14px;padding:22px;max-width:340px;box-shadow:0 10px 30px rgba(0,0,0,.2)}.mbox h3{margin:0 0 8px}

/* Mobile */
.bottom,#ov{display:none}
@media(max-width:850px){
 #side{transform:translateX(-100%)}.open #side{transform:none;box-shadow:0 0 30px rgba(0,0,0,.2)}
 .open #ov{display:block;position:fixed;inset:0;background:rgba(17,24,39,.4);z-index:25}
 header,main{margin-left:0}header{padding:0 12px}main{padding:16px 14px 90px}.burger{display:block}
 .bottom{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);z-index:20;padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
 .bottom a{flex:1;text-align:center;font-size:11px;color:var(--mut)}.bottom i{display:block;font-style:normal;font-size:21px}
}
@media(max-width:480px){header .installBtn{padding:6px 9px;font-size:11px}header h1{font-size:16px}.grid{grid-template-columns:1fr 1fr;gap:12px}.stat b{font-size:26px}.stat span{width:32px;height:32px;font-size:16px}}
.links{margin:16px 0 0;font-size:13.5px;color:var(--mut);text-align:center}.links a{color:var(--od);font-weight:600}
.ok{background:#f0fdf4;border:1px solid #bbf7d0;border-left:4px solid #22c55e;padding:10px 14px;border-radius:8px;margin:12px 0}
/* action buttons: same size, clear colours */
.btn.sm{display:inline-block;width:auto;min-width:78px;text-align:center;margin:0 4px 0 0;padding:7px 14px;line-height:1.2}
.acts{white-space:nowrap}.acts form{display:inline}
.btn.sm.light{background:#fff4ec;color:#c2410c}.btn.sm.light:hover{background:#ffe8d6}
.btn.sm.red{background:#fef2f2;color:#dc2626}.btn.sm.red:hover{background:#fee2e2}
.btn.sm.green{background:#f0fdf4;color:#15803d}.btn.sm.green:hover{background:#dcfce7}
/* Mobile app view: tables become cards */
@media(max-width:700px){
 .rt,.rt tbody,.rt tr,.rt td{display:block;width:100%}
 .rt tr:first-child{display:none}
 .rt tr{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:12px;padding:8px 14px;box-shadow:0 1px 3px rgba(16,24,40,.06)}
 .rt tr:hover td{background:transparent}
 .rt td{display:flex;justify-content:space-between;align-items:center;gap:14px;border:0;border-bottom:1px solid #f3f4f6;padding:9px 0;text-align:right;font-size:14.5px;font-weight:500}
 .rt td::before{content:attr(data-label);flex:none;text-align:left;font-weight:600;font-size:11.5px;text-transform:uppercase;letter-spacing:.4px;color:var(--mut)}
 .rt td[data-label="#"]{display:none}
 .rt td:last-child{border-bottom:0}
 .rt td.acts{display:flex;gap:10px;justify-content:stretch;padding:12px 0 6px;border-top:1px solid #eef0f3}
 .rt td.acts::before{display:none}.rt td.acts .btn{flex:1;margin:0;padding:10px}
 .rt td[colspan]{display:block;text-align:center;border:0}.rt td[colspan]::before{display:none}
 .panel{padding:16px}.lh{flex-wrap:wrap}
}
textarea{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font:inherit;background:#fff;color:var(--ink);outline:0;resize:vertical}
textarea:focus{border-color:var(--o);box-shadow:0 0 0 3px rgba(249,115,22,.15)}
.mbox.wide{width:100%;max-width:560px;max-height:92vh;overflow:auto}
@media(min-width:701px){#tb td{max-width:260px;word-break:break-word}}
/* committee photo, view popup, mobile spacing */
.th{width:38px;height:38px;border-radius:50%;object-fit:cover;display:block}.th.big,.ph.big{width:72px;height:72px;font-size:26px}
.ph{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff4ec;color:var(--od);font-weight:700}
.ph-row{display:flex;gap:14px;align-items:center}.ph-row .th,.ph-row .ph{flex:none}
.vh{display:flex;gap:14px;align-items:center;margin-bottom:16px}.vh h3{font-size:18px}
.vgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}.vgrid div{word-break:break-word}.vgrid small{display:block;color:var(--mut);font-size:11.5px;text-transform:uppercase;letter-spacing:.4px}
.modal{overflow:auto}
@media(max-width:700px){
 main{padding:16px 16px 92px}.panel{padding:18px 16px;margin-bottom:18px}
 .lh{margin-bottom:12px;gap:10px}.lh select,#flt{width:100%;max-width:none!important;margin:2px 0 8px}
 .rt tr{margin:0 0 14px;padding:10px 16px}.rt td .th,.rt td .ph{margin-left:auto}
 .mbox.wide{padding:18px 16px}
}
@media(max-width:480px){.vgrid{grid-template-columns:1fr}}
/* three different action colours: View = blue, Edit = orange, Block = red, Activate = green */
.btn.sm.blue{background:#eff6ff;color:#1d4ed8}.btn.sm.blue:hover{background:#dbeafe}
.btn.sm.light{background:#fff4ec;color:#c2410c}.btn.sm.red{background:#fef2f2;color:#dc2626}.btn.sm.green{background:#f0fdf4;color:#15803d}
/* Update / Cancel buttons: same size, aligned side by side */
.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:16px}
.actions .btn,.actions a.btn{margin:0;width:auto;min-width:140px;height:44px;padding:0 22px;display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:600;line-height:1;text-decoration:none;border-radius:8px}
.actions .btn.light{background:#fff4ec;color:#c2410c}.actions .btn.light:hover{background:#ffe8d6}
@media(max-width:480px){.actions .btn,.actions a.btn{flex:1;min-width:0}}
/* action buttons: web = V E B A, mobile = full words */
.acts .btn.sm .s{display:none}
@media(min-width:701px){
 .acts .btn.sm{min-width:0;width:34px;height:34px;padding:0;display:inline-grid;place-items:center;margin:0 4px 0 0;font-weight:700;font-size:13px;border-radius:8px}
 .acts .btn.sm .l{display:none}.acts .btn.sm .s{display:inline}
}
@media(max-width:700px){.acts .btn.sm .l{display:inline}.acts .btn.sm .s{display:none}}
.tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}#addnew{min-width:120px;height:38px;margin:0}
.mh{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.mh h3{margin:0}
.mx{border:0;background:#f3f4f6;width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:15px;color:var(--mut)}.mx:hover{background:#e5e7eb}
@media(max-width:700px){.tools{width:100%}.tools #flt{flex:1;width:auto;margin:0}.tools #addnew{flex:none}}
#yt td{max-width:220px;word-break:break-word}@media(min-width:701px){#yt{min-width:1500px}}
.pill.amber{background:#fef3c7;color:#b45309}
#yt{min-width:0!important}.stsel{width:auto!important;padding:6px 10px;font-size:13px;border-radius:8px;margin-left:4px}
@media(min-width:701px){#yt .acts{white-space:nowrap}}
@media(max-width:700px){#yt td.acts .stsel{flex:1;margin:0}}
/* Yatrigan Data header: title on top, three equal filters in one line (one per row on mobile) */
.lh.yhead{display:block}.lh.yhead h3{margin:0 0 12px}
.yhead .tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%}
.yhead .tools select,.yhead .tools input{width:100%;max-width:none;margin:0;height:42px;padding:0 12px}
@media(max-width:700px){.yhead .tools{grid-template-columns:1fr;gap:10px}}
.yhead{margin-bottom:0!important}.ynote{margin:18px 2px 20px!important;line-height:1.6;font-size:13.5px}
@media(max-width:700px){.ynote{margin:16px 0 18px!important}}
.mh2{margin:18px 0 8px;font-size:14px;border-top:1px solid var(--line);padding-top:14px}.mi{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #f3f4f6}.mi-b{flex:1;min-width:0}.mi-b b{display:block}.mi-b small{color:var(--mut)}
#et td{max-width:240px;word-break:break-word}@media(min-width:701px){#et{min-width:0}}
@media(min-width:701px){.yhead .tools{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}}
