/* Student Portal 2.5.8.0 */
body .sp-teacher-dashboard,
body .sp-student-dashboard,
body .sp-teacher-library{
  position:relative!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:min(1280px,calc(100vw - 64px))!important;
  max-width:1280px!important;
  margin-inline:0!important;
}

.sp-class-next-lesson{
  justify-items:center!important;
  justify-content:center!important;
  grid-template-columns:auto auto!important;
  text-align:center!important;
}
.sp-class-next-lesson>p{width:100%;text-align:center!important}

.sp-book-cover-editor>div{
  position:relative;
  cursor:grab;
  touch-action:none;
  user-select:none;
}
.sp-book-cover-editor>div.is-dragging{cursor:grabbing}
.sp-book-cover-editor>div::after{
  content:'Перетащите изображение рукой';
  position:absolute;left:50%;bottom:13px;transform:translateX(-50%);
  padding:7px 11px;border-radius:999px;background:rgba(15,23,42,.72);
  color:#fff;font-size:12px;font-weight:700;pointer-events:none;white-space:nowrap;
}
.sp-book-cover-editor>label{display:none!important}

.sp-teacher-books-grid{align-items:stretch!important}
.sp-book-card-wrap,.sp-book-card-wrap>a{height:100%!important}
.sp-book-card-wrap>a{display:flex!important;min-height:310px!important;flex-direction:column!important}
.sp-book-card-wrap h2{min-height:2.6em}
.sp-book-card-wrap>a>strong{margin-top:auto!important}

.sp-book-lesson-row{display:flex!important;align-items:center!important;gap:8px}
.sp-book-lesson-row>a{flex:1!important;min-width:0}
.sp-list-delete-lesson{margin:0!important}
.sp-list-delete-lesson button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #fecaca;border-radius:9px;background:#fff;color:#b91c1c;font-size:20px}

body.sp-library-lesson-mode .site-header,
body.sp-library-lesson-mode .elementor-location-header,
body.sp-library-lesson-mode .elementor-widget-theme-post-title,
body.sp-library-lesson-mode .entry-header,
body.sp-library-lesson-mode .sp-site-footer,
body.sp-library-lesson-mode footer{display:none!important}
body.sp-library-lesson-mode{padding-top:0!important;background:#f8fafc!important}
body.sp-library-lesson-mode .sp-teacher-library{width:100vw!important;max-width:none!important}
body.sp-library-lesson-mode .sp-library-lesson-studio{min-height:100vh!important;border-radius:0!important;border-top:0!important}

@media(max-width:760px){
  body .sp-teacher-dashboard,body .sp-student-dashboard,body .sp-teacher-library{width:calc(100vw - 24px)!important}
  .sp-book-cover-editor>div::after{font-size:11px}
}
