/* v1.8 · SCH-PERM-02 – chọn nhân viên trong Lịch điều phối */
.schedule-toolbar{position:relative}
.schperm-btn{max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.schperm-btn.on{border-color:#2563eb!important;background:#eff6ff!important;color:#1d4ed8}
.schperm-panel{position:absolute;z-index:40;top:calc(100% - 2px);right:20px;width:min(320px,calc(100vw - 24px));background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 16px 40px rgba(15,23,42,.18);padding:12px;display:flex;flex-direction:column;gap:8px}
.schperm-panel input[type=search]{height:38px;border:1px solid #e2e8f0;border-radius:10px;padding:0 10px;font-size:14px;width:100%;box-sizing:border-box}
.schperm-panel label{display:flex;align-items:center;gap:8px;padding:7px 6px;border-radius:8px;font-size:14px;cursor:pointer;margin:0}
.schperm-panel label:hover{background:#f8fafc}
.schperm-panel label span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schperm-panel input[type=checkbox]{width:17px;height:17px;flex:none;margin:0}
.schperm-all{border-bottom:1px solid #eef1f5;border-radius:8px 8px 0 0!important}
.schperm-list{max-height:min(44vh,320px);overflow:auto;display:flex;flex-direction:column}
.schperm-empty{padding:14px 6px;color:#94a3b8;font-size:13.5px;text-align:center}
.schperm-foot{display:flex;align-items:center;gap:8px;border-top:1px solid #eef1f5;padding-top:10px}
.schperm-foot span{flex:1;font-size:12.5px;color:#64748b}
.schperm-foot button{height:36px;border-radius:10px;padding:0 14px;font-size:14px;cursor:pointer}
.schperm-foot .primary{border:0;background:#2563eb;color:#fff;font-weight:600}
.schperm-foot .primary:disabled{background:#cbd5e1;cursor:not-allowed}
@media (max-width:760px){
  .schperm-btn{max-width:100%}
  .schperm-panel{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;border-radius:18px 18px 0 0;padding:14px 14px calc(14px + env(safe-area-inset-bottom));z-index:1200}
  .schperm-panel input[type=search]{height:44px;font-size:16px}.schperm-panel label{padding:11px 6px;font-size:15.5px}
  .schperm-list{max-height:46vh}.schperm-foot button{height:44px}
}
