Files
sam-manage/resources/views/partials/sidebar.blade.php
kent 8bb0318836 feat: 실험실 메뉴 Tab + Flyout 방식 구현
- 실험실 그룹 (S: Strategy, A: AI/Automation, M: Management) 추가
- 확장 상태: S | A | M 수평 탭, 클릭 시 해당 패널 표시
- 축소 상태: 아이콘 호버 시 우측 플라이아웃 팝업
- localStorage 탭 상태 저장/복원

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-13 15:11:13 +09:00

1172 lines
87 KiB
PHP

<!-- Sidebar -->
<aside id="sidebar" class="sidebar bg-white shadow-lg flex-shrink-0 transition-all duration-300 ease-in-out w-64">
<div class="flex flex-col h-full">
<!-- Logo / Brand -->
<div class="flex items-center h-16 border-b border-gray-200 px-3">
<!-- 펼쳐진 상태: 햄버거 버튼 + 로고 -->
<div class="sidebar-expanded-only flex items-center gap-2 w-full">
<button
type="button"
onclick="toggleSidebar()"
class="p-2 text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-lg transition-colors"
title="메뉴 접기"
>
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
<span class="text-xl font-bold text-gray-900">{{ config('app.name') }}</span>
</div>
<!-- 접힌 상태: S 버튼 (클릭하면 확장) -->
<button
type="button"
onclick="toggleSidebar()"
class="sidebar-collapsed-only hidden w-full p-2 text-xl font-bold text-gray-900 hover:bg-gray-100 rounded-lg transition-colors"
title="메뉴 펼치기"
>
S
</button>
</div>
<!-- Navigation Menu -->
<nav class="flex-1 overflow-y-auto p-4 sidebar-nav">
<ul class="space-y-1">
<!-- 대시보드 -->
<li>
<a href="{{ route('dashboard') }}"
class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('dashboard') ? 'bg-primary text-white hover:bg-primary' : '' }}"
title="대시보드">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" />
</svg>
<span class="font-medium sidebar-text">대시보드</span>
</a>
</li>
<!-- 프로젝트 관리 그룹 -->
<li class="pt-4 pb-1 border-t border-gray-200 mt-2">
<button onclick="toggleGroup('pm-group')" class="sidebar-group-header w-full flex items-center justify-between px-3 py-2 text-xs font-bold text-gray-600 uppercase tracking-wider hover:bg-gray-50 rounded">
<span class="sidebar-text">프로젝트 관리</span>
<svg id="pm-group-icon" class="w-3 h-3 transition-transform sidebar-text" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</button>
<ul id="pm-group" class="space-y-1 mt-1">
<li>
<a href="{{ route('pm.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('pm.index') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="프로젝트 대시보드">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
</svg>
<span class="font-medium sidebar-text">프로젝트 대시보드</span>
</a>
</li>
<li>
<a href="{{ route('pm.projects.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('pm.projects.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="프로젝트">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" />
</svg>
<span class="font-medium sidebar-text">프로젝트</span>
</a>
</li>
<li>
<a href="{{ route('daily-logs.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('daily-logs.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="일일 스크럼">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
</svg>
<span class="font-medium sidebar-text">일일 스크럼</span>
</a>
</li>
</ul>
</li>
<!-- 시스템 관리 그룹 -->
<li class="pt-4 pb-1 border-t border-gray-200 mt-2">
<button onclick="toggleGroup('system-group')" class="sidebar-group-header w-full flex items-center justify-between px-3 py-2 text-xs font-bold text-gray-600 uppercase tracking-wider hover:bg-gray-50 rounded">
<span class="sidebar-text">시스템 관리</span>
<svg id="system-group-icon" class="w-3 h-3 transition-transform sidebar-text" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</button>
<ul id="system-group" class="space-y-1 mt-1">
<li>
<a href="{{ route('tenants.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('tenants.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="테넌트 관리">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" />
</svg>
<span class="font-medium sidebar-text">테넌트 관리</span>
</a>
</li>
<li>
<a href="{{ route('users.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('users.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="사용자 관리">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z" />
</svg>
<span class="font-medium sidebar-text">사용자 관리</span>
</a>
</li>
<li>
<a href="{{ route('departments.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('departments.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="부서 관리">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" />
</svg>
<span class="font-medium sidebar-text">부서 관리</span>
</a>
</li>
<li>
<a href="{{ route('menus.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('menus.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="메뉴 관리">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
</svg>
<span class="font-medium sidebar-text">메뉴 관리</span>
</a>
</li>
</ul>
</li>
<!-- 권한 관리 그룹 -->
<li class="pt-4 pb-1 border-t border-gray-200 mt-2">
<button onclick="toggleGroup('permission-group')" class="sidebar-group-header w-full flex items-center justify-between px-3 py-2 text-xs font-bold text-gray-600 uppercase tracking-wider hover:bg-gray-50 rounded">
<span class="sidebar-text">권한 관리</span>
<svg id="permission-group-icon" class="w-3 h-3 transition-transform sidebar-text" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</button>
<ul id="permission-group" class="space-y-1 mt-1">
<li>
<a href="{{ route('roles.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('roles.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="역할 관리">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" />
</svg>
<span class="font-medium sidebar-text">역할 관리</span>
</a>
</li>
<li>
<a href="{{ route('permissions.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('permissions.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="권한 관리">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
</svg>
<span class="font-medium sidebar-text">권한 관리</span>
</a>
</li>
<li>
<a href="{{ route('role-permissions.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('role-permissions.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="역할 권한 관리">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" />
</svg>
<span class="font-medium sidebar-text">역할 권한 관리</span>
</a>
</li>
<li>
<a href="{{ route('department-permissions.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('department-permissions.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="부서 권한 관리">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" />
</svg>
<span class="font-medium sidebar-text">부서 권한 관리</span>
</a>
</li>
<li>
<a href="{{ route('user-permissions.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('user-permissions.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="개인 권한 관리">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
</svg>
<span class="font-medium sidebar-text">개인 권한 관리</span>
</a>
</li>
<li>
<a href="{{ route('permission-analyze.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('permission-analyze.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="권한 분석">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
</svg>
<span class="font-medium sidebar-text">권한 분석</span>
</a>
</li>
</ul>
</li>
<!-- 생산 관리 그룹 -->
<li class="pt-4 pb-1 border-t border-gray-200 mt-2">
<button onclick="toggleGroup('production-group')" class="sidebar-group-header w-full flex items-center justify-between px-3 py-2 text-xs font-bold text-gray-600 uppercase tracking-wider hover:bg-gray-50 rounded">
<span class="sidebar-text">생산 관리</span>
<svg id="production-group-icon" class="w-3 h-3 transition-transform sidebar-text" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</button>
<ul id="production-group" class="space-y-1 mt-1">
<li>
<a href="{{ route('item-fields.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('item-fields.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="품목기준 필드 관리">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 10h16M4 14h16M4 18h16" />
</svg>
<span class="font-medium sidebar-text">품목기준 필드 관리</span>
</a>
</li>
<li>
<a href="{{ route('quote-formulas.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('quote-formulas.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="견적수식 관리">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 7h6m0 10v-3m-3 3h.01M9 17h.01M9 14h.01M12 14h.01M15 11h.01M12 11h.01M9 11h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z" />
</svg>
<span class="font-medium sidebar-text">견적수식 관리</span>
</a>
</li>
<li>
<span class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed"
style="padding-left: 2rem;"
title="제품 관리 (준비중)">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4" />
</svg>
<span class="font-medium sidebar-text">제품 관리</span>
<span class="ml-auto text-xs text-gray-300 sidebar-text">준비중</span>
</span>
</li>
<li>
<span class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed"
style="padding-left: 2rem;"
title="자재 관리 (준비중)">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4" />
</svg>
<span class="font-medium sidebar-text">자재 관리</span>
<span class="ml-auto text-xs text-gray-300 sidebar-text">준비중</span>
</span>
</li>
<li>
<span class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed"
style="padding-left: 2rem;"
title="BOM 관리 (준비중)">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01" />
</svg>
<span class="font-medium sidebar-text">BOM 관리</span>
<span class="ml-auto text-xs text-gray-300 sidebar-text">준비중</span>
</span>
</li>
<li>
<span class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed"
style="padding-left: 2rem;"
title="카테고리 관리 (준비중)">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z" />
</svg>
<span class="font-medium sidebar-text">카테고리 관리</span>
<span class="ml-auto text-xs text-gray-300 sidebar-text">준비중</span>
</span>
</li>
</ul>
</li>
<!-- 콘텐츠 관리 그룹 -->
<li class="pt-4 pb-1 border-t border-gray-200 mt-2">
<button onclick="toggleGroup('content-group')" class="sidebar-group-header w-full flex items-center justify-between px-3 py-2 text-xs font-bold text-gray-600 uppercase tracking-wider hover:bg-gray-50 rounded">
<span class="sidebar-text">콘텐츠 관리</span>
<svg id="content-group-icon" class="w-3 h-3 transition-transform sidebar-text" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</button>
<ul id="content-group" class="space-y-1 mt-1">
<li>
<a href="{{ route('boards.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('boards.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="게시판 관리">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01" />
</svg>
<span class="font-medium sidebar-text">게시판 관리</span>
</a>
</li>
</ul>
</li>
<!-- 시스템 그룹 -->
<li class="pt-4 pb-1 border-t border-gray-200 mt-2">
<button onclick="toggleGroup('system-settings-group')" class="sidebar-group-header w-full flex items-center justify-between px-3 py-2 text-xs font-bold text-gray-600 uppercase tracking-wider hover:bg-gray-50 rounded">
<span class="sidebar-text">시스템</span>
<svg id="system-settings-group-icon" class="w-3 h-3 transition-transform sidebar-text" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</button>
<ul id="system-settings-group" class="space-y-1 mt-1">
<li>
<span class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed"
style="padding-left: 2rem;"
title="시스템 설정 (준비중)">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
<span class="font-medium sidebar-text">시스템 설정</span>
<span class="ml-auto text-xs text-gray-300 sidebar-text">준비중</span>
</span>
</li>
<li>
<span class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed"
style="padding-left: 2rem;"
title="감사 로그 (준비중)">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
</svg>
<span class="font-medium sidebar-text">감사 로그</span>
<span class="ml-auto text-xs text-gray-300 sidebar-text">준비중</span>
</span>
</li>
<li>
<a href="{{ route('archived-records.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('archived-records.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;"
title="삭제된 데이터 백업">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4" />
</svg>
<span class="font-medium sidebar-text">삭제된 데이터 백업</span>
</a>
</li>
</ul>
</li>
<!-- 실험실 그룹 ( 스타일 + 플라이아웃) -->
<li class="lab-menu-container pt-4 pb-1 border-t border-gray-200 mt-2" id="lab-menu-container">
<!-- 확장 상태: 헤더 + + 메뉴 -->
<div class="lab-expanded-view">
<button onclick="toggleGroup('lab-group')" class="sidebar-group-header lab-group-header w-full flex items-center justify-between px-3 py-2 text-xs font-bold text-gray-700 uppercase tracking-wider rounded">
<span class="flex items-center gap-2">
<svg class="w-4 h-4 text-amber-600 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z" />
</svg>
<span class="sidebar-text">실험실</span>
</span>
<svg id="lab-group-icon" class="w-3 h-3 transition-transform sidebar-text" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</button>
<!-- + 메뉴 콘텐츠 -->
<div id="lab-group" class="mt-2">
<!-- S | A | M 버튼 -->
<div class="lab-tabs flex mx-2 mb-2 bg-gray-100 rounded-lg p-1">
<button type="button" onclick="switchLabTab('s')" id="lab-tab-s" class="lab-tab active flex-1 py-1.5 text-xs font-bold rounded-md transition-all text-blue-600">
S
</button>
<button type="button" onclick="switchLabTab('a')" id="lab-tab-a" class="lab-tab flex-1 py-1.5 text-xs font-bold rounded-md transition-all text-purple-600">
A
</button>
<button type="button" onclick="switchLabTab('m')" id="lab-tab-m" class="lab-tab flex-1 py-1.5 text-xs font-bold rounded-md transition-all text-green-600">
M
</button>
</div>
<!-- S. Strategy 메뉴 (16) -->
<ul id="lab-panel-s" class="lab-panel space-y-1">
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="세무 전략 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 7h6m0 10v-3m-3 3h.01M9 17h.01M9 14h.01M12 14h.01M15 11h.01M12 11h.01M9 11h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z" /></svg><span class="font-medium sidebar-text">세무 전략</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="노무 전략 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z" /></svg><span class="font-medium sidebar-text">노무 전략</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="채권추심 전략 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg><span class="font-medium sidebar-text">채권추심 전략</span></span></li>
<li class="border-t border-gray-100 pt-1 mt-1"></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="스테이블코인 보고서 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /></svg><span class="font-medium sidebar-text">스테이블코인 보고서</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="MRP 해외사례 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg><span class="font-medium sidebar-text">MRP 해외사례</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="상담용 챗봇 전략 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" /></svg><span class="font-medium sidebar-text">상담용 챗봇 전략</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="KoDATA vs NICE API 비교 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" /></svg><span class="font-medium sidebar-text">KoDATA vs NICE API</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="바로빌 vs 팝빌 API (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" /></svg><span class="font-medium sidebar-text">바로빌 vs 팝빌 API</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="사내 지식 검색 시스템 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /></svg><span class="font-medium sidebar-text">사내 지식 검색 시스템</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="챗봇 솔루션 비교 분석 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01" /></svg><span class="font-medium sidebar-text">챗봇 솔루션 비교 분석</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="RAG 스타트업 현황 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" /></svg><span class="font-medium sidebar-text">RAG 스타트업 현황</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="더존비즈온 분석 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" /></svg><span class="font-medium sidebar-text">더존비즈온 분석</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="Confluence vs Notion (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7v8a2 2 0 002 2h6M8 7V5a2 2 0 012-2h4.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V15a2 2 0 01-2 2h-2M8 7H6a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2v-2" /></svg><span class="font-medium sidebar-text">Confluence vs Notion</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="차세대 QA 솔루션 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" /></svg><span class="font-medium sidebar-text">차세대 QA 솔루션</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="SAM 영업전략 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6" /></svg><span class="font-medium sidebar-text">SAM 영업전략</span></span></li>
</ul>
<!-- A. AI/Automation 메뉴 (12) -->
<ul id="lab-panel-a" class="lab-panel space-y-1 hidden">
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="사업자등록증 OCR (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /></svg><span class="font-medium sidebar-text">사업자등록증 OCR</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="웹 녹음 AI 요약 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z" /></svg><span class="font-medium sidebar-text"> 녹음 AI 요약</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="회의록 AI 요약 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" /></svg><span class="font-medium sidebar-text">회의록 AI 요약</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="업무협의록 AI 요약 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" /></svg><span class="font-medium sidebar-text">업무협의록 AI 요약</span></span></li>
<li class="border-t border-gray-100 pt-1 mt-1"></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="운영자용 챗봇 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" /></svg><span class="font-medium sidebar-text">운영자용 챗봇</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="Vertex RAG 챗봇 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" /></svg><span class="font-medium sidebar-text">Vertex RAG 챗봇</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="테넌트 지식 업로드 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12" /></svg><span class="font-medium sidebar-text">테넌트 지식 업로드</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="테넌트 챗봇 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8h2a2 2 0 012 2v6a2 2 0 01-2 2h-2v4l-4-4H9a1.994 1.994 0 01-1.414-.586m0 0L11 14h4a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2v4l.586-.586z" /></svg><span class="font-medium sidebar-text">테넌트 챗봇</span></span></li>
<li class="border-t border-gray-100 pt-1 mt-1"></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="SAM AI 메뉴 이동 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" /></svg><span class="font-medium sidebar-text">SAM AI 메뉴 이동</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="SAM AI 알람음 제작 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z" /></svg><span class="font-medium sidebar-text">SAM AI 알람음 제작</span></span></li>
<li class="border-t border-gray-100 pt-1 mt-1"></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="GPS 출퇴근 관리 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" /></svg><span class="font-medium sidebar-text">GPS 출퇴근 관리</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="기업개황 조회 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" /></svg><span class="font-medium sidebar-text">기업개황 조회</span></span></li>
</ul>
<!-- M. Management 메뉴 (13) -->
<ul id="lab-panel-m" class="lab-panel space-y-1 hidden">
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="바로빌 테넌트 관리 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" /></svg><span class="font-medium sidebar-text">바로빌 테넌트 관리</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="전자세금계산서 전략 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 14l6-6m-5.5.5h.01m4.99 5h.01M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16l3.5-2 3.5 2 3.5-2 3.5 2z" /></svg><span class="font-medium sidebar-text">전자세금계산서 전략</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="전자세금계산서 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 14l6-6m-5.5.5h.01m4.99 5h.01M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16l3.5-2 3.5 2 3.5-2 3.5 2zM10 8.5a.5.5 0 11-1 0 .5.5 0 011 0zm5 5a.5.5 0 11-1 0 .5.5 0 011 0z" /></svg><span class="font-medium sidebar-text">전자세금계산서</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="사업자등록번호 진위 확인 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" /></svg><span class="font-medium sidebar-text">사업자등록번호 진위 확인</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="영업관리 & 매니저 미팅관리 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z" /></svg><span class="font-medium sidebar-text">영업관리 & 매니저 미팅관리</span></span></li>
<li class="border-t border-gray-100 pt-1 mt-1"></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="카드 세무항목 매칭 전략 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z" /></svg><span class="font-medium sidebar-text">카드 세무항목 매칭 전략</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="한국 카드사 API 보고서 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /></svg><span class="font-medium sidebar-text">한국 카드사 API 보고서</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="카드 사용내역 수집 후 매칭 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4" /></svg><span class="font-medium sidebar-text">카드 사용내역 수집 매칭</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="계좌입출금 내역 조회 API (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 6l3 1m0 0l-3 9a5.002 5.002 0 006.001 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5.002 5.002 0 006.001 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3" /></svg><span class="font-medium sidebar-text">계좌입출금 내역 조회 API</span></span></li>
<li class="border-t border-gray-100 pt-1 mt-1"></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="영업관리 시나리오 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /></svg><span class="font-medium sidebar-text">영업관리 시나리오</span></span></li>
<li><span class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-400 cursor-not-allowed" title="매니저 시나리오 (준비중)"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01" /></svg><span class="font-medium sidebar-text">매니저 시나리오</span></span></li>
</ul>
</div>
</div>
<!-- 축소 상태: 아이콘 + 플라이아웃 -->
<div class="lab-collapsed-view hidden">
<div class="lab-flyout-trigger relative">
<button type="button" class="flex items-center justify-center w-full p-2 rounded-lg hover:bg-amber-50 transition-colors" title="실험실">
<svg class="w-5 h-5 text-amber-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z" />
</svg>
</button>
<!-- 플라이아웃 팝업 -->
<div class="lab-flyout hidden absolute left-full top-0 ml-2 w-56 bg-white rounded-lg shadow-xl border border-gray-200 z-[1000]">
<!-- 화살표 -->
<div class="absolute -left-2 top-3 w-0 h-0 border-t-8 border-b-8 border-r-8 border-transparent border-r-white"></div>
<div class="absolute -left-[9px] top-3 w-0 h-0 border-t-8 border-b-8 border-r-8 border-transparent border-r-gray-200"></div>
<!-- 헤더 -->
<div class="px-3 py-2 bg-gradient-to-r from-amber-50 to-amber-100 rounded-t-lg border-b border-amber-200">
<span class="text-xs font-bold text-amber-800 uppercase tracking-wider">실험실</span>
</div>
<!-- -->
<div class="flex p-2 bg-gray-50 border-b border-gray-100">
<button type="button" onclick="switchLabFlyoutTab('s')" id="lab-flyout-tab-s" class="lab-flyout-tab active flex-1 py-1.5 text-xs font-bold rounded transition-all text-blue-600">
S
</button>
<button type="button" onclick="switchLabFlyoutTab('a')" id="lab-flyout-tab-a" class="lab-flyout-tab flex-1 py-1.5 text-xs font-bold rounded transition-all text-purple-600">
A
</button>
<button type="button" onclick="switchLabFlyoutTab('m')" id="lab-flyout-tab-m" class="lab-flyout-tab flex-1 py-1.5 text-xs font-bold rounded transition-all text-green-600">
M
</button>
</div>
<!-- 메뉴 패널들 -->
<div class="p-2 max-h-64 overflow-y-auto">
<!-- S. Strategy (16) -->
<ul id="lab-flyout-panel-s" class="lab-flyout-panel space-y-0.5">
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">세무 전략</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">노무 전략</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">채권추심 전략</span></li>
<li class="border-t border-gray-100 my-1"></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">스테이블코인 보고서</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">MRP 해외사례</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">상담용 챗봇 전략</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">KoDATA vs NICE API</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">바로빌 vs 팝빌 API</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">사내 지식 검색 시스템</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">챗봇 솔루션 비교 분석</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">RAG 스타트업 현황</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">더존비즈온 분석</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">Confluence vs Notion</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">차세대 QA 솔루션</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">SAM 영업전략</span></li>
</ul>
<!-- A. AI/Automation (12) -->
<ul id="lab-flyout-panel-a" class="lab-flyout-panel space-y-0.5 hidden">
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">사업자등록증 OCR</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50"> 녹음 AI 요약</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">회의록 AI 요약</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">업무협의록 AI 요약</span></li>
<li class="border-t border-gray-100 my-1"></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">운영자용 챗봇</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">Vertex RAG 챗봇</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">테넌트 지식 업로드</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">테넌트 챗봇</span></li>
<li class="border-t border-gray-100 my-1"></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">SAM AI 메뉴 이동</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">SAM AI 알람음 제작</span></li>
<li class="border-t border-gray-100 my-1"></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">GPS 출퇴근 관리</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">기업개황 조회</span></li>
</ul>
<!-- M. Management (13) -->
<ul id="lab-flyout-panel-m" class="lab-flyout-panel space-y-0.5 hidden">
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">바로빌 테넌트 관리</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">전자세금계산서 전략</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">전자세금계산서</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">사업자등록번호 진위 확인</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">영업관리 & 매니저 미팅</span></li>
<li class="border-t border-gray-100 my-1"></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">카드 세무항목 매칭 전략</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">한국 카드사 API 보고서</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">카드 사용내역 수집 매칭</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">계좌입출금 내역 조회 API</span></li>
<li class="border-t border-gray-100 my-1"></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">영업관리 시나리오</span></li>
<li><span class="block px-2 py-1 text-xs text-gray-400 rounded hover:bg-gray-50">매니저 시나리오</span></li>
</ul>
</div>
</div>
</div>
</div>
</li>
</ul>
</nav>
<!-- 개발 도구 (하단 고정) -->
<div class="border-t border-gray-200 p-2 bg-gray-50">
<button onclick="toggleGroup('dev-tools-group')" class="sidebar-group-header w-full flex items-center justify-between px-3 py-2 text-xs font-bold text-gray-600 uppercase tracking-wider hover:bg-gray-100 rounded">
<span class="flex items-center gap-2">
<svg class="w-4 h-4 text-orange-500 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
<span class="sidebar-text">개발 도구</span>
</span>
<svg id="dev-tools-group-icon" class="w-3 h-3 transition-transform sidebar-text" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</button>
<ul id="dev-tools-group" class="space-y-1 mt-1">
<li>
<a href="{{ route('dev-tools.flow-tester.index') }}"
class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('dev-tools.flow-tester.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
title="API 플로우 테스터">
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
</svg>
<span class="font-medium sidebar-text">API 플로우 테스터</span>
</a>
</li>
</ul>
</div>
<!-- User Info (하단) -->
<div class="p-4 border-t border-gray-200 sidebar-user-info">
<div class="flex items-center gap-3">
<div class="w-10 h-10 rounded-full bg-primary text-white flex items-center justify-center font-bold flex-shrink-0">
{{ mb_strtoupper(mb_substr(auth()->user()->name ?? 'U', 0, 1)) }}
</div>
<div class="flex-1 min-w-0 sidebar-text">
<p class="text-sm font-medium text-gray-900 truncate">
{{ auth()->user()->name ?? 'User' }}
</p>
<p class="text-xs text-gray-500 truncate">
{{ auth()->user()->email }}
</p>
</div>
</div>
</div>
</div>
</aside>
<style>
/* 사이드바 토글 스타일 */
.sidebar {
width: 16rem; /* w-64 = 256px */
overflow: visible;
}
/* 접힌 상태에서 overflow 설정 (툴팁 표시를 위해) */
html.sidebar-is-collapsed #sidebar,
.sidebar.sidebar-collapsed {
overflow: visible !important;
}
html.sidebar-is-collapsed #sidebar .sidebar-nav,
.sidebar.sidebar-collapsed .sidebar-nav {
overflow-y: auto !important;
overflow-x: visible !important;
}
/* 사이드바 내부 컨테이너도 overflow visible 설정 */
html.sidebar-is-collapsed #sidebar > div,
.sidebar.sidebar-collapsed > div {
overflow: visible !important;
}
/* 접힌 상태에서 레이아웃 컨테이너 overflow 해제 (툴팁 표시를 위해) */
html.sidebar-is-collapsed #app-container {
overflow: visible !important;
}
/* 접힌 상태 - html 클래스 기반 (초기 로드 깜빡임 방지) */
html.sidebar-is-collapsed #sidebar,
.sidebar.sidebar-collapsed {
width: 4rem; /* w-16 = 64px */
}
/* 접힌 상태에서 텍스트 숨김 */
html.sidebar-is-collapsed #sidebar .sidebar-text,
.sidebar.sidebar-collapsed .sidebar-text {
display: none;
}
/* 접힌 상태에서 그룹 헤더 숨김 */
html.sidebar-is-collapsed #sidebar .sidebar-group-header,
.sidebar.sidebar-collapsed .sidebar-group-header {
display: none;
}
/* 접힌 상태에서 네비게이션 패딩 조정 */
html.sidebar-is-collapsed #sidebar .sidebar-nav,
.sidebar.sidebar-collapsed .sidebar-nav {
padding: 0.5rem;
}
/* 접힌 상태에서 메뉴 아이템 중앙 정렬 */
html.sidebar-is-collapsed #sidebar .sidebar-nav a,
html.sidebar-is-collapsed #sidebar .sidebar-nav span,
.sidebar.sidebar-collapsed .sidebar-nav a,
.sidebar.sidebar-collapsed .sidebar-nav span {
justify-content: center;
padding-left: 0.75rem !important;
padding-right: 0.75rem !important;
}
/* 접힌 상태에서 사용자 정보 숨김 (아바타만 표시) */
html.sidebar-is-collapsed #sidebar .sidebar-user-info,
.sidebar.sidebar-collapsed .sidebar-user-info {
padding: 0.5rem;
justify-content: center;
}
html.sidebar-is-collapsed #sidebar .sidebar-user-info > div,
.sidebar.sidebar-collapsed .sidebar-user-info > div {
justify-content: center;
}
/* 접힌 상태 로고 토글 */
.sidebar .sidebar-collapsed-only {
display: none;
}
html.sidebar-is-collapsed #sidebar .sidebar-expanded-only,
.sidebar.sidebar-collapsed .sidebar-expanded-only {
display: none;
}
html.sidebar-is-collapsed #sidebar .sidebar-collapsed-only,
.sidebar.sidebar-collapsed .sidebar-collapsed-only {
display: block;
}
/* 접힌 상태에서 개발 도구 영역 조정 */
html.sidebar-is-collapsed #sidebar .border-t.border-gray-200.p-2,
.sidebar.sidebar-collapsed .border-t.border-gray-200.p-2 {
padding: 0.5rem;
}
/* 접힌 상태에서 메뉴 아이콘 호버 툴팁 */
html.sidebar-is-collapsed #sidebar .sidebar-nav a,
html.sidebar-is-collapsed #sidebar .sidebar-nav > ul > li > ul > li > a,
html.sidebar-is-collapsed #sidebar .sidebar-nav > ul > li > ul > li > span,
.sidebar.sidebar-collapsed .sidebar-nav a,
.sidebar.sidebar-collapsed .sidebar-nav > ul > li > ul > li > a,
.sidebar.sidebar-collapsed .sidebar-nav > ul > li > ul > li > span {
position: relative;
}
html.sidebar-is-collapsed #sidebar .sidebar-nav a::after,
html.sidebar-is-collapsed #sidebar .sidebar-nav > ul > li > ul > li > span::after,
.sidebar.sidebar-collapsed .sidebar-nav a::after,
.sidebar.sidebar-collapsed .sidebar-nav > ul > li > ul > li > span::after {
content: attr(title);
position: absolute;
left: 100%;
top: 50%;
transform: translateY(-50%);
margin-left: 0.75rem;
padding: 0.5rem 0.75rem;
background-color: #1f2937;
color: white;
font-size: 0.75rem;
font-weight: 500;
white-space: nowrap;
border-radius: 0.375rem;
opacity: 0;
visibility: hidden;
transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
z-index: 1000;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
html.sidebar-is-collapsed #sidebar .sidebar-nav a:hover::after,
html.sidebar-is-collapsed #sidebar .sidebar-nav > ul > li > ul > li > span:hover::after,
.sidebar.sidebar-collapsed .sidebar-nav a:hover::after,
.sidebar.sidebar-collapsed .sidebar-nav > ul > li > ul > li > span:hover::after {
opacity: 1;
visibility: visible;
}
/* 툴팁 화살표 */
html.sidebar-is-collapsed #sidebar .sidebar-nav a::before,
html.sidebar-is-collapsed #sidebar .sidebar-nav > ul > li > ul > li > span::before,
.sidebar.sidebar-collapsed .sidebar-nav a::before,
.sidebar.sidebar-collapsed .sidebar-nav > ul > li > ul > li > span::before {
content: '';
position: absolute;
left: 100%;
top: 50%;
transform: translateY(-50%);
margin-left: 0.25rem;
border: 6px solid transparent;
border-right-color: #1f2937;
opacity: 0;
visibility: hidden;
transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
z-index: 1000;
}
html.sidebar-is-collapsed #sidebar .sidebar-nav a:hover::before,
html.sidebar-is-collapsed #sidebar .sidebar-nav > ul > li > ul > li > span:hover::before,
.sidebar.sidebar-collapsed .sidebar-nav a:hover::before,
.sidebar.sidebar-collapsed .sidebar-nav > ul > li > ul > li > span:hover::before {
opacity: 1;
visibility: visible;
}
/* ========== 3단계 메뉴 스타일 ========== */
/* 서브그룹 헤더 (2단계) */
.sidebar-subgroup-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.5rem 0.75rem;
margin-left: 1.5rem;
font-size: 0.75rem;
font-weight: 600;
color: #6b7280;
text-transform: uppercase;
letter-spacing: 0.025em;
cursor: pointer;
border-radius: 0.375rem;
transition: background-color 0.15s;
}
.sidebar-subgroup-header:hover {
background-color: #f3f4f6;
}
/* 서브그룹 컨테이너 */
.sidebar-subgroup-items {
margin-left: 0.5rem;
border-left: 2px solid #e5e7eb;
padding-left: 0.5rem;
}
/* 3단계 메뉴 아이템 들여쓰기 */
.sidebar-subgroup-items a,
.sidebar-subgroup-items span {
padding-left: 2.5rem !important;
}
/* 서브그룹 아이콘 회전 */
.sidebar-subgroup-header .subgroup-icon {
transition: transform 0.2s;
}
.sidebar-subgroup-header.collapsed .subgroup-icon {
transform: rotate(-90deg);
}
/* 접힌 상태에서 서브그룹 헤더 숨김 */
html.sidebar-is-collapsed #sidebar .sidebar-subgroup-header,
.sidebar.sidebar-collapsed .sidebar-subgroup-header {
display: none;
}
/* 접힌 상태에서 서브그룹 아이템 border 숨김 */
html.sidebar-is-collapsed #sidebar .sidebar-subgroup-items,
.sidebar.sidebar-collapsed .sidebar-subgroup-items {
margin-left: 0;
border-left: none;
padding-left: 0;
}
/* 접힌 상태에서 3단계 메뉴 아이템 패딩 리셋 */
html.sidebar-is-collapsed #sidebar .sidebar-subgroup-items a,
html.sidebar-is-collapsed #sidebar .sidebar-subgroup-items span,
.sidebar.sidebar-collapsed .sidebar-subgroup-items a,
.sidebar.sidebar-collapsed .sidebar-subgroup-items span {
padding-left: 0.75rem !important;
}
/* 실험실 그룹 특별 스타일 */
.lab-group-header {
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
border: 1px solid #f59e0b;
}
.lab-group-header:hover {
background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
}
/* ========== 실험실 탭 + 플라이아웃 스타일 ========== */
/* 탭 버튼 스타일 */
.lab-tabs .lab-tab {
background: transparent;
border: none;
cursor: pointer;
}
.lab-tabs .lab-tab.active {
background: white;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.lab-tabs .lab-tab:not(.active):hover {
background: rgba(255, 255, 255, 0.5);
}
/* 확장 상태에서 축소 뷰 숨김 */
.lab-expanded-view {
display: block;
}
.lab-collapsed-view {
display: none !important;
}
/* 축소 상태에서 확장 뷰 숨김, 축소 뷰 표시 */
html.sidebar-is-collapsed #sidebar .lab-expanded-view,
.sidebar.sidebar-collapsed .lab-expanded-view {
display: none !important;
}
html.sidebar-is-collapsed #sidebar .lab-collapsed-view,
.sidebar.sidebar-collapsed .lab-collapsed-view {
display: block !important;
}
/* 플라이아웃 트리거 */
.lab-flyout-trigger {
position: relative;
}
/* 플라이아웃 표시 (호버 시) */
.lab-flyout-trigger:hover .lab-flyout {
display: block !important;
animation: flyoutFadeIn 0.15s ease-out;
}
@keyframes flyoutFadeIn {
from {
opacity: 0;
transform: translateX(-8px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
/* 플라이아웃 탭 스타일 */
.lab-flyout-tab {
background: transparent;
border: none;
cursor: pointer;
}
.lab-flyout-tab.active {
background: white;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.lab-flyout-tab:not(.active):hover {
background: rgba(255, 255, 255, 0.7);
}
/* 접힌 상태에서 실험실 메뉴 아이템 스타일 리셋 */
html.sidebar-is-collapsed #sidebar .lab-panel span,
.sidebar.sidebar-collapsed .lab-panel span {
display: none;
}
/* 접힌 상태에서 탭 숨김 */
html.sidebar-is-collapsed #sidebar .lab-tabs,
.sidebar.sidebar-collapsed .lab-tabs {
display: none;
}
/* 접힌 상태에서 실험실 그룹 border-t 유지 */
html.sidebar-is-collapsed #sidebar .lab-menu-container,
.sidebar.sidebar-collapsed .lab-menu-container {
border-top: 1px solid #e5e7eb;
padding-top: 1rem;
margin-top: 0.5rem;
}
</style>
<script>
function toggleGroup(groupId) {
const sidebar = document.getElementById('sidebar');
// 사이드바가 접힌 상태면 그룹 토글 무시
if (sidebar.classList.contains('sidebar-collapsed')) {
return;
}
const group = document.getElementById(groupId);
const icon = document.getElementById(groupId + '-icon');
if (group.style.display === 'none') {
group.style.display = 'block';
icon.style.transform = 'rotate(0deg)';
localStorage.setItem('sidebar-' + groupId, 'open');
} else {
group.style.display = 'none';
icon.style.transform = 'rotate(-90deg)';
localStorage.setItem('sidebar-' + groupId, 'closed');
}
}
// 서브그룹 토글 함수 (3단계 메뉴용)
function toggleSubgroup(subgroupId) {
const sidebar = document.getElementById('sidebar');
// 사이드바가 접힌 상태면 서브그룹 토글 무시
if (sidebar.classList.contains('sidebar-collapsed') || document.documentElement.classList.contains('sidebar-is-collapsed')) {
return;
}
const subgroup = document.getElementById(subgroupId);
const icon = document.getElementById(subgroupId + '-icon');
const header = icon ? icon.closest('.sidebar-subgroup-header') : null;
if (subgroup.style.display === 'none') {
subgroup.style.display = 'block';
if (header) header.classList.remove('collapsed');
localStorage.setItem('sidebar-' + subgroupId, 'open');
} else {
subgroup.style.display = 'none';
if (header) header.classList.add('collapsed');
localStorage.setItem('sidebar-' + subgroupId, 'closed');
}
}
// 페이지 로드 시 저장된 상태 복원
document.addEventListener('DOMContentLoaded', function() {
// 1단계 그룹 상태 복원
['system-group', 'permission-group', 'production-group', 'content-group', 'system-settings-group', 'pm-group', 'dev-tools-group', 'lab-group'].forEach(function(groupId) {
const state = localStorage.getItem('sidebar-' + groupId);
if (state === 'closed') {
const group = document.getElementById(groupId);
const icon = document.getElementById(groupId + '-icon');
if (group) group.style.display = 'none';
if (icon) icon.style.transform = 'rotate(-90deg)';
}
});
// 서브그룹 (2단계) 상태 복원
['lab-s-group', 'lab-a-group', 'lab-m-group'].forEach(function(subgroupId) {
const state = localStorage.getItem('sidebar-' + subgroupId);
if (state === 'closed') {
const subgroup = document.getElementById(subgroupId);
const icon = document.getElementById(subgroupId + '-icon');
const header = icon ? icon.closest('.sidebar-subgroup-header') : null;
if (subgroup) subgroup.style.display = 'none';
if (header) header.classList.add('collapsed');
}
});
// 사이드바 접힌 상태에서 메뉴 아이템 호버 시 툴팁 표시
initSidebarTooltips();
});
// JavaScript 기반 툴팁 (overflow 제약 우회) - 이벤트 위임 방식
function initSidebarTooltips() {
// 이미 초기화되었으면 스킵
if (document.getElementById('sidebar-tooltip')) {
return;
}
// 툴팁 엘리먼트 생성
const tooltip = document.createElement('div');
tooltip.id = 'sidebar-tooltip';
tooltip.className = 'fixed bg-gray-800 text-white text-sm font-medium px-3 py-2 rounded-lg shadow-lg z-[9999] pointer-events-none opacity-0 transition-opacity duration-150 whitespace-nowrap';
tooltip.style.cssText = 'display: none;';
document.body.appendChild(tooltip);
const sidebar = document.getElementById('sidebar');
let currentTarget = null;
// 이벤트 위임: sidebar에서 mouseover/mouseout 처리
sidebar.addEventListener('mouseover', function(e) {
// 사이드바가 펼쳐진 상태면 무시
if (!sidebar.classList.contains('sidebar-collapsed') && !document.documentElement.classList.contains('sidebar-is-collapsed')) {
return;
}
// 가장 가까운 a 또는 span[title] 찾기
const target = e.target.closest('.sidebar-nav a[title], .sidebar-nav span[title], #dev-tools-group a[title]');
if (!target || target === currentTarget) return;
currentTarget = target;
const title = target.getAttribute('title');
if (!title) return;
// data-tooltip에 저장하고 title 제거 (브라우저 기본 툴팁 방지)
if (!target.hasAttribute('data-tooltip')) {
target.setAttribute('data-tooltip', title);
}
target.removeAttribute('title');
// 툴팁 표시
tooltip.textContent = title;
tooltip.style.display = 'block';
// 위치 계산
const rect = target.getBoundingClientRect();
tooltip.style.left = (rect.right + 12) + 'px';
tooltip.style.top = (rect.top + (rect.height / 2) - (tooltip.offsetHeight / 2)) + 'px';
// 페이드 인
requestAnimationFrame(() => {
tooltip.style.opacity = '1';
});
});
sidebar.addEventListener('mouseout', function(e) {
const target = e.target.closest('.sidebar-nav a, .sidebar-nav span, #dev-tools-group a');
if (!target) return;
// relatedTarget이 같은 요소 내부면 무시
const relatedTarget = e.relatedTarget;
if (relatedTarget && target.contains(relatedTarget)) {
return;
}
// title 속성 복원
const originalTitle = target.getAttribute('data-tooltip');
if (originalTitle) {
target.setAttribute('title', originalTitle);
}
currentTarget = null;
tooltip.style.opacity = '0';
setTimeout(() => {
if (tooltip.style.opacity === '0') {
tooltip.style.display = 'none';
}
}, 150);
});
}
// ========== 실험실 탭 전환 함수 ==========
// 확장 상태: 탭 전환
function switchLabTab(tabKey) {
const tabs = ['s', 'a', 'm'];
// 모든 탭 버튼에서 active 제거
tabs.forEach(function(key) {
const tab = document.getElementById('lab-tab-' + key);
const panel = document.getElementById('lab-panel-' + key);
if (tab) {
tab.classList.remove('active');
}
if (panel) {
panel.classList.add('hidden');
}
});
// 선택된 탭 활성화
const activeTab = document.getElementById('lab-tab-' + tabKey);
const activePanel = document.getElementById('lab-panel-' + tabKey);
if (activeTab) {
activeTab.classList.add('active');
}
if (activePanel) {
activePanel.classList.remove('hidden');
}
// 상태 저장
localStorage.setItem('lab-active-tab', tabKey);
}
// 축소 상태 (플라이아웃): 탭 전환
function switchLabFlyoutTab(tabKey) {
const tabs = ['s', 'a', 'm'];
// 모든 탭 버튼에서 active 제거
tabs.forEach(function(key) {
const tab = document.getElementById('lab-flyout-tab-' + key);
const panel = document.getElementById('lab-flyout-panel-' + key);
if (tab) {
tab.classList.remove('active');
}
if (panel) {
panel.classList.add('hidden');
}
});
// 선택된 탭 활성화
const activeTab = document.getElementById('lab-flyout-tab-' + tabKey);
const activePanel = document.getElementById('lab-flyout-panel-' + tabKey);
if (activeTab) {
activeTab.classList.add('active');
}
if (activePanel) {
activePanel.classList.remove('hidden');
}
// 상태 저장 (확장 탭과 동기화)
localStorage.setItem('lab-active-tab', tabKey);
}
// 페이지 로드 시 저장된 탭 상태 복원
document.addEventListener('DOMContentLoaded', function() {
const savedTab = localStorage.getItem('lab-active-tab');
if (savedTab && ['s', 'a', 'm'].includes(savedTab)) {
switchLabTab(savedTab);
switchLabFlyoutTab(savedTab);
}
});
</script>