dd {
  word-break: break-all;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--multiple {
  border: 1px solid rgb(212, 212, 212) !important;
}

/* 為單選的 select2 添加高度樣式，與原生 select 保持一致 */
.select2-container--default .select2-selection--single {
  height: 42px !important;
  line-height: 42px !important;
  border: 1px solid rgb(212, 212, 212) !important;
  border-radius: 6px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px !important;
  padding-left: 12px !important;
  padding-right: 30px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
  width: 30px !important;
}

.js-select2-multiple {
  width: 100%;
}

body,
.bg-gray-200,
.company-content {
  background: rgb(238, 238, 238);
}

.nav-m {
  gap: 1px;
}
.nav-m .nav--links--item {
  background: white;
}

.el-status\:grayscale-0[el-status=true] {
  --tw-grayscale: grayscale(100%);
}

.el-status\:w-10\/12[el-status=true] {
  width: 50%;
}

.el-status\:rotate-0[el-status=true] {
  --tw-rotate: 90deg;
}

.-rotate-90.el-status\:rotate-0[el-status=true] {
  --tw-rotate: -90deg;
}

.pt-\[112px\] {
  padding-top: 139px;
}

@media (min-width: 768px) {
  .md\:pt-\[76px\] {
    padding-top: 76px;
  }
}
.matchmaking {
  background: #EFEFEF url(../images/bg_matchmaking.png) no-repeat right top;
  background-size: 90% auto;
  padding: 80px 0 120px;
}

.matchmaking-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
}

.mmcard {
  background: white;
  border-radius: 20px;
  padding: 20px 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.5em;
}
.mmcard h3 {
  color: #3D11D7;
  font-size: 1.375em;
  font-weight: 700;
}
.mmcard > div {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.mmcard dl {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5em;
  margin: 5px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

.mmcard dl dt {
  max-width: 33.33%;
  font-weight: bold;
  margin: 0;
}

.mmcard dl dd {
  margin: 0;
}

.mmcard dl dd p {
  margin: 0;
}
.mmcard .btn {
  margin: auto;
}

.mmcard.active {
  -webkit-box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, 0.2509803922);
          box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, 0.2509803922);
}

.list {
  padding: 0 1em;
}

.list:has(.mmcard) {
  margin: auto;
  max-width: 1024px;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1em 1fr 1em 1fr;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}
.list:has(.mmcard) .mmcard .btn {
  margin: 0;
}

.matchmaking-main {
  padding: 0 1em;
  max-width: 1024px;
  margin: 2em auto 4em;
}
.matchmaking-main p {
  margin: 1em auto;
  max-width: 768px;
  line-height: 1.5;
}
.matchmaking-main .mmcard {
  max-width: 526px;
  margin: 20px auto;
}
.matchmaking-main .mmcard h3 {
  text-align: center;
}

.text-purple {
  color: #3D11D7;
}

.text-red {
  color: #FD5555;
}

.hr {
  border-top-width: 1px;
  border-color: rgb(107 114 128/var(--tw-bg-opacity));
}

.mmgrid {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  border: 1px solid #000000;
  margin: 2em auto;
  max-width: 900px;
  padding: 2em 10%;
}
.mmgrid .mmgrid-desc {
  margin: 1.5em auto;
  max-width: 540px;
  font-size: 14px;
}
.mmgrid a {
  text-decoration: underline;
}
.mmgrid h3 {
  margin: 1em 0 0.5em;
}
.mmgrid hr {
  border-color: #000;
  margin: 1.5em auto;
}
.mmgrid li {
  margin-left: 1.5em;
}
.mmgrid ul li {
  list-style-type: disc;
}
.mmgrid ::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  border-radius: 3px;
}
.mmgrid ::-webkit-scrollbar-track {
  background: transparent;
}
.mmgrid ::-webkit-scrollbar-thumb {
  background: #eee;
  border-radius: 3px;
}
.mmgrid ::-webkit-scrollbar-thumb:hover {
  background: #ddd;
}

.scroll-x {
  overflow-x: auto;
}

.logos {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1em;
  padding: 1em;
}
.logos img {
  aspect-ratio: 1/1;
  -o-object-fit: cover;
     object-fit: cover;
  width: 120px;
  border: 1px solid #D4D4D4;
  border-radius: 8px;
  background: white;
}

a.btn,
.btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  padding: 0.5em 1.25em;
  border-radius: 0.5em;
  text-align: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-decoration: none;
}

.sortbox {
  background: #E9E9E9;
  border-radius: 12px;
  padding: 20px 12px;
}
.sortbox h4 {
  color: #F97316;
  text-align: center;
  margin-bottom: 4px;
  font-size: 13px;
}

