/* VIAL LMS 0.6.16 */
.course-management-page .main-content,
.users-admin-page .main-content,
.course-restore-page .main-content{max-width:min(1320px,calc(100vw - 40px));margin-left:auto;margin-right:auto}
.course-create-card{margin:14px 0;display:flex;gap:12px;flex-wrap:wrap;align-items:flex-start}
.course-create-card details{min-width:280px}
.course-create-form{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:10px;margin-top:12px}
.course-create-form .wide{grid-column:1/-1}
.course-category-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:14px;align-items:start}
.course-category-column{background:#fff;border:1px solid #d8e3ea;border-radius:10px;padding:12px;min-height:170px}
.course-category-column h2{font-size:18px;margin:0 0 6px;color:#00756f;display:flex;justify-content:space-between;gap:10px}
.course-category-column h2 span{font-size:13px;color:#64748b;background:#eef6f7;border-radius:999px;padding:2px 8px}
.course-drop-list{display:grid;gap:9px;min-height:70px;padding:6px 0}
.course-mgmt-card{display:grid;grid-template-columns:28px 76px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #d8e3ea;border-radius:9px;background:#fbfdff;padding:9px}
.course-mgmt-card.is-hidden-course{background:#f8fafc;opacity:.78}
.course-mgmt-card .course-mgmt-cover{width:76px;height:56px;object-fit:cover;border-radius:6px;border:1px solid #d8e3ea}
.course-drag-handle{width:28px;height:34px;border:1px solid #cbd5e1;background:#fff;border-radius:8px;cursor:grab;color:#00756f}
.course-mgmt-main{min-width:0}
.course-title-link{font-weight:800;color:#00857f;text-decoration:none}
.course-mgmt-main small{display:block;color:#64748b;line-height:1.35;margin:3px 0 7px}
.course-row-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.course-row-actions form{margin:0}
.course-row-actions .btn{min-height:32px}
.eye-symbol{display:inline-flex;width:18px;justify-content:center}
.course-delete{position:relative}
.course-delete form{position:absolute;right:0;top:38px;z-index:20;width:260px;background:#fff;border:1px solid #d8e3ea;border-radius:10px;padding:10px;box-shadow:0 18px 38px rgba(15,23,42,.18)}
.course-card-ghost{opacity:.45}
body:not(.editing-mode) .course-management-page .edit-only{display:none!important}
body.editing-mode .course-management-page .edit-only{display:inline-flex!important}
body.editing-mode .course-management-page details.edit-only{display:block!important}
.restore-card{max-width:760px}
.restore-drop{display:grid;place-items:center;text-align:center;min-height:160px;border:2px dashed #9ccfd0;border-radius:12px;background:#f8ffff;cursor:pointer}
.restore-drop.dragover{background:#ecfeff;border-color:#0d9488}
.users-table-card{overflow:visible}
.users-table-card .table-scroll{overflow-x:visible;border:0;margin:0}
.users-list-table{min-width:0;table-layout:auto}
.users-list-table th,.users-list-table td{white-space:normal;overflow-wrap:anywhere}
.moodle-home .welcome-card.home-editable-card{min-height:430px;display:flex;flex-direction:column;justify-content:flex-start}
.moodle-home .my-courses-block{height:430px;display:flex;flex-direction:column}
.moodle-home .my-courses-block .mini-course-list{overflow:auto;padding-right:4px}
.moodle-home .my-courses-block .block-head{flex:0 0 auto}
.moodle-home .my-courses-block>p,.moodle-home .my-courses-block>a{flex:0 0 auto}
.view-role-student .moodle-heading{max-width:1040px}
.view-role-student .home-columns,.view-role-student .vial-home-columns{max-width:1040px}

/* 0.6.17: homepage must stay stable when the right drawer opens. */
body.moodle-home .moodle-layout,
body.moodle-home.with-sidebar:not(.sidebar-hidden) .moodle-layout,
body.moodle-home.sidebar-hidden .moodle-layout,
body.moodle-home .moodle-layout.with-sidebar{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:18px!important;
  padding-right:18px!important;
  grid-template-columns:none!important;
}
body.moodle-home .main-content{
  width:min(1040px, calc(100vw - 36px))!important;
  max-width:min(1040px, calc(100vw - 36px))!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.moodle-home .vial-home-heading,
body.moodle-home .moodle-heading,
body.moodle-home .vial-home-columns,
body.moodle-home .home-columns{
  width:100%!important;
  max-width:1040px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.moodle-home .home-columns,
body.moodle-home .vial-home-columns{
  grid-template-columns:minmax(0,1fr) 320px!important;
  gap:18px!important;
  margin-bottom:8px!important;
}
body.moodle-home .role-home-blocks{display:none!important}
body.moodle-home .welcome-card.home-editable-card,
body.moodle-home .my-courses-block{
  height:calc(100vh - 218px)!important;
  min-height:470px!important;
  max-height:690px!important;
}
body.moodle-home .welcome-card.home-editable-card{overflow:hidden}
body.moodle-home .my-courses-block{position:static!important;overflow:hidden}
body.moodle-home .my-courses-block .mini-course-list{
  flex:1 1 auto;
  overflow-y:auto;
  overflow-x:hidden;
  min-height:0;
}
body.moodle-home .foot,
.moodle-home + .foot{margin-top:0!important}
@media(max-width:900px){
  .course-create-form{grid-template-columns:1fr}
  .course-mgmt-card{grid-template-columns:28px 62px minmax(0,1fr)}
  .course-row-actions{grid-column:2/4;justify-content:flex-start}
  .course-mgmt-card .course-mgmt-cover{width:62px;height:48px}
  .users-table-card .table-scroll{overflow-x:auto}
  .moodle-home .welcome-card.home-editable-card,.moodle-home .my-courses-block{height:auto;min-height:0}
}
@media(max-width:980px){
  body.moodle-home .home-columns,
  body.moodle-home .vial-home-columns{grid-template-columns:1fr!important}
  body.moodle-home .welcome-card.home-editable-card,
  body.moodle-home .my-courses-block{height:auto!important;min-height:0!important;max-height:none!important}
}
