/* ========== School Calendar Home (Mẫu 1) ========== */
.scal-home{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:14px;
  padding:14px;
}

.scal-home__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.scal-home__title{
  margin:0;
  font-size:20px;
  line-height:1.2;
}
.scal-home__tabs{
  display:none; /* show on mobile */
  gap:8px;
}
.scal-home__tab{
  border:1px solid #e1e1e1;
  background:#fff;
  padding:8px 12px;
  border-radius:999px;
  font-weight:600;
  cursor:pointer;
}
.scal-home__tab.is-active{
  background:#0b5fff;
  border-color:#0b5fff;
  color:#fff;
}

.scal-home__toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.scal-home__type,
.scal-home__class{
  height:40px;
  padding:0 12px;
  border:1px solid #e1e1e1;
  border-radius:10px;
  background:#fff;
}
.scal-home__type{ min-width: 170px; }
.scal-home__class{ min-width: 220px; flex:1; }

.scal-home__export{
  margin-left:auto;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.scal-home__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid #e1e1e1;
  background:#fff;
  text-decoration:none;
  font-weight:600;
}

.scal-home__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  align-items:start;
}
.scal-home__list{
  border:1px solid #eee;
  border-radius:12px;
  overflow:hidden;
}
.scal-home__listhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid #eee;
  background:#fafafa;
}
.scal-home__range{
  font-weight:700;
}
.scal-home__today{
  height:34px;
  padding:0 10px;
  border-radius:10px;
  border:1px solid #e1e1e1;
  background:#fff;
  cursor:pointer;
  font-weight:600;
}
.scal-home__items{
  padding:8px 12px;
}
.scal-home__item{
  display:flex;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid #f0f0f0;
  cursor:pointer;
}
.scal-home__item:last-child{ border-bottom:none; }

.scal-home__time{
  min-width: 90px;
  font-weight:700;
  color:#111;
}
.scal-home__meta{
  flex:1;
}
.scal-home__name{
  font-weight:800;
  margin-bottom:4px;
}
.scal-home__sub{
  font-size:13px;
  color:#555;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.scal-home__pill{
  font-size:12px;
  font-weight:700;
  padding:3px 8px;
  border-radius:999px;
  background:#f2f4ff;
  color:#223;
}

.scal-home__empty{
  padding:14px 12px;
  color:#666;
}

/* Mini calendar wrap */
.scal-home__calwrap{
  border:1px solid #eee;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.scal-home__calwrap .fc{
  padding:10px;
}
.scal-home__calwrap .fc .fc-toolbar{
  flex-wrap:wrap;
  gap:8px;
}
.scal-home__calwrap .fc .fc-toolbar-title{
  font-size:16px;
}
.scal-home__calwrap .fc .fc-button{
  padding:6px 10px;
  font-size:12px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px){
  .scal-home__grid{
    grid-template-columns: 1fr;
  }
  .scal-home__export{
    margin-left:0;
  }
}

@media (max-width: 768px){
  .scal-home{
    padding:12px;
  }
  .scal-home__title{ font-size:18px; }
  .scal-home__type{ min-width: 160px; }
  .scal-home__class{ min-width: 180px; }
}

@media (max-width: 520px){
  .scal-home__tabs{ display:flex; }
  .scal-home__export{ width:100%; }
  .scal-home__btn{ flex:1; }
  .scal-home__type, .scal-home__class{ width:100%; min-width:0; }
  .scal-home__grid{ gap:10px; }
  .scal-home [data-pane="calendar"]{ display:none; }
  .scal-home.is-tab-calendar [data-pane="list"]{ display:none; }
  .scal-home.is-tab-calendar [data-pane="calendar"]{ display:block; }
  .scal-home__time{ min-width: 74px; }
}
