@charset "UTF-8";
body {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

header .img-mark {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 50px;
}

#files-list img {
  max-width: 100px;
  max-height: 100px;
  width: auto;
  height: auto;
}

#sidebar {
  position: sticky;
  top: 50px;
  max-height: calc(100vh - 50px);
  overflow: scroll;
}
#sidebar .nav-item-parent {
  margin-bottom: 0.2rem;
  border-bottom: 1px dashed #666;
}
#sidebar .nav-link {
  color: #333;
}
#sidebar .nav-link.active {
  color: #2470dc;
  border: 1px solid #2470dc;
  border-radius: 0.2em;
}
#sidebar i {
  font-size: 0.8em;
  padding-top: 0.1em;
  padding-right: 0.2em;
}
#sidebar a:link, #sidebar a:visited {
  color: #074080;
}
#sidebar .active {
  border: 3px double #074080;
  border-radius: 0.2em;
}
#sidebar button {
  font-size: 11pt;
}

#search-sender-box .form-check {
  padding: 0.1rem 0.5rem 0.1rem 0.3rem;
  margin-right: 1.8rem;
}
#search-sender-box .form-check label {
  cursor: pointer;
  font-size: 0.85rem;
}
#search-sender-box .active {
  border: 1px solid #4573fc;
  border-radius: 4px;
  background: #eff2fc;
}

main {
  padding-top: 1rem;
}
main .nav-flag {
  padding: 0.2rem 0rem;
  border-top: 1px dashed silver;
  line-height: 2;
}
main .nav-flag .btn-sm {
  font-weight: bold;
  padding: 0.1rem 0.6rem;
}
main .nav-flag .btn-xs {
  font-weight: bold;
  font-size: 0.8rem;
  padding: 0.1rem 0.6rem;
}
main .nav-flag .btn-sm::before {
  content: "☐ ";
  font-size: 1.1rem;
}
main .nav-flag .btn-note::before {
  content: "";
}
main .nav-flag .btn-sm.active::before {
  content: "☑ ";
}
main .col-form-label {
  text-align: right;
  padding-right: 0.5rem;
}
main .number {
  font-size: 1.5rem;
  font-weight: bold;
  width: 3rem;
  height: 3rem;
  padding: 0.5rem;
  margin-right: 0.5rem;
  text-align: center;
  display: inline-block;
  background-color: #ededed;
  border-radius: 50%;
  font-family: "M PLUS 1 Code", monospace;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}
main h1 {
  font-size: 1.5rem;
  border-bottom: 1px solid silver;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}
main h2 {
  font-size: 1.5rem;
}
main h3 {
  font-size: 1.1rem;
}
main hr {
  margin: 20px 10px;
}
main .title {
  font-weight: 600;
}
main .title i {
  margin-right: 0.3rem;
  font-size: 1.4rem;
}
main .opengraph {
  margin: 0.5rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  overflow: hidden;
}
main .opengraph img {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  border-radius: 2px;
}
main .opengraph a {
  font-size: 0.8rem;
  display: block;
}
main .opengraph a:before {
  content: "▶︎ ";
}
main .opengraph a:link, main .opengraph a:visited {
  color: #333;
  text-decoration: none;
}
main .badge-id {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  z-index: 1001;
  font-size: 0.6rem;
}
main .info {
  font-size: 0.86rem;
  position: absolute;
  bottom: 0rem;
  right: 4rem;
  z-index: 1000;
}
main .info .badge {
  font-size: 0.8rem;
  border-width: 3px;
  border-style: double;
  background-color: #fff;
}
main .info .sender {
  font-size: 1rem;
  cursor: pointer;
}
main .container-flag {
  position: absolute;
  bottom: 0.1rem;
  left: 5rem;
  z-index: 1000;
}
main .accordion-header {
  position: relative;
}
main .accordion-button:not(.collapsed) {
  color: #333;
  background-color: #fff;
}
main .accordion-button {
  padding-bottom: 2rem;
  overflow: hidden;
}
main .header-recording {
  position: relative;
}
main .select-recording {
  position: absolute;
  bottom: 0.15rem;
  right: 0.2rem;
  width: 30vw;
}
main .lds-spinner,
main .lds-spinner div,
main .lds-spinner div:after {
  box-sizing: border-box;
}
main .lds-spinner {
  color: currentColor;
  display: block;
  position: relative;
  margin: 10px auto;
  width: 40px;
  height: 40px;
}
main .lds-spinner div {
  transform-origin: 20px 20px;
  animation: lds-spinner 1.2s linear infinite;
}
main .lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 1.6px;
  left: 18.4px;
  width: 3.2px;
  height: 8.8px;
  border-radius: 20%;
  background: currentColor;
}
main .lds-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
main .lds-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
main .lds-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
main .lds-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
main .lds-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
main .lds-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
main .lds-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
main .lds-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
main .lds-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
main .lds-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
main .lds-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
main .lds-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}
main .note .card-header {
  cursor: pointer;
  padding: 0.2rem;
  font-size: 0.9rem;
}
main .note .card-header .badge {
  font-size: 1.2rem;
  border-radius: 50%;
  text-align: center;
  margin-right: 0.5rem;
}
main .note .card-header p {
  margin: 0.5rem;
}
main .note .card-body {
  position: relative;
}
main .note .btn-note {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
}
main .attachments {
  width: 100%;
}
main .attachments h5 {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0.2rem;
  padding: 0.2rem;
}
main .attachments ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
main .attachments ul li {
  text-align: center;
}
main .attachments img {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  border-radius: 0.4rem;
}

@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
#table-data {
  border-collapse: collapse;
}
#table-data thead {
  position: sticky;
  top: 100px;
  left: 0;
  background: #fff;
  border-bottom: double 3px #666;
  z-index: 100;
}
#table-data thead th {
  font-size: 0.8rem;
  position: relative;
}
#table-data thead th i {
  min-width: 1em;
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  cursor: pointer;
}
#table-data tbody .cell-command button {
  font-size: 0.86rem;
  min-width: 6rem;
}
#table-data tbody td {
  font-size: 0.85rem;
}
#table-data tbody img {
  max-width: 100px;
  max-height: 100px;
  width: auto;
  height: auto;
  border-radius: 10px;
  margin: 2px;
}
#table-data .text-id {
  font-size: 0.45rem;
}

@media screen and (max-width: 768px) {
  main .number {
    position: absolute;
    top: -5px;
    left: -5px;
    font-size: 1.2rem;
    width: 2.4rem;
    height: 2.4rem;
  }
  main h1 {
    padding-bottom: 2.6rem;
  }
  main .info {
    right: 1rem;
    bottom: 1rem;
  }
  main .info .sender {
    font-size: 0.8rem;
  }
  main .badge-id {
    display: none;
  }
  main .title {
    font-size: 0.9rem;
    margin-left: 22px;
  }
  main .container-flag {
    left: 0.2rem;
  }
  main .accordion-header {
    padding-bottom: 2rem;
  }
  main .accordion-body {
    padding: 1rem;
  }
  main .accordion-body p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }
  main .select-recording {
    width: 90vw;
  }
  main .attachments img {
    max-width: 100%;
  }
  main .attachments ul {
    grid-template-columns: repeat(2, 1fr);
  }
}
