@charset "UTF-8";
.rails-bootstrap-forms-date-select select,
.rails-bootstrap-forms-time-select select,
.rails-bootstrap-forms-datetime-select select {
  display: inline-block;
  width: auto;
}

.rails-bootstrap-forms-error-summary {
  margin-top: 10px;
}

.mentions-input-box {
  position: relative;
  background: #fff;
}

.mentions-input-box textarea {
  overflow: hidden;
  background: transparent;
  position: relative;
  resize: none;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.mentions-input-box .mentions-autocomplete-list {
  display: none;
  background: #fff;
  border: 1px solid #b2b2b2;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 10000;
  margin-top: -2px;
  border-radius: 5px;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.148438);
  -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.148438);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.148438);
}

.mentions-input-box .mentions-autocomplete-list ul {
  margin: 0;
  padding: 0;
}

.mentions-input-box .mentions-autocomplete-list li {
  background-color: #fff;
  padding: 0 5px;
  margin: 0;
  width: auto;
  border-bottom: 1px solid #eee;
  height: 26px;
  line-height: 26px;
  overflow: hidden;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.mentions-input-box .mentions-autocomplete-list li:last-child {
  border-radius: 5px;
}

.mentions-input-box .mentions-autocomplete-list li > img,
.mentions-input-box .mentions-autocomplete-list li > div.icon {
  width: 16px;
  height: 16px;
  float: left;
  margin-top: 5px;
  margin-right: 5px;
  -moz-background-origin: 3px;
  border-radius: 3px;
}

.mentions-input-box .mentions-autocomplete-list li em {
  font-weight: bold;
  font-style: none;
}

.mentions-input-box .mentions-autocomplete-list li:hover,
.mentions-input-box .mentions-autocomplete-list li.active {
  background-color: #f2f2f2;
}

.mentions-input-box .mentions-autocomplete-list li b {
  background: #ffff99;
  font-weight: normal;
}

.mentions-input-box .mentions {
  position: absolute;
  left: 1px;
  right: 0;
  top: 1px;
  bottom: 0;
  padding: 9px;
  color: #fff;
  overflow: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.mentions-input-box .mentions > div {
  color: #fff;
  white-space: pre-wrap;
  width: 100%;
}

.mentions-input-box .mentions > div > strong {
  font-weight: normal;
  background: #d8dfea;
}

.mentions-input-box .mentions > div > strong > span {
  filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);
}

.commontator .comment, .commontator .comment .body blockquote {
  border: none;
  border-top: 1px solid;
  border-left: 1px solid;
  font-weight: normal;
  color: #000;
}
.commontator .comment {
  clear: both;
  margin: 15px 0;
  border-color: #DDD;
  padding: 0;
  font-style: normal;
}
.commontator .comment .section {
  clear: both;
  margin: 5px 7px;
}
.commontator .comment .author {
  font-size: 110%;
}
.commontator .comment .actions {
  font-size: 90%;
}
.commontator .comment .avatar {
  float: left;
  margin-right: 7px;
}
.commontator .comment .votes {
  float: right;
  margin-left: 7px;
  text-align: center;
}
.commontator .comment .votes input, .commontator .comment .votes img {
  background-color: transparent;
}
.commontator .comment .upvote, .commontator .comment .downvote {
  display: block;
  height: 18px;
  margin: 5px 0;
}
.commontator .comment .like {
  float: left;
  margin: 0 5px;
}
.commontator .comment .vote-count {
  font-size: 110%;
}
.commontator .comment .body {
  overflow: hidden;
}
.commontator .comment .body blockquote {
  border-color: #CCC;
  padding: 5px 7px;
  background-color: #EEE;
  font-style: italic;
}
.commontator .comment .reply, .commontator .comment .timestamp {
  font-size: 90%;
}
.commontator .comment .timestamp {
  color: #666;
}
.commontator .comment .error-explanation {
  margin-bottom: 10px;
}
.commontator .comment .error-explanation h3 {
  margin-top: 5px;
}
.commontator .comment .error-explanation ul {
  list-style-position: inside;
}
.commontator .comment .pagination {
  margin: 10px 7px;
}

.commontator {
  /* Modified from: https://www.strangerstudios.com/sandbox/pagination/diggstyle.php */
}
.commontator *:not(input):not(textarea) {
  margin: 0;
  border: none;
  padding: 0;
}
.commontator .commontator-hidden {
  display: none;
}
.commontator .header {
  display: block;
  overflow: hidden;
}
.commontator .actions {
  float: right;
  margin-left: 10px;
}
.commontator .status {
  font-size: 120%;
  font-weight: bold;
  font-style: normal;
}
.commontator .comment-list {
  background-color: #FFF;
}
.commontator .children {
  padding-left: 15px;
}
.commontator .page-entries-info, .commontator .will-paginate {
  margin: 10px 0;
}
.commontator .pagination a {
  margin-right: 4px;
  padding: 2px 5px 2px 5px;
  border: 1px solid #999;
  color: #666;
  text-decoration: none;
}
.commontator .pagination a:hover, .commontator .pagination a:active {
  border: 1px solid #555;
  color: #000;
}
.commontator .pagination em {
  margin-right: 4px;
  border: 1px solid #555;
  padding: 2px 5px 2px 5px;
  background-color: #555;
  font-weight: bold;
  color: #FFF;
}
.commontator .pagination .name {
  margin: 2px 9px 2px 0;
}
.commontator .pagination .disabled {
  margin-right: 4px;
  border: 1px solid #EEE;
  padding: 2px 5px 2px 5px;
  color: #DDD;
}
.commontator .mentions {
  left: -8px;
  top: -8px;
  font-family: monospace;
  font-size: 13.3333px;
}
.commontator .field textarea {
  width: 100%;
  padding: 0;
  overflow: auto;
}
.commontator .submit {
  margin: 10px 0;
}

.commontator .comment, .commontator .comment .body blockquote {
  border: none;
  border-top: 1px solid;
  border-left: 1px solid;
  font-weight: normal;
  color: #000;
}
.commontator .comment {
  clear: both;
  margin: 15px 0;
  border-color: #DDD;
  padding: 0;
  font-style: normal;
}
.commontator .comment .section {
  clear: both;
  margin: 5px 7px;
}
.commontator .comment .author {
  font-size: 110%;
}
.commontator .comment .actions {
  font-size: 90%;
}
.commontator .comment .avatar {
  float: left;
  margin-right: 7px;
}
.commontator .comment .votes {
  float: right;
  margin-left: 7px;
  text-align: center;
}
.commontator .comment .votes input, .commontator .comment .votes img {
  background-color: transparent;
}
.commontator .comment .upvote, .commontator .comment .downvote {
  display: block;
  height: 18px;
  margin: 5px 0;
}
.commontator .comment .like {
  float: left;
  margin: 0 5px;
}
.commontator .comment .vote-count {
  font-size: 110%;
}
.commontator .comment .body {
  overflow: hidden;
}
.commontator .comment .body blockquote {
  border-color: #CCC;
  padding: 5px 7px;
  background-color: #EEE;
  font-style: italic;
}
.commontator .comment .reply, .commontator .comment .timestamp {
  font-size: 90%;
}
.commontator .comment .timestamp {
  color: #666;
}
.commontator .comment .error-explanation {
  margin-bottom: 10px;
}
.commontator .comment .error-explanation h3 {
  margin-top: 5px;
}
.commontator .comment .error-explanation ul {
  list-style-position: inside;
}
.commontator .comment .pagination {
  margin: 10px 7px;
}

.atwho-view {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  margin-top: 18px;
  background: white;
  color: black;
  border: 1px solid #DDD;
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  z-index: 11110 !important;
}

.atwho-view .atwho-header {
  padding: 5px;
  margin: 5px;
  cursor: pointer;
  border-bottom: solid 1px #eaeff1;
  color: #6f8092;
  font-size: 11px;
  font-weight: bold;
}

.atwho-view .atwho-header .small {
  color: #6f8092;
  float: right;
  padding-top: 2px;
  margin-right: -5px;
  font-size: 12px;
  font-weight: normal;
}

.atwho-view .atwho-header:hover {
  cursor: default;
}

.atwho-view .cur {
  background: #3366FF;
  color: white;
}

.atwho-view .cur small {
  color: white;
}

.atwho-view strong {
  color: #3366FF;
}

.atwho-view .cur strong {
  color: white;
  font: bold;
}

.atwho-view ul {
  /* width: 100px; */
  list-style: none;
  padding: 0;
  margin: auto;
  max-height: 200px;
  overflow-y: auto;
}

.atwho-view ul li {
  display: block;
  padding: 5px 10px;
  border-bottom: 1px solid #DDD;
  cursor: pointer;
  /* border-top: 1px solid #C8C8C8; */
}

.atwho-view small {
  font-size: smaller;
  color: #777;
  font-weight: normal;
}

.status_messages .message-icon {
  color: var(--bs-gray) !important;
}
.status_messages .message-icon:hover {
  color: var(--bs-black) !important;
}
.status_messages .pinned-icon, .status_messages .pin-icon, .status_messages .hide-icon {
  cursor: pointer;
}
.status_messages .pinned-icon a, .status_messages .pin-icon a, .status_messages .hide-icon a {
  color: inherit !important;
}
.status_messages .pinned-icon .active, .status_messages .pinned-icon .inactive {
  color: var(--bs-warning) !important;
}
.status_messages .pinned-icon .active svg, .status_messages .pinned-icon .inactive svg {
  fill: currentColor;
}
.status_messages .hidden-icon .active, .status_messages .hidden-icon .inactive {
  color: var(--bs-gray-dark) !important;
}
.status_messages .hidden-icon .active svg, .status_messages .hidden-icon .inactive svg {
  fill: currentColor;
}
.status_messages .message .pin-icon, .status_messages .message .hide-icon {
  opacity: 0 !important;
}
.status_messages .message:hover .pin-icon, .status_messages .message:hover .hide-icon {
  opacity: 1 !important;
}
.status_messages .pin-icon:hover svg, .status_messages .hide-icon:hover svg {
  fill: currentColor;
}

.text-nickname {
  color: #1f5737;
}

.text-deleted {
  color: #848383;
  text-decoration: line-through;
}
.text-deleted:hover {
  color: #848383;
}

.card-title {
  color: #4d5052 !important;
}

.card-disabled {
  background-color: #f0f0f0;
  opacity: 0.6;
  transition: background-color 0.2s ease;
}
.card-disabled:hover {
  background-color: #e0e0e0;
}

.nav-muted {
  color: #6c757d !important;
}
.nav-muted.active {
  color: #e8e4e4 !important;
  background: #3f3f3f !important;
}

.table-py-sm > :not(caption) > * > * {
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
}

.table-max {
  min-width: 100% !important;
  width: max-content !important;
}

.sidebar-header {
  padding: 0.5rem 1.5rem 0.3rem !important;
}

.sidebar-link,
a.sidebar-link {
  padding: 0.4rem 1.625rem !important;
}

.turbo-progress-bar {
  height: 5px;
  background: #5076e5;
}

.navbar .nav-item .nav-link {
  padding: 7px;
}
.navbar .avatar-letter {
  line-height: 38px;
}

.sidebar-brand {
  padding-bottom: 5px !important;
}

.field-required label:before {
  color: #c3486e;
  content: "✱ ";
  font-weight: bold;
}

.commontator-content {
  width: 100% !important;
}

.unopened_wrapper {
  position: absolute;
  margin-top: 20px;
  margin-left: 56px;
}

.unopened_wrapper .unopened_circle {
  display: block;
  width: 10px;
  height: 10px;
  position: absolute;
  border-radius: 50%;
  background-color: #27a5eb;
  z-index: 2;
}

.unopened_wrapper:hover > .unopened_description_wrapper {
  display: block;
}

.unopened_wrapper .unopened_description_wrapper {
  display: none;
  position: absolute;
  margin-top: 26px;
  margin-left: -24px;
}

.unopened_wrapper .unopened_description_wrapper .unopened_description {
  position: absolute;
  color: #fff;
  font-size: 12px;
  text-align: center;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.8);
  padding: 4px 12px;
  z-index: 999;
}

