/* ============================================
   월별현황 팝업 스타일
   ============================================ */

/* 팝업 오버레이 */
.monthly-status-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100000;
  display: none;
}

.monthly-status-overlay.active {
  display: block;
}

/* 팝업 모달 */
.monthly-status-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 100001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.monthly-status-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* 팝업 컨테이너 */
.monthly-status-container {
  width: 700px;
  max-height: 90vh;
  background: white;
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 팝업 헤더 */
.monthly-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  background: linear-gradient(135deg, #4a5f7a 0%, #3d4f63 100%);
  border-bottom: none;
}

.monthly-status-tabs {
  display: flex;
  flex: 1;
}

.status-tab {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.status-tab:last-child {
  border-right: none;
}

.status-tab.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.status-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.monthly-status-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.monthly-status-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* 팝업 바디 */
.monthly-status-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f5f5f5;
}

/* 페이지 도움말 박스 */
.monthly-help-box {
  background: #fff9f0;
  border: 1px solid #f0e4d3;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
}

.monthly-help-title {
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.monthly-help-content {
  font-size: 11px;
  color: #555;
  line-height: 1.7;
}

.monthly-help-content p {
  margin: 0 0 8px 0;
}

.monthly-help-content p:last-child {
  margin-bottom: 0;
}

.help-indent {
  padding-left: 20px;
  color: #666;
  font-size: 10px;
}

.btn-view-all {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  border: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

.btn-view-all:hover {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(243, 156, 18, 0.4);
}

/* 월별 현황 테이블 */
.monthly-table-container {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
}

.monthly-table {
  width: 100%;
  border-collapse: collapse;
}

.monthly-table thead {
  background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%);
}

.monthly-table th {
  padding: 12px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  border-bottom: 2px solid #bdc3c7;
}

.monthly-table tbody tr {
  border-bottom: 1px solid #ecf0f1;
  transition: background 0.2s ease;
}

.monthly-table tbody tr:hover {
  background: #f8f9fa;
}

.monthly-table td {
  padding: 10px;
  font-size: 12px;
  color: #2c3e50;
  text-align: center;
}

.monthly-table .text-right {
  text-align: right;
  padding-right: 16px;
}

.monthly-table .clickable {
  color: #3498db;
  cursor: pointer;
  text-decoration: underline;
}

.monthly-table .clickable:hover {
  color: #2980b9;
  font-weight: 600;
}

/* 총 합계 행 */
.monthly-table tfoot .total-row {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border-top: 2px solid #f39c12;
}

.monthly-table tfoot td {
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
}

.total-amount {
  color: #2c3e50;
}

.total-amount-blue {
  color: #3498db;
}

.total-amount-red {
  color: #e74c3c;
}

/* 스크롤바 스타일 */
.monthly-status-body::-webkit-scrollbar {
  width: 8px;
}

.monthly-status-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.monthly-status-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.monthly-status-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 반응형 */
@media (max-width: 768px) {
  .monthly-status-container {
    width: 95%;
    max-width: 700px;
  }
}
