:root{
 --primary:#70c878;--primary2:#49a957;--dark:#164d2a;--deep:#0d3920;
 --mint:#effaf0;--lime:#dff6df;--text:#183122;--muted:#6b7b70;
 --white:#fff;--danger:#d64545;--warning:#d99825;--info:#3d83d7;
 --pink:#df2b86;--yellow:#f4c542;--purple:#8b5cf6;
 --shadow:0 18px 50px rgba(22,77,42,.10);--radius:20px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f6fbf6;color:var(--text);font-family:Inter,Arial,sans-serif;overflow-x:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}a{text-decoration:none;color:inherit}.inline{display:inline}.hidden{display:none!important}
.topbar{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-bottom:1px solid #e4eee5}.topbar-inner{max-width:1400px;margin:auto;min-height:76px;display:flex;align-items:center;gap:18px;padding:0 22px}.brand{display:flex;align-items:center;gap:12px;min-width:250px}.brand img{width:48px;height:48px;object-fit:contain}.brand b{font-family:Poppins,Inter,sans-serif;font-size:15px;line-height:1.2;color:var(--dark)}.brand small{display:block;color:var(--muted);font-size:11px;font-weight:500;margin-top:3px}.mainnav{display:flex;align-items:center;gap:4px;margin-left:auto}.nav-btn{background:transparent;padding:11px 14px;border-radius:12px;color:#53665a;font-weight:700;font-size:13px}.nav-btn:hover,.nav-btn.active{background:var(--mint);color:var(--dark)}
.app-user-area{margin-left:auto;display:flex;align-items:center;gap:10px}.user-chip{display:flex;align-items:center;gap:9px;background:#fff;padding:7px 11px;border:1px solid #e2ebe3;border-radius:14px}.user-chip b{display:block;font-size:12px;color:var(--dark)}.user-chip small{display:block;font-size:9px;color:#df2b86;font-weight:800;margin-top:2px}.avatar{width:34px;height:34px;border-radius:12px;background:var(--mint);display:grid;place-items:center;font-weight:800;color:var(--dark)}
.container{max-width:1400px;margin:auto}.logged-container{padding:25px 22px 70px;min-height:calc(100vh - 76px)}.public-container{padding:25px 22px 70px}.dashboard-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:20px;align-items:start}.content{min-width:0}.sidebar{position:sticky;top:96px;height:calc(100vh - 120px);overflow:auto;background:var(--dark);border-radius:22px;padding:14px;color:#d9eddb;z-index:70}.sidebar::-webkit-scrollbar{width:4px}.sidebar::-webkit-scrollbar-thumb{background:#3c7550;border-radius:8px}.sidebar-top{display:flex;align-items:center;justify-content:space-between;padding:0 2px 5px}.side-title{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:#88bd8e;padding:12px}.side-collapse{background:rgba(255,255,255,.08);color:#d9eddb;width:34px;height:34px;border-radius:10px}.sidebar-links{display:flex;flex-direction:column}.sidebar-links a{display:flex;align-items:center;gap:10px;width:100%;color:#d7ead9;text-align:left;padding:11px 12px;border-radius:11px;font-size:12px;font-weight:700;margin:2px 0}.sidebar-links a:hover,.sidebar-links a.sel{background:rgba(255,255,255,.12);color:#fff}.side-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.08);flex:0 0 31px}.sidebar-links a.sel .side-icon{background:#70c878;color:#164d2a}.side-refresh{margin-top:12px!important;width:100%}
.dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.dashboard-head h1{font:800 26px Poppins,Inter,sans-serif;color:var(--dark);margin:8px 0 0}.pill,.eyebrow{display:inline-flex;padding:7px 11px;background:rgba(255,255,255,.8);border-radius:99px;color:var(--dark);font-size:10px;font-weight:800}.hero{display:grid;grid-template-columns:1.35fr .65fr;gap:22px;align-items:stretch;margin-bottom:22px}.hero-card{position:relative;overflow:hidden;border-radius:30px;background:linear-gradient(135deg,#dff7df,#b9eebd);padding:38px;min-height:275px;box-shadow:var(--shadow)}.hero-card:after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;right:-80px;bottom:-130px;background:rgba(255,255,255,.35)}.hero-card h1,.hero-card h2{position:relative;z-index:1;font-family:Poppins,Inter,sans-serif;font-size:clamp(30px,4vw,52px);line-height:1.05;max-width:750px;margin:18px 0 12px;color:#123d21}.hero-card p{position:relative;z-index:1;max-width:700px;color:#4f6b57;line-height:1.7;margin:0}.hero-side{background:var(--dark);color:white;border-radius:30px;padding:30px;box-shadow:var(--shadow);display:flex;flex-direction:column;justify-content:center}.hero-side .big{font-size:50px;font-family:Poppins,Inter,sans-serif;font-weight:800;color:#a9e9ae}.hero-side p{color:#cfe8d2;font-size:12px;line-height:1.6}.kpi-line{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 0;border-bottom:1px dashed rgba(228,236,229,.35);font-size:12px}.kpi-line:last-child{border-bottom:0}
.stats,.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.stat,.kpi{background:#fff;border:1px solid #e5eee6;border-radius:20px;padding:18px;box-shadow:0 8px 30px rgba(22,77,42,.06)}.stat .icon,.kpi>span:first-child{width:44px;height:44px;border-radius:14px;background:var(--mint);display:grid;place-items:center;font-size:18px;margin-bottom:12px;color:var(--dark)}.stat .icon.blue{background:#e1ecff;color:#2769db}.stat .icon.yellow{background:#fff1bd;color:#c88600}.stat .icon.pink{background:#ffe0ee;color:#d6287f}.stat .icon.purple{background:#eee5ff;color:#7c3aed}.stat strong,.kpi b{display:block;font:800 27px Poppins,Inter,sans-serif;color:var(--dark)}.stat span,.kpi small{color:var(--muted);font-size:11px}.section-title,.section-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:28px 0 15px}.section-title h2,.section-head h1{font-family:Poppins,Inter,sans-serif;margin:0;color:var(--dark)}.section-title p,.section-head small{margin:3px 0 0;color:var(--muted);font-size:12px}.grid,.cards-list{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.card{background:#fff;border:1px solid #e5eee6;border-radius:20px;padding:20px;box-shadow:0 8px 30px rgba(22,77,42,.05)}.extra-card,.ekstra-card{position:relative;overflow:hidden;transition:.2s}.extra-card:hover,.ekstra-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.extra-card h3,.ekstra-card h3{margin:13px 0 6px;font-family:Poppins,Inter,sans-serif;color:var(--dark)}.extra-card p,.ekstra-card p{color:var(--muted);font-size:12px}.meta{display:grid;gap:8px;margin-top:14px;color:#627266;font-size:12px}.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:99px;background:var(--mint);color:var(--dark);font-size:9px;font-weight:800}.badge.yellow{background:#fff3c9;color:#936a00}.badge.pink{background:#ffe2ef;color:#bd216d}.badge.ok{background:#e6f7eb;color:#16813c}.badge.off{background:#ffe7e7;color:#b23a3a}.dot{display:inline-flex;padding:5px 9px;border-radius:99px;background:var(--mint);color:var(--dark);font-size:9px;font-weight:800}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 14px;border-radius:12px;background:#eef7ef;color:var(--dark);font-weight:800;font-size:12px;border:0}.btn-primary{background:var(--primary2);color:#fff}.btn-light{background:#fff;color:var(--dark);border:1px solid #dce8de}.btn-dark{background:var(--dark);color:#fff}.btn-pink{background:var(--pink);color:#fff}.btn-danger{background:#fff0f0;color:var(--danger)}.btn-sm{padding:7px 9px;font-size:10px;border-radius:9px}.btn.full{width:100%}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:15px}.filters{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:0;flex:1}.filters input,.filters select{min-width:180px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.wide,.full{grid-column:1/-1}label{display:block;font-size:11px;font-weight:800;color:#52665a;margin:0 0 6px}input,select,textarea{width:100%;border:1px solid #dce8de;background:#fbfdfb;border-radius:12px;padding:11px 12px;outline:none;color:var(--text);font-size:12px}textarea{min-height:90px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(112,200,120,.15)}
.table-card{padding:0;overflow:hidden}.table-scroll,.table-wrap{overflow:auto;max-width:100%;border-radius:18px}table{width:100%;border-collapse:collapse;min-width:720px;background:#fff}th,td{padding:12px 13px;text-align:left;border-bottom:1px solid #edf2ed;font-size:12px;vertical-align:middle}th{background:#f5faf5;color:#496152;font-size:10px;text-transform:uppercase;letter-spacing:.04em}tr:hover td{background:#fbfefb}td small{display:block;color:#8b9890;font-size:9px;margin-top:2px}.group-row td{background:#eef9f0!important;color:var(--dark);font-weight:800;padding:14px}.group-row small{display:inline;color:#718178;margin-left:7px}.student-filter-info,.result-count{font-size:12px;color:var(--muted);margin:8px 0 12px}.student-filter-info b,.result-count b{font-size:18px;color:var(--dark)}.score-input{min-width:90px}.radio-status{display:inline-flex!important;align-items:center;justify-content:center;margin:0!important}.radio-status input{display:none}.radio-status span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#f2f5f3;color:#68756d;font-weight:900}.radio-status.H input:checked+span{background:#dff5e4;color:#17833e}.radio-status.S input:checked+span{background:#fff0c8;color:#996d00}.radio-status.I input:checked+span{background:#e5edff;color:#3269c9}.radio-status.A input:checked+span{background:#ffe0e0;color:#ba3434}.attendance-table th.h{color:#17833e}.attendance-table th.s{color:#996d00}.attendance-table th.i{color:#3269c9}.attendance-table th.a{color:#ba3434}.bottom-save{display:flex;justify-content:flex-end;padding-top:16px}
.auth-wrap{min-height:calc(100vh - 160px);display:grid;place-items:center;padding:20px}.auth-card{width:min(440px,100%);background:#fff;border:1px solid #e0ece1;border-radius:28px;padding:32px;box-shadow:var(--shadow)}.auth-card>img{display:block;width:76px;height:76px;object-fit:contain;margin:0 auto 14px}.auth-card h1{text-align:center;font:800 24px Poppins;color:var(--dark);margin:12px 0 8px}.auth-card p{text-align:center;color:var(--muted);font-size:12px;line-height:1.6;margin-bottom:20px}.auth-card label{margin-top:12px}.auth-card .btn{margin-top:12px}
.modal{display:none;position:fixed;inset:0;background:rgba(7,35,16,.5);align-items:center;justify-content:center;padding:18px;z-index:100}.modal.show{display:flex}.modal-box{position:relative;width:min(720px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:24px;padding:24px;box-shadow:0 30px 90px rgba(0,0,0,.25)}.modal-box.large{width:min(900px,100%)}.modal-x{position:absolute;right:14px;top:12px;width:34px;height:34px;border-radius:10px;background:#f1f6f2;color:#486052;font-size:20px}.modal-box h2{font:800 20px Poppins;color:var(--dark);margin:0 0 18px}.credential-box{background:#fff8df;border:1px solid #f1df9e;border-radius:16px;padding:15px;margin-bottom:15px;font-size:12px;color:#745e1f}.credential-box div{margin-top:5px}.credential-box small{display:block;margin-top:8px;color:#8c7c4a}.import-box{display:none;background:#fff;border:1px solid #e3ece4;border-radius:18px;padding:15px;margin-bottom:15px}.import-box.show{display:block}.import-box form{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.member-picker{max-height:390px;overflow:auto;border:1px solid #e5eee6;border-radius:14px;padding:8px;margin:10px 0 15px}.pick-row{display:grid;grid-template-columns:25px 1fr auto;align-items:center;gap:8px;padding:9px;border-radius:10px;background:#fff;margin:2px 0}.pick-row:hover{background:var(--mint)}.pick-row input{width:auto}.pick-row span{font-size:12px;font-weight:700}.pick-row small{font-size:9px;color:#7d8a82}.suggest-card{background:#fff;border:1px solid #e5eee6;border-radius:18px;padding:16px;margin-bottom:10px}.suggest-card h3{margin:0 0 6px;color:var(--dark);font:800 14px Poppins}.suggest-card p{font-size:12px;color:#607066;line-height:1.7}.flash{position:fixed;right:20px;top:90px;z-index:120;background:var(--dark);color:#fff;padding:12px 15px;border-radius:12px;box-shadow:var(--shadow);font-size:12px}.flash.error{background:#b93434}.flash.success{background:#16813c}.empty{text-align:center;padding:45px 20px;color:var(--muted)}
.public-body footer,.app-body footer{text-align:center;color:#819087;font-size:11px;padding:20px 15px 30px}.public-bottom-nav{display:none}.page-home{width:100%}.public-hero{margin-bottom:24px}.public-extra-grid .card{min-height:165px}
.mobile-home-shell{display:none}
.print-body{background:#fff}.print-report{max-width:1000px;margin:auto;padding:30px}.report-head{display:flex;gap:15px;align-items:center;border-bottom:2px solid var(--dark);padding-bottom:15px}.report-head img{width:65px;height:65px}.report-head h1,.report-head h2{margin:0;color:var(--dark)}.report-head p{margin:5px 0;color:#68786d}.print-report table{min-width:0;margin-bottom:20px}.print-report .btn{margin-top:15px}
@media(max-width:1050px){.topbar-inner{padding:0 16px}.logged-container,.public-container{padding-left:16px;padding-right:16px}.dashboard-layout{grid-template-columns:220px minmax(0,1fr)}.grid{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.sidebar{top:92px}.hero-side{min-height:190px}}
@media(max-width:760px){
 body{background:#f7fbf7}.topbar{position:sticky}.topbar-inner{min-height:64px;padding:8px 12px}.brand{min-width:0;gap:9px}.brand img{width:40px;height:40px}.brand b{font-size:12px}.brand small{display:none}.mainnav{display:none}.app-user-area{gap:6px}.app-user-area .user-chip{padding:4px 7px;border:0}.app-user-area .user-chip>div:not(.avatar){display:none}.top-logout{width:40px;height:40px;padding:0}.top-logout span{display:none}.logged-container,.public-container{width:100%;padding:14px 12px 95px}.dashboard-layout{display:block}.content{width:100%}
 .dashboard-head{margin:4px 3px 14px;align-items:center}.dashboard-head h1{font-size:22px;margin-top:5px}.dashboard-head .pill{display:none}.dashboard-head>.btn{width:42px;height:42px;padding:0;font-size:0}.dashboard-head>.btn i{font-size:14px}
 .sidebar{position:fixed;left:8px;right:8px;bottom:8px;top:auto;width:auto;height:66px;max-height:none;margin:0;padding:7px 6px;border-radius:20px;background:rgba(22,77,42,.97);box-shadow:0 12px 35px rgba(22,77,42,.25);overflow:hidden;z-index:100}.sidebar-top{display:none}.sidebar-links{height:100%;display:flex;flex-direction:row;align-items:stretch;justify-content:space-around;gap:3px;overflow:hidden}.sidebar-links a{flex:1;min-width:0;height:52px;margin:0;padding:5px 2px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;border-radius:13px;font-size:8px;text-align:center}.sidebar-links a.sel{background:rgba(255,255,255,.14)}.side-icon{width:28px;height:28px;flex:0 0 28px;border-radius:9px;font-size:12px}.side-label{display:none}.side-refresh{position:absolute;right:5px;top:7px;width:0!important;height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;opacity:0}
 .hero{display:block;margin-bottom:14px}.hero-card{padding:24px 20px;min-height:230px;border-radius:24px}.hero-card h1,.hero-card h2{font-size:30px;margin-top:14px}.hero-card p{font-size:12px;line-height:1.65}.hero-side{border-radius:24px;margin-top:10px;padding:20px}.hero-side .big{font-size:38px}.stats{grid-template-columns:repeat(2,1fr);gap:9px}.stat{padding:14px;border-radius:17px}.stat .icon{width:38px;height:38px;border-radius:12px;font-size:15px}.stat strong{font-size:22px}.stat span{font-size:9px}.section-title,.section-head{margin:22px 3px 12px;align-items:center}.section-title h2,.section-head h1{font-size:19px}.section-title p,.section-head small{font-size:10px}.section-title>.btn,.section-head>.btn{padding:8px 10px;font-size:10px}.grid,.cards-list{grid-template-columns:1fr;gap:10px}.card{border-radius:17px;padding:15px}.extra-card,.ekstra-card{min-height:auto}.extra-card h3,.ekstra-card h3{font-size:14px}.meta{font-size:10px}
 .toolbar{display:grid;grid-template-columns:1fr;gap:9px}.toolbar>.btn{width:100%}.filters{display:grid;grid-template-columns:1fr;gap:8px}.filters input,.filters select{min-width:0;width:100%}.student-filter-info{margin:7px 2px}.table-card{border-radius:16px}.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}table{min-width:650px}th,td{padding:10px 9px;font-size:10px}.group-row td{font-size:11px}.form-grid{grid-template-columns:1fr}.wide,.full{grid-column:auto}.bottom-save{position:sticky;bottom:76px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);margin:0 -15px -15px;padding:12px 15px;z-index:20}.bottom-save .btn{width:100%;height:46px}.auth-wrap{min-height:calc(100vh - 100px);padding:8px}.auth-card{padding:24px 18px;border-radius:22px}.auth-card h1{font-size:21px}.modal{padding:8px;align-items:flex-end}.modal-box{width:100%;max-height:90vh;border-radius:22px 22px 0 0;padding:20px 15px}.modal-box.large{width:100%}.import-box form{display:grid;grid-template-columns:1fr}.credential-box{font-size:11px}.pick-row{grid-template-columns:25px 1fr}.pick-row small{display:none}.public-body .public-container{padding-bottom:90px}.public-bottom-nav{position:fixed;display:flex;left:8px;right:8px;bottom:8px;width:auto;transform:none;justify-content:space-around;background:rgba(255,255,255,.97);backdrop-filter:blur(18px);border:1px solid #e5ece8;border-radius:20px;padding:7px 5px env(safe-area-inset-bottom);z-index:100;box-shadow:0 10px 30px rgba(26,70,43,.12)}.public-bottom-nav a{flex:1;text-align:center;color:#9aa5ae;font-size:9px;font-weight:700;padding:5px 2px;border-radius:12px}.public-bottom-nav a i{display:block;font-size:18px;margin-bottom:3px}.public-bottom-nav a.active{color:#18a94d;background:#effaf0}.public-body footer{padding-bottom:100px}
}
@media(min-width:761px){.public-bottom-nav{display:none}}
@media(max-width:430px){.brand b{font-size:11px}.app-user-area .user-chip{display:none}.hero-card h1,.hero-card h2{font-size:27px}.stats{gap:7px}.stat{padding:12px}.public-extra-grid .card{min-height:0}.dashboard-head .btn{flex:0 0 42px}}
@media print{.topbar,.sidebar,.dashboard-head,.btn,.public-bottom-nav,footer{display:none!important}.logged-container,.public-container{padding:0}.dashboard-layout{display:block}.content{width:100%}.card{box-shadow:none}.print-report{padding:0}.no-print{display:none!important}}
\n/* V6 feature refinements: non-destructive UI improvements */\n.status-badge-H{background:#dff5e4!important;color:#17833e!important}.status-badge-S{background:#fff0c8!important;color:#996d00!important}.status-badge-I{background:#e5edff!important;color:#3269c9!important}.status-badge-A{background:#ffe0e0!important;color:#ba3434!important}\n.attendance-modal-box{display:flex;flex-direction:column;overflow:hidden}.attendance-modal-box form{display:flex;flex-direction:column;min-height:0}.attendance-form-table{min-height:0;flex:1;overflow:hidden;margin-top:10px}.attendance-form-table .table-scroll{max-height:52vh;overflow:auto}.attendance-modal-box .bottom-save{flex:0 0 auto}.attendance-detail-modal .modal-box{max-height:88vh}.attendance-detail-modal .table-scroll{max-height:58vh}.form-help{display:block;font-size:10px;color:var(--muted);margin-top:5px;line-height:1.4}.grade-predicate{min-width:90px}.journal-showcase{margin:28px 0}.journal-slides{position:relative}.journal-slide{display:none;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:0;background:#fff;border:1px solid #e2ece3;border-radius:22px;overflow:hidden;box-shadow:var(--shadow)}.journal-slide.active{display:grid}.journal-photo{min-height:330px;background:#edf7ef}.journal-photo img{display:block;width:100%;height:100%;min-height:330px;object-fit:cover}.journal-photo-empty{height:100%;min-height:330px;display:grid;place-items:center;align-content:center;color:#7b8d80;gap:8px}.journal-photo-empty i{font-size:42px}.journal-slide-info{padding:28px}.journal-date{display:inline-block;background:var(--mint);color:var(--dark);border-radius:999px;padding:7px 11px;font-size:11px;font-weight:800}.journal-slide-info h3{font:800 22px Poppins;color:var(--dark);margin:15px 0 10px}.journal-slide-info p{font-size:13px;color:#627269;line-height:1.8}.journal-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.journal-meta span{padding:9px 11px;border-radius:12px;background:#f5faf5;color:#5c6e62;font-size:10px;font-weight:700}.journal-dots{display:flex;justify-content:center;gap:7px;margin-top:12px}.journal-dot{width:9px;height:9px;border-radius:50%;background:#cbd9ce;padding:0}.journal-dot.active{background:var(--primary2);transform:scale(1.25)}\n@media(max-width:760px){\n .logged-container,.public-container{padding-left:12px;padding-right:12px}.toolbar>div .btn{width:100%;margin-top:8px}.toolbar form+div{display:grid;grid-template-columns:1fr;gap:7px}.toolbar form+div .btn{width:100%}.attendance-modal-box{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding-bottom:10px}.attendance-form-table .table-scroll{max-height:none;height:100%;overflow:auto}.attendance-form-table{height:calc(100dvh - 340px);flex:1}.attendance-modal-box .bottom-save{position:static;margin:0;padding:10px 0 0;background:#fff;backdrop-filter:none}.attendance-modal-box .bottom-save .btn{width:100%;height:48px}.attendance-detail-modal .modal-box{max-height:calc(100dvh - 16px)}.attendance-detail-modal .table-scroll{max-height:calc(100dvh - 210px)}.journal-slide{grid-template-columns:1fr}.journal-photo,.journal-photo img,.journal-photo-empty{min-height:210px;height:210px}.journal-slide-info{padding:18px}.journal-slide-info h3{font-size:18px}.journal-slide-info p{font-size:12px}.journal-showcase{margin:20px 0}.grade-predicate,.grade-number{min-width:85px}.bottom-save{position:static!important;margin:0!important;padding:12px 0 0!important;background:#fff!important;backdrop-filter:none!important}\n}\n
/* V7 feature refinements */
.modal-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:18px}.attendance-edit-table{max-height:55vh;overflow:auto;margin-top:12px}.activity-ai-wrap label{display:flex;align-items:center;justify-content:space-between;gap:8px}.photo-error{display:grid!important;place-items:center!important;color:#7d8b81}.photo-error:after{content:'Foto tidak dapat ditampilkan';font-size:12px}.print-filter{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:15px 0}.print-filter label{font-size:11px;font-weight:700}.print-filter input{margin-left:5px}.journal-photo img{background:#edf7ef}
@media(max-width:760px){.modal-actions{justify-content:stretch}.modal-actions .btn,.modal-actions form{flex:1}.modal-actions form .btn{width:100%}.attendance-edit-table{max-height:48vh}.activity-ai-wrap label{align-items:flex-start;flex-direction:column}.print-filter{display:grid;grid-template-columns:1fr 1fr}.print-filter .btn{width:100%}}

#aiGenerateBtn:disabled{opacity:.65;cursor:wait}


/* V8 responsive photo + public extra cards + coach identity */
.coach-extra-identity{display:flex;align-items:flex-start;gap:18px;margin:0 0 20px;padding:22px 24px;background:#fff;border:1px solid #e1ebe2;border-radius:24px;box-shadow:var(--shadow)}
.coach-extra-mark{width:54px;height:54px;flex:0 0 54px;border-radius:16px;background:var(--mint);color:var(--dark);display:grid;place-items:center;font-size:21px}
.coach-extra-copy{min-width:0}.coach-extra-copy .eyebrow{margin-bottom:7px}.coach-extra-copy h2{margin:0 0 7px;font:800 25px Poppins,Inter,sans-serif;color:var(--dark)}.coach-extra-copy p{margin:0;color:#627269;font-size:12px;line-height:1.65;max-width:900px}.coach-extra-meta{display:flex;gap:9px;flex-wrap:wrap;margin-top:13px}.coach-extra-meta span{padding:8px 10px;background:#f4faf5;border-radius:10px;color:#5d6e63;font-size:10px}
.extra-thumb{width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:15px;background:#edf7ef;margin-bottom:14px}.extra-thumb img{display:block;width:100%;height:100%;object-fit:cover}.extra-thumb-empty{display:grid;place-items:center;color:#86a18d;font-size:28px}.ekstra-card .extra-thumb{border-radius:15px;margin:-4px -4px 14px;width:calc(100% + 8px)}
.journal-photo{aspect-ratio:1/1;min-height:0;height:auto;overflow:hidden;background:#edf7ef}.journal-photo img{display:block;width:100%;height:100%;min-height:0;max-width:100%;object-fit:cover}.journal-photo-empty{aspect-ratio:1/1;height:auto;min-height:0}.journal-slide{grid-template-columns:minmax(0,1fr) minmax(0,.9fr)}
@media(max-width:760px){
 .coach-extra-identity{padding:16px;gap:12px;border-radius:19px;margin-bottom:12px}.coach-extra-mark{width:44px;height:44px;flex-basis:44px;border-radius:13px;font-size:17px}.coach-extra-copy h2{font-size:20px}.coach-extra-copy p{font-size:11px}.coach-extra-meta span{font-size:9px;padding:7px 8px}
 .extra-thumb,.ekstra-card .extra-thumb{aspect-ratio:1/1;border-radius:13px;margin-bottom:12px}
 .journal-showcase{width:100%;overflow:hidden}.journal-slide{width:100%;grid-template-columns:1fr;border-radius:18px}.journal-photo,.journal-photo img{width:100%;height:auto;aspect-ratio:1/1;min-height:0;max-height:none}.journal-slide-info{padding:16px}.journal-slide-info h3{font-size:18px}.journal-slide-info p{font-size:12px;line-height:1.65}.journal-meta{margin-top:13px}.journal-meta span{padding:7px 9px}
}

/* V9 UI refinement: compact public cards + modern extra detail */
.compact-extra-card{display:grid!important;grid-template-columns:minmax(0,1fr) 132px;gap:18px;align-items:center;min-height:170px;padding:16px!important;text-decoration:none}
.compact-extra-card .extra-card-copy{min-width:0;padding:4px 0 4px 4px}
.compact-extra-card .extra-card-copy h3{margin:10px 0 7px;font-size:18px}
.compact-extra-card .extra-card-copy p{margin:8px 0 5px}
.compact-extra-card .extra-thumb{width:132px;height:132px;aspect-ratio:1/1!important;margin:0!important;border-radius:16px;overflow:hidden;order:2;flex:0 0 132px}
.compact-extra-card .extra-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.compact-extra-card .meta{margin-top:9px;gap:6px}
.compact-extra-card .dot,.compact-extra-card .badge{font-size:9px}
.extra-thumb-empty{display:grid!important;place-items:center!important}

.extra-detail-page{max-width:1120px;margin:0 auto}
.extra-detail-hero{display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px;align-items:start;background:linear-gradient(135deg,#ffffff 0%,#f5fbf6 100%);border:1px solid #e1ebe2;border-radius:28px;padding:28px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.extra-detail-hero:after{content:'';position:absolute;width:210px;height:210px;border-radius:50%;right:-80px;top:-100px;background:rgba(73,169,87,.08);pointer-events:none}
.extra-detail-icon{width:68px;height:68px;border-radius:20px;background:var(--mint);color:var(--dark);display:grid;place-items:center;font-size:27px;box-shadow:0 8px 22px rgba(22,77,42,.08)}
.extra-detail-main{min-width:0;position:relative;z-index:1}
.extra-detail-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.extra-detail-label{font-size:9px;font-weight:800;letter-spacing:.12em;color:#7c8d82}
.extra-detail-main h1{font:800 36px Poppins,Inter,sans-serif;color:var(--dark);margin:10px 0 8px;line-height:1.15}.extra-detail-description{margin:0;max-width:850px;color:#627269;font-size:13px;line-height:1.75}
.extra-detail-meta{display:flex;gap:9px;flex-wrap:wrap;margin-top:19px}.extra-detail-meta>div{min-width:150px;padding:10px 12px;border-radius:14px;background:#fff;border:1px solid #e4eee5;display:grid;gap:4px}.extra-detail-meta span{font-size:9px;color:#809087;font-weight:700}.extra-detail-meta b{font-size:11px;color:#254b31}
.modern-journal-showcase{margin-top:28px}.modern-journal-showcase .section-head{margin-bottom:12px}.modern-journal-showcase .section-head h2{margin-top:4px}
.journal-slide{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);border-radius:24px;min-height:0}.journal-photo{aspect-ratio:16/10;height:auto;min-height:0;background:#edf7ef}.journal-photo img{width:100%;height:100%;min-height:0;max-width:100%;object-fit:cover;display:block}.journal-slide-info{padding:28px;display:flex;flex-direction:column;justify-content:center}.journal-slide-info h3{font-size:23px}.journal-slide-info p{margin:0;max-width:650px}
.journal-controls{display:flex;align-items:center;justify-content:center;gap:13px;margin-top:13px}.journal-arrow{width:34px;height:34px;border:1px solid #dce9de;border-radius:50%;background:#fff;color:var(--dark);cursor:pointer;box-shadow:0 4px 12px rgba(22,77,42,.06)}.journal-arrow:hover{transform:translateY(-1px)}.journal-controls .journal-dots{margin-top:0}.journal-empty-note{display:flex;align-items:center;gap:12px;margin-top:24px;padding:18px;border:1px dashed #d6e4d8;border-radius:18px;background:#fbfefb;color:#627269}.journal-empty-note i{font-size:24px;color:#8aa28f}.journal-empty-note div{display:grid;gap:3px}.journal-empty-note span{font-size:11px}
.photo-error{background:#edf7ef!important;min-height:120px}.photo-error:after{content:'Foto tidak dapat ditampilkan';font-size:11px;color:#7d8b81}
.member-section{margin-top:28px}.member-section .table-card{padding:0;overflow:hidden}.member-section table{margin:0}

@media(max-width:760px){
 .compact-extra-card{grid-template-columns:minmax(0,1fr) 92px;gap:12px;min-height:122px;padding:12px!important;border-radius:18px}
 .compact-extra-card .extra-thumb{width:92px;height:92px;border-radius:13px}
 .compact-extra-card .extra-card-copy{padding-left:1px}.compact-extra-card .extra-card-copy h3{font-size:15px;margin:8px 0 5px}.compact-extra-card .meta{font-size:9px;gap:5px}.compact-extra-card .badge,.compact-extra-card .dot{font-size:8px;padding:4px 7px}
 .extra-detail-page{width:100%;max-width:none}.extra-detail-hero{grid-template-columns:1fr;gap:13px;padding:18px;border-radius:20px}.extra-detail-icon{width:48px;height:48px;border-radius:14px;font-size:19px}.extra-detail-label{font-size:8px}.extra-detail-main h1{font-size:25px;margin:8px 0 7px}.extra-detail-description{font-size:11px;line-height:1.7}.extra-detail-meta{margin-top:13px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.extra-detail-meta>div{min-width:0;padding:9px 10px;border-radius:11px}.extra-detail-meta span{font-size:8px}.extra-detail-meta b{font-size:9px;overflow-wrap:anywhere}
 .modern-journal-showcase{margin-top:20px}.journal-slide{grid-template-columns:1fr;border-radius:18px}.journal-photo{width:100%;height:auto;aspect-ratio:4/3;min-height:0;max-height:none}.journal-photo img{width:100%;height:100%;object-fit:cover}.journal-slide-info{padding:16px}.journal-date{font-size:9px;padding:6px 9px}.journal-slide-info h3{font-size:18px;margin:11px 0 8px}.journal-slide-info p{font-size:11px;line-height:1.65}.journal-meta{margin-top:12px}.journal-meta span{font-size:8px;padding:7px 8px}.journal-arrow{width:31px;height:31px}.member-section{margin-top:20px}
}

/* V10 - mobile attendance + pembina member pagination */
.member-list-info{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:10px 2px 12px;color:var(--muted);font-size:11px}.member-list-info b{color:var(--dark)}
.class-pill{display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:5px 8px;border-radius:9px;background:var(--mint);color:var(--dark);font-size:10px;font-weight:800}
.pagination{display:flex;justify-content:center;align-items:center;gap:5px;flex-wrap:wrap;margin:14px 0 8px}.pagination a,.pagination span{min-width:34px;height:34px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e0e9e2;border-radius:10px;background:#fff;color:#526258;text-decoration:none;font-size:11px;font-weight:800}.pagination a:hover{background:var(--mint);color:var(--dark)}.pagination .active{background:var(--dark);color:#fff;border-color:var(--dark)}.pagination .disabled{opacity:.45;cursor:not-allowed}.pagination .dots{border:0;background:transparent;min-width:20px;padding:0}
@media(max-width:760px){
  .member-list-info{align-items:flex-start;flex-direction:column;gap:3px;margin-bottom:10px}
  .members-filter{display:grid;grid-template-columns:1fr 1fr;gap:7px}.members-filter input{grid-column:1/-1}.members-filter button,.members-filter a{width:100%;text-align:center}.pagination{gap:4px}.pagination a,.pagination span{min-width:32px;height:32px;padding:0 7px}.pagination a:first-child,.pagination a:last-child,.pagination span.disabled{padding-left:9px;padding-right:9px}

  /* Let the attendance modal itself scroll. The save button is after the student table, never over it. */
  .attendance-modal-box{height:auto!important;max-height:calc(100dvh - 16px)!important;overflow:auto!important;padding-bottom:18px!important}
  .attendance-modal-box form{display:block!important;min-height:0!important}
  .attendance-form-table{height:auto!important;min-height:0!important;overflow:visible!important;display:block!important;margin-top:10px}
  .attendance-form-table .table-scroll{height:auto!important;max-height:none!important;overflow-x:auto!important;overflow-y:visible!important}
  .attendance-modal-box .bottom-save{position:static!important;display:block!important;margin:12px 0 0!important;padding:0!important;background:#fff!important;backdrop-filter:none!important;z-index:auto!important}
  .attendance-modal-box .bottom-save .btn{width:100%;height:48px}
}


/* Student schedule page */
.student-schedule-page{display:flex;flex-direction:column;gap:20px}
.student-schedule-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 26px;border:1px solid #e2ece4;border-radius:22px;background:linear-gradient(135deg,#fff 0%,#f5fbf6 100%);box-shadow:0 12px 30px rgba(18,67,38,.06)}
.student-schedule-intro h2{margin:9px 0 5px;font-size:25px;color:#0d4f2b}
.student-schedule-intro p{margin:0}
.student-schedule-total{min-width:92px;padding:14px 18px;text-align:center;border-radius:17px;background:#e7f7ea;color:#126331}
.student-schedule-total strong{display:block;font-size:25px;line-height:1}
.student-schedule-total span{font-size:11px;font-weight:700}
.student-schedule-list{display:flex;flex-direction:column;gap:18px}
.student-day-group{padding:18px;border:1px solid #e3ece5;border-radius:22px;background:#fff;box-shadow:0 10px 28px rgba(18,67,38,.05)}
.student-day-title{display:flex;align-items:center;gap:12px;margin-bottom:15px}
.student-day-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#e8f6eb;color:#146433;font-size:17px}
.student-day-title h3{margin:0;color:#124e2d;font-size:17px}
.student-day-title span{display:block;margin-top:2px;color:#839188;font-size:11px}
.student-schedule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.student-schedule-card{display:grid;grid-template-columns:88px 1fr;min-width:0;border:1px solid #e5ece7;border-radius:17px;overflow:hidden;background:#fbfefb;transition:.2s}
.student-schedule-card:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(18,67,38,.08)}
.student-schedule-time{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:13px 8px;background:#edf8ef;color:#115c30;text-align:center}
.student-schedule-time strong{font-size:18px;line-height:1.1}
.student-schedule-time span{margin-top:5px;font-size:10px;color:#6c8374}
.student-schedule-info{padding:13px 15px;min-width:0}
.student-schedule-name-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.student-schedule-name-row h4{margin:0;color:#114d2b;font-size:14px;line-height:1.3}
.schedule-type{flex:none;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:800;letter-spacing:.03em}
.schedule-type.wajib{background:#fff1bf;color:#8c6900}
.schedule-type.pilihan{background:#ffe2ef;color:#b91e67}
.student-schedule-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;color:#66776d;font-size:10px}
.student-schedule-meta span{display:inline-flex;align-items:center;gap:5px}
.student-schedule-meta i{color:#40865a}
.student-schedule-note{margin:8px 0 0;padding-top:8px;border-top:1px dashed #dce7de;color:#718077;font-size:10px;line-height:1.45}
.student-schedule-note i{margin-right:5px}
.student-schedule-empty{padding:42px 20px;text-align:center}
.schedule-empty-icon{width:56px;height:56px;margin:0 auto 12px;display:grid;place-items:center;border-radius:17px;background:#edf8ef;color:#2c7b4a;font-size:22px}
.student-schedule-empty h3{margin:0 0 5px;color:#164f2d}

@media(max-width:760px){
  .student-schedule-page{gap:13px}
  .student-schedule-intro{padding:17px;gap:12px;border-radius:17px}
  .student-schedule-intro h2{font-size:20px}
  .student-schedule-total{min-width:70px;padding:11px 10px}
  .student-schedule-total strong{font-size:20px}
  .student-schedule-grid{grid-template-columns:1fr}
  .student-day-group{padding:13px;border-radius:17px}
  .student-day-title{margin-bottom:11px}
  .student-schedule-card{grid-template-columns:76px 1fr}
  .student-schedule-time strong{font-size:16px}
  .student-schedule-info{padding:11px 12px}
  .student-schedule-name-row{align-items:flex-start}
  .student-schedule-name-row h4{font-size:13px}
  .schedule-type{font-size:7px}
}