.unopened_wrapper .unopened_description_wrapper .unopened_description:before {
  border: solid transparent;
  content: "";
  display: block;
  position: absolute;
  width: 0;
  left: 50%;
  top: -5px;
  margin-left: -5px;
  height: 0;
  border-width: 0 5px 5px 5px;
  border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
  z-index: 0;
}

/* list */
.notification_list {
  padding: 10px 10px 10px 10px;
  position: relative;
  border-bottom: 1px solid #e5e5e5;
}

.notification_list.unopened {
  background-color: #eeeff4;
}

.notification_list:hover {
  background-color: #f8f9fb;
}

.notification_list:last-child {
  border-bottom: none;
}

.notification_list:after {
  content: "";
  clear: both;
  display: block;
}

.notification_list .notification_list_cover {
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.notification_list .list_image {
  float: left;
  width: 40px;
  height: 40px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.notification_list .list_text_wrapper {
  float: left;
  width: calc(100% - 60px);
  margin-left: 20px;
  margin-bottom: 10px;
}

.notification_list .list_text_wrapper .list_text {
  color: #4f4f4f;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 0;
  height: auto;
  font-weight: normal;
}

.notification_list .list_text_wrapper .list_text strong {
  font-weight: bold;
}

.notification_list .list_text_wrapper .list_text span.time {
  color: #676565;
  font-size: 14px;
}

.notification_list .message {
  line-height: 23px;
  padding: 15px;
  background: #f5f1f1;
  border: 1px solid #CCC;
}

.notification_wrapper {
  float: left;
  position: relative;
}

.notification_wrapper .dropdown_notification {
  cursor: pointer;
}

.notification_wrapper .dropdown_notification .notification_count span {
  color: #fff;
  background-color: #e5e5e5;
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 8px;
}

.notification_wrapper .dropdown_notification .notification_count span.unopened {
  background-color: #f87880;
}

.notification_wrapper.open .notification_list_wrapper {
  display: block;
}

@media (max-width: 768px) {
  .notification_wrapper.open .notification_list_wrapper {
    left: 50%;
    margin-left: -277px;
  }
}
.notification_wrapper .notification_list_wrapper {
  display: none;
  z-index: 999;
  min-width: 380px;
  max-height: 800px;
  border: 1px solid #e5e5e5;
  position: absolute;
  top: calc(100% + 20px);
  right: -10px;
  background-color: #fff;
}

.notification_wrapper .notification_list_wrapper .notification_header_wrapper {
  position: relative;
  width: 378px;
  height: 37px;
  border-bottom: 1px solid #e5e5e5;
  box-sizing: border-box;
  background-color: #fff;
}

.notification_wrapper .notification_list_wrapper .notification_header_wrapper .notification_header_title {
  position: absolute;
  top: 4px;
  left: 10px;
  font-size: 14px;
}

.notification_wrapper .notification_list_wrapper .notification_header_wrapper .notification_header_menu {
  position: absolute;
  top: 4px;
  right: 10px;
  font-size: 14px;
}

.notification_wrapper .notification_list_wrapper .notification_link_wrapper {
  bottom: 0;
  width: 330px;
  height: 23px;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  background-color: #fff;
  z-index: 2;
}

.notification_wrapper .notification_list_wrapper .notification_link_wrapper:hover {
  background-color: #f8f9fb;
}

.notification_wrapper .notification_list_wrapper .notification_link_wrapper .notification_link {
  text-align: center;
  font-size: 14px;
}

.dp-static .dp-static-icon, .dp-static .dp-static-title {
  cursor: pointer;
}
.dp-static .dp-static-title {
  padding: 0;
  line-height: 1.2;
}

.dp-static.dp-static-sm .dp-static-title {
  font-size: 0.99rem;
}

.dp-static.dp-static-md .dp-static-title {
  font-size: 1.35rem;
}

.dp-static.dp-static-lg .dp-static-title {
  font-size: 1.62rem;
}

.badge-wrap {
  /* 允許換行 */
  white-space: normal !important;
  /* 在必要時進行換行 */
  word-wrap: break-word;
  /* 強制長文字換行 */
  word-break: break-word;
}

.progress-circle {
  position: relative;
  display: inline-block;
}
.progress-circle .circular-chart {
  transform: rotate(-90deg); /* 讓起點從上方開始 */
}
.progress-circle .circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 5;
}
.progress-circle .circle {
  fill: none;
  stroke: #f66;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease;
}
.progress-circle .percentage-text {
  fill: #f66;
  font-size: 18px;
  font-family: Arial, Helvetica, "Liberation Sans", sans-serif !important;
  text-anchor: middle;
  dominant-baseline: middle;
  writing-mode: horizontal-tb !important;
  unicode-bidi: plaintext;
  letter-spacing: 0;
  font-feature-settings: "vert" 0, "vrt2" 0;
}
.progress-circle .progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f66;
  font-size: 13.5px;
  font-family: Arial, Helvetica, "Liberation Sans", sans-serif;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.link-offset-1 {
  text-underline-offset: 0.125em !important;
}

.link-offset-2 {
  text-underline-offset: 0.25em !important;
}

.link-offset-3 {
  text-underline-offset: 0.375em !important;
}

.dynamic-statuses-container .new-link, .dynamic-statuses .new-link {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.dynamic-statuses-container.hovering .new-link, .dynamic-statuses.hovering .new-link {
  opacity: 1 !important;
}

.dynamic-statuses table.dynamic-statuses-table td {
  padding: 0.15rem 0;
}
.dynamic-statuses .dynamic-status-row:hover {
  background-color: #f8f9fb;
}
.dynamic-statuses .dynamic-status-row .form-select.dynamic-status-label {
  padding-top: 0.05rem;
  padding-bottom: 0.05rem;
  padding-right: 1.5rem;
  background-position: right 0.3rem center;
}
.dynamic-statuses .dynamic-status-row .dynamic-status-title {
  line-height: 1.5rem;
  color: #4b4949;
}
.dynamic-statuses .dynamic-status-row .message-icon-hidden {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.dynamic-statuses .dynamic-status-row.hovering .message-icon-hidden {
  opacity: 1 !important;
}
.dynamic-statuses .message-text {
  color: #494848;
}
.dynamic-statuses .message-pinned .message-text {
  color: #d66363;
  font-weight: 500;
}

.dynamic-statuses .message-icon {
  color: var(--bs-gray) !important;
}
.dynamic-statuses .message-icon:hover {
  color: var(--bs-black) !important;
}
.dynamic-statuses .pinned-icon, .dynamic-statuses .pin-icon, .dynamic-statuses .hide-icon {
  cursor: pointer;
}
.dynamic-statuses .pinned-icon a, .dynamic-statuses .pin-icon a, .dynamic-statuses .hide-icon a {
  color: inherit !important;
}
.dynamic-statuses .pinned-icon .active, .dynamic-statuses .pinned-icon .inactive {
  color: var(--bs-warning) !important;
}
.dynamic-statuses .pinned-icon .active svg, .dynamic-statuses .pinned-icon .inactive svg {
  fill: currentColor;
}
.dynamic-statuses .hidden-icon .active, .dynamic-statuses .hidden-icon .inactive {
  color: var(--bs-gray-dark) !important;
}
.dynamic-statuses .hidden-icon .active svg, .dynamic-statuses .hidden-icon .inactive svg {
  fill: currentColor;
}
.dynamic-statuses .message .pin-icon, .dynamic-statuses .message .hide-icon {
  opacity: 0 !important;
}
.dynamic-statuses .message:hover .pin-icon, .dynamic-statuses .message:hover .hide-icon {
  opacity: 1 !important;
}
.dynamic-statuses .pin-icon:hover svg, .dynamic-statuses .hide-icon:hover svg {
  fill: currentColor;
}

.dropdown-menu.label-colors {
  min-width: auto;
}

.dropdown-item.label-color {
  padding-left: 1rem;
  padding-right: 1rem;
}
.dropdown-item.label-color .do-select {
  opacity: 0;
}
.dropdown-item.label-color:hover .do-select {
  opacity: 1;
}

textarea.no-resize {
  resize: none !important;
}

.tagify {
  --tag-pad: 0.15em 0.3em !important;
}

.dragula .dragula-move {
  cursor: move;
}

tbody.dragula tr.gu-mirror {
  display: table;
  width: 100%;
  table-layout: fixed;
}

tbody.dragula tr.gu-mirror > td {
  display: table-cell;
}

.badge.badge-lg {
  --bs-badge-padding-x: 0.5em;
  --bs-badge-padding-y: 0.33em;
  --bs-badge-font-size: 90%;
  line-height: 1.2;
  margin-bottom: 0.1em;
}

.table-borderless > :not(caption) > * > * {
  border-bottom-width: 0 !important;
}

.table-border-bottom-0 > :not(caption) > *:last-child > * {
  border-bottom-width: 0 !important;
}
