/* User memo page — layout + action buttons (cs_center concept) */

.contents.memo_page {
  padding-top: 52px;
}

@media screen and (min-width: 768px) {
  .contents.memo_page {
    padding-top: 0;
  }

  .board_box.memo_board {
    padding-top: 0;
  }
}

.board_box.memo_board .page_ttl.only_pc {
  height: auto;
  line-height: 1.4;
  margin: 0;
  padding: 4px 8px 2px;
  text-align: left;
  background: transparent;
  font-size: 16px;
  font-weight: bold;
  color: #ebc79e;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.board_box.memo_board .page_ttl.only_pc i {
  margin-right: 8px;
  color: #ebc79e;
}

.board_box.memo_board .board_list {
  padding: 4px 8px 10px;
  background: rgba(31, 31, 31, 0.25);
  border: 1px solid #353535;
  box-sizing: border-box;
}

.memo_board .memo_summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0 0 6px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(60, 45, 30, 0.85), rgba(35, 28, 20, 0.9));
  border: 1px solid #4a3a28;
  border-radius: 6px;
  box-sizing: border-box;
}

.memo_board .memo_summary_stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #c9b090;
}

.memo_board .memo_summary_stat strong {
  color: #ffe418;
  font-size: 15px;
}

.memo_board .memo_summary_stat.unread strong {
  color: #ff6b4a;
}

.memo_board .memo_login_notice,
.memo_board .memo_loading {
  text-align: center;
  padding: 36px 16px;
  color: #c9b090;
  font-size: 14px;
  border: 1px solid #353535;
  background: rgba(31, 31, 31, 0.35);
}

.memo_board .memo_login_notice i,
.memo_board .memo_loading i {
  margin-right: 6px;
  color: #ebc79e;
}

.memo_board .memo_toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  padding: 0;
}

.memo_board .memo-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 96px;
  height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.9);
  text-shadow: 0 1px 2px rgba(44, 10, 10, 0.67);
  background: linear-gradient(to bottom, #573c28, #623d22 19%, #5e3d24 17%, #51341f 63%, #533520 87%, #553620);
  transition: background 0.2s, color 0.2s;
}

.memo_board .memo-action-btn:hover {
  background: linear-gradient(to bottom, #684530, #734928 19%, #6f4a2a 17%, #624020 63%, #644021 87%, #664622);
  color: #fff;
}

.memo_board .memo-action-btn i {
  font-size: 12px;
  opacity: 0.95;
}

.memo_board .memo-action-btn--delete {
  background: linear-gradient(to bottom, #4a2828, #3a1f1f 63%, #3d2020);
}

.memo_board .memo-action-btn--delete:hover {
  background: linear-gradient(to bottom, #5a3232, #4a2525 63%, #4d2828);
  color: #fff;
}

.memo_board .memo_pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 10px 0 2px;
  flex-wrap: wrap;
}

.memo_board .memo_pager_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
  color: #ddd;
  background: #333;
  border: 1px solid #555;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}

.memo_board .memo_pager_btn:hover,
.memo_board .memo_pager_btn.is-active {
  color: #ffe418;
  border-color: #8a6a40;
  background: #443020;
}

.memo_board .memo_pager_btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.memo_board .tb_wd_st th {
  color: #ebc79e !important;
  font-weight: bold;
  font-size: 13px;
}

.memo_board .tb_wd_st td.memo_content {
  text-align: left !important;
  padding-left: 16px !important;
}

.memo_board .memo_row_unread td.memo_content {
  font-weight: bold;
  color: #fff;
}

.memo_board .memo_new_icon {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: bold;
  color: #111;
  background: #ffe418;
  border-radius: 3px;
  vertical-align: middle;
}

.memo_board .open_memo {
  cursor: pointer;
  color: #fff;
}

.memo_board .open_memo:hover {
  color: #ebc79e;
}

.memo_board .ans {
  background: #1a1612;
  border-bottom: 1px solid #444;
}

.memo_board .ans td {
  text-align: left !important;
  padding: 12px 16px 10px !important;
  color: #ddd;
  line-height: 1.65;
  word-break: break-word;
  border-bottom: none;
}

.memo_board .memo_row td {
  border-top: 1px solid #333;
}

.memo_board .ans + .memo_row td {
  border-top: none;
}

.memo_board .ans .memo_body_html a {
  color: #ebc79e;
}

@media screen and (max-width: 767px) {
  .contents.memo_page {
    padding-top: 48px;
  }

  .board_box.memo_board .page_tab {
    margin-bottom: 4px;
  }

  .memo_board .memo_summary {
    padding: 8px 10px;
    margin-bottom: 4px;
  }

  .memo_board .memo_toolbar {
    justify-content: center;
    margin-bottom: 4px;
  }

  .memo_board .memo-action-btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    max-width: 180px;
  }

  .memo_board .memo_date {
    font-size: 11px;
  }

  .memo_board .memo_no {
    width: 36px !important;
  }
}
