body.board-page {
  background: #f9fafb;
  color: #111827;
}

.board-container,
.notice-detail-container,
.disclosure-detail-container,
.schedule-board-wrap,
.write-container,
.edit-container {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.notice-detail-container,
.disclosure-detail-container,
.schedule-board-wrap {
  background: #fff !important;
  border: 1px solid #e5e7eb;
  border-radius: 8px !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05) !important;
  padding: 36px 40px 48px !important;
  margin-top: 36px !important;
  margin-bottom: 72px !important;
}

.board-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-bottom: 20px !important;
}

.search-form {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}

.search-form input[type="text"] {
  width: min(320px, 64vw);
  min-height: 40px;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  padding: 0 12px !important;
  color: #111827;
  background: #fff;
}

.search-form button,
.board-btn,
.form-actions button,
.form-actions a,
.schedule-add-btn {
  min-height: 40px;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  cursor: pointer;
}

.search-form button,
.board-btn-primary,
.form-actions button,
.schedule-add-btn {
  background: #2563eb !important;
  color: #fff !important;
}

.board-btn-secondary,
.form-actions a {
  background: #4b5563 !important;
  color: #fff !important;
}

.board-btn-danger {
  background: #dc2626 !important;
  color: #fff !important;
}

.notice-table,
.schedule-list-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff !important;
  border: 1px solid #e5e7eb;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: none !important;
}

.notice-table th,
.notice-table td,
.schedule-list-table th,
.schedule-list-table td {
  border-bottom: 1px solid #e5e7eb !important;
  padding: 15px 14px !important;
  color: #111827;
  vertical-align: middle;
}

.notice-table th,
.schedule-list-table th {
  background: #f3f6fb !important;
  color: #374151 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-align: center;
}

.notice-table tbody tr,
.schedule-list-table tbody tr {
  transition: background-color 0.16s ease;
}

.notice-table tbody tr:hover,
.schedule-list-table tbody tr:hover {
  background: #f8fbff !important;
}

.notice-table tbody tr.is-notice,
.schedule-list-table tbody tr.is-notice {
  background: #eff6ff !important;
}

.notice-table tbody tr:last-child td,
.schedule-list-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.notice-table td:first-child,
.notice-table td:nth-child(3),
.notice-table td:nth-child(4),
.notice-table td:nth-child(5),
.schedule-list-table td.notice,
.schedule-list-table td.date,
.schedule-list-table td.actions {
  color: #6b7280;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}

.notice-table .fa-paperclip,
.schedule-list-table .fa-paperclip {
  color: #2563eb;
  font-size: 15px;
}

.notice-table tbody td.empty-notice,
.schedule-list-table tbody td.empty-notice {
  color: #6b7280 !important;
  text-align: center !important;
}

.notice-table td:nth-child(2) a,
.schedule-list-table td.title a {
  color: #111827 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.45;
  text-decoration: none !important;
}

.notice-table td:nth-child(2) a:hover,
.schedule-list-table td.title a:hover {
  color: #2563eb !important;
  text-decoration: underline !important;
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.pagination {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 6px !important;
  margin-top: 28px !important;
}

.pagination a,
.pagination span {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #374151 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 10px !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.pagination a.active,
.pagination a:hover {
  border-color: #2563eb !important;
  background: #2563eb !important;
  color: #fff !important;
}

.notice-title,
.disclosure-title,
#calendar-view h2 {
  color: #111827 !important;
  font-size: clamp(24px, 3vw, 32px) !important;
  font-weight: 900 !important;
  line-height: 1.35;
  margin: 0 0 16px !important;
}

.notice-meta,
.disclosure-meta,
.board-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #6b7280 !important;
  font-size: 14px !important;
  padding: 14px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 28px !important;
}

.notice-content,
.disclosure-content,
#calendar-view .board-content {
  color: #111827 !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
  min-height: 180px;
}

.notice-attachment,
.disclosure-attachment,
.board-attachment {
  margin-top: 28px !important;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #374151;
}

.write-container,
.edit-container {
  max-width: 860px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb;
  border-radius: 8px !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05) !important;
  padding: 36px 40px !important;
  margin-top: 36px !important;
  margin-bottom: 72px !important;
}

.write-container h2,
.edit-container h2 {
  color: #111827 !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  margin: 0 0 28px !important;
  padding-bottom: 14px;
  border-bottom: 2px solid #2563eb;
}

.form-group label,
.write-container label,
.edit-container label {
  color: #111827 !important;
  font-size: 15px;
  font-weight: 800 !important;
}

