.custom-container {
  width: 80%;
  margin: 0 auto;
  background-color: #fff;
}

.bottom-container {
  display: block;
  padding: 10px 0;
  border-radius: 10px;
}

.bottom-container .bottom-container-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
}

.bottom-container .bottom-container-header select {
  padding: 5px;
  border-radius: 3px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: medium;
  color: #333;
  max-width: max-content;
}

.bottom-container .bottom-container-search {
  display: block;
}

.bottom-container .bottom-container-search select {
  padding: 5px;
  border-radius: 3px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: medium;
  color: #333;
  max-width: max-content;
}

.bottom-container .bottom-container-search input {
  padding: 5px;
  border-radius: 3px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: medium;
  color: #333;
  max-width: 30%;
}

.bottom-container .bottom-container-search button {
  background-color: #6D6D6D;
  border: 1px solid black;
  color: black;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.bottom-container .bottom-container-search button:hover {
  background-color: #C53B4B;
  border: 1px solid #F2BBD4;
  color: white;
}

.button-container button {
  background-color: #F2BBD4;
  border: 1px solid #C53B4B;
  color: black;
}

.button-container button:hover {
  background-color: #C53B4B !important;
  border: 1px solid #F2BBD4 !important;
  color: white !important;
}

.bottom-container-table {
  width: 100%;
}

.bottom-container-table thead {
  background-color: #9C9797;
  color: white;
}

.bottom-container-table thead th {
  text-align: center;
  font-weight: bold;
}

.bottom-container-table tbody tr {
  background-color: white;
  cursor: default;
}

.bottom-container-table tbody tr:hover {
  background-color: #f8f8f8;
  cursor: pointer;
}

.bottom-container-table tbody tr td {
  font-size: smaller;
}

.bottom-container-table tbody tr td[colspan] {
  pointer-events: none;
}

.bottom-container-table tbody tr td:first-child,
.bottom-container-table tbody tr td:nth-child(5) {
  width: 75px;
  text-align: center;
}
.bottom-container-table tbody tr td:nth-child(3),
.bottom-container-table tbody tr td:nth-child(4) {
  width: 150px;
  text-align: center;
}

.form-group {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-wrap: nowrap;
  justify-content: center;
}

.notice-write .form-group {
  justify-content: flex-start;
}

.form-group span {
  font-size: 14px;
  font-weight: bold;
  min-width: 120px;
  text-align: left;
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-control {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

.notice-detail-wrapper {
  padding: 0 24px;
}

.notice-detail {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 32px 36px;
  border-radius: 12px;
  background-color: #fafbfc;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  font-family: 'Noto Sans KR', sans-serif;
  color: #222;
  margin-top: 10px;
  min-height: 60vh;
  gap: 10px;
}

.notice-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #ddd;
}

.notice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  color: #666;
  /* margin-bottom: 24px; */
}

.notice-body {
  font-size: 15.5px;
  line-height: 1.75;
  color: #333;
  white-space: pre-line;
  padding-top: 12px;
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e5e5e5;
  min-height: 30vh;
}

.notice-divider {
  height: 1px;
  background-color: #eee;
  margin-bottom: 24px;
}

.notice-body img {
  max-width: 100%;
  height: auto;
}

.notice-body h1, .notice-body h2 {
  font-weight: 600;
  margin-top: 1.5em;
}

.notice-body ul, .notice-body ol {
  padding-left: 20px;
}

p {
  margin: 0;
}

.notice-title-input {
  height: 40px;
}

.note-editor {
  border-radius: 8px;
  overflow: hidden;
}

.note-editor .note-toolbar {
  border-radius: 8px 8px 0 0;
}

.note-editor .note-editable {
  font-size: 15px;
  line-height: 1.6;
  padding: 16px;
  background-color: #fafafa;
  border-radius: 0 0 8px 8px;
}

.none-read {
  font-weight: bold;
}

.selected {
  background-color: #f8f8f8;
}

.note-editable span {
  background-color: transparent;
}

#post_type,
#post_public_type,
#post_public_type {
  max-width: max-content;
  min-height: 40px;
  padding-top: 0;
  padding-bottom: 0;
}

.notice-write {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.drop-zone {
  border: 2px dashed #aaa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: #666;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
  flex: 1;
}

.drop-zone p {
  margin: 0;
}

.file-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px;
  /* font-size: 0.9rem; */
}

.file-list li {
  border-bottom: 1px solid #eee;
  padding: 6px 0;
  justify-content: unset !important;
}
.file-list li:last-child {
  border-bottom: none;
}

.modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
}

.modal-content {
  background: #fff;
  padding: 20px;
  margin: 10% auto;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  font-family: 'Arial', sans-serif;
}

