@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Nokora&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Koh+Santepheap&display=swap');

* {
  font-family: 'Montserrat', sans-serif ,'Koh Santepheap', 'cursive';
}

.academic-classwork table,
.student-classwork table {
  width: 100%;
  max-width: 100%;
  font-size: 12px;
}

.academic-classwork table,
.academic-classwork table th,
.academic-classwork table td {
  border-top: 1px solid #b8babc;
  border-bottom: 1px solid #b8babc;
  border-collapse: collapse;
}

.academic-classwork table th,
.academic-classwork table td {
  padding: 10px 0;
}

.student-classwork h5,
.academic-classwork h5 {
  font-weight: bold;
}

.student-classwork p,
.academic-classwork p {
  font-size: 14px;
}

.student-classwork table thead tr:nth-child(odd),
.student-classwork table tbody tr:nth-child(odd) {
  background-color: #eaeaea;
}

.student-classwork table thead tr:nth-child(even),
.student-classwork table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.student-classwork table {
  border: 1px solid #b8babc;
  border-collapse: collapse;
}

.student-classwork table tr:not(:last-child) {
  border-bottom: 1px solid #b8babc;
  border-collapse: collapse;
}

.student-classwork table thead tr:last-child {
  border-bottom: 1px solid #b8babc;
}

.student-classwork table thead tr:not(:last-child) th:not(:last-child),
.student-classwork table td:not(:last-child) {
  border-right: 1px solid #b8babc;
}

/* .student-classwork table tbody td:nth-child(2) {
  border-right: unset;
} */

.student-classwork table th,
.student-classwork table td {
  padding: 10px;
}

.main-reports {
  position: absolute;
  opacity: 0;
  z-index: 0;
  width: 100%;
}

/* Loading Screen
=================*/
.loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("../images/loader.jpg");
  background-size: 120px;
  -webkit-transition: all 0.3s !important;
  -moz-transition: all 0.3s !important;
  -ms-transition: all 0.3s !important;
  -o-transition: all 0.3s !important;
  transition: all 0.3s !important;
}

.preload .loader {
  visibility: visible;
  -webkit-transition: all 0.3s !important;
  -moz-transition: all 0.3s !important;
  -ms-transition: all 0.3s !important;
  -o-transition: all 0.3s !important;
  transition: all 0.3s !important;
  opacity: 1;
  z-index: 999999999;
}

/* Default
==========*/
* {
  margin: 0;
  padding: 0;
  outline: 0 none !important;
  text-decoration: none !important;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

ul {
  list-style: none;
  margin: 0;
}

/* Gradebook
 * Header
============*/
.gradebook .header {
  background-color: hsl(213deg 61% 22%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  height: fit-content;

  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 97;
}
.gradebook .information {
  border-bottom: 1px solid #8b8b8b;
  color: #ffffff;
  padding: 5px 10px;
  background-color: hsl(213deg 61% 22%);
}

.gradebook .header ul {
  display: flex;
}

.gradebook .header ul li:not(:last-child) {
  margin-right: 20px;
}

.gradebook .header ul li a {
  color: #ffffff;
  display: block;
  font-size: 12px;
  margin: 0;
  line-height: 10px;
  text-align: center;
  position: relative;
}

.gradebook .header ul li a img {
  display: block;
  margin: auto auto 5px auto;
}

.gradebook .header ion-icon {
  font-size: 35px;
  display: block;
  margin: auto;
}

/* Table */
body {
  overflow-y: auto;
}

body::-webkit-scrollbar {
  height: 10px;
  
}

.tbl-gradebook thead {
  position: -webkit-sticky;
  position: sticky;
  top: 55px;
  left: 0;
}

.tbl-gradebook p {
  margin: 0;
}

.tbl-gradebook,
.tbl-gradebook td,
.tbl-gradebook th {
  border: 1px solid #000000;
  padding: 10px;
}

.tbl-gradebook thead tr:nth-child(3) {
  background-color: #ffffff;
}

.tbl-gradebook thead tr:nth-child(1) td:nth-child(1) {
  background-color: hsl(60deg 100% 50%);
}

.tbl-gradebook thead tr:nth-child(1) td:nth-child(2),
.tbl-gradebook thead tr:nth-child(1) td:nth-child(3),
.tbl-gradebook thead tr:nth-child(1) td:nth-child(4),
.tbl-gradebook thead tr:nth-child(1) td:nth-child(5).effort {
  background-color: hsl(45deg 100% 50%);
}

.tbl-gradebook thead tr:nth-child(1) td:nth-child(1) p {
  max-width: 400px;
  text-align: center;
}

.tbl-gradebook thead tr:nth-child(1) td:nth-child(5) p {
  margin: auto;
}

.tbl-gradebook thead tr:nth-child(2) td {
  background-color: hsl(196deg 100% 47%);
}

.tbl-gradebook thead tr:nth-child(3) td:nth-child(1),
.tbl-gradebook thead tr:nth-child(3) td:nth-child(2) {
  width: 50px;
}

.tbl-gradebook thead tr td,
.tbl-gradebook tbody tr td,
.tbl-gradebook thead tr td p,
.tbl-gradebook tbody tr td p {
  width: max-content;
}

.tbl-gradebook thead tr td.no-clk {
  background-color:#b32d2e;
  color: #ffffff;
}

.tbl-gradebook tbody td.no p,
.tbl-gradebook tbody td.stu-id p {
  margin: auto;
}

.tbl-gradebook tbody td.score,
.tbl-gradebook tbody td.no-score,
.tbl-gradebook thead td.score,
.tbl-gradebook thead td.no-score,
.tbl-gradebook thead tr:nth-child(2) td:nth-child(1) {
  text-align: center;
}

.tbl-gradebook tbody td.score input,
.tbl-gradebook tbody td.final-score input {
  border: 0;
  border-color: #cfcfcf;
  background-color: #ffffff;
  text-align: center;
  width: 50px;
}

.tbl-gradebook tbody tr:nth-child(odd),
.tbl-gradebook tbody tr:nth-child(odd) input,
.tbl-gradebook tbody tr:nth-child(odd) .evaluation_type {
  background-color: hsl(192deg 51% 90%);
}

.tbl-gradebook tbody tr td .evaluation_type {
  border-radius: 3px;
}

.tbl-gradebook .sort {
  color: #000000;
  padding-right: 15px;
  position: relative;
}

.tbl-gradebook .sort.arrow-up::after {
  content: '';
  width: 0; 
  height: 0; 
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #000000;
  position: absolute;
  right: 0;
  top: 8px;
}

.tbl-gradebook .sort.arrow-down::after {
  content: '';
  width: 0; 
  height: 0; 
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #000000;
  position: absolute;
  right: 0;
  top: 8px;
}

/* Action */
.tbl-gradebook ul.action {
  display: flex;
  line-height: 10px;
  margin-top: 5px;
  visibility: hidden;
  opacity: 0;
  transition: .15s;
}

.tbl-gradebook thead td.clk-title:hover ul.action {
  visibility: visible;
  opacity: 1;
}

.tbl-gradebook ul.action li:not(:last-child) {
  border-right: 1px solid gray;
  padding-right: 5px;
}

.tbl-gradebook ul.action li:not(:first-child) {
  padding-left: 5px;
}

.tbl-gradebook ul.action li a {
  font-size: 14px;
  line-height: 12px;
}

.tbl-gradebook ul.action li a.edit-clk {
  color: #135e96;
}

.tbl-gradebook ul.action li a.delete-clk {
  color: #b32d2e;
}

/* Modal */
body.modal-show {
  overflow: hidden;
}

.i-modal-wrap label.error {
  display: none !important;
}

.i-modal-wrap input.error,
.i-modal-wrap select.error {
  border: 1px solid #b32d2e;
}

.i-modal-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(39, 39, 39, 0.5);
  opacity: 0;
  transition: all .15s;
  visibility: hidden;
  z-index: 98;
}

.i-modal-wrap.show {
  opacity: 1;
  visibility: visible;
}

.i-modal-wrap::before {
  background-color: rgba(39, 39, 39, 0.5);
  content: "Processing...";
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: .15s;
}

.i-modal-wrap.loading::before {
  opacity: 1;
  visibility: visible;
}

.i-modal-wrap .i-modal {
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  position: relative;
  padding: 30px;
  max-height: 90%;
  overflow-y: auto;
  width: 550px;
}

.i-modal-wrap .i-modal-header h3 {
  border-bottom: 2px solid #135e96;
  color: #135e96;
  margin: 0 auto 30px auto;
  text-align: center;
  width: fit-content;
}

.i-modal-wrap .i-close {
  cursor: pointer;
  background: url(../icons/close-black.png) no-repeat;
  background-size: 15px;
  position: absolute;
  right: 20px;
  top: 20px;
  height: 15px;
  width: 15px;
  transition: all .12s;
}

.i-modal-wrap ::-webkit-scrollbar-track {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.i-modal-wrap ::-webkit-scrollbar-thumb {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.i-modal-wrap.modal-edit-classwork .i-modal-content {
  display: none;
}

.i-modal-wrap.modal-edit-classwork .i-modal-content.show {
  display: block;
}

.i-modal-wrap .i-modal-content .warning-message {
  color: #b32d2e;
  font-weight: 600;
}

.i-modal-wrap .i-modal-content .info-message {
  color: #146c8c;
}

.i-modal-wrap .i-modal-content .danger-message {
  color: #b32d2e;
}

.i-modal-wrap .i-modal-footer {
  display: flex;
  justify-content: flex-end;
}

.modal-submit-gradebook ul {
  list-style: circle;
  margin-left: 15px;
}

/* ScrollBar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #eeeeee;
}

::-webkit-scrollbar-thumb {
  background: #b8babc;
}

.scroll-bar.w5::-webkit-scrollbar {
  width: 5px;
}

/* Error Message */
.gradebook #message_response {
  background: #fbfbfb;
  border-radius: 5px;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
  border: 1px solid #ededed;
  position: fixed;
  bottom: 40px;
  left: 20px;
  padding: 10px;
  z-index: 99;
}

.gradebook .message-switch-gradebook {
  margin-top: 10px;
}

.gradebook .message-switch-gradebook small {
  font-size: 90%
}

.gradebook .message-switch-gradebook a {
  font-size: 80%;
  text-decoration: underline !important;
}

.gradebook small.error {
  color: #b32d2e;
}

/* Loading */
.waiting {
  position: relative;
}

.waiting::before {
  content: "";
  background-image: url(../images/loading-2.gif);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  bottom: 14px;
  right: 20px;
  height: 10px;
  width: 30px;
}

.waiting.hide::before {
  display: none;
}

/* Loading Full Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  z-index: -1;
}

.loading-screen.show {
  opacity: 1;
  visibility: visible;
  z-index: 98;
}

.loading-screen::before {
  background-color: rgba(39, 39, 39, 0.5);
  content: "Processing...";
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  transition: .15s;
}