.write-container input[type="text"],
.write-container input[type="date"],
.write-container input[type="file"],
.write-container textarea,
.write-container select,
.edit-container input[type="text"],
.edit-container input[type="date"],
.edit-container input[type="file"],
.edit-container textarea,
.edit-container select {
  width: 100% !important;
  box-sizing: border-box;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  padding: 11px 12px !important;
  color: #111827;
  background: #fff;
}

.write-container textarea,
.edit-container textarea {
  min-height: 260px;
  line-height: 1.7;
}

.form-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.schedule-board-wrap {
  max-width: 1180px !important;
}

.schedule-header {
  border-bottom: 2px solid #2563eb;
  padding-bottom: 14px;
}

.schedule-title {
  color: #111827 !important;
  font-size: 24px !important;
  letter-spacing: 0 !important;
}

.schedule-list-table td.title {
  width: auto !important;
}

.schedule-edit-btn,
.schedule-delete-btn {
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  background: #fff !important;
  font-weight: 700;
}

.schedule-edit-btn {
  color: #2563eb !important;
}

.schedule-delete-btn {
  color: #dc2626 !important;
}

#calendar-view {
  width: min(1180px, calc(100% - 40px));
  margin: 36px auto 72px;
  padding: 36px 40px 48px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.calendar-form-card {
  display: block;
}

@media (max-width: 768px) {
  .board-container,
  .notice-detail-container,
  .disclosure-detail-container,
  .schedule-board-wrap,
  .write-container,
  .edit-container,
  #calendar-view {
    width: min(100% - 24px, 1180px) !important;
    padding: 24px 18px 32px !important;
    margin-top: 24px !important;
    margin-bottom: 48px !important;
  }

  .board-toolbar,
  .search-form {
    align-items: stretch !important;
    flex-direction: column;
    width: 100%;
  }

  .search-form input[type="text"],
  .search-form button,
  .board-btn,
  .schedule-add-btn {
    width: 100%;
  }

  .notice-table,
  .notice-table thead,
  .notice-table tbody,
  .notice-table tr,
  .notice-table td,
  .schedule-list-table,
  .schedule-list-table thead,
  .schedule-list-table tbody,
  .schedule-list-table tr,
  .schedule-list-table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .notice-table,
  .schedule-list-table {
    border: 0;
    background: transparent !important;
  }

  .notice-table thead,
  .schedule-list-table thead {
    display: none !important;
  }

  .notice-table tbody tr,
  .schedule-list-table tbody tr {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
  }

  .notice-table tbody tr.is-notice,
  .schedule-list-table tbody tr.is-notice {
    border-color: #bfdbfe;
  }

  .notice-table td,
  .schedule-list-table td {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 0 !important;
    padding: 5px 0 !important;
    text-align: right !important;
    color: #6b7280;
  }

  .notice-table thead th:first-child,
  .notice-table thead th:last-child,
  .notice-table thead th:nth-child(2),
  .notice-table thead th:nth-child(3),
  .notice-table thead th:nth-child(4),
  .schedule-list-table thead th:first-child,
  .schedule-list-table thead th:last-child,
  .schedule-list-table thead th:nth-child(2),
  .schedule-list-table thead th:nth-child(3) {
    display: none !important;
  }

  .notice-table tbody td:first-child,
  .notice-table tbody td:last-child,
  .notice-table tbody td:nth-child(2),
  .notice-table tbody td:nth-child(3),
  .notice-table tbody td:nth-child(4),
  .schedule-list-table tbody td:first-child,
  .schedule-list-table tbody td:last-child,
  .schedule-list-table tbody td:nth-child(2),
  .schedule-list-table tbody td:nth-child(3) {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: right !important;
    padding: 5px 0 !important;
    font-size: 14px !important;
  }

  .notice-table td::before,
  .schedule-list-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
  }

  .notice-table tbody td:nth-child(2),
  .schedule-list-table tbody td.title {
    display: block !important;
    text-align: left !important;
    padding: 4px 0 10px !important;
  }

  .notice-table tbody td:nth-child(2)::before,
  .schedule-list-table tbody td.title::before {
    display: none;
  }

  .notice-table tbody td:nth-child(2) a,
  .schedule-list-table tbody td.title a {
    display: block;
    font-size: 17px !important;
  }

  .notice-table tbody td.empty-notice,
  .schedule-list-table tbody td.empty-notice {
    display: block !important;
    text-align: center !important;
    padding: 28px 12px !important;
  }

  .notice-table tbody td.empty-notice::before,
  .schedule-list-table tbody td.empty-notice::before {
    display: none;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .notice-meta,
  .disclosure-meta,
  .board-meta {
    display: block;
    line-height: 1.9;
  }

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