.bk21-notice-list,
.bk21-notice-detail {
  margin: 72px auto 0;
}

.bk21-notice-search {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 24px;
}

.bk21-notice-search select,
.bk21-notice-search input {
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  outline: none;
}

.bk21-notice-search select {
  cursor: pointer;
  width: 96px;
  padding: 0 10px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff
    url("data:image/svg+xml;charset=UTF-8,<svg width='15' height='15' xmlns='http://www.w3.org/2000/svg'><polygon points='4,6 8,11 12,6' fill='%23333'/></svg>")
    no-repeat 87% center/16px 16px;
}

@media (max-width: 480px) {
  .bk21-notice-search select {
    background-position: 91% center;
  }
}

.bk21-notice-search input {
  width: 230px;
  padding: 0 12px;
}

.bk21-notice-search button {
  width: 64px;
  height: 38px;
  background: var(--color-primary);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  border: none;
}

.bk21-notice-table-wrap {
  border-top: 2px solid #222;
  overflow-x: auto;
}

.bk21-notice-table {
  width: 100%;
  border-collapse: collapse;
  color: #555;
  font-size: 15px;
}

.bk21-notice-table th,
.bk21-notice-table td {
  border-bottom: 1px solid #e5e5e5;
  padding: 15px 12px;
  text-align: center;
  vertical-align: middle;
  font-weight: var(--font-weight-medium);
}

.bk21-notice-table th {
  background: #f4f4f4;
  color: #222;
  font-weight: var(--font-weight-medium);
}

.bk21-notice-table tbody tr.is-notice {
  background: rgba(31, 61, 122, 0.06);
}

.bk21-notice-title-cell {
  text-align: left !important;
}

.bk21-notice-title-cell a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.bk21-notice-title-cell a:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bk21-notice-label,
.bk21-notice-badge {
  color: var(--color-primary);
  font-weight: 900;
}

.bk21-notice-attach-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 900;
}

.bk21-notice-empty {
  height: 100px;
  color: #777;
  font-weight: 700;
}

.bk21-notice-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}

.bk21-notice-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #ddd;
  color: #555;
  font-weight: 800;
  text-decoration: none;
}

.bk21-notice-pagination a img {
  width: 24px;
  height: 24px;
}

.bk21-notice-pagination a.active {
  background: var(--color-primary);
  color: #fff;
}

.bk21-notice-detail {
  border-top: 2px solid #222;
}

.bk21-notice-detail-head {
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
  word-wrap: break-word;
}

.bk21-notice-detail-head h2 {
  margin: 0 0 15px;
  color: #111;
  font-size: var(--font-size-base);
  text-align: left;
}

.bk21-notice-detail-head dl {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  color: #666;
  font-size: 15px;
}

.bk21-notice-detail-head dl div {
  display: flex;
  gap: 8px;
}

.bk21-notice-detail-head dt {
  color: #222;
  font-weight: 900;
}

.bk21-notice-detail-head dd {
  margin: 0;
}

.bk21-notice-detail-head dl div:has(.bk21-notice-attachments) {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.bk21-notice-detail-head dd:has(.bk21-notice-attachment-link),
.bk21-notice-attachments {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

a.bk21-notice-attachment-link,
a.bk21-notice-attachment-link:hover {
  display: flex;
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-right: 0;
}

.bk21-notice-detail-body {
  /* height: 320px; */
  padding: 15px 0;
  color: #444;
  font-size: 17px;
  line-height: 1.85;
}

.bk21-notice-detail-body a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bk21-notice-detail-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.bk21-notice-detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 50px;
  border-radius: 0;
  background: var(--color-primary);
  color: #fff;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .bk21-notice-title-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (min-width: 1024px) {
  .bk21-notice-title-cell {
    max-width: 480px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 768px) {
  .bk21-notice-search {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 58px;
  }

  .bk21-notice-search input {
    width: auto;
  }

  .bk21-notice-table-wrap {
    overflow-x: hidden;
  }

  .bk21-notice-table,
  .bk21-notice-table tbody {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .bk21-notice-table {
    border: 0;
    table-layout: fixed;
  }

  .bk21-notice-table-caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .bk21-notice-table colgroup {
    display: none;
  }

  .bk21-notice-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .bk21-notice-table tbody tr {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
    border: 1px solid #bbb;
  }

  .bk21-notice-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .bk21-notice-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 14px;
    text-align: right;
    border-bottom: 1px solid #bbb;
  }

  .bk21-notice-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    min-width: 64px;
    color: #222;
    font-weight: 700;
    text-align: left;
  }

  .bk21-notice-table td:last-child {
    border-bottom: 0;
  }

  .bk21-notice-title-cell {
    text-align: right !important;
  }

  .bk21-notice-title-cell a {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
  }

  .bk21-notice-empty {
    display: block !important;
    height: 140px;
    line-height: 140px;
    padding: 0;
    text-align: center;
  }

  .bk21-notice-empty::before {
    display: none;
  }

  .bk21-notice-detail-head h2,
  .bk21-notice-badge {
    font-size: 18px;
  }
  .bk21-notice-detail-head {
    padding: 10px 0 15px;
  }
  .bk21-notice-detail {
    margin: 46px auto 0;
  }
  .bk21-notice-detail-actions a {
    font-size: var(--font-seciton-title-sm);
    min-width: 80px;
    height: 45px;
  }
}
