﻿@charset "UTF-8";
@media print {
  @page {
    margin: 5mm; /*print邊界*/
    size: 210mm 297mm; /*列印紙張大小*/
  }
  .PrintHide {
    display: none !important;
  }
}
.card {
  box-shadow: rgba(0, 0, 0, 0.3) 3px 5px 5px;
}

:root {
  --bs-dark: #272343;
  --color:var(--blue2);
}

* {
  -webkit-text-size-adjust: 100%; /* 禁止 Safari 自動縮放文字 */
  touch-action: manipulation; /* 禁止雙擊縮放 */
}

.bg-dark {
  background: #272343;
}

.btn-yellow, .bg-yellow, .btn-yellow:hover {
  --font-color: #000;
  color: #000;
}

.vertical-text {
  writing-mode: vertical-rl;
}

.flex-column {
  flex-direction: column !important;
  display: flex;
  margin: 0px;
}

button:disabled, button:disabled:hover {
  cursor: not-allowed;
  background-color: #d1d1d1 !important;
  border-color: #d1d1d1 !important;
}

body {
  padding: 0px;
  margin: 0px;
  background-color: #c0c0c0;
}

button {
  -webkit-appearance: none; /* 移除 Safari 預設外觀 */
  appearance: none; /* 標準寫法 */
}

section, tr, td {
  page-break-inside: avoid;
}

.EssayReport .ScoreArea, .Breadcrumbs > a.Path, .ColorGrid, .ProgressStep, .TitleCtrlGroup2 .Ctrl .TextLength, .TitleCtrlGroup2 > .Title, .TitleCtrlGroup2 > .title {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
           supported by Chrome, Edge, Opera and Firefox */
}

.row {
  width: 100%;
}

.NoTouch {
  touch-action: none; /*禁止任何手勢*/
}

.TouchMove {
  touch-action: pan-x pan-y; /* 允許水平和垂直平移 */
}

.btn2 {
  text-shadow: none;
  cursor: pointer;
}

.btn-doc {
  background-color: transparent;
  color: var(--bs-danger);
  font-size: 14px;
  padding: 0px 5px !important;
  line-height: 16px !important;
  display: inline-flex;
  column-gap: 3px;
  align-items: center;
  white-space: nowrap;
}
.btn-doc:hover {
  transform: scale(1.2);
}

.btn2.bg-yellow2:hover, .btn2.btn-yellow2:hover {
  background-color: var(--yellow2);
  color: var(--bs-dark);
}

.Layout {
  height: 100dvh;
  padding: 10px;
  justify-content: center;
  align-items: center;
}
@media (min-width: 992px) {
  .Layout {
    display: flex;
  }
}
.Layout .Logo-Mobile {
  display: none;
}
.Layout .MainForm {
  background-color: #272343;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  max-height: 1000px;
  min-width: 1000px;
  display: flex;
  border-radius: 20px;
  margin: 0px;
  transition: max-width 0.3s;
  touch-action: pan-x pan-y; /* 允許水平和垂直平移 */
  overflow: hidden;
}
.Layout .MainForm .Nav {
  max-width: 60px;
  min-width: 60px;
  padding: 0px 0px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  background-color: #272343;
}
.Layout .MainForm .Nav .MenuList {
  flex: 1;
}
.Layout .MainForm .Nav .Menu-User {
  flex: 0 auto;
}
.Layout .MainForm .Nav .Logo-PC {
  /* h100 center overflow-hidden px5*/
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 5px;
}
.Layout .MainForm .Nav a {
  color: #fff;
}
.Layout .MainForm .Nav .flex1 {
  align-items: center;
  display: flex;
  min-height: 1%;
  overflow-x: hidden;
  overflow-y: auto;
}
.Layout .MainForm .Nav:hover, .Layout .MainForm .Nav.Active {
  max-width: 200px;
  min-width: 160px;
}
.Layout .MainForm .Nav .bg-yellow {
  background-color: var(--yellow) !important;
}
.Layout .MainForm .Content {
  flex: 1 auto;
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
}
.Layout .MainForm .Content > .Wallpaper {
  width: 100%;
  height: 100%;
  padding: 10px;
  transition: max-width 0.3s;
  max-width: 1000px;
  margin: 0px auto;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}
.Layout .MainForm .Content > .Wallpaper.Full {
  max-width: 100%;
}
.Layout .MainForm .Content > .Wallpaper > .Page {
  flex: 1 1 auto;
  height: 1%;
  max-height: 100%;
  padding: 0px 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: auto;
}
.Layout .MainForm .Content > .Wallpaper > .Page > .Scroll {
  flex: 1 1 auto;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}
.Layout .MainForm .Content > .Wallpaper > .NavButton {
  padding-top: 5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex: 0 auto;
}

