
 /* ──────────────────────────────────────────────────────────
       ★ 모달 및 캘린더 UI 스타일 추가
    ────────────────────────────────────────────────────────── */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.5);
      z-index: 2000;
      display: none; 
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.2s ease;
      backdrop-filter: blur(2px);
    }
    .modal-overlay.active {
      display: flex;
      opacity: 1;
    }
    
    .modal-content {
      background: #fff;
      border-radius: 12px;
      width: 900px;
      max-width: 95%;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 20px 40px rgba(0,0,0,0.2);
      transform: translateY(20px);
      transition: transform 0.2s ease;
    }
    .modal-overlay.active .modal-content {
      transform: translateY(0);
    }

    .modal-header {
      padding: 20px 24px;
      border-bottom: 1px solid #e2e8f0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #fff;
    }
    .modal-title {
      font-size: 18px;
      font-weight: 800;
      color: #111;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .btn-close {
      background: none;
      border: none;
      font-size: 28px;
      cursor: pointer;
      color: #64748b;
      line-height: 1;
    }
    .btn-close:hover {
      color: #111;
    }

    .modal-body {
      padding: 24px;
      overflow-y: auto;
      background: #f8fafc;
    }

    /* 캘린더 상단 제어부 */
    .cal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      gap: 16px;
    }
    
    /* 팝업 내 인라인 검색창 영역 */
    .cal-search-inner {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .cal-search-input {
      height: 34px;
      padding: 0 10px;
      border: 1px solid #cbd5e1;
      border-radius: 6px;
      font-size: 13px;
      outline: none;
      width: 180px;
    }
    .cal-search-input:focus {
      border-color: #b11b2b;
    }
    
    .cal-nav-wrap {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .cal-nav {
      background: #fff;
      border: 1px solid #cbd5e1;
      border-radius: 6px;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-weight: bold;
      color: #475569;
    }
    .cal-nav:hover { background: #f1f5f9; border-color: #94a3b8; }
    .cal-month { font-size: 20px; font-weight: 800; color: #111; }
    
    .cal-legend {
      display: flex;
      gap: 12px;
      font-size: 12px;
      font-weight: 600;
      color: #64748b;
    }
    .legend-item { display: flex; align-items: center; gap: 4px; }
    .legend-dot { width: 10px; height: 10px; border-radius: 50%; }

    /* 캘린더 그리드 영역 */
    .cal-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      border-top: 1px solid #e2e8f0;
      border-left: 1px solid #e2e8f0;
      background: #fff;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    }
    
    .cal-day-name {
      text-align: center;
      padding: 12px 0;
      font-size: 13px;
      font-weight: 800;
      color: #475569;
      border-right: 1px solid #e2e8f0;
      border-bottom: 1px solid #e2e8f0;
      background: #f1f5f9;
    }
    .cal-day-name.sun { color: #dc2626; } 
    .cal-day-name.sat { color: #2563eb; } 

    .cal-cell {
      min-height: 110px;
      border-right: 1px solid #e2e8f0;
      border-bottom: 1px solid #e2e8f0;
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      background: #fff;
      transition: background 0.15s;
    }
    .cal-cell.disabled { background: #f8fafc; }
    .cal-cell.disabled .cal-date { color: #cbd5e1; }
    
    .cal-date {
      font-size: 14px;
      font-weight: 700;
      color: #333;
      margin-bottom: 4px;
      display: inline-block;
    }
    .cal-cell.sun .cal-date { color: #dc2626; }
    .cal-cell.sat .cal-date { color: #2563eb; }
    .cal-cell.today .cal-date {
      background: #b11b2b;
      color: #fff;
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
    }

    /* 캘린더 내부 이벤트 뱃지 */
    .evt-badge {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 4px 6px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 700;
      width: 100%;
    }
    .evt-badge span {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .evt-count {
      background: rgba(255,255,255,0.7);
      padding: 0 4px;
      border-radius: 10px;
      font-size: 10px;
      font-weight: 800;
    }


	.bg-evt-green { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }