.dashboard-section {
  padding: 5px 5px 0 5px;
  font-size: 15px;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

/* 탭 스타일 */
.dashboard-tabs {
  max-width: 600px;
  margin: 15px auto;
}

.dashboard-tab-buttons {
  display: flex;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.dashboard-tab-button {
  flex: 1;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.dashboard-tab-button:hover {
  color: #333;
  background: #f8f9fa;
}

.dashboard-tab-button.active {
  color: #FF6B6B;
  border-bottom: 2px solid #FF6B6B;
  font-weight: 600;
}

.dashboard-tab-content {
  background: #fff;
}

/* 탭 패널 스타일 */
.dashboard-tab-panel {
  display: none;
}

.dashboard-tab-panel.active {
  display: block;
}

.dashboard-title {
  font-size: 15px;
  font-weight: normal;
  margin-bottom: 10px;
  margin-top: 25px;
}
.dashboard-title:first-child {
  margin-top: 0;
}
.dashboard-title span span {
  font-weight: normal !important;
}
.owned-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .owned-chips {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stock-chip {
  display: inline-block;
  background: #1E3D59;
  color: #fff;
  border-radius: 10px;
  padding: 3px 8px;
  font-size: 15px;
  font-weight: 400;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.stock-chip:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.stock-chip:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.stock-chip:nth-child(5n+1) { background: #1E3D59; }
.stock-chip:nth-child(5n+2) { background: #FF6EC7; }
.stock-chip:nth-child(5n+3) { background: #228B22; }
.stock-chip:nth-child(5n+4) { background: #7B8C9F; }
.stock-chip:nth-child(5n)   { background: #6552D0; }

.no-stocks {
  color: #aaa;
  font-size: 15px;
  padding: 5px 0;
}
.dashboard-placeholder {
  color: #aaa;
  font-size: 15px;
  margin-bottom: 20px;
  text-align: left;
}
.dashboard-trade-table-wrap {
  max-width: 100%;
  overflow-x: unset;
  margin-bottom: 24px;
  max-height: 421px;
  overflow-y: auto;
  padding: 0;
  border: none;
  box-sizing: border-box;
  margin-top: 0;
}
.dashboard-trade-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-size: 14px;
  border-right: 1px solid #e9ecef;
  position: relative;
  border-bottom: 1.5px solid #e9ecef;
}
.dashboard-trade-table th, .dashboard-trade-table td {
  border: 1px solid #e9ecef;
  padding: 5px 1.5px;
  text-align: center;
  min-width: 90px;
  font-size: 14px;
}
.dashboard-trade-table th {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 3;
  text-align: center;
  border-bottom: 1.5px solid #e9ecef;
}
.dashboard-trade-table tbody {
  /* display: block; */
  /* max-height: 336px; */
  /* overflow-y: auto; */
}
.dashboard-trade-table thead {
  /* display: table; */
}
.dashboard-trade-table tr {
  /* display: table; */
  /* width: 100%; */
  /* table-layout: fixed; */
  height: 35px;
}
.dashboard-trade-table td {
  background: #fff;
  color: #222;
  font-weight: normal;
}
.trade-type-buy {
  color: #FF6B6B;
  font-weight: bold;
}
.trade-type-sell {
  color: #1976d2;
  font-weight: bold;
}
.trade-row-buy td {
  color: #FF6B6B;
  font-weight: normal;
}
.trade-row-sell td {
  color: #1E3D59;
  font-weight: normal;
}
.dashboard-trade-table td:last-child {
  border-right: 1px solid #e9ecef;
}
.dashboard-trade-table th:nth-child(1), .dashboard-trade-table td:nth-child(1) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}
.dashboard-trade-table th:nth-child(2), .dashboard-trade-table td:nth-child(2) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}
.dashboard-trade-table th:nth-child(3), .dashboard-trade-table td:nth-child(3) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}
.dashboard-trade-table th:nth-child(3) {
  text-align: center;
}
.dashboard-trade-table td:nth-child(3) {
  text-align: right;
  padding-right: 10px;
}

/* 매매 일지 테이블의 종목명 셀 스타일 */
.stock-name-cell {
  cursor: pointer !important;
  transition: all 0.2s ease;
}

.stock-name-cell:hover {
  background-color: #f8f9fa !important;
}

.stock-name-cell:active {
  background-color: #e9ecef !important;
}

/* 대시보드 피드 리스트 스타일 */
.dashboard-feed-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 12px;
  margin-bottom: 64px; /* 네비게이션 바 높이만큼 하단 여백 추가 */
}

.dashboard-feed-item {
  padding: 10px 14px 10px 14px;
  border-radius: 12px;
  background: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid #666 !important;
}

.dashboard-feed-item:last-child {
  border-bottom: none;
}

.dashboard-feed-title, .dashboard-feed-date {
  color: #222 !important;
}

.dashboard-feed-title {
  font-size: 15px;
  font-weight: 300;
  color: #666 !important;
  word-break: break-all;
  text-align: left;
  margin-top: 6px;
}

.dashboard-feed-date {
  color: #666;
  font-size: 14px;
  margin-top: 2px;
  text-align: left;
}

.dashboard-feed-stock-label {
  display: inline-block;
  color: #FF6B6B;
  background: #ffecec;
  font-size: 15px;
  padding: 2px 8px;
  border: 1.5px solid #ffecec;
  border-radius: 4px;
  margin-right: 3px;
  font-weight: 600;
  vertical-align: baseline;
}

.dashboard-feed-stock-label.research-label {
  background: #ffecec;
  color: #FF6B6B;
  border: 1.5px solid #ffecec;
}

.feed-detail-container {
  font-size: 15px;
  color: #666;
  background: #fff;
  padding: 24px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  max-width: 540px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.feed-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.feed-detail-title {
  font-size: 15px;
  font-weight: bold;
  flex: 1;
  margin-right: 12px;
}

.feed-share-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  color: #888;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.feed-share-btn:hover {
  background: #f5f5f5;
  color: #FF6B6B;
}

.feed-share-btn .material-symbols-outlined {
  font-size: 20px;
}
.feed-detail-stocks,
.feed-detail-title,
.feed-detail-date,
.feed-detail-content,
.feed-detail-file,
.feed-detail-link {
  text-align: left;
}
.feed-detail-stocks {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1;
}
.feed-stock-hash {
  color: #FF6B6B;
  font-size: 15px;
  margin-right: 0;
  word-break: keep-all;
  white-space: pre-line;
}
.feed-detail-date {
  font-size: 15px;
  color: #888;
  margin-bottom: 10px;
}
.feed-detail-audio {
  margin-bottom: 10px;
}
.feed-detail-content {
  font-size: 15px;
  margin-bottom: 10px;
}
.feed-detail-file, .feed-detail-link {
  font-size: 15px;
  margin-bottom: 10px;
}
.feed-detail-comments {
  margin-top: 15px;
}
.feed-comment-form {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.feed-comment-input {
  width: 100%;
  min-width: 200px;
  max-width: 600px;
  flex: 1;
  font-size: 15px;
  padding: 5px 5px 5px 5px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  min-height: 38px;
  height: 38px;
  max-height: 200px;
  resize: vertical;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}
#feed-comment-attach {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 6px;
  display: flex;
  align-items: center;
  height: 38px;
}
#feed-comment-attach .material-symbols-outlined {
  font-size: 24px;
  vertical-align: middle;
  color: #888;
}
.feed-comment-submit {
  align-self: flex-end;
  font-size: 15px;
  padding: 6px 16px;
  border-radius: 6px;
  border: none;
  background: #FF6B6B;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feed-comment-submit:hover {
  background: #e55a5a;
}
.feed-comments-list {
  margin-top: 10px;
  text-align: left;
}
.feed-comment-item {
  font-size: 15px;
  margin-bottom: 6px;
  padding: 8px 0;
  text-align: left;
}
.feed-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0px;
}
.feed-comment-author {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}
.feed-comment-date {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}
.feed-comment-content {
  font-size: 15px;
  color: #333;
  line-height: 1.4;
  word-break: break-all;
}
hr.feed-divider {
  border: none;
  border-top: 1.5px solid #e0e0e0;
  margin: 16px 0;
}
.feed-file-title {
  font-weight: bold;
  margin-bottom: 4px;
}
.feed-file-link {
  color: #222;
  text-decoration: none;
}

.dashboard-feed-divider {
  border: none;
  border-top: 1.5px solid #fff;
  margin: 8px 0 8px 0;
}

/* 모바일(예: 600px 이하)에서 스타일 변경 */
@media (max-width: 600px) {
  .feed-comment-input {
    width: 95%;      /* 또는 100% */
    min-width: 0;
    max-width: 100%;
    font-size: 15px; /* 필요시 폰트 크기도 조절 */
  }
  .feed-detail-container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.feed-comment-morevert {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 8px;
  user-select: none;
  display: inline-block;
}
.feed-comment-morevert:hover {
  color: #FF6B6B;
  background: #f2f2f2;
  border-radius: 50%;
}

.feed-comment-menu {
  position: absolute;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 9999;
  font-size: 15px;
  min-width: 80px;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.feed-comment-menu-item {
  padding: 10px 18px;
  color: #222;
  background: none;
  border: none;
  text-align: center;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.feed-comment-menu-item:hover {
  background: #FF6B6B;
  color: #fff;
}

.feed-link-title {
  text-align: left;
  color: #222;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 6px;
} 

.feed-comments-title {
  text-align: left;
  color: #222;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
} 

.feed-audio-title {
  text-align: left;
  color: #222;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
} 

.feed-detail-notice {
  text-align: left;
  background: #f5f5f7;
  color: #333;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  line-height: 1.6;
} 

/* 캘린더 네비게이션 */
.calendar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  margin: 0px 0 0px 0;
  font-weight: 600;
}
.calendar-prev, .calendar-next {
  cursor: pointer;
  user-select: none;
  font-size: 20px;
  color: #888;
  padding: 0 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.calendar-prev:hover, .calendar-next:hover {
  background: #f5f5f5;
}
.calendar-month-label {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  cursor: pointer;
  padding: 0 8px;
}

/* 요일 헤더 */
.calendar-days-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 3px 0;
  font-size: 15px;
  color: #888;
  font-weight: 500;
}
.calendar-days-row span {
  flex: 1;
  text-align: center;
}

/* 주간/월간 날짜 */
.calendar-week-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0px;
}
.calendar-week-row span,
.calendar-month-day {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 15px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.calendar-today {
  background: #FFF3E0;
  color: #222;
  font-weight: 700;
}
.calendar-selected {
  background: #FF6B6B;
  color: #fff !important;
  font-weight: 700;
}
.calendar-month-mode .calendar-month-day {
  background: none;
  color: #222;
}
.calendar-month-mode .calendar-selected {
  background: #FF6B6B;
  color: #fff !important;
}
.calendar-month-mode .calendar-today {
  background: #FFF3E0;
  color: #FF6B6B;
}

/* 일정 리스트 */
.calendar-schedule-list {
  margin-top: 5px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 40px;
}

/* 일정 리스트 라벨 스타일 */
.calendar-schedule-list .calendar-label-personal {
  color: #222;
  background: #F2F2F2;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  display: inline-block;
  font-weight: 600;
}
.calendar-schedule-list .calendar-label-stock {
  color: #FF6B6B;
  background: #FFE6E6;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  display: inline-block;
  font-weight: 600;
}

.dashboard-trade-table tr:last-child td {
  border-bottom: 1.5px solid #e9ecef;
} 

.research-feed {
  background: #FF6B6B !important;
  border: 2px solid #FF6B6B !important;
  color: #fff !important;
}

.research-feed .dashboard-feed-title,
.research-feed .dashboard-feed-date,
.research-feed .dashboard-feed-stock {
  color: #fff !important;
}

.research-feed .dashboard-feed-divider {
  border-top: 1.5px solid #fff !important;
} 

.feed-detail-link a, .feed-link-url {
  color: #222 !important;
} 

/* 피드 상세 화면의 테이블에서 텍스트 줄바꿈 방지, 폰트/패딩 축소 */
.feed-detail-content table th,
.feed-detail-content table td {
  border: 1px solid #ddd;
  padding: 6px 4px 6px 4px;
  text-align: left;
  font-size: 15px;
  white-space: nowrap;
  word-break: keep-all;
}

@media (max-width: 600px) {
  .feed-detail-content table th,
  .feed-detail-content table td {
    font-size: 11px;
    padding: 6px 2px 6px 2px;
  }
} 

.feed-detail-stock-label {
  display: inline-block;
  color: #FF6B6B;
  background: #ffecec;
  font-size: 15px;
  padding: 2px 8px;
  border: 1.5px solid #ffecec;
  border-radius: 4px;
  margin-right: 3px;
  font-weight: 600;
  vertical-align: baseline;
} 

.feed-detail-content a {
  color: #666 !important;
} 