.MenuList {
  display: flex;
  align-items: start;
  justify-content: start;
  flex-direction: column;
}
.MenuList .Menu {
  margin: 0px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.MenuList .Menu .Menu-item {
  line-height: 60px;
  display: flex;
  justify-items: center;
  align-items: center;
  transition: all 0.3s;
  cursor: pointer;
  --icon: 40px;
}
.MenuList .Menu .Menu-item:hover {
  transform: scale(1.1);
}
.MenuList .Menu .Menu-item:hover .Icon {
  background: var(--yellow);
}
.MenuList .Menu .Menu-item .Icon {
  width: var(--icon);
  height: var(--icon);
  line-height: var(--icon);
  display: inline-block;
  background-color: #bae8e8;
  border-radius: 50%;
  color: var(--bs-dark);
  text-align: center;
  margin: 10px;
  font-size: 25px;
  transition: all 0.3s;
}
.MenuList .Menu .Menu-item .Text {
  flex: 1 auto;
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
  padding: 0px 10px;
  overflow-x: hidden;
  max-width: 90px;
  color: #fff;
}
.MenuList .Menu .Menu-item.Active .Icon {
  background: var(--yellow);
}
.MenuList .Menu .Menu-item.Active .Text {
  color: var(--yellow);
}

.MobileCol {
  justify-content: center !important;
}

@media (max-width: 992px) {
  body {
    background: var(--bs-dark);
  }
  .MobileLayout {
    padding: 0px !important;
  }
  .MobileLayout .MainForm, .MobileLayout .MainForm > .Content, .MobileLayout .Loading {
    border-radius: 0px !important;
  }
  .MobileLayout .MainForm {
    min-width: inherit;
    flex-direction: column;
  }
  .MobileLayout .Content {
    order: 2;
    z-index: 0;
    padding: 5px !important;
  }
  .MobileLayout .Content .Wallpaper {
    padding: 0px !important;
  }
  .MobileLayout .Content .Wallpaper .Page {
    padding: 0px !important;
  }
  .MobileLayout .Logo-Mobile {
    display: flex;
    justify-content: space-between;
    height: 40px;
    flex: 0;
    padding: 5px 10px;
    order: 1;
    background-color: var(--bs-dark);
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8);
    z-index: 2;
    align-items: center;
  }
  .MobileLayout .Logo-Mobile .logo {
    max-height: 100%;
    max-width: 200px;
  }
  .MobileLayout .Logo-Mobile .user {
    background-color: var(--yellow);
    font-size: 20px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    color: var(--bs-dark);
  }
  .MobileLayout .Nav {
    order: 3;
    height: 70px !important;
    z-index: 1;
    min-width: 100% !important;
    max-width: 100% !important;
    justify-content: center;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8);
  }
  .MobileLayout .Nav .MenuList {
    justify-content: center;
    align-items: center;
    padding: 5px 30px 10px 30px;
  }
  .MobileLayout .Nav .Menu {
    flex-direction: row;
  }
  .MobileLayout .Nav .Menu .Menu-item {
    flex-direction: column;
    padding: 5px;
    --icon: 30px;
  }
  .MobileLayout .Nav .Menu .Menu-item .Icon {
    margin: 2px;
    font-size: 20px;
  }
  .MobileLayout .Nav .Menu .Menu-item .Text {
    font-size: 14px;
    line-height: 20px;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8);
    font-weight: 400;
  }
  .MobileLayout .Nav .Logo-PC {
    display: none !important;
  }
  .MobileLayout .Nav .Menu-User {
    display: none !important;
  }
  .ColorGrid .MobileCol {
    border-left-width: 0px;
    justify-content: start !important;
  }
}
.role-card {
  max-width: 250px;
  width: 100%;
  border-radius: 20px;
  min-height: 200px;
  cursor: pointer;
  padding: 10px;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
}
.role-card.teacher {
  background-color: #f7eaa0;
}
.role-card .Text {
  font-size: 20px;
  line-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.role-card.student {
  background-color: #cdedfc;
}
.role-card:hover {
  -webkit-filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.3));
  box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 1px;
}

.RuleList {
  line-height: 25px;
  padding: 5px 10px;
  --color: var(--blue2);
  width: 100%;
}
.RuleList li {
  font-size: 20px;
  padding: 5px 0px;
  list-style: none;
  display: flex;
  word-wrap: anywhere;
  width: 100%;
  line-height: 30px;
}
@media (max-width: 768px) {
  .RuleList li {
    font-size: 14px;
    line-height: 20px;
  }
}
.RuleList li .title {
  font-weight: 900;
  display: inline-block;
}
.RuleList li .title .icon {
  background: var(--color);
  border-radius: 50%;
  color: #fff;
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 10px;
  line-height: 20px;
  font-size: 20px;
}
.RuleList li .text {
  padding-left: 5px;
  display: inline-block;
}

.TitleCtrlGroup .Radio i, .TitleCtrlGroup .CheckBox i {
  width: var(--line-height);
  height: var(--line-height);
  padding: 5px;
}
.TitleCtrlGroup .Title .btn2, .TitleCtrlGroup .title .btn2 {
  line-height: 20px;
  padding: 0px 10px;
}