.sortable {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 4px;
}
.sortable .item {
  background: #FFFFFF;
  border: 1px solid #B9B9B9;
  padding: 8px 12px;
  font-size: 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.sortable .item span {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.sortable .item:has(.delete) {
  color: #E3007F;
}

.sortable.flex-row {
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.sortable.flex-row .item {
  width: calc(50% - 2px);
}

.delete {
  width: 20px;
  height: 20px;
  position: relative;
}
.delete span:before,
.delete span:after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #9CA3AF;
  position: absolute;
  top: 50%;
  left: 0;
}
.delete span:before {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
.delete span:after {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

.fill-white {
  fill: #ffffff;
}

.w-\[70px\] {
  width: 70px;
}

.pb-\[50px\] {
  padding-bottom: 50px;
}

.rounded-t-lg {
  border-radius: 0.5rem 0.5rem 0 0;
}

.pop-pinkhead {
  padding-right: 56px;
  position: relative;
  z-index: 0;
}
.pop-pinkhead .tabs {
  position: absolute;
  bottom: 0;
  left: 1em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
}
.pop-pinkhead .tabs a {
  padding: 5px 12px 3px;
  color: white;
  background: #F97316;
}
.pop-pinkhead .tabs a:first-child {
  border-radius: 8px 0 0 0;
}
.pop-pinkhead .tabs a:last-child {
  border-radius: 0 8px 0 0;
}
.pop-pinkhead .tabs a.active {
  padding: 8px 12px 5px;
  border-radius: 8px 8px 0 0;
  background: white;
  color: #F97316;
}

.list-table th,
.list-table td {
  border: 1px solid #B9B9B9;
  padding: 0.25em;
}
.list-table th {
  background: rgba(0, 0, 0, 0.0588235294);
}

.scroll-y {
  overflow-y: auto;
  max-height: 40vh;
}
.scroll-y ::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  border-radius: 3px;
}
.scroll-y ::-webkit-scrollbar-track {
  background: transparent;
}
.scroll-y ::-webkit-scrollbar-thumb {
  background: #eee;
  border-radius: 3px;
}
.scroll-y ::-webkit-scrollbar-thumb:hover {
  background: #ddd;
}

input[type=checkbox] {
  border-radius: 3px;
}

.timepick {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 2px;
  margin-bottom: 6px;
}
.timepick .date {
  min-width: 90px;
}
.timepick .time-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 4px;
}
.timepick .time-list .item {
  text-align: center;
  width: 52px;
}
.timepick .time-list .item time {
  display: none;
}
.timepick .time-list .item .selections {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 2px;
  background: white;
  border: 1px solid white;
}
.timepick .time-list .item .selections span {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 42px;
  background: rgb(229, 231, 235);
}
.timepick .time-list .item .selections span input {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.timepick .time-list .item .selections span em {
  position: absolute;
  margin-left: -4em;
  display: block;
  font-style: normal;
  font-size: 12px;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px;
  display: none;
  opacity: 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  z-index: 2;
}
.timepick .time-list .item .selections span:hover em {
  opacity: 1;
  display: block;
}
.timepick .time-list .item .selections span:has(input[type=checkbox]:checked) {
  background: #E3007F;
}
.timepick .time-list .item .selections span:has(input[disabled]) {
  background: none;
}
.timepick .time-list .item .selections span:has(input[disabled]) em {
  display: none;
}
.timepick .time-list .item .selections a {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 42px;
  background: #f5f5f5;
}
.timepick .time-list .item .selections a.active {
  background: #E3007F;
}
.timepick .time-list .item .selections:has(input[disabled]) {
  border-color: transparent;
  background: none;
}

.timepick-title .time-list .item time {
  display: block;
}

.time-table {
  border-bottom: 1px dotted #000;
  padding-bottom: 1em;
}

@media (min-width: 768px) {
  .md\:w-\[100px\] {
    width: 100px;
  }
  .md\:w-\[70px\] {
    width: 70px;
  }
  .md\:w-1\/2 {
    width: 50%;
  }
  .md\:pb-0 {
    padding-bottom: 0;
  }
  .md\:bg-gray-200 {
    --tw-bg-opacity: 1;
    background-color: rgb(229 229 229/var(--tw-bg-opacity));
  }
}
@media (max-width: 768px) {
  .list:has(.mmcard) {
    -ms-grid-columns: (1fr)[2];
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .matchmaking {
    background-image: url(../images/bg_matchmaking@mb.png);
    background-position: right -80px;
    background-size: 100% auto;
  }
  .list:has(.mmcard) {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
  .mmgrid {
    background: none;
    border: 0;
    padding: 0;
    margin-top: 0;
  }
  .mmgrid .logos {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
  }
  .mmgrid ::-webkit-scrollbar-thumb {
    background: #fff;
  }
  .mmgrid .md\:w-\[100px\] {
    width: 100px;
  }
  .md-col {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .sortable.flex-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .sortable.flex-row .item {
    width: 100%;
  }
  .timepick {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    margin-bottom: 1em;
  }
  .timepick .date {
    font-size: 20px;
    font-weight: bold;
  }
  .timepick .time-list .item time {
    display: block;
  }
  .timepick .time-list .item .selections span em {
    margin-left: -2em;
  }
  .timepick-title {
    display: none;
  }
  .pop-pinkhead:has(.tabs) {
    padding-bottom: 40px;
  }
  .pop-pinkhead:has(.tabs) .tabs {
    font-size: 14px;
  }
}
