/* MADA V107 unified • role-specific desktop-first staff consoles */
body.mada108-staff-home{--mada108-ink:#26334b;--mada108-muted:#68798f;--mada108-border:#e4e9f2;--mada108-pink:#e62584;--mada108-blue:#176fb7;--mada108-yellow:#ffce3e;--mada108-orange:#f28b1b;background:#f5f7fb!important;color:var(--mada108-ink)!important}
body.mada108-staff-home .mada-shell{max-width:1920px!important;min-height:calc(100vh - 86px)}
body.mada108-staff-home .mada-shell>main{padding:28px clamp(12px,2vw,36px) 52px!important;min-width:0!important;max-width:none!important;width:100%!important;overflow-x:hidden!important}
body.mada108-staff-home .site-footer{display:none!important}
body.mada108-staff-home .mada-unified-bottom,body.mada108-staff-home .mada105-bottomnav{display:none!important}
.mada108{max-width:1500px;margin:0 auto;display:grid;gap:21px;font-family:inherit;color:#26334b;line-height:1.55;direction:rtl}
.mada108[dir=ltr]{direction:ltr}
.mada108 *{box-sizing:border-box}
.mada108 button{font-family:inherit;cursor:pointer}
.mada108-welcome{min-height:212px;display:flex;position:relative;align-items:center;justify-content:space-between;gap:20px;isolation:isolate;overflow:hidden;border-radius:25px;padding:32px 34px;background:linear-gradient(120deg,#fff,#fffafc 55%,#edf5ff);border:1px solid #e5eaf1;box-shadow:0 12px 30px #1528470a}
.mada108-welcome:after{content:"";position:absolute;inset:auto -4% -100px -4%;height:150px;background:linear-gradient(90deg,#ffe059,#f69022,#ea2d91,#1775bd);opacity:.95;border-radius:100% 100% 0 0;z-index:-1;clip-path:ellipse(55% 28% at 50% 100%)}
.mada108-headtext{max-width:65%;position:relative;z-index:2}
.mada108-eyebrow{display:flex;align-items:center;gap:10px;color:#76849a;font-weight:700;font-size:12px;letter-spacing:.5px;margin-bottom:9px;direction:ltr;justify-content:flex-end}
.mada108[dir=ltr] .mada108-eyebrow{justify-content:flex-start}
.mada108-eyebrow i{width:6px;height:6px;background:#ea2d91;border-radius:100%}
.mada108-welcome h1{font-size:clamp(25px,3vw,36px)!important;font-weight:900!important;line-height:1.4!important;margin:0 0 5px!important;color:#26334b!important}
.mada108-welcome p{font-size:14px;color:#66768d!important;margin:0 0 15px!important}
.mada108-pills{display:flex;gap:8px;flex-wrap:wrap;font-size:12px;font-weight:700}
.mada108-pills span{padding:7px 12px;border-radius:100px;color:#455570;background:#f0f4f9;border:1px solid #e5eaf2}
.mada108-pills span:first-child{background:#fff0f8;color:#a6195d;border-color:#f9d5e8}
.mada108-welcome-art{width:215px;height:125px;align-self:center;display:grid;place-items:center;position:relative;margin-inline-start:auto;flex:0 0 215px}
.mada108-welcome-art img{width:150px;max-height:100px;object-fit:contain;position:relative;z-index:1}
.mada108-music-icon{position:absolute;inset:7px auto auto 0;font-size:29px;color:#f28b1b;transform:rotate(-12deg)}
.mada108-head-actions{position:absolute;top:15px;inset-inline-end:16px;display:flex;align-items:center;gap:10px;z-index:4}
.mada108-languages{display:flex;background:#f0f3f8;border:1px solid #e3eaf2;border-radius:100px;padding:3px;direction:ltr}
.mada108-languages button{border:0!important;background:transparent!important;color:#61738c!important;padding:5px 11px!important;font-size:12px!important;border-radius:50px!important;min-height:30px!important;box-shadow:none!important}
.mada108-languages button.selected{color:#fff!important;background:#25364d!important}
.mada108-refresh{display:flex;gap:6px;align-items:center;background:#fff!important;border:1px solid #e0e6ee!important;color:#27364c!important;border-radius:14px!important;padding:8px 13px!important;min-height:36px!important;box-shadow:none!important;font-size:13px!important}
.mada108-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:4px 2px;margin:4px 0 -8px}
.mada108-section-title h2{font-size:21px!important;line-height:1.3!important;color:#25344d!important;font-weight:900!important;margin:0 0 2px!important}
.mada108-section-title p{font-size:12px;color:#77879a!important;margin:0!important}
.mada108-fresh{white-space:nowrap;font-size:12px;font-weight:700;color:#72829a;padding:8px 12px;border:1px solid #e5eaf2;background:white;border-radius:30px}
.mada108-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.mada108-stat{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid var(--mada108-border);border-radius:20px;min-height:110px;padding:19px 18px;box-shadow:0 7px 20px #1f36560a}
.mada108-stat-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;flex:0 0 52px;font-size:23px;font-weight:900;color:#163c62}
.mada108-stat-icon.blue{background:#deefff;color:#116fb2}.mada108-stat-icon.pink{background:#fde4f2;color:#cc1d78}.mada108-stat-icon.orange{background:#fff0df;color:#e67d0e}.mada108-stat-icon.yellow{background:#fff5cb;color:#bf8300}
.mada108-stat>div{min-width:0}.mada108-stat span{display:block;font-size:12px;color:#768497;font-weight:700}.mada108-stat strong{display:block;font-size:31px;line-height:1.1;color:#26354c;font-weight:900;white-space:nowrap;margin:3px 0 1px}.mada108-stat small{display:block;font-size:10px;color:#8b97a6;line-height:1.45}
.mada108-app-title{margin-top:7px}
.mada108-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.mada108-action{display:flex!important;align-items:center!important;gap:15px!important;width:100%!important;min-width:0!important;min-height:102px!important;border:1px solid #e6e9f0!important;background:#fff!important;color:#26364e!important;border-radius:19px!important;text-align:start!important;box-shadow:0 7px 17px #23385709!important;padding:17px!important;position:relative!important;overflow:hidden!important;transform:none!important}
.mada108-action:after{content:"";height:4px;position:absolute;inset-inline:0;bottom:0;background:#176fb7}
.mada108-action-1:after{background:#ed288d}.mada108-action-2:after{background:#f59c24}.mada108-action-3:after{background:#ffcc28}
.mada108-action:hover{border-color:#c6d9ee!important;transform:translateY(-2px)!important;box-shadow:0 11px 21px #1c37661c!important}
.mada108-action-symbol{width:56px;height:56px;flex:0 0 56px;border-radius:15px;display:grid;place-items:center;background:#e7f2ff;color:#176fb7;font-size:26px;font-weight:800}
.mada108-action-1 .mada108-action-symbol{background:#fce8f2;color:#e62584}.mada108-action-2 .mada108-action-symbol{background:#fff0e0;color:#d57a11}.mada108-action-3 .mada108-action-symbol{background:#fff5ce;color:#a9790d}
.mada108-action-copy{display:grid;gap:5px;flex:1;min-width:0}.mada108-action-copy b{font-size:16px;font-weight:900;color:#26354d!important}.mada108-action-copy small{font-size:11px!important;color:#718298!important;line-height:1.5}.mada108-action-arrow{font-size:18px;color:#8292a9;align-self:start}
.mada108-table-panel{background:white;border:1px solid #e5e9f0;border-radius:20px;overflow:hidden;box-shadow:0 7px 18px #2338570a}
.mada108-panel-title{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:23px 25px 16px}
.mada108-panel-title h2{font-size:19px!important;margin:0 0 2px!important;color:#26354d!important}.mada108-panel-title p{font-size:12px;color:#78879b!important;margin:0!important}
.mada108-panel-title input{max-width:280px;min-height:40px!important;background:#f8fafc!important;border:1px solid #e3e9f0!important;color:#26354d!important;font-size:13px;border-radius:12px!important;margin:0!important}
.mada108-table-scroll{overflow-x:auto;max-width:100%}.mada108 table{border-collapse:collapse;min-width:560px;width:100%;font-size:13px;line-height:1.55}.mada108 th{background:#f7f9fc;color:#718099;text-align:start;font-size:12px;font-weight:800;border-block:1px solid #edf0f5}.mada108 td,.mada108 th{padding:13px 23px;border-bottom:1px solid #edf0f5;text-align:start;vertical-align:middle}.mada108 td{color:#43546d}
.mada108-student-cell{display:flex;gap:10px;align-items:center}.mada108-student-cell b{color:#29374f;font-weight:800}.mada108-avatar{width:30px;height:30px;border-radius:10px;background:#f2e6fa;color:#98307e;display:grid;place-items:center;font-weight:900;flex:0 0 30px}.mada108-status{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:50px;font-size:11px;font-weight:800;background:#f0f3f7;color:#758299}.mada108-status:before{content:"";width:7px;height:7px;border-radius:50%;background:#a5b0c2}.mada108-status.online{background:#e3f7ed;color:#15824f}.mada108-status.online:before{background:#1baa69}
.mada108-panel-footer{padding:12px 22px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8793a5;gap:10px}.mada108-panel-footer button{background:#f2f5fa!important;color:#42546d!important;border:0!important;padding:8px 13px!important;border-radius:9px!important;font-size:12px!important}
.mada108-empty{text-align:center!important;padding:25px!important;color:#75849a!important}
body.mada108-staff-home #mobile-simple-back{display:none!important}
@media(max-width:1320px){.mada108-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.mada108-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.mada108-headtext{max-width:68%}}
@media(max-width:760px){body.mada108-staff-home .mada-shell>main{padding:12px 10px 45px!important;overflow-y:auto!important;overflow-x:hidden!important}.mada108{gap:13px}.mada108-welcome{min-height:185px;padding:52px 17px 23px;border-radius:19px}.mada108-headtext{max-width:100%}.mada108-welcome-art{display:none}.mada108-head-actions{top:11px;inset-inline-end:10px}.mada108-welcome h1{font-size:24px!important}.mada108-section-title{align-items:start}.mada108-section-title p{font-size:11px}.mada108-fresh{font-size:10px;white-space:normal;max-width:110px}.mada108-stat{min-height:101px;padding:12px;gap:9px;border-radius:15px}.mada108-stat-icon{width:39px;height:39px;flex-basis:39px;border-radius:10px;font-size:20px}.mada108-stat strong{font-size:24px}.mada108-stat span{font-size:11px}.mada108-stat small{font-size:9px}.mada108-actions{gap:10px}.mada108-action{min-height:100px!important;gap:9px!important;padding:12px!important;border-radius:15px!important}.mada108-action-symbol{width:37px;height:37px;flex-basis:37px;border-radius:11px;font-size:21px}.mada108-action-copy b{font-size:13px}.mada108-action-copy small{font-size:10px!important}.mada108-action-arrow{display:none}.mada108-panel-title{padding:15px;display:grid;gap:10px}.mada108-panel-title input{max-width:none}.mada108 td,.mada108 th{padding:11px 12px}}
@media(max-width:360px){.mada108-stats{gap:8px}.mada108-action-copy small{display:none}.mada108-action{min-height:75px!important}.mada108-welcome h1{font-size:21px!important}}

/* Staff internal pages remain wide and coherent beyond the dashboard. */
body.mada108-staff-user .mada-shell{max-width:1920px!important}body.mada108-staff-user .mada-shell>main{max-width:none!important;min-width:0!important}body.mada108-staff-user:not(.mada-compact-nav) .mada-sidebar{background:#fff!important}

/* Staff phone navbar: one stable dock; the workspace content scrolls independently. */
.mada107-staff-bottom{display:none}
@media (max-width:900px){
 body.mada108-staff-home #main.mada108-main{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))!important}
 body.mada108-staff-home .mada107-staff-bottom{display:flex!important;position:fixed!important;inset:auto 0 0 0!important;z-index:9900!important;max-height:none!important;height:auto!important;max-width:100vw!important;margin:0!important;padding:7px max(6px,env(safe-area-inset-right,0px)) max(7px,env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-left,0px))!important;gap:2px;background:#fff!important;border:1px solid #e0e6f0;border-radius:16px 16px 0 0;box-shadow:0 -6px 22px #26354b1e;align-items:stretch;justify-content:space-around;transform:none!important;overflow:hidden}
 body.mada108-staff-home .mada107-staff-bottom button{display:grid!important;place-items:center;align-content:center;gap:2px;min-width:0!important;flex:1 1 0;max-width:none;padding:5px 2px!important;min-height:50px;border:0!important;border-radius:11px!important;box-shadow:none!important;background:transparent!important;color:#354559!important;font-family:inherit!important;white-space:nowrap;touch-action:manipulation}
 body.mada108-staff-home .mada107-staff-bottom button.is-current{background:#fff0f6!important;color:#b9186c!important}
 body.mada108-staff-home .mada107-staff-bottom button span{font-size:21px;line-height:1.2}
 body.mada108-staff-home .mada107-staff-bottom button small{font-size:10px;font-weight:800;overflow:hidden;text-overflow:ellipsis;max-width:100%;line-height:1.2}
 body.mada108-staff-home .mada107-staff-bottom button:focus-visible{outline:3px solid #1667af;outline-offset:-3px}
}