.TitleCtrlGroup2 {
  padding: 5px 0px;
  --font-size: 20px;
  --color: var(--blue2);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
  max-width: 100%;
  /* flex: 1 auto;*/
}
.TitleCtrlGroup2 .mask {
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  position: absolute;
}
.TitleCtrlGroup2 > .Title, .TitleCtrlGroup2 > .title {
  font-size: var(--font-size);
  color: var(--color);
  font-weight: 900;
  display: flex;
  align-items: center;
  line-height: 30px;
  gap: 5px;
}
.TitleCtrlGroup2 > .Title > i, .TitleCtrlGroup2 > .title > i {
  margin-right: 10px;
}
.TitleCtrlGroup2 > .Title button, .TitleCtrlGroup2 > .title button {
  line-height: 20px;
  font-size: 12px;
}
.TitleCtrlGroup2 .Ctrl {
  --font-size: 18px;
  display: flex;
  justify-content: start;
  align-items: center;
  padding: 2px 0px;
  flex: 1 auto;
  position: relative;
  flex-grow: 1;
  gap: 5px;
  line-height: 40px;
}
@media (max-width: 768px) {
  .TitleCtrlGroup2 .Ctrl {
    line-height: 30px;
  }
}
.TitleCtrlGroup2 .Ctrl > input, .TitleCtrlGroup2 .Ctrl > select, .TitleCtrlGroup2 .Ctrl > textarea {
  flex: 1 auto;
  font-size: var(--font-size);
}
.TitleCtrlGroup2 .Ctrl .TextLength {
  z-index: 1;
  right: 5px;
  bottom: 10px;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0px 5px;
  color: #000;
  font-size: 12px;
  line-height: 18px;
  border-radius: 10px;
}
.TitleCtrlGroup2 .Ctrl .TextLength:hover {
  background-color: #000;
  color: #fff;
}
.TitleCtrlGroup2 .Ctrl.wrap {
  flex-wrap: wrap;
  padding: 0px 0px;
}
.TitleCtrlGroup2 .Ctrl.wrap > div {
  display: inline-flex;
  padding: 2px 0px;
  flex-wrap: wrap;
  line-height: 40px;
}
.TitleCtrlGroup2 .Ctrl.wrap > div > * {
  flex: 1 auto;
}
.TitleCtrlGroup2 .Ctrl .title {
  flex: 0 !important;
  display: inline-flex;
  white-space: nowrap;
  padding: 0px 10px 0px 30px;
  font-weight: 700;
  align-items: center;
  user-select: none;
}
.TitleCtrlGroup2 .Ctrl > label {
  flex: 0 auto;
  padding-right: 10px;
}
.TitleCtrlGroup2 .Ctrl .body {
  padding: 0px 5px;
}
.TitleCtrlGroup2 .Ctrl textarea, .TitleCtrlGroup2 .Ctrl select, .TitleCtrlGroup2 .Ctrl [type=text], .TitleCtrlGroup2 .Ctrl [type=date], .TitleCtrlGroup2 .Ctrl [type=datetime], .TitleCtrlGroup2 .Ctrl [type=datetime-local], .TitleCtrlGroup2 .Ctrl [type=password] {
  border-radius: 5px;
  border: 2px #ccc solid;
  padding: 0px 5px;
  outline: none;
  box-sizing: border-box;
}
.TitleCtrlGroup2 .Ctrl select {
  /* border-width: 0px;*/
  background-color: #f2f2f2;
  appearance: none;
  background: url(https://cdnec.sanmin.com.tw/images/icons/dropdown.png) no-repeat right center;
  background-size: 20px;
  padding: 0px 20px 0px 5px;
  background-position: 99% 50%;
  cursor: pointer;
}
.TitleCtrlGroup2 .Ctrl textarea {
  height: 100%;
}
.TitleCtrlGroup2 .Ctrl .readyonly {
  background: #ccc;
}
.TitleCtrlGroup2 .required .title {
  position: relative;
}
.TitleCtrlGroup2 .required .title:before {
  content: "\f586";
  font-family: "Bootstrap-icons";
  font-size: 12px;
  position: absolute;
  left: 5px;
  color: var(--bs-danger);
}
.TitleCtrlGroup2 button {
  font-size: 14px !important;
}

.ProgressStep {
  width: 100%;
  position: relative;
  margin: 0px 0px 10px 0px;
  --color: var(--yellow);
}
.ProgressStep .progress-line {
  width: 100%;
  height: 4px;
  background-color: #dddddd;
  position: absolute;
  bottom: 18px;
  left: 0;
  z-index: 1;
}
.ProgressStep .progress-line .progress-completed {
  height: 4px;
  background-color: var(--color);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}
.ProgressStep.Step5-1 .progress-completed {
  width: 10%;
}
.ProgressStep.Step5-2 .progress-completed {
  width: 30%;
}
.ProgressStep.Step5-3 .progress-completed {
  width: 50%;
}
.ProgressStep.Step5-4 .progress-completed {
  width: 70%;
}
.ProgressStep.Step5-5 .progress-completed {
  width: 90%;
}
.ProgressStep.Step4-1 .progress-completed {
  width: 12.5%;
}
.ProgressStep.Step4-2 .progress-completed {
  width: 37.5%;
}
.ProgressStep.Step4-3 .progress-completed {
  width: 62.5%;
}
.ProgressStep.Step4-4 .progress-completed {
  width: 87.5%;
}
.ProgressStep.Step3-1 .progress-completed {
  width: 16.6%;
}
.ProgressStep.Step3-2 .progress-completed {
  width: 49.8%;
}
.ProgressStep.Step3-3 .progress-completed {
  width: 83%;
}
.ProgressStep.Step2-1 .progress-completed {
  width: 25%;
}
.ProgressStep.Step2-2 .progress-completed {
  width: 75%;
}
.ProgressStep .steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}
.ProgressStep .steps .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  flex: 1 auto;
}
.ProgressStep .steps .step label {
  font-weight: bold;
  color: #333;
  border-width: 0px;
}
.ProgressStep .steps .step .circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #dddddd;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  text-align: center;
  line-height: 20px;
  font-size: 16px;
}
.ProgressStep .steps .step.completed .circle {
  background-color: var(--color);
}

div.ColorGrid {
  display: flex;
  flex-direction: column;
}
div.ColorGrid > * {
  width: 100%;
}

.ColorGrid {
  --border-color: var(--color);
  --border-width: 2px;
  background: #fff;
  --radius: 10px;
  text-align: center;
  transition: all 0.5s ease;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 4px;
}
.ColorGrid .thead {
  background: var(--color);
}
@media (max-width: 768px) {
  .ColorGrid .thead .th:last-child {
    display: none;
  }
}
.ColorGrid .tr {
  flex-wrap: nowrap;
}
.ColorGrid .th, .ColorGrid th {
  border-left: var(--border-width) var(--color) solid;
  background: var(--color) !important;
  font-size: 14px;
  font-weight: 600;
}
.ColorGrid .tbody {
  background: #e6e6e6;
  box-shadow: inset 0 -8px 8px -6px rgba(0, 0, 0, 0.2), inset 0 8px 8px -6px rgba(0, 0, 0, 0.2);
  overflow-y: scroll !important;
}
.ColorGrid .td {
  background: #fff;
}
.ColorGrid .td input {
  max-width: 100%;
  border-radius: 3px;
  border: 1px #ccc solid;
  padding: 0px 2px;
}
.ColorGrid .tbody > .tr:hover .td {
  background: #ffffe6;
}
.ColorGrid .tfoot .td {
  --line-height: 20px;
  line-height: var(--line-height);
  background: #fff;
  flex: 1;
}
.ColorGrid .btn2 {
  --line-height: 20px;
}

.badge {
  font-weight: 300;
  font-size: 12px;
  padding: 1px 3px !important;
  line-height: 14px;
}

.btn {
  -webkit-filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.3));
  box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 1px;
  font-size: 14px;
  padding: 0px 10px;
}

.Breadcrumbs {
  display: flex;
  --font-size: 20px;
  --color: var(--bs-secondary);
  --line-height: 30px;
  line-height: var(---line-height);
  color: var(--color);
  background: #fff;
  padding: 5px 0px;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.Breadcrumbs > * {
  white-space: nowrap;
}
.Breadcrumbs .d-flex {
  flex: 1 auto;
  line-height: var(---line-height);
}
.Breadcrumbs > div {
  justify-content: end;
  gap: 10px;
}
.Breadcrumbs > a.Path {
  font-size: var(--font-size);
  color: var(--color);
  font-weight: 700;
  padding: 0px 3px 0px 0px;
  cursor: pointer;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
}
.Breadcrumbs > a.Path:before {
  content: " \f285";
  font-family: "Bootstrap-icons";
  font-size: 10px;
  margin-right: 3px;
  background-color: var(--color);
  color: #fff;
  border-radius: 50%;
  padding: 4px;
  width: 18px;
  height: 18px;
  line-height: 10px;
  text-align: center;
}
.Breadcrumbs .btn2 {
  padding: 2px 5px;
  margin: 0;
  line-height: 20px;
}

/* 翻牌容器 */
.Flip {
  perspective: 1000px;
  width: 100%;
  height: 100%;
  display: flex;
  min-height: 1%;
  flex: 1;
  /* 背面樣式 - 預設是翻轉狀態 */
}
.Flip > div {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s;
  display: flex;
}
.Flip .front, .Flip .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 5px;
}
.Flip .back, .Flip .flipped {
  transform: rotateY(180deg);
}
.Flip .front:has(.Grid2) > div {
  max-height: calc(50% - 5px);
}

.ProgressBar2 {
  width: 100%;
  background-color: #ccc;
  margin: 10px 5px;
  border-radius: 20px;
  position: relative;
  height: 30px;
  overflow: hidden;
  border: 2px var(--color) solid;
}
.ProgressBar2 .completed {
  height: 100%;
  background-color: var(--color);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  max-width: 1%;
  transition: max-width 0.5s;
  border-radius: 20px;
}
.ProgressBar2 .Num {
  z-index: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 20px;
}
.ProgressBar2 .Num0 {
  display: none;
}

.HideArea {
  overflow-y: hidden;
  max-height: 100%;
  transition: max-height 0.5s ease;
  max-width: 100%;
}

.EnableHide > .HideArea {
  max-height: 0%;
  max-width: 0%;
}

.dialog {
  --radius: 10px;
  width: initial;
  min-width: 300px;
  max-width: 95%;
  z-index: 100 !important;
  max-height: calc(100dvh - 130px);
}
.dialog > .title {
  background: var(--color);
}
.dialog > .body {
  padding: 20px;
  font-size: 20px;
  line-height: 22px;
}

.dialog2 {
  border-radius: 10px;
  overflow: hidden;
  background: var(--color);
}
.dialog2 > .title {
  background: var(--color);
  border-bottom-width: 0px;
  margin: 0px;
}
.dialog2 > .body {
  background: var(--color);
  margin: 0px;
}

