body {
  position: relative;
}

body.modal-iframe-body {
  background-color: #ffffff;
  padding: 1em 0;
}

header .class-list {
  max-height: 230px;
  overflow: scroll;
}

@media (max-width: 991.98px) {
  .app-header .navbar-brand {
    position: static;
    margin-left: 0;
  }
}

.app-header .logo {
  display: flex;
  align-items: center;
}

.form-group .form-control {
  padding-left: 2.375rem;
}

.form-group .form-control-icon {
  position: absolute;
  z-index: 2;
  display: block;
  width: 2.375rem;
  height: 2.375rem;
  line-height: 2.375rem;
  text-align: center;
  pointer-events: none;
  color: #aaa;
}

.app-header .logo img {
  max-width: 100px;
  height: auto;
}

.app-header .dropdown-item i {
  color: #aaa;
}

table {
  min-width: 550px;
}

table th {
  background-color: #f2f2f2;
  font-weight: 500;
  border-bottom: 0;
  font-size: 16px;
  line-height: 28px;
  border-top: 1px solid #e5e5e5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

table th:first-child {
  border-left: 1px solid #e5e5e5;
}

table th:last-child {
  border-right: 1px solid #e5e5e5;
}

table td:first-child {
  border-left: 1px solid #e5e5e5;
}

table td:last-child {
  border-right: 1px solid #e5e5e5;
}

table td {
  background-color: #fff !important;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  border-color: #e5e5e5;
  word-wrap: break-word;
}

table tr.deleted td {
  background-color: #f4d2d2 !important;
}

table th,
table td {
  color: #563e28;
  padding: 12px !important;
  vertical-align: baseline;
}

table th.tool {
  width: 100px;
}

.tool {
  width: 70px;
}

table tbody tr:hover {
  background-color: #fffefb;
}

table.table-clickable tr[data-href],
table.table-clickable tr[data-iframe-src] {
  cursor: pointer;
}

.table-fixed {
  table-layout: fixed;
  min-width: 1024px;
}

.block-page-transition,
.block-page-transition-group,
.block-modal,
.block-modal-group {
  cursor: default;
}

table.table-scrollable .dropdown-menu {
  z-index: 1002 !important;
}

.btn.btn-icon {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.btn.btn-icon i+span,
.btn.btn-icon span+i {
  margin: 0px 8px;
}

.date-start::before {
  content: "〜";
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
}

.pre-line {
  white-space: pre-line;
}

.word-break-all {
  word-break: break-all;
}

.required::after {
  margin-left: 3px;
  color: #f86c6b;
  font-size: 80%;
  font-weight: bold;
}

.required .required-text {
  display: block;
  margin-left: 3px;
  color: #f86c6b;
  font-size: 80%;
  font-weight: bold;
}

.required-text {
  display: none;
}

.tooltip-vertical {
  margin-top: 12px;
}

.sidebar .nav .nav-item-group+.nav-item-group {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid #c8ced3;
}

.sidebar>.nav:last-child {
  padding-bottom: 30px;
}

.app-body .main {
  margin-left: 40px;
}

.breadcrumb {
  font-size: 16px;
}

.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 0;
}

.w-20 {
  width: 20%;
}

.w-40 {
  width: 40%;
}

.w-60 {
  width: 60%;
}

.w-80 {
  width: 80%;
}

.sidebar-fixed .sidebar {
  position: fixed;
  z-index: 1019;
  height: calc(100vh - 55px);
  padding-bottom: 47px;
}

html:not([dir="rtl"]) .sidebar-lg-show.sidebar-fixed .app-footer,
html:not([dir="rtl"]) .sidebar-lg-show.sidebar-fixed .main,
html:not([dir="rtl"]) .sidebar-show.sidebar-fixed .app-footer,
html:not([dir="rtl"]) .sidebar-show.sidebar-fixed .main {
  margin-left: 200px;
}

.aside-menu-show .main::before,
.sidebar-show .main::before {
  content: none;
}

:root {
  --breakpoint-sm: 0px;
}

.text-gold {
  color: gold !important;
}

.reload-btn {
  position: fixed;
  top: 61px;
  right: 20px;
  z-index: 100;
  transition: 0.5s;
  color: #ffffff;
  background-color: #ff851b;
  border-color: #f07d19;
}

.reload-btn:hover {
  color: #ffffff;
}

.top-move {
  top: 121px;
}

.right-move {
  right: 370px;
}

.debug-message {
  background-color: #dd4b39;
}

.debug-message-in-header {
  width: 40%;
}

.debug-message-element {
  color: #ffffff;
}

.table td,
.table th {
  vertical-align: middle !important;
}

.staff-grid {
  display: flex;
  flex-direction: column;
}

.staff-row {
  display: grid;
  grid-template-columns: minmax(200px, auto) 1fr;
  padding: 10px 0;
  border-bottom: 1px dotted grey;
}

.staff-row:last-child {
  border-bottom: none;
}

#vertical-align-top {
  vertical-align: top !important;
}

.disable-action input {
  background-color: #f5f5f5 !important;
  pointer-events: none;
}

.tool-icon-upload {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.icon-box {
  width: 72px;
  height: 72px;
  border: 2px dashed #d0d7e2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  background: #f8fafc;
  padding: 3px;
  flex-shrink: 0;
}

.icon-box:hover {
  border-color: #4f7cff;
  background: #f0f4ff;
}

.icon-box img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

.icon-plus {
  font-size: 28px;
  color: #8fa3c8;
}

.form-check-input:checked[type="radio"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fbbf24'/%3e%3c/svg%3e") !important;
  border-color: #fbbf24 !important;
  background-color: #fff !important;
}

.show-detail {
  cursor: pointer;
}

.text-left {
  text-align: left !important;
  font-size: 1rem;
}

.w-50px {
  width: 50px !important;
}

.w-100px {
  width: 100px !important;
}

.w-150px {
  width: 150px !important;
}

.w-200px {
  width: 200px !important;
}

.w-250px {
  width: 250px !important;
}

.w-300px {
  width: 300px !important;
}

.w-350px {
  width: 350px !important;
}

.w-400px {
  width: 400px !important;
}

.confirm-body {
  white-space: pre-line;
}

.input-group-text {
  height: 100%;
}

.app .datepicker table {
  min-width: unset;
}

.app .datepicker table td {
  border: 0 !important;
}

.datepicker {
  padding: 0 !important;
  position: relative;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
  width: auto !important;
}

.date .input-group-text {
  height: 38px !important;
}

.timepicker table {
  min-width: auto;
}

.timepicker table td {
  border: 0 !important;
}

.bootstrap-datetimepicker-widget table th {
  border: 0 !important;
}

.timepicker .bootstrap-datetimepicker-widget table td,
.timepicker .bootstrap-datetimepicker-widget table td span {
  height: 30px !important;
  line-height: 30px !important;
}

.min-w-200px {
  min-width: 200px !important;
}

.modal-iframe iframe {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  border: none;
}

.form-check input[type="radio"],
.form-check label {
  cursor: pointer;
}

.input-group:has([readonly]) [data-toggle="datetimepicker"] {
  cursor: default;
  pointer-events: none;
}