.note-dropdown-menu {
  box-sizing: unset;
}

.note-editable * {
  background-color: transparent;
  color: inherit;
}

.post-title {
  display: flex;
  align-items: center;
}

.depth-arrow {
  width: 16px;
  margin-right: 4px;
  opacity: 0.5;
}

.depth-indent {
  display: inline-block;
  width: calc(var(--depth) * 16px);
}

#comment-section textarea {
  width: 100%;
  /* min-height: 60px;
  margin-bottom: 5px; */
  border: 1px solid #ccc;
  border-radius: 4px;
}

#comment-list {
  margin: 10px 0 0 0;
  border-top: 1px solid #ddd;
  list-style: none;
  padding: 10px 0;
}

/* #comment-list li { */
  /* margin-bottom: 10px; */
  /* border-bottom: 1px solid #ddd; */
  /* padding-bottom: 5px; */
/* } */

#comment-list ul {
  /* margin-top: 5px; */
  /* padding-left: 20px; */
  /* border-left: 2px solid #eee; */
  list-style: none;
  margin: 0 0 0 15px;
}

#comment-section button:not(.comments-reply-header button) {
  border: 0.125rem solid #009090 !important;
  border-radius: 0.25rem;
  background-color: white !important;
  color: #009090 !important;
  padding: 0.375rem 0.625rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

#comment-section button:not(.comments-reply-header button):hover {
  background-color: #009090 !important;
  color: white !important;
}

.reply-icon {
  display: inline-block;        /* transform Àû¿ë À§ÇØ ÇÊ¼ö */
  transform: rotate(180deg);        /* ¡ç ÁÂ¿ì ¹ÝÀü */
}

.comments-reply-header button {
  background-color: #f9f9f9 !important;
  border: none !important;
  color: black !important;
  box-shadow: none !important;
  padding: 0;
}

@media screen and (max-width: 768px) {
  .custom-container {
    display: block;
    width: 80%;
  }

  .bottom-container {
    flex-direction: column;
    width: 100%;
    margin-bottom: 10px;
  }

  .bottom-container-table, 
  .bottom-container-table thead, 
  .bottom-container-table tbody, 
  .bottom-container-table th, 
  .bottom-container-table td, 
  .bottom-container-table tr {
      display: block;
  }

  .bottom-container-table thead {
      display: none;
  }

  .bottom-container-table tr {
      margin-bottom: 15px;
      border: 1px solid #ddd;
      padding: 10px;
      background: #fff;
  }

  .bottom-container-table td {
      display: flex;
      justify-content: space-between;
      padding: 8px;
      border-bottom: 1px solid #eee;
      width: auto !important;
  }

  .bottom-container-table td:last-child {
      border-bottom: none;
  }

  .bottom-container-table td::before {
      content: attr(data-label);
      font-weight: bold;
      color: #555;
  }

  .bottom-container .bottom-container-search button {
    width: 100%;
    margin-top: 10px;
  }

  .form-group {
    flex-direction: column;
  }

  .form-group input {
      width: 100%;
  }

  .notice-detail {
    padding: 24px;
  }

  .notice-title {
    font-size: 20px;
  }

  .notice-body {
    font-size: 15px;
  }

  #comment-list > li {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    font-size: 14px;
  }

  #comment-list li > div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
  }

  #comment-list strong {
    font-weight: bold;
    margin-right: 6px;
  }

  .comments-reply-content {
    margin-top: 6px;
    white-space: pre-line;
    line-height: 1.5;
    padding-left: 6px;
  }

  .comment-section button {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
  }

  .depth-arrow {
    font-weight: bold;
    margin-right: 4px;
    color: #888;
  }

  /* ´ë´ñ±Û µé¿©¾²±â */
  #comment-list li > ul > li {
    margin-left: 16px;
    border-left: 2px solid #ddd;
    padding-left: 10px;
  }

  /* ÁßÃ¸ ´ë´ñ±Û Ãß°¡ ¿©¹é */
  #comment-list li > ul > li > ul > li {
    margin-left: 14px;
  }

  /* ´ñ±Û ÀÔ·ÂÃ¢ */
  #comment-section textarea {
    font-size: 13px;
    padding: 8px;
    margin-top: 8px;
  }

  #comment-section .form-group {
    flex-direction: row;
    gap: 6px;
    justify-content: space-between;
    margin-top: 6px;
  }

  #comment-section .form-group button {
    flex-shrink: 0;
    padding: 6px 12px;
  }

  #comment-list ul {
    margin-left: 0;
    padding-left: 0;
  }

  .comments-reply-header button {
    background-color: #fff !important;
  }
}