.dialog-mask {
  width: 100%;
  height: 100%;
}

.tbody.scrollbar > .tr:last-child .td {
  border-bottom-width: 2px !important;
}

body:has(.EssayReport), .Layout:has(.EssayReport) {
  padding: 0px;
  background: #ccc;
}

.EssayReport {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 10px 10px 10px 10px;
  position: relative;
  --gap: 15px;
  gap: var(--gap);
  flex-wrap: nowrap;
  position: relative;
}
.EssayReport .card {
  border-radius: 20px;
  background-color: var(--green3);
  margin: 0px;
  margin-bottom: var(--gap) !important;
}
.EssayReport .float-Closebtn {
  position: fixed;
  font-size: 20px;
  text-decoration: none;
  border-radius: 50%;
  border: 3px #fff solid;
  transform: translate(0, -50%);
  box-shadow: 0 0.5rem 0.8rem rgba(0, 0, 0, 0.5019607843);
  width: 40px;
  height: 40px;
  line-height: 20px;
  text-align: center;
  padding: 0;
  z-index: 10;
  top: 20px;
  right: 5px;
  background: var(--bs-dark);
}
.EssayReport .ColorGrid {
  min-width: inherit;
}
.EssayReport .ScoreArea, .EssayReport .SuggestionArea, .EssayReport .EssayArea {
  padding: 0px;
  position: relative;
  display: inline-block;
}
.EssayReport .ScoreArea .card, .EssayReport .SuggestionArea .card, .EssayReport .EssayArea .card {
  margin-bottom: var(--gap);
}
.EssayReport .ScoreArea .card:last-child, .EssayReport .SuggestionArea .card:last-child, .EssayReport .EssayArea .card:last-child {
  margin-bottom: 0px !important;
}
.EssayReport .SuggestionArea {
  flex: 2;
}
.EssayReport .SuggestionArea .Tabs .btn2 .text {
  text-shadow: none;
  font-weight: 900;
}
.EssayReport .EssayArea {
  flex: 1;
}
.EssayReport .ScoreArea {
  width: 250px;
}
.EssayReport .ScoreArea .sticky {
  position: sticky;
  top: var(--gap);
}
.EssayReport .ScoreArea .ScoreCircle {
  border-radius: 50%;
  background: var(--yellow);
  width: 150px;
  height: 150px;
  line-height: 100px;
  margin: 0px;
  text-align: center;
  margin: 0 auto;
  padding: 20px 0px;
}
.EssayReport .ScoreArea .ScoreCircle .text {
  line-height: 30px;
  font-size: 15px;
}
.EssayReport .ScoreArea .ScoreCircle .num {
  line-height: 60px;
  font-size: 40px;
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
@media (max-width: 768px) {
  .EssayReport .ScoreTotal {
    width: 100%;
    flex: 0 0 auto !important;
  }
}
@media (max-width: 992px) {
  .EssayReport .ScoreArea, .EssayReport .SuggestionArea, .EssayReport .EssayArea {
    width: 100%;
    flex: 0 auto;
  }
  .EssayReport .ScoreArea .sticky {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
  }
  .EssayReport .ScoreArea .sticky > div {
    flex: 1;
    margin-bottom: 0px !important;
  }
}
@media (max-width: 1200px) {
  .EssayReport {
    flex-wrap: wrap;
  }
  .EssayReport .SuggestionArea {
    flex: 1;
  }
  .EssayReport .EssayArea {
    width: 100%;
    flex: 0 auto;
  }
}
.EssayReport .AspectScore {
  padding: 5px 10px;
  margin: 2px 0px;
  --bg-color: #ccc;
  border-radius: 10px;
  line-height: 20px;
  width: 100%;
  /*      @include pad {
      width: 50%;
  }

  @include mobile {
      width: 100%;
  }*/
}
.EssayReport .AspectScore > .title {
  font-size: 18px;
}
.EssayReport .AspectScore > .body {
  display: flex;
  padding: 5px 20px;
  justify-content: space-between;
}
.EssayReport .AspectScore .text {
  font-size: 16px;
}
.EssayReport .AspectScore .ScoreIcon {
  flex: 1 0 auto;
}
.EssayReport .AspectScore .ScoreIcon i {
  font-size: 16px;
  color: #000;
  margin: 0px 2px;
  padding: 0px 4px;
  background-color: var(--color);
  border-radius: 2px;
  -webkit-filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.3));
  box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 1px;
}
.EssayReport .AspectScore:has(.ScoreIcon) {
  cursor: pointer;
}
.EssayReport .AspectScore:has(.ScoreIcon):hover, .EssayReport .AspectScore.Active {
  background: linear-gradient(rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 80%, rgba(255, 255, 255, 0.1) 100%);
  background-color: #f2f2f2;
  -webkit-filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.3));
  box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 1px;
}
.EssayReport .AspectSuggestion .Tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}
.EssayReport .AspectSuggestion .Tabs button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 2px;
  width: 100px;
  min-width: 110px;
  max-width: 110px;
  margin: 0px;
  background-color: var(--white);
  color: var(--bs-dark);
  flex: 1 0 auto;
  font-weight: 400;
}
.EssayReport .AspectSuggestion .Tabs button .icon {
  font-size: 20px;
  line-height: 30px;
  padding: 0px;
}
.EssayReport .AspectSuggestion .Tabs button .text {
  padding: 0px 2px;
  font-size: 14px;
  line-height: 18px;
  width: 60px;
}
.EssayReport .AspectSuggestion .Tabs button:hover, .EssayReport .AspectSuggestion .Tabs button.Active {
  background-color: var(--yellow) !important;
}
.EssayReport .btn-editor {
  padding: 2px 20px;
  line-height: 16px;
  font-size: 14px;
}
.EssayReport .text-grqy {
  color: var(--bs-gray-700);
}
.EssayReport .TextArea {
  width: 100%;
  resize: none;
  font-size: 16px;
  line-height: 30px;
}
.EssayReport .TextArea:read-only {
  background: initial;
  color: var(--bs-gray-700);
  border-color: var(--green3);
}
.EssayReport table textarea:read-only {
  border-color: var(--white) !important;
}

