.cm_modal_overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    .cm_modal_container {
      width: 100%;
      height: 100%;
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .cm_modal_header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 18px 24px;
      background-color: #f8f9fa;
      border-bottom: 1px solid #eaeaea;
    }

    .cm_modal_title {
      font-size: 20px;
      font-weight: 600;
      color: #333;
      margin: 0;
    }

    .cm_modal_close {
      background: none;
      border: none;
      font-size: 24px;
      color: #777;
      cursor: pointer;
      transition: color 0.2s;
    }

    .cm_modal_close:hover {
      color: #333;
    }

    /* �� ���� ��Ÿ�� */
    .cm_tabs_container {
      padding: 0 24px;
      background-color: #f8f9fa;
      border-bottom: 1px solid #eaeaea;
    }

    .cm_tabs {
      display: flex;
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .cm_tab_item {
      padding: 12px 24px;
      cursor: pointer;
      font-size: 15px;
      font-weight: 500;
      color: #6b7280;
      border-bottom: 3px solid transparent;
      transition: all 0.2s ease;
    }

    .cm_tab_item.active {
      color: #4f46e5;
      border-bottom-color: #4f46e5;
    }

    .cm_tab_item:hover {
      color: #4f46e5;
    }

    .cm_modal_body {
      flex: 1;
      padding: 24px;
      overflow: auto;
    }
    
    
    


	.cm_tab_content {
		display: none;
	  /* max-height: 800px; */ /* ��ü ���� ���� ���� (�ʿ�� ����) */
	  height: 725px;
	  overflow: hidden; /* ��ü �������� ��ũ�� ���� */
	}
	
	.cm_tab_content.active {
      display: block;
    }
    
	.cm_consultation_table {
	  width: 100%;
	  border-collapse: collapse;
	  border: 1px solid #e0e0e0;
      font-size: 14px;
	}

	.cm_consultation_table thead {
	  display: table;
	  width: 100%;
	  table-layout: fixed; /* �� �ʺ� ���� */
	  background: #f9f9f9; /* ��� ���� */
	  position: sticky;
	  top: 0;
	  z-index: 1;
	}
	
	.cm_consultation_table th {
      padding: 12px 10px;
      text-align: left;
      font-weight: 600;
      color: #374151;
      border-bottom: 2px solid #d1d5db;
      position: sticky;
      top: 0;
      background-color: #f1f5f9;
    }
	
	.cm_consultation_table td {
      padding: 12px 10px;
      border-bottom: 1px solid #e5e7eb;
      color: #4b5563;
    }
    
	
	.cm_consultation_table tbody {
	  display: block;
	  /* max-height: 700px; */ /* ��ũ�� ���� ���� ���� */
	  height: 670px; /* ���� ���� */
	  overflow-y: auto;
	  width: 100%;
	}
	
	.cm_consultation_table tbody tr {
	  display: table;
	  table-layout: fixed;
	  width: 100%;
	}

	.cm_consultation_table tbody tr:hover {
      background-color: #f9fafb;
    }



    .cm_status_badge {
      display: inline-block;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 12px;
      font-weight: 500;
    }

    .cm_status_pending {
      background-color: #fff1de;
      color: #c05621;
    }

    .cm_status_completed {
      background-color: #e6f6e6;
      color: #057a55;
    }

    .cm_status_processing {
      background-color: #e1f0ff;
      color: #1e60c9;
    }




   /* ������ ���̺� */
   @media (max-width: 1024px) {
     .cm_consultation_table {
       font-size: 13px;
     }
     
     .cm_modal_container {
       width: 95%;
       height: 90%;
     }
   }

   .cm_open_modal_btn {
     padding: 10px 16px;
     background-color: #4f46e5;
     color: white;
     border: none;
     border-radius: 4px;
     cursor: pointer;
     font-weight: 500;
     transition: background-color 0.2s;
   }

   .cm_open_modal_btn:hover {
     background-color: #4338ca;
   }
   

 .cm_status_dropdown {
   position: absolute;
   background-color: white;
   border: 1px solid #e5e7eb;
   border-radius: 4px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
   padding: 8px 0;
   z-index: 1010;
   display: none;
 }
 
 .cm_status_dropdown_item {
   padding: 8px 16px;
   font-size: 13px;
   cursor: pointer;
   transition: background-color 0.2s;
 }
 
 .cm_status_dropdown_item:hover {
   background-color: #f3f4f6;
 }
 
 .cm_status_badge {
   position: relative;
   cursor: pointer;
 }
 
 .cm_status_reception {
   background-color: #f3f4f6;
   color: #4b5563;
 }
 
 .cm_status_called {
   background-color: #e0f2fe;
   color: #0369a1;
 }
 
 .cm_status_visit {
   background-color: #fef3c7;
   color: #92400e;
 }
  
  
  
  
  
  
/* �湮������ �޷� ��Ÿ�� (���� ����) */
.custom-table {
    margin-top: 20px;
}

.visit-date-picker {
    width: 120px !important;
    padding: 6px !important;
    text-align: center !important;
    cursor: pointer !important;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.visit-date-picker:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* jQuery UI datepicker ��Ÿ�� ���� */
.ui-datepicker {
    z-index: 1010 !important;
    font-size: 12px;
}

.ui-datepicker-header {
    background: #007bff;
    color: white;
}

.ui-datepicker-title {
    color: white;
}

.ui-state-active {
    background: #007bff !important;
    color: white !important;
}

.ui-state-hover {
    background: #e9ecef !important;
}
	
	
	
/* ���� ������ �� ��Ÿ�� */
.today-data {
    position: relative;
}

/* NEW ���� ��Ÿ�� */
/*
.new-badge {
    position: absolute;
    top: 2px;
    right: 130px;
    background: linear-gradient(45deg, #ff4444, #cc0000);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(255, 68, 68, 0.3);
    z-index: 10;
    transform: rotate(-15deg);
    animation: newBadgePulse 2s infinite;
}
*/

.new-badge {
    display: inline-block;
    margin-left: 6px;
    background: linear-gradient(45deg, #ff4444, #cc0000);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(255, 68, 68, 0.3);
    transform: rotate(-15deg);
    animation: newBadgePulse 2s infinite;
    vertical-align: middle;
}


/* NEW ���� �ִϸ��̼� */
@keyframes newBadgePulse {
    0%, 100% { 
        transform: rotate(-15deg) scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: rotate(-15deg) scale(1.1); 
        opacity: 0.8; 
    }
}








/* ���� Ķ���� */
.cm_calendar {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.calendar_header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.calendar_controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar_nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.calendar_nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.calendar_title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.calendar_selectors {
    display: flex;
    gap: 12px;
}

.calendar_select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.calendar_select option {
    color: #333;
}

.calendar_body {
    padding: 0;
}

.calendar_weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.weekday {
    padding: 16px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar_dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e2e8f0;
}

.calendar_date {
    background: white;
    min-height: 80px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar_date:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.calendar_date.other_month {
    color: #cbd5e1;
    background: #f8fafc;
}

.calendar_date.today {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.calendar_date.today:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.date_number {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.date_events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event_item {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #ddd6fe;
    color: #5b21b6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.event_item.high {
    background: #fecaca;
    color: #dc2626;
}

.event_item.medium {
    background: #fed7aa;
    color: #ea580c;
}

.event_item.low {
    background: #bbf7d0;
    color: #059669;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .cm_calendar {
        margin: 0 16px;
    }
    
    .calendar_header {
        padding: 16px;
    }
    
    .calendar_title {
        font-size: 20px;
    }
    
    .calendar_date {
        min-height: 60px;
        padding: 4px;
    }
    
    .date_number {
        font-size: 14px;
    }
    
    .event_item {
        font-size: 10px;
    }
}