#Correct .ReadOnlyBlue:read-only {
  background: var(--green3);
  border-color: var(--green3) !important;
  color: #000;
  padding: 20px;
}
#Correct .CorrectModeBtn {
  width: 100%;
  border-width: 0px;
  text-shadow: unset !important;
  padding: 40px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#Correct .CorrectModeBtn .title {
  font-size: 18px;
  line-height: 40px;
  font-weight: 900;
  height: 40px;
  white-space: nowrap;
}
#Correct .CorrectModeBtn .description {
  font-size: 16px;
  line-height: 18px;
  text-align: left;
  flex: 1 0 auto;
}
#Correct .CorrectModeBtn.yellow {
  --bg-color: #f7eaa0;
}
#Correct .CorrectModeBtn.blue {
  --bg-color: #cdedfc;
}
#Correct .CorrectModeBtn:hover {
  background: var(--bg-color);
}

.Loading {
  border-radius: 20px;
}

.TopicList {
  overflow-y: auto;
  padding: 5px;
  height: 100%;
}
.TopicList .Item {
  margin-bottom: 5px;
  background-color: #f1f6f6;
  padding: 5px;
  border-radius: 10px;
  display: flex;
  line-height: 24px;
  cursor: pointer;
  position: relative;
}
.TopicList .Item:hover {
  background-color: #f7eaa0;
}
.TopicList .Item .Source, .TopicList .Item .Preview {
  width: 150px;
  flex: 0 0 auto;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.TopicList .Item .Preview {
  width: 80px;
}
.TopicList .Item .Topic {
  flex: 1 auto;
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.TopicPreview {
  --color: #f7eaa0;
  width: 100%;
  max-width: 1000px;
  max-height: 90%;
}
.TopicPreview .btn-close {
  padding: 3px !important;
  font-size: 20px !important;
}
.TopicPreview > .title {
  font-size: 22px;
}
.TopicPreview > .title, .TopicPreview > .body {
  color: var(--bs-dark);
  background-color: var(--color);
  line-height: 30px;
}
.TopicPreview .footer {
  background-color: var(--color);
  box-shadow: none;
}

.TopicFilter {
  position: absolute;
  z-index: 10;
  cursor: pointer;
}
.TopicFilter .title {
  width: 150px;
  text-align: center;
}
.TopicFilter .options {
  border: 1px #ccc solid;
  border-radius: 10px;
  white-space: nowrap;
  display: none;
  overflow: hidden;
  background: #fff;
  -webkit-filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.3));
  box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 1px;
}
.TopicFilter .option {
  padding: 2px 5px;
  text-align: left;
  font-size: 16px;
  line-height: 25px;
}
.TopicFilter .option:not(:first-child) {
  border-top: 1px #ccc solid;
}
.TopicFilter .option:hover {
  background-color: #f7eaa0;
}
.TopicFilter:hover .options {
  display: block;
}

.Layout:has(.ReportPrint) {
  display: block !important;
}

.ReportPrint {
  padding: 0px 10px;
}
.ReportPrint section {
  padding: 5px 0px;
  margin-bottom: 20px;
  line-height: 25px;
}
.ReportPrint h2 {
  font-weight: 900;
  font-size: 20px;
  line-height: 30px;
  border-bottom: 1px #000 solid;
  margin-bottom: 5px;
}
.ReportPrint h2 i {
  margin-right: 5px;
}
.ReportPrint table {
  border: 1px #000 solid;
  width: 100%;
}
.ReportPrint td, .ReportPrint th {
  border: 1px #000 solid;
  padding: 5px;
}
.ReportPrint ul {
  padding: 0px 20px;
}

.th:has(.ColumnSort) {
  padding: 0px;
}

.ColumnSort {
  font-size: 14px;
  padding: 5px;
  cursor: pointer;
  display: flex;
  justify-items: center;
  justify-content: center;
}
.ColumnSort i {
  margin-left: 3px;
}
.ColumnSort:hover {
  text-shadow: 0px 0px 10px rgb(0, 0, 0);
  color: #fff;
}

.Status-0, .Status-4 {
  color: var(--bs-danger);
}

.Status-1 {
  color: var(--bs-dark);
}

.Status-2 {
  color: var(--blue2);
}

.Status-3 {
  color: var(--bs-success);
}

.Status-5 {
  color: var(--bs-primary);
}

.CreateTopicMode {
  display: flex;
  gap: 10px;
  padding: 10px;
  flex: 1;
}
@media (max-width: 992px) {
  .CreateTopicMode {
    flex-direction: column;
  }
}
.CreateTopicMode .CreateMode {
  border-radius: 10px;
  background: var(--green3);
  padding: 0px 20px;
  height: 100%;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  flex: 1;
}
.CreateTopicMode .CreateMode .Icon {
  font-size: 50px;
  text-align: center;
}
.CreateTopicMode .CreateMode .Title {
  font-size: 25px;
  line-height: 30px;
  text-align: center;
  font-weight: 900;
  margin-bottom: 10px;
}
.CreateTopicMode .CreateMode .Description {
  font-size: 16px;
  line-height: 20px;
}
.CreateTopicMode .CreateMode:hover {
  background: var(--yellow2);
}

#CorrectInput {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  transition: flex 0.5s ease;
}
#CorrectInput.Full {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 98%;
  height: 98%;
}
#CorrectInput.Vertical {
  flex-direction: row;
}
#CorrectInput.Vertical textarea {
  height: auto;
}
#CorrectInput .Ctrl {
  align-items: inherit;
}

.ImagePreview {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 2px solid #ccc;
  box-sizing: border-box;
  background-color: #ccc;
  border-radius: 5px;
  flex: 2;
  box-shadow: inset 0px 0px 15px rgba(0, 0, 0, 0.5);
  /*   transition: flex .5s ease;
  &:hover {
      flex: 2;
  }*/
}
.ImagePreview.UIContract {
  flex: 0 auto;
  height: 55px;
  box-shadow: unset;
}
.ImagePreview.UIContract .PreviewCtrl, .ImagePreview.UIContract .PreviewImg {
  display: none;
}
.ImagePreview .PreviewImg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.ImagePreview .DocID, .ImagePreview .OcrStatus {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  font-size: 12px;
  position: absolute;
  left: 5px;
  padding: 3px 5px;
  color: #fff;
  z-index: 100;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
}
.ImagePreview .DocID:hover, .ImagePreview .OcrStatus:hover {
  font-size: 20px;
  background-color: rgb(0, 0, 0);
}
.ImagePreview .DocID {
  top: 5px;
}
.ImagePreview .OcrStatus {
  bottom: 5px;
}
.ImagePreview .btn-Contract {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  position: absolute;
  right: 5px;
  bottom: 5px;
  border-width: 0px;
  border-radius: 5px;
}
.ImagePreview .PreviewCtrl, .ImagePreview .DocCtrl {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px;
  border-radius: 5px;
  display: flex;
  gap: 5px;
  transition: all 0.5s ease;
  color: #fff;
  align-items: center;
  --line-height: 30px;
  line-height: var(--line-height);
}
.ImagePreview .PreviewCtrl:hover, .ImagePreview .DocCtrl:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.ImagePreview .PreviewCtrl button, .ImagePreview .DocCtrl button {
  outline-width: 0px;
  width: var(--line-height);
  height: var(--line-height);
  font-size: 18px;
  cursor: pointer;
  border: 1px solid #ccc;
  background-color: white;
  color: #000;
  border-radius: 3px;
  text-align: center;
}
.ImagePreview .PreviewCtrl button:hover, .ImagePreview .DocCtrl button:hover {
  background-color: #f0f0f0;
}
.ImagePreview .PreviewCtrl button:disabled, .ImagePreview .DocCtrl button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ImagePreview .PreviewCtrl {
  top: 5px;
}
.ImagePreview .DocCtrl {
  bottom: 5px;
}
.ImagePreview .PreviewInfo {
  margin-left: 5px;
  line-height: 30px;
  font-size: 14px;
  color: #fff;
  cursor: default;
}

.EssayInputCtrl {
  display: flex;
  flex-direction: column;
  background-color: var(--green3);
  border-radius: 5px;
  padding: 5px;
  flex: 1;
  z-index: 100;
  min-height: 200px;
  gap: 3px;
  /*    transition:flex .5s ease;
  &:hover{
      flex:2;
  }*/
}
.EssayInputCtrl .ContentCtrl {
  display: flex;
  flex-wrap: wrap;
  padding: 2px 0px;
}
.EssayInputCtrl .ContentCtrl > * {
  flex: 1 auto;
}
.EssayInputCtrl .TextCtrl {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 20px;
  padding: 2px 0px;
  white-space: nowrap;
}
.EssayInputCtrl .TitleCtrlGroup {
  flex: 1;
  padding: 0px;
}
.EssayInputCtrl .TitleCtrlGroup textarea {
  border-width: 0px;
  box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.5);
  padding: 0px 5px;
}
.EssayInputCtrl .TextLength {
  background: #000;
  color: #fff;
  border-radius: 10px;
  padding: 0px 5px;
  white-space: nowrap;
}

#PDFcontainer {
  width: 100%;
  max-height: 100%;
  background: #f2f2f2;
  border: 1px #ccc solid;
  border-radius: 5px;
  padding: 5px 5px;
  margin: 0px;
  border: 2px dashed #d1d1d1;
  position: relative;
  flex: 1 auto;
  overflow: hidden;
}
#PDFcontainer:hover .FileInfo {
  transition: all 0.5s ease;
  opacity: 0;
}
#PDFcontainer .btn-upload {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}
#PDFcontainer .FileInfo {
  font-size: 12px;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 3px 5px;
  border-radius: 20px;
  border: 1px #ccc solid;
}
#PDFcontainer .Btn-Upload {
  position: absolute;
  left: 50%;
  top: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  font-size: 20px;
  cursor: pointer;
  line-height: 20px;
}
#PDFcontainer .Btn-Upload i {
  font-size: 50px;
}
#PDFcontainer #pdf-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  overflow: auto;
  margin: 0 auto;
  padding: 10px;
}
#PDFcontainer #pdf-preview div {
  border: 1px #ccc solid;
  padding: 0px;
  position: relative;
  background: #fff;
}
#PDFcontainer #pdf-preview div .num {
  position: absolute;
  left: 5px;
  top: 5px;
  color: #fff;
  background: var(--blue);
  border: 2px #fff solid;
  border-radius: 50%;
  font-size: 18px;
  width: 40px;
  height: 40px;
  line-height: 20px;
  padding: 0px;
  text-align: center;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
#PDFcontainer #pdf-preview div .num:hover {
  opacity: 0;
}
#PDFcontainer canvas {
  display: block;
  margin: 0px auto;
  max-width: 100%;
}

.Loading {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.hover-tip:after {
  white-space: nowrap;
}

.CorrectStep2Btn {
  padding: 5px 0px;
  display: flex;
  column-gap: 5px;
  row-gap: 2px;
  justify-content: space-between;
  flex-wrap: wrap;
  flex: 0 auto;
}
.CorrectStep2Btn .btn-1 {
  order: 0;
}
.CorrectStep2Btn .btn-2 {
  order: 2;
}
.CorrectStep2Btn .btn-3 {
  order: 3;
}
@media (max-width: 768px) {
  .CorrectStep2Btn .btn-1 {
    order: 1;
  }
  .CorrectStep2Btn.Uploaded .btn-1, .CorrectStep2Btn.Uploaded .btn-2 {
    flex: 1;
  }
}
.CorrectStep2Btn .CtrlGroup {
  align-items: center;
}
@media (max-width: 768px) {
  .CorrectStep2Btn .CtrlGroup {
    order: 0;
    width: 100%;
  }
}

#Terms .Scroll > div {
  margin-bottom: 20px;
}
#Terms h2 {
  color: var(--blue1);
  line-height: 30px;
  font-weight: 900;
}
#Terms .list-num {
  margin-left: 20px;
}
#Terms .list-num > li {
  padding: 2px 0px;
}
#Terms .list-dot {
  margin-left: 10px;
}
#Terms .list-dot > li {
  padding: 2px 0px;
}

*:has(> .disablemask) {
  position: relative;
}

.disablemask {
  filter: saturate(0);
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  z-index: 999;
}

.EssayCatalog {
  width: 90%;
  max-width: 500px;
}
.EssayCatalog > .body {
  padding: 5px;
}
.EssayCatalog > .body .row > .col {
  padding: 2px;
  display: flex;
}
.EssayCatalog .EssayInfo {
  border: 1px #ccc solid;
  padding: 5px;
  cursor: pointer;
  flex: 1 auto;
  border-radius: 3px;
  background-color: #fff;
}
.EssayCatalog .EssayInfo .Idx {
  background-color: var(--bs-dark);
  color: #fff;
  padding: 0px 5px;
  margin-right: 5px;
}
.EssayCatalog .EssayInfo:hover {
  background-color: var(--yellow);
}
.EssayCatalog .EssayInfo .UnoUname {
  font-size: 14px;
}
.EssayCatalog .EssayInfo .ErrorMsg {
  color: var(--bs-danger);
  font-size: 12px;
  line-height: 16px;
}

#ImgSelection {
  padding: 0px;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  /* Responsive layout */
}
#ImgSelection canvas {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  max-width: 100%;
  border-radius: 4px;
  max-height: 60vh;
}
#ImgSelection #upload-btn {
  display: none;
}
#ImgSelection .image-container {
  padding: 10px;
  border: 1px #000 solid;
}
#ImgSelection .controls-container {
  display: flex;
  gap: 10px;
  padding: 5px 0px;
  justify-content: center;
}
#ImgSelection .controls-container > * {
  white-space: nowrap;
  min-width: 70px;
  margin: 0;
}
#ImgSelection .image-container {
  flex-grow: 1;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px dashed #d1d1d1;
  border-radius: 8px;
  background-color: #e6e6e6;
  min-height: 400px;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
}
#ImgSelection #submit-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 20px;
  padding: 5px 10px;
}
#ImgSelection #canvas-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
#ImgSelection canvas {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
#ImgSelection #result-container {
  text-align: center;
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
#ImgSelection #result-container #result-canvas {
  border: 2px solid var(--bs-success);
}
#ImgSelection .hidden {
  display: none !important;
}
@media (max-width: 800px) {
  #ImgSelection body {
    padding: 10px;
  }
  #ImgSelection .main-container {
    flex-direction: column;
    height: auto;
  }
  #ImgSelection .controls-container {
    flex-basis: auto;
    width: 100%;
  }
  #ImgSelection .image-container {
    min-height: 300px;
  }
}
