/* ==========================================================================
   JP Smart Work Place - 신고철 업무 총괄표 스타일시트 (style.css)
   ========================================================================== */

:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --sidebar-bg: #f8fafc;
  --sidebar-border: #e2e8f0;
  --sidebar-text: #334155;
  --sidebar-hover: #f1f5f9;
  
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --success-color: #10b981;
  --success-light: #ecfdf5;
  --warning-color: #f59e0b;
  --warning-light: #fffbeb;
  --danger-color: #ef4444;
  --danger-light: #fef2f2;
  --info-color: #0284c7;
  --info-light: #f0f9ff;
  
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* 글자 크기 배율 지원 */
body.font-size-80 { font-size: 11.5px; }
body.font-size-90 { font-size: 13px; }
body.font-size-100 { font-size: 14.5px; }
body.font-size-110 { font-size: 16px; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Pretendard", "Apple SD Gothic Neo", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.4;
  overflow: hidden;
}

/* ================= 앱 전체 레이아웃 ================= */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ================= 좌측 사이드바 ================= */
.sidebar {
  width: 240px;
  min-width: 240px;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: width 0.2s ease, min-width 0.2s ease;
  z-index: 20;
}

.sidebar.collapsed {
  width: 60px;
  min-width: 60px;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .menu-section-title,
.sidebar.collapsed .menu-item span,
.sidebar.collapsed .sidebar-footer .user-meta,
.sidebar.collapsed .sidebar-footer .system-info,
.sidebar.collapsed .sidebar-footer .btn-refresh {
  display: none !important;
}

.sidebar.collapsed .sidebar-header {
  padding: 12px 8px;
  justify-content: center;
}

.sidebar.collapsed .menu-item a {
  justify-content: center;
  padding: 8px 0;
}

.sidebar-header {
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--sidebar-border);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-badge {
  width: 34px;
  height: 34px;
  background-color: #1e293b;
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-text h2 {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.brand-text p {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.sidebar-menu-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
}

.sidebar-menu-wrapper::-webkit-scrollbar {
  width: 4px;
}

.sidebar-menu-wrapper::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.menu-section {
  margin-bottom: 16px;
}

.menu-section.highlight-section {
  background-color: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 8px 6px;
  border: 1px solid #cbd5e1;
}

.menu-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 8px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.2px;
}

.badge-active {
  font-size: 9.5px;
  background-color: #e0e7ff;
  color: #3730a3;
  padding: 1px 5px;
  border-radius: 10px;
  font-weight: 700;
}

.menu-list {
  list-style: none;
}

.menu-item {
  margin-bottom: 2px;
}

.menu-item a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  font-weight: 500;
}

.menu-item a:hover {
  background-color: var(--sidebar-hover);
  color: var(--primary-color);
}

.menu-item.active a {
  background-color: #ffffff;
  color: var(--primary-color);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--primary-color);
}

.menu-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
}

/* 사이드바 푸터 */
.sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--sidebar-border);
  background-color: #ffffff;
  font-size: 11px;
}

.user-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 700;
  color: #0f172a;
}

.user-email {
  font-size: 10px;
  color: var(--text-light);
}

.btn-refresh {
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  font-size: 10px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.btn-refresh:hover {
  background-color: var(--bg-main);
  color: var(--primary-color);
}

.system-info {
  margin-bottom: 8px;
  color: var(--text-light);
  font-size: 10px;
  line-height: 1.4;
}

.system-info .version {
  font-weight: 600;
  color: var(--text-muted);
}

.system-info .links {
  margin-top: 2px;
  display: flex;
  gap: 4px;
}

.system-info .links a {
  color: var(--text-light);
  text-decoration: none;
}

.system-info .links a:hover {
  text-decoration: underline;
}

.btn-collapse {
  width: 100%;
  padding: 5px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-collapse:hover {
  background-color: #e2e8f0;
}

/* ================= 메인 컨텐츠 영역 ================= */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-main);
}

/* 상단 헤더 */
.top-header {
  height: 48px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb .separator {
  color: var(--text-light);
  font-size: 11px;
}

.breadcrumb .depth2.active {
  font-weight: 700;
  color: var(--text-main);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.font-size-control {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.font-size-control select {
  padding: 3px 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  font-size: 12px;
  cursor: pointer;
}

.live-clock {
  font-size: 11.5px;
  font-family: monospace;
  color: var(--text-muted);
  background-color: var(--bg-main);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* 컨텐츠 바디 */
.content-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

.view-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  height: 100%;
}

.view-panel.active {
  display: flex;
}

/* ================= KPI 요약 카드 ================= */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  flex-shrink: 0;
}

.kpi-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: #94a3b8;
}

.kpi-card.highlight::before { background-color: var(--primary-color); }
.kpi-card.success::before { background-color: var(--success-color); }
.kpi-card.alert::before { background-color: var(--danger-color); }
.kpi-card.primary::before { background-color: #6366f1; }

.kpi-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 3px 0 1px;
  letter-spacing: -0.5px;
}

.kpi-value .unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 3px;
}

.kpi-desc {
  font-size: 10.5px;
  color: var(--text-light);
}

/* ================= 툴바 및 필터 영역 ================= */
.grid-toolbar {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.search-box {
  position: relative;
  width: 320px;
}

.search-box svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  stroke: var(--text-light);
}

.search-box input {
  width: 100%;
  padding: 7px 10px 7px 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
  outline: none;
  background-color: #ffffff;
}

.search-box input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-group select {
  padding: 7px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
  background-color: #ffffff;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 버튼 컴포넌트 */
.btn {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--text-main);
}
.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-outline {
  background-color: #ffffff;
  border-color: var(--border-color);
  color: var(--sidebar-text);
}
.btn-outline:hover {
  background-color: var(--bg-main);
  border-color: var(--text-light);
}

.btn-success {
  background-color: #10b981;
  color: #ffffff;
}
.btn-success:hover {
  background-color: #059669;
}

/* ================= 데이터 테이블 컨테이너 ================= */
.table-container {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 480px;
  overflow: hidden;
  width: 100%;
}

.table-info-bar {
  padding: 8px 14px;
  background-color: #fafafa;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.tag-live {
  background-color: #dcfce7;
  color: #15803d;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 10px;
  margin-left: 6px;
}

.table-responsive {
  flex: 1;
  overflow: auto;
  position: relative;
}

.table-responsive::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.erp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  white-space: nowrap;
}

.erp-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f1f5f9;
}

.erp-table th {
  padding: 8px 10px;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid #cbd5e1;
  border-right: 1px solid #e2e8f0;
  text-align: left;
  user-select: none;
}

.erp-table th.col-money { text-align: right; }
.erp-table th.col-center,
.erp-table th.col-check,
.erp-table th.col-action,
.erp-table th.col-type,
.erp-table th.col-case,
.erp-table th.col-status,
.erp-table th.col-audit { text-align: center; }

.erp-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

.erp-table tbody tr:hover {
  background-color: #f8fafc;
}

.erp-table tbody tr.row-unpaid {
  background-color: #fffbeb;
}

/* 고정 컬럼 */
.col-fixed {
  position: sticky;
  left: 0;
  background-color: inherit;
  z-index: 5;
}

.col-check { width: 34px; text-align: center; }
.col-action { width: 68px; text-align: center; }

/* 뱃지 컴포넌트 */
.badge-code {
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-block;
  margin-right: 2px;
}
.badge-code.indiv { background-color: #e0e7ff; color: #3730a3; }
.badge-code.integ { background-color: #fef3c7; color: #92400e; }
.badge-code.comm  { background-color: #d1fae5; color: #065f46; }

/* ERP 신규 코드체계 (개별/통합/소통) 셀 스타일 */
.code-system-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  padding: 2px 0;
}
.code-indiv-main {
  font-size: 12.5px;
  font-weight: 700;
  color: #243149;
  letter-spacing: -0.2px;
  line-height: 1.2;
}
.code-badges-sub {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.code-sub-badge {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 5.5px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  background-color: #eef2ff;
  color: #4338ca;
  border: 1px solid #e0e7ff;
  line-height: 1.25;
  white-space: nowrap;
}
.code-sub-badge.empty-code {
  background-color: #f8fafc;
  color: #6366f1;
  border-color: #e2e8f0;
}

.badge-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-block;
}
.badge-tag.type-normal { background-color: #e0f2fe; color: #0369a1; }
.badge-tag.type-simple { background-color: #ffedd5; color: #c2410c; }

.badge-tag.case-0 { background-color: #f1f5f9; color: #475569; }
.badge-tag.case-1 { background-color: #e0e7ff; color: #3730a3; }
.badge-tag.case-10 { background-color: #fee2e2; color: #b91c1c; font-weight: 700; }
.badge-tag.case-11 { background-color: #fce7f3; color: #be185d; font-weight: 700; }

.badge-tag.pass { background-color: #dcfce7; color: #15803d; font-weight: 700; }
.badge-tag.diff { background-color: #fef2f2; color: #dc2626; font-weight: 700; cursor: pointer; }

.btn-table-action {
  padding: 3px 7px;
  font-size: 11px;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-main);
}
.btn-table-action:hover {
  background-color: var(--bg-main);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.biz-name-cell strong {
  color: #0f172a;
  cursor: pointer;
}
.biz-name-cell strong:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
.biz-no-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

.text-money {
  text-align: right;
  font-family: -apple-system, BlinkMacSystemFont, monospace;
  font-variant-numeric: tabular-nums;
}
.text-danger { color: var(--danger-color); }
.text-success { color: var(--success-color); }
.font-bold { font-weight: 700; }

/* 페이지네이션 */
.table-pagination {
  padding: 8px 14px;
  border-top: 1px solid var(--border-color);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.pagination-controls {
  display: flex;
  gap: 3px;
}

.btn-page {
  padding: 4px 9px;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  cursor: pointer;
}
.btn-page.active {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  font-weight: 700;
}

/* ================= 엠프티 / 준비중 뷰 ================= */
.empty-state-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 60px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
}

.empty-icon {
  margin-bottom: 14px;
  color: var(--primary-color);
}

.empty-state-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.empty-state-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 16px;
}

.empty-state-card .meta-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.empty-state-card .meta-tags .badge {
  background-color: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ================= 모달 팝업 ================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal-backdrop.show,
.modal-backdrop.modal-open {
  display: flex;
}

.modal-dialog {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

.modal-lg { width: 860px; }
.modal-md { width: 560px; }

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-header-title .sub-info {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-color);
}

.modal-header-title h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 2px 0 3px;
}

.modal-header-title .guide-text {
  font-size: 11.5px;
  color: var(--text-muted);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
}
.btn-close-modal:hover { color: var(--text-main); }

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.col-setting-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.col-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.col-group-header h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 11.5px;
  cursor: pointer;
  font-weight: 600;
}
.btn-link:hover { text-decoration: underline; }

.col-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.col-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  transition: all 0.15s ease;
}

.col-card.checked {
  background-color: #fafbfc;
  border-color: #cbd5e1;
}

.col-card label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #334155;
  flex: 1;
}

.badge-col {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.badge-col.default { background-color: #e0e7ff; color: #3730a3; }
.badge-col.optional { background-color: #f1f5f9; color: #475569; }
.badge-col.sensitive { background-color: #fee2e2; color: #991b1b; }

.btn-pin {
  font-size: 10px;
  padding: 2px 5px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 4px;
}
.btn-pin:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-footer .footer-right {
  display: flex;
  gap: 6px;
}

/* 카톡 멘트 모달 세부 */
.msg-box-wrapper {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
}

.msg-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.btn-copy {
  padding: 4px 8px;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.btn-copy:hover { background-color: var(--primary-hover); }

.msg-textarea {
  width: 100%;
  height: 260px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #1e293b;
  background-color: #ffffff;
  font-family: inherit;
  resize: vertical;
}

.quick-link-box {
  margin-top: 12px;
  text-align: center;
}

.btn-kakao {
  display: inline-block;
  width: 100%;
  padding: 10px;
  background-color: #fee500;
  color: #191919;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius-md);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.btn-kakao:hover { background-color: #fdd835; }

/* 토스트 팝업 */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: #1e293b;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 2000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   신고 차수 2-Depth 및 16개 필수 그룹핑 열 전용 스타일
   ========================================================================== */

/* 2-Depth 신고 목록 화면 */
.cycle-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.section-header-bar h2 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.section-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cycle-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cycle-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cycle-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cycle-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cycle-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}

.cycle-card-period {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 6px;
}

.cycle-card-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.cycle-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 11.5px;
  color: var(--text-muted);
}

/* 2-Depth 신고 차수 상세 컨테이너 */
.cycle-detail-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  flex: 1;
}

/* 뷰 전환 강제 은닉 유틸리티 */
.hidden-view {
  display: none !important;
}

.cycle-detail-container > .detail-nav-bar,
.cycle-detail-container > .master-search-bar,
.cycle-detail-container > .table-container {
  width: 100% !important;
  box-sizing: border-box;
}

/* 2-Depth 상세 헤더 네비게이션 바 */
.detail-nav-bar {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.current-cycle-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-cycle-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.guide-note {
  font-size: 11.5px;
  color: #475569;
}

/* 16대 컬럼 전용 상태 뱃지 드롭다운 */
.status-badge-cell {
  cursor: pointer;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.15s ease;
  user-select: none;
}

.status-badge-cell:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.status-done {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.status-ongoing {
  background-color: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.status-pass {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* 폼 컨트롤 */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

.form-label .required {
  color: var(--danger-color);
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* 체크리스트 모달 내부 */
.status-selector-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f8fafc;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  border: 1px solid var(--border-color);
}

.status-selector-bar .label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.status-select {
  width: auto;
  min-width: 140px;
}

/* 체크리스트 전체 선택/해제 조작 바 */
.checklist-toggle-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px 10px 4px;
  border-bottom: 1px dashed #e2e8f0;
  margin-bottom: 10px;
}

.checklist-count-label {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
  background-color: #eff6ff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #dbeafe;
}

.checklist-toggle-btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.btn-text-toggle {
  background: none;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-text-toggle:hover {
  background-color: #eff6ff;
  color: #1d4ed8;
  text-decoration: underline;
}

.checklist-toggle-btns .sep {
  color: #cbd5e1;
  font-size: 11px;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.checklist-item:hover {
  background-color: #f8fafc;
}

.checklist-item.checked {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
}

.checklist-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12.5px;
  color: #1e293b;
  flex: 1;
}

.checklist-tag {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background-color: #f1f5f9;
  color: var(--text-muted);
}


/* ==========================================================================
   화면 총괄표 및 차수 목록 와이드 검색 Bar 스타일
   ========================================================================== */

/* 1. 신고 차수 검색 툴바 */
.cycle-search-toolbar {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 4px;
}

/* 2. 화면 총괄표 메인 검색 Bar (와이드 메인 툴바) */
.master-search-bar {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.table-16-cols {
  min-width: 1750px;
  width: 100%;
}

.search-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.wide-search-box {
  flex: 1;
  position: relative;
}

.wide-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  stroke: var(--text-light);
}

.wide-search-box input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  background-color: #f8fafc;
  transition: all 0.15s ease;
}

.wide-search-box input:focus {
  background-color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.search-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  padding-top: 4px;
  border-top: 1px dashed var(--border-light);
}

.count-badge {
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
}


/* ==========================================================================
   신고철 8대 필수 그룹핑 파이프라인 현황 바
   ========================================================================== */
.pipeline-summary-bar {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pipeline-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #0f172a;
}

.pipeline-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-left: 6px;
}

.btn-outline-primary {
  background-color: #ffffff;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-outline-primary:hover {
  background-color: #eff6ff;
}

.pipeline-stage-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.stage-kpi-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stage-kpi-card:hover {
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.stage-kpi-card.active-stage {
  border-color: var(--primary-color);
  background-color: #eff6ff;
  box-shadow: 0 0 0 1px var(--primary-color);
}

.stage-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stage-name {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-rate-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
}

.rate-high { background-color: #dcfce7; color: #166534; }
.rate-mid { background-color: #fef9c3; color: #854d0e; }
.rate-low { background-color: #ffedd5; color: #9a3412; }

.stage-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #64748b;
}

.stage-count-row .done {
  color: #16a34a;
  font-weight: 700;
}

.stage-count-row .ongoing {
  color: #2563eb;
  font-weight: 700;
}

.stage-progress-bar {
  height: 4px;
  background-color: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

.stage-progress-fill {
  height: 100%;
  background-color: #10b981;
  transition: width 0.3s ease;
}

/* ==========================================================================
   활성 필터 칩 영역 (Active Filter Chips)
   ========================================================================== */
.active-filter-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background-color: #f1f5f9;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
}

.chips-label {
  font-weight: 700;
  color: #475569;
  font-size: 11px;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.filter-chip {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.filter-chip strong {
  color: var(--primary-color);
}

.filter-chip .btn-remove-chip {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  line-height: 1;
}

.filter-chip .btn-remove-chip:hover {
  color: #ef4444;
}

.btn-clear-all-chips {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ==========================================================================
   테이블 헤더 페싯 필터 트리거 버튼
   ========================================================================== */
.erp-table th {
  position: relative;
}

.erp-table th .btn-facet-filter {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 9.5px;
  padding: 1px 3px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 3px;
  transition: all 0.15s ease;
  vertical-align: middle;
}

.erp-table th .btn-facet-filter:hover {
  background-color: #cbd5e1;
  color: #0f172a;
}

.erp-table th .btn-facet-filter.active-filter {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
}

/* 페싯 필터 플로팅 팝오버 */
.facet-popover {
  position: absolute;
  z-index: 999;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  width: 230px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.facet-popover-header {
  padding: 8px 12px;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.facet-popover-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.facet-popover-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
}

.facet-popover-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.facet-sort-row {
  display: flex;
  gap: 6px;
}

.btn-sort-opt {
  flex: 1;
  padding: 4px 6px;
  font-size: 10.5px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: #334155;
  transition: all 0.15s ease;
}

.btn-sort-opt:hover {
  background-color: #e2e8f0;
}

.facet-search-box input {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  outline: none;
}

.facet-toggle-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 10.5px;
}

.btn-text-opt {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0;
  font-size: 10.5px;
}

.facet-toggle-row .sep {
  color: #cbd5e1;
}

.facet-value-list {
  max-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.facet-val-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px;
  font-size: 11.5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.facet-val-item:hover {
  background-color: #f8fafc;
}

.facet-val-item label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 1;
}

.facet-val-count {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

.facet-popover-footer {
  padding: 8px 10px;
  background-color: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.facet-popover.facet-popover-wide {
  width: 350px !important;
  max-width: 92vw;
}

.facet-checklist-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 6px;
}

.facet-checklist-item-wrap {
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.facet-checklist-item-wrap:last-child {
  border-bottom: none;
}

.facet-checklist-item-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 5px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.facet-checklist-btn-group {
  display: flex;
  gap: 4px;
}

.btn-check-opt {
  flex: 1;
  text-align: center;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 10.5px;
  cursor: pointer;
  background: #ffffff;
  color: #475569;
  user-select: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-check-opt:hover {
  background: #f1f5f9;
}

.btn-check-opt.active {
  background: #e0e7ff;
  border-color: #6366f1;
  color: #3730a3;
  font-weight: 700;
}

.btn-check-opt.opt-done.active {
  background: #dcfce7;
  border-color: #16a34a;
  color: #15803d;
  font-weight: 700;
}

.btn-check-opt.opt-undone.active {
  background: #fee2e2;
  border-color: #dc2626;
  color: #b91c1c;
  font-weight: 700;
}

.facet-progress-count-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}

/* ==========================================================================
   긴급산출 열 토글 버튼
   ========================================================================== */
.btn-urgent-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-urgent-toggle.urgent-active {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  font-weight: 800;
}

.btn-urgent-toggle.urgent-inactive {
  background-color: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}

.btn-urgent-toggle:hover {
  filter: brightness(0.95);
}

/* ==========================================================================
   신고메모 댓글 모달 스타일
   ========================================================================== */
.memo-cell-wrapper {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.memo-count-tag {
  background-color: #e0e7ff;
  color: #3730a3;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 8px;
}

.memo-done-tag {
  color: #16a34a;
  font-size: 11px;
  font-weight: bold;
}

.new-memo-form {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.memo-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.memo-author-row input {
  width: 140px;
}

.memo-textarea {
  resize: vertical;
}

.memo-form-actions {
  display: flex;
  justify-content: flex-end;
}

.memo-feed-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.memo-feed-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.memo-feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.memo-feed-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.memo-feed-item.completed {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
}

.memo-item-content {
  flex: 1;
}

.memo-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
}

.memo-item-meta .author {
  font-weight: 700;
  color: #0f172a;
}

.memo-item-text {
  font-size: 12.5px;
  color: #1e293b;
  line-height: 1.4;
  white-space: pre-wrap;
}

.memo-feed-item.completed .memo-item-text {
  color: #475569;
  text-decoration: line-through;
}

.btn-v-check-toggle {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-v-check-toggle.checked {
  background-color: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

/* ==========================================================================
   사업장 상세·수정 모달 (현행 ERP 100% 실물 룩앤필)
   ========================================================================== */
.biz-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.biz-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.biz-header-left .sub-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: -0.2px;
}

.biz-main-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.biz-main-title-row h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.badge-sub-info {
  font-size: 11px;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-status-green {
  font-size: 11px;
  font-weight: 700;
  background-color: #dcfce7;
  color: #15803d;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #bbf7d0;
}

.biz-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.btn-action-pill {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 14px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.btn-action-pill:hover {
  background-color: #e2e8f0;
}

.biz-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.biz-summary-bar {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11.5px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.summary-item .label {
  color: #64748b;
}

.summary-item strong {
  color: #0f172a;
}

.btn-copy-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  padding: 1px 3px;
  border-radius: 3px;
}

.btn-copy-icon:hover {
  background-color: #e2e8f0;
}

.biz-tabs-bar {
  display: flex;
  border-bottom: 1px solid #cbd5e1;
  background-color: #ffffff;
  padding: 0 20px;
}

.biz-tab-btn {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.biz-tab-btn:hover {
  color: var(--primary-color);
}

.biz-tab-btn.active {
  color: var(--primary-color);
  font-weight: 700;
  border-bottom-color: var(--primary-color);
}

.biz-modal-body {
  padding: 18px 20px;
  max-height: 520px;
  overflow-y: auto;
}

.biz-section-box {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.biz-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  border-left: 3px solid var(--primary-color);
  padding-left: 8px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.contract-check-box {
  border: 1.5px solid #10b981;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  background-color: #f0fdf4;
}

.contract-check-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-with-btn {
  display: flex;
  gap: 6px;
}

.form-hint {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 3px;
  display: block;
}

/* ==========================================================================
   신고 대상 업체 추가 모달 스타일
   ========================================================================== */
.add-biz-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.add-biz-filter-bar .search-box {
  flex: 1;
  position: relative;
}

.add-biz-filter-bar .search-box svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  stroke: #94a3b8;
}

.add-biz-filter-bar .search-box input {
  width: 100%;
  padding: 7px 10px 7px 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
  outline: none;
}

.add-biz-filter-bar select {
  width: auto;
  min-width: 120px;
}

.add-biz-table-wrapper {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.selected-count-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
}

/* ==========================================================================
   담당자별 필수 그룹핑 종합 집계 매트릭스 표 (현대적 ERP 프리미엄 대시보드 룩앤필)
   ========================================================================== */

/* 1. 상단 종합 KPI 카드 바 */
.matrix-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.matrix-kpi-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.matrix-kpi-info .kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
}

.matrix-kpi-info .kpi-val {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.matrix-kpi-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.matrix-kpi-badge.blue  { background-color: #eff6ff; color: #1d4ed8; }
.matrix-kpi-badge.green { background-color: #f0fdf4; color: #15803d; }
.matrix-kpi-badge.amber { background-color: #fff7ed; color: #c2410c; }
.matrix-kpi-badge.slate { background-color: #f1f5f9; color: #475569; }

/* 2. 필터 & 검색 툴바 */
.matrix-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.matrix-filter-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.matrix-quick-filters {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.btn-quick-chip {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-chip:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.btn-quick-chip.active {
  background-color: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(30, 58, 138, 0.2);
}

.matrix-result-count {
  font-size: 12px;
  color: #64748b;
}

.matrix-result-count strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* 3. 상단 2개 행 Sticky 고정 매트릭스 테이블 */
.matrix-table-container {
  overflow: auto;
  max-height: 520px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  background-color: #ffffff;
}

.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11.5px;
  white-space: nowrap;
  background-color: #ffffff;
}

/* Row 1 헤더 Sticky (top: 0) */
.matrix-table thead tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  height: 34px;
  padding: 6px 8px;
  border-right: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  text-align: center;
}

/* 8대 필수 단계 그룹핑 헤더 */
.matrix-table thead tr:first-child th.matrix-header-group {
  background-color: #eef2ff;
  color: #312e81;
  border-bottom: 1px solid #c7d2fe;
}

/* Row 2 헤더 Sticky (top: 34px) */
.matrix-table thead tr:last-child th {
  position: sticky;
  top: 34px;
  z-index: 19;
  height: 26px;
  padding: 3px 6px;
  font-size: 10.5px;
  font-weight: 700;
  border-right: 1px solid #cbd5e1;
  border-bottom: 2px solid #64748b;
  text-align: center;
}

.matrix-th-ongoing {
  background-color: #fff7ed !important;
  color: #c2410c !important;
}

.matrix-th-done {
  background-color: #f0fdf4 !important;
  color: #15803d !important;
}

/* 좌측 3개 열 고정 (Row 1 Header) */
.matrix-table thead tr:first-child th.col-sticky-name {
  left: 0;
  z-index: 35;
  background-color: #f1f5f9;
  min-width: 105px;
}

.matrix-table thead tr:first-child th.col-sticky-team {
  left: 105px;
  z-index: 34;
  background-color: #f1f5f9;
  min-width: 80px;
}

.matrix-table thead tr:first-child th.col-sticky-total {
  left: 185px;
  z-index: 33;
  background-color: #f1f5f9;
  min-width: 85px;
  box-shadow: 2px 0 4px -1px rgba(0, 0, 0, 0.08);
}

/* 데이터 행 셀 스타일 */
.matrix-table tbody td {
  padding: 5px 8px;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
  font-size: 11.5px;
  background-color: #ffffff;
}

.matrix-table tbody tr:nth-child(even) td {
  background-color: #fafafa;
}

.matrix-table tbody tr:hover td {
  background-color: #f1f5f9 !important;
}

/* 데이터 행 좌측 3개 열 Sticky 고정 */
.matrix-table tbody td.col-sticky-name {
  position: sticky;
  left: 0;
  z-index: 10;
  background-color: #ffffff;
  text-align: left;
  font-weight: 700;
  color: #1e293b;
  padding-left: 12px;
}

.matrix-table tbody td.col-sticky-team {
  position: sticky;
  left: 105px;
  z-index: 9;
  background-color: #ffffff;
  color: #475569;
}

.matrix-table tbody td.col-sticky-total {
  position: sticky;
  left: 185px;
  z-index: 8;
  background-color: #ffffff;
  font-weight: 800;
  color: #0f172a;
  box-shadow: 2px 0 4px -1px rgba(0, 0, 0, 0.08);
}

.matrix-table tbody tr:nth-child(even) td.col-sticky-name,
.matrix-table tbody tr:nth-child(even) td.col-sticky-team,
.matrix-table tbody tr:nth-child(even) td.col-sticky-total {
  background-color: #fafafa;
}

.matrix-table tbody tr:hover td.col-sticky-name,
.matrix-table tbody tr:hover td.col-sticky-team,
.matrix-table tbody tr:hover td.col-sticky-total {
  background-color: #f1f5f9 !important;
}

/* 숫자 뱃지 디자인 */
.matrix-zero-val {
  color: #cbd5e1;
  font-weight: 400;
}

.matrix-ongoing-badge {
  display: inline-block;
  min-width: 20px;
  padding: 1.5px 5.5px;
  border-radius: 4px;
  background-color: #fee2e2;
  color: #b91c1c;
  font-weight: 800;
  font-size: 11px;
  border: 1px solid #fecaca;
  box-shadow: 0 1px 2px rgba(185, 28, 28, 0.08);
}

.matrix-done-badge {
  display: inline-block;
  min-width: 20px;
  padding: 1.5px 5.5px;
  border-radius: 4px;
  background-color: #dcfce7;
  color: #15803d;
  font-weight: 800;
  font-size: 11px;
  border: 1px solid #bbf7d0;
}

/* 담당자 아바타 이니셜 태그 */
.manager-avatar-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #e0e7ff;
  color: #3730a3;
  font-size: 10px;
  font-weight: 800;
  margin-right: 6px;
}

.team-chip {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: #f1f5f9;
  color: #475569;
  font-size: 10.5px;
  font-weight: 600;
}

/* 하단 총합계 고정 Tfoot */
.matrix-table tfoot tr td {
  position: sticky;
  bottom: 0;
  z-index: 25;
  background-color: #f8fafc !important;
  color: #0f172a;
  font-weight: 800;
  font-size: 12px;
  padding: 8px;
  border-top: 2px solid #475569;
  border-right: 1px solid #cbd5e1;
  text-align: center;
}

.matrix-table tfoot tr td.col-sticky-name {
  left: 0;
  z-index: 38;
  background-color: #f8fafc !important;
  text-align: center;
}

.matrix-table tfoot tr td.col-sticky-team {
  left: 105px;
  z-index: 37;
  background-color: #f8fafc !important;
}

.matrix-table tfoot tr td.col-sticky-total {
  left: 185px;
  z-index: 36;
  background-color: #f8fafc !important;
  box-shadow: 2px 0 4px -1px rgba(0, 0, 0, 0.1);
}

/* 집계표 셀 인터랙션 (더블클릭 힌트) */
.matrix-cell-clickable {
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.matrix-cell-clickable:hover {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  background-color: #eff6ff !important;
}

/* 4. 드릴다운 업체 리스트 모달 (matrixDrilldownModal) */
.drilldown-table-wrapper {
  max-height: 480px;
  overflow: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
}

.drilldown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}

.drilldown-table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f1f5f9;
  padding: 9px 12px;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 1px solid #cbd5e1;
  border-right: 1px solid #e2e8f0;
  text-align: left;
}

.drilldown-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f8fafc;
  vertical-align: middle;
}

.drilldown-table tbody tr:nth-child(even) td {
  background-color: #fafafa;
}

.drilldown-table tbody tr:hover td {
  background-color: #f0fdf4 !important;
}

/* ==========================================================================
   [2026-10-14 고도화] 메모 댓글(대댓글) 스레드 / 수정·삭제 / 메인테이블 Sticky / 일괄처리 바
   ========================================================================== */

/* 1. 신고메모 카드 레이아웃 확장 (댓글 스레드 + 인라인 수정/삭제) */
.memo-feed-list {
  max-height: 380px;
}

.memo-feed-item {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 14px;
  transition: box-shadow 0.15s ease;
}

.memo-feed-item:hover {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.memo-item-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.memo-action-btns {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.btn-memo-action {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.btn-memo-action:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.btn-memo-action.reply-btn {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.btn-memo-action.reply-btn:hover {
  background-color: #dbeafe;
}

.btn-memo-action.delete-btn {
  color: #dc2626;
  border-color: #fecaca;
  background-color: #fef2f2;
}

.btn-memo-action.delete-btn:hover {
  background-color: #fee2e2;
}

/* 메모 인라인 수정 박스 */
.memo-edit-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.memo-edit-textarea {
  width: 100%;
  font-size: 12.5px;
  padding: 8px;
  border: 1px solid #3b82f6;
  border-radius: 4px;
  resize: vertical;
  background-color: #ffffff;
}

.memo-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

/* 계층형 댓글(대댓글) 스레드 영역 */
.memo-replies-section {
  margin-top: 6px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 2px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.memo-reply-item {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.memo-feed-item.completed .memo-reply-item {
  background-color: #ffffff;
  border-color: #dcfce7;
}

.memo-reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
}

.memo-reply-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.memo-reply-meta .reply-author {
  font-weight: 700;
  color: #1e293b;
}

.memo-reply-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-reply-mini {
  background: transparent;
  border: none;
  font-size: 10.5px;
  color: #64748b;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 3px;
}

.btn-reply-mini:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.btn-reply-mini.del:hover {
  background-color: #fee2e2;
  color: #dc2626;
}

.memo-reply-text {
  font-size: 12px;
  color: #1e293b;
  line-height: 1.4;
  white-space: pre-wrap;
  padding-left: 14px;
}

/* 인라인 댓글 입력 바 */
.memo-reply-input-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  background-color: #f1f5f9;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.memo-reply-input-bar .reply-arrow {
  color: #64748b;
  font-weight: 700;
  font-size: 12px;
}

.memo-reply-input-bar .reply-author-field {
  width: 78px;
  height: 26px;
  font-size: 11.5px;
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
}

.memo-reply-input-bar .reply-content-field {
  flex: 1;
  height: 26px;
  font-size: 11.5px;
  padding: 2px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
}

.memo-reply-input-bar .btn-reply-submit {
  height: 26px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.memo-reply-input-bar .btn-reply-submit:hover {
  background-color: #1d4ed8;
}

/* 2. 메인 총괄표(vat16Table) 상단 헤더 & 좌측 핵심열(코드체계/상호) Sticky 고정 */
#mainVatTableResponsive {
  max-height: calc(100vh - 285px);
  overflow: auto;
  position: relative;
}

.table-16-cols {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.table-16-cols thead th {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #f8fafc;
  border-bottom: 2px solid #cbd5e1 !important;
}

/* 코드체계 및 상호 열 기본 정렬 (수평 sticky 오프셋 제거로 헤더-바디 1:1 완벽 정렬 보장) */
.table-16-cols th.col-sticky-code,
.table-16-cols td.col-sticky-code {
  min-width: 140px;
}

.table-16-cols thead th.col-sticky-code {
  background-color: #f8fafc;
}

.table-16-cols th.col-sticky-biz,
.table-16-cols td.col-sticky-biz {
  min-width: 155px;
}

.table-16-cols thead th.col-sticky-biz {
  background-color: #f8fafc;
}

.table-16-cols tbody tr.row-selected td.col-sticky-code,
.table-16-cols tbody tr.row-selected td.col-sticky-biz {
  background-color: #eff6ff !important;
}

.table-16-cols tbody tr:hover td.col-sticky-code,
.table-16-cols tbody tr:hover td.col-sticky-biz {
  background-color: #f1f5f9 !important;
}

/* 3. 코드체계 [통/소] 배지 원클릭 세트 모아보기 인터랙션 */
.code-sub-badge.clickable-code {
  cursor: pointer;
  transition: all 0.15s ease;
}

.code-sub-badge.clickable-code:hover {
  background-color: #4338ca !important;
  color: #ffffff !important;
  border-color: #3730a3 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(67, 56, 202, 0.25);
}

/* 4. 다중 선택 일괄 처리 액션 바 (bulk-action-toolbar) */
.bulk-action-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #eff6ff;
  border: 1px solid #93c5fd;
  padding: 4px 10px;
  border-radius: 6px;
  flex-wrap: wrap;
}

.bulk-selected-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: #1d4ed8;
  padding-right: 2px;
}

.bulk-select {
  height: 27px;
  font-size: 11.5px;
  padding: 2px 6px;
  width: auto;
  min-width: 92px;
  background-color: #ffffff;
}

.bulk-divider {
  color: #93c5fd;
  font-size: 12px;
}

/* 5. 단계 배지 내 세부 체크리스트 진척도 표시 */
.status-badge-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  padding: 4px 8px;
}

.stage-sub-progress {
  font-size: 9.5px;
  font-weight: 700;
  opacity: 0.85;
  margin-top: 1px;
}

/* ==========================================================================
   [2026-10-14 2차 대규모 고도화] 17대 실무 요구사항 전용 스타일
   ========================================================================== */

/* 1. 상단 헤더 계정/권한 스위처 */
.account-switcher-box {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 6px;
}

.account-switcher-box .account-label {
  font-size: 11px;
  font-weight: 700;
  color: #1e40af;
}

.account-switcher-box .account-select {
  border: none;
  background: transparent;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  outline: none;
}

/* 2. 최상단 단일 컴팩트 통합 툴바 (Single Compact Top Bar) */
.compact-master-toolbar {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  margin-bottom: 6px;
}

.compact-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compact-cycle-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #0f172a;
}

.compact-toolbar-center {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 480px;
  flex-wrap: wrap;
}

.enter-search-box {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0 4px 0 10px;
  height: 31px;
  transition: all 0.15s ease;
}

.enter-search-box:focus-within {
  background-color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.enter-search-box svg {
  stroke: #64748b;
  flex-shrink: 0;
}

.enter-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  padding: 4px 8px;
  font-size: 12px;
  color: #0f172a;
  outline: none;
}

.btn-enter-search {
  background-color: #1e3a8a;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-enter-search:hover {
  background-color: #1d4ed8;
}

.compact-select {
  height: 31px;
  padding: 0 8px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: #1e293b;
  outline: none;
}

.compact-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 3. 직원 계정별 분리 저장 [나만의 필터 ▾] 드롭다운 */
.my-filter-dropdown-wrapper {
  position: relative;
}

.btn-my-filter {
  height: 31px;
  padding: 0 10px;
  background-color: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #92400e;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-my-filter:hover {
  background-color: #fef3c7;
  border-color: #f59e0b;
}

.my-filter-active-label {
  background-color: #ffffff;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #fde68a;
  color: #b45309;
  font-weight: 800;
}

.my-filter-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 950;
  width: 260px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
  padding: 6px 0;
}

.my-filter-menu-header {
  padding: 6px 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.my-filter-item {
  padding: 7px 12px;
  font-size: 12px;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.12s ease;
}

.my-filter-item:hover {
  background-color: #f1f5f9;
}

.my-filter-item.active {
  background-color: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.my-filter-item .del-preset-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  padding: 0 4px;
}

.my-filter-item .del-preset-btn:hover {
  color: #dc2626;
}

.my-filter-menu-footer {
  border-top: 1px solid #e2e8f0;
  margin-top: 4px;
  padding: 6px 10px 2px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adv-filter-badge {
  background-color: #2563eb;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
}

/* 컴팩트 파이프라인 바 */
.pipeline-summary-bar.compact-pipeline {
  padding: 8px 12px;
  gap: 6px;
  margin-bottom: 6px;
}

/* 4. 캘린더 기간 선택기 (작업기간 / 과세기간) */
.date-range-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-range-picker-row .date-input-wrap {
  flex: 1;
}

.date-range-sep {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

/* 5. 각 열 헤더 [≫ / ≪] 인라인 펼치기/접기 버튼 및 서브 컬럼 */
.btn-col-expand-toggle {
  background-color: #e0e7ff;
  border: 1px solid #a5b4fc;
  color: #3730a3;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 3px;
  vertical-align: middle;
  transition: all 0.15s ease;
}

.btn-col-expand-toggle:hover {
  background-color: #4338ca;
  color: #ffffff;
}

.btn-col-expand-toggle.expanded {
  background-color: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
}

.erp-table th.th-sub-expanded {
  background-color: #eff6ff !important;
  color: #1e3a8a !important;
  font-size: 10.5px !important;
  border-bottom: 2px solid #93c5fd !important;
  border-right: 1px dashed #bfdbfe !important;
  min-width: 98px;
  max-width: 140px;
  white-space: normal !important;
  line-height: 1.25;
  text-align: center;
  padding: 5px 6px !important;
}

.erp-table th.th-sub-expanded.must-sub-col {
  background-color: #fef2f2 !important;
  color: #991b1b !important;
  border-bottom: 2px solid #fca5a5 !important;
}

.erp-table td.td-sub-expanded {
  background-color: #f8fafc;
  border-right: 1px dashed #e2e8f0;
  text-align: center;
  font-size: 11px;
  padding: 4px 6px !important;
}

.sub-check-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.sub-check-pill.checked {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.sub-check-pill.unchecked {
  background-color: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #cbd5e1;
}

/* 6. 산출~세액협의 5대 과표 열 & 예상납부(환급) 열 & 수당 열 */
.erp-table th.th-numeric-gate {
  background-color: #f0fdf4 !important;
  color: #14532d !important;
  border-bottom: 2px solid #86efac !important;
  font-size: 11px;
}

.erp-table th.th-expected-tax {
  background-color: #fff7ed !important;
  color: #9a3412 !important;
  border-bottom: 2px solid #fdba74 !important;
  font-size: 11px;
}

.erp-table th.th-allowance-col {
  background-color: #faf5ff !important;
  color: #581c87 !important;
  border-bottom: 2px solid #d8b4fe !important;
}

.td-numeric-cell {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 11.5px;
  cursor: pointer;
  color: #0f172a;
}

.td-numeric-cell:hover {
  background-color: #eff6ff !important;
  text-decoration: underline;
}

.td-numeric-cell.empty-num {
  color: #dc2626;
  font-weight: 600;
  font-size: 10.5px;
}

.td-numeric-cell.refund-num {
  color: #2563eb;
}

.stage-last-user-mini {
  font-size: 9px;
  color: #64748b;
  margin-top: 1px;
  white-space: nowrap;
}

.stage-type-mini-pill {
  display: inline-block;
  margin-top: 2px;
  padding: 0 4px;
  font-size: 9px;
  font-weight: 700;
  background-color: #e0f2fe;
  color: #0369a1;
  border-radius: 3px;
}

/* 7. 담당자 열 지원 TAG 배지 & 수당 배지 */
.mgr-cell-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mgr-main-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.btn-add-mgr-tag {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 9.5px;
  padding: 1px 4px;
  border-radius: 3px;
  cursor: pointer;
}

.btn-add-mgr-tag:hover {
  background-color: #e0e7ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.mgr-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.mgr-support-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background-color: #ede9fe;
  border: 1px solid #c4b5fd;
  color: #5b21b6;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  cursor: pointer;
}

.mgr-support-tag:hover {
  background-color: #ddd6fe;
}

.allowance-cell-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 155px;
}

.allowance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background-color: #faf5ff;
  border: 1px solid #e9d5ff;
  color: #6b21a8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.allowance-badge:hover {
  background-color: #f3e8ff;
}

.btn-add-allowance-inline {
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
}

.btn-add-allowance-inline:hover {
  border-color: #9333ea;
  color: #7e22ce;
  background-color: #faf5ff;
}

/* 8. 체크리스트 모달 내 전용 섹션 (최종처리자, 과세유형, 고객특성 카드, 과표 게이트웨이, 강조배지, Audit Trail) */
.last-processor-badge {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.processor-hint {
  font-size: 11.5px;
  color: #475569;
}

.stage-special-box {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.special-box-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: #0f172a;
}

.must-badge {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.tax-type-radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tax-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
}

.tax-type-pill:has(input:checked) {
  background-color: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 0 0 1px #2563eb;
}

.client-trait-summary-card {
  background-color: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 10px 12px;
}

.trait-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e0f2fe;
}

.trait-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  font-size: 11.5px;
}

.trait-summary-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.trait-summary-item .t-label {
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.trait-summary-item .t-val {
  color: #0f172a;
  font-weight: 700;
}

.numeric-gateway-box {
  background-color: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 10px 12px;
}

.gateway-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.gateway-sub {
  font-size: 11px;
  color: #b45309;
  font-weight: 600;
}

.gateway-inputs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
}

.gateway-input-item label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 3px;
}

.gateway-input-item input {
  text-align: right;
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
  background-color: #ffffff;
}

/* 강조 표시 필수 체크리스트 아이템 */
.checklist-item.highlight-must {
  border-left: 4px solid #ef4444;
  background-color: #fff5f5;
}

.checklist-item.highlight-must.checked {
  border-left: 4px solid #16a34a;
  background-color: #f0fdf4;
}

.checklist-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-chk-crud {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-chk-crud:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-chk-crud.del:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.checklist-crud-add-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

.crud-must-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #b91c1c;
  white-space: nowrap;
  cursor: pointer;
}

/* Audit Trail 박스 */
.stage-audit-trail-box {
  margin-top: 14px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
}

.audit-trail-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.audit-trail-list {
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.audit-trail-item {
  font-size: 11px;
  color: #475569;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 5px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* 9. 상세 필터(추가 필터) 모달 */
.adv-builder-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adv-cond-list-box {
  min-height: 70px;
  max-height: 180px;
  overflow-y: auto;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adv-cond-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 12px;
}

.adv-preset-save-box {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preset-save-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.preset-save-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 10. 미수금 독촉 발송 모달 & 사업장 상세 미수금 탭 */
.dunning-company-card {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dunning-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dunning-card-top h4 {
  margin: 0;
  font-size: 15px;
  color: #0f172a;
}

.dunning-sub-meta {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.dunning-textarea {
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.55;
  background-color: #ffffff;
  color: #0f172a;
  padding: 12px;
}

.unpaid-tab-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.unpaid-tab-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.unpaid-balance-pill {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-weight: 800;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 20px;
}

.unpaid-memo-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.unpaid-memo-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.unpaid-memo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.unpaid-memo-card-head .sub-code {
  font-size: 11px;
  color: #64748b;
  margin-left: 6px;
}

.unpaid-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.unpaid-month-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12.5px;
}

/* 11. 관리자 전용 > 선택값 관리 뷰 (#view-select-values) */
.select-values-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sv-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.sv-category-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sv-category-card:hover {
  border-color: #2563eb;
  background-color: #f8fafc;
}

.sv-category-card.active {
  background-color: #eff6ff;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.sv-cat-group {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}

.sv-cat-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
}

.sv-cat-count {
  font-size: 11px;
  color: #2563eb;
  font-weight: 700;
  margin-top: 4px;
}

.sv-stage-subbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
}

.btn-sv-stage {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-sv-stage.active {
  background-color: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
}

.sv-add-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
}

.sv-check-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  cursor: pointer;
}

/* 12. 집계표 모드 전환 탭 (기본 담당자 vs 담당자+TAG) */
.matrix-mode-tabs {
  display: inline-flex;
  background-color: #e2e8f0;
  padding: 3px;
  border-radius: 6px;
  gap: 3px;
}

.btn-matrix-mode {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.btn-matrix-mode.active {
  background-color: #ffffff;
  color: #1e3a8a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 13. 수당 모달 및 담당자 TAG 모달 */
.allowance-add-box {
  background-color: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 8px;
  padding: 12px;
}

.allowance-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.allowance-total-badge {
  background-color: #f3e8ff;
  color: #6b21a8;
  font-weight: 800;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
}

.allowance-list-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.allowance-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
}

.mgr-tag-quick-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-quick-tag {
  background-color: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #5b21b6;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
}

.btn-quick-tag:hover {
  background-color: #ede9fe;
}

.mgr-tag-list-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 50px;
  padding: 10px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

/* ==========================================================================
   14. 🤖 GPT / 실서버 ERP 이식용 개발 주석 배너 (.gpt-spec-callout) & 헤더 컨트롤
   ========================================================================== */
.btn-gpt-spec-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #ecfdf5;
  border: 1.5px solid #10b981;
  color: #047857;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-gpt-spec-toggle:hover {
  background-color: #d1fae5;
}

.btn-gpt-spec-toggle.off {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

.btn-gpt-spec-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #0f172a;
  border: 1px solid #0f172a;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-gpt-spec-copy:hover {
  background-color: #1e293b;
}

.gpt-spec-callout {
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  border: 1.5px dashed #10b981;
  border-left: 5px solid #059669;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.06);
}

.gpt-spec-callout.compact-spec {
  padding: 7px 12px;
  margin-bottom: 10px;
}

.gpt-spec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.gpt-spec-callout.compact-spec .gpt-spec-header {
  margin-bottom: 0;
}

.gpt-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #059669;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: -0.2px;
}

.gpt-title {
  font-size: 12.5px;
  color: #064e3b;
  font-weight: 800;
  margin-left: 6px;
}

.gpt-sub {
  font-size: 11px;
  color: #0f766e;
  font-weight: 700;
}

.gpt-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px 14px;
  font-size: 11.5px;
  color: #1e293b;
  line-height: 1.45;
}

.gpt-spec-grid div {
  background-color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 5px;
  padding: 4px 8px;
}

.gpt-spec-grid code {
  background-color: #e2e8f0;
  color: #0f172a;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
}

body.hide-gpt-specs .gpt-spec-callout {
  display: none !important;
}

/* ==========================================================================
   [2026-10-15 3차 고도화] 팀 지원 TAG, 일괄 처리 바(완료/메모/TAG), 페싯 필터 분류 스타일
   ========================================================================== */

/* 1. 팀 셀 및 팀 지원 TAG */
.team-cell-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 120px;
}

.team-main-line {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-add-team-tag {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.1;
  transition: all 0.15s ease;
}

.btn-add-team-tag:hover {
  background-color: #dcfce7;
  border-color: #86efac;
}

.team-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 1px;
}

.team-support-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.team-support-tag:hover {
  background-color: #dcfce7;
}

/* 2. 페싯 필터 팝오버 분류 헤더 */
.facet-cat-header {
  font-size: 10px;
  font-weight: 800;
  color: #475569;
  background-color: #f1f5f9;
  padding: 4px 8px;
  border-radius: 4px;
  margin: 6px 0 2px;
  letter-spacing: -0.2px;
}

/* 3. 일괄 처리 바 (bulk-action-toolbar) 확장 */
.bulk-action-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #eff6ff;
  border: 1px solid #93c5fd;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
  flex-wrap: wrap;
}

.btn-bulk-complete {
  background-color: #16a34a;
  color: #ffffff;
  border: 1px solid #15803d;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-bulk-complete:hover {
  background-color: #15803d;
}

/* ==========================================================
   24. [고도화] 총괄표 초고밀도 컴팩트 뷰 (Ultra-Compact Table Rows)
   ========================================================== */
.table-16-cols td {
  padding: 4px 6px !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
}

.table-16-cols th {
  padding: 5px 6px !important;
  font-size: 11.5px !important;
}

.table-16-cols .badge-stage {
  padding: 2px 6px !important;
  font-size: 10px !important;
  margin-bottom: 1px !important;
}

.table-16-cols .mgr-cell-wrap,
.table-16-cols .team-cell-wrap {
  gap: 2px !important;
  min-height: auto !important;
}

.table-16-cols .mgr-main-line,
.table-16-cols .team-main-line {
  line-height: 1.15 !important;
}

.table-16-cols .code-indiv-main {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.table-16-cols .biz-no-sub {
  font-size: 10px !important;
  line-height: 1.15 !important;
}

.table-16-cols .btn-add-mgr-tag,
.table-16-cols .btn-add-team-tag {
  padding: 0 4px !important;
  font-size: 9.5px !important;
  height: 16px !important;
  line-height: 14px !important;
}

.table-16-cols .memo-cell-wrapper {
  max-width: 200px;
  line-height: 1.2 !important;
}

/* ==========================================================
   25. [고도화] 엑셀 스프레드시트 네비게이션 & 마우스 드래그 & 범위 선택 (Excel Interaction)
   ========================================================== */
.erp-table td.grid-cell-nav {
  cursor: cell;
  user-select: none;
  transition: background-color 0.05s ease;
  position: relative;
}

.erp-table td.grid-cell-nav.cell-focused {
  outline: 2px solid #2563eb !important;
  outline-offset: -2px;
  z-index: 9;
  background-color: #eff6ff !important;
  box-shadow: inset 0 0 0 1px #2563eb;
}

.erp-table td.grid-cell-nav.cell-in-range {
  background-color: rgba(59, 130, 246, 0.16) !important;
}

.erp-table td.grid-cell-nav.cell-range-border-top {
  border-top: 2px solid #2563eb !important;
}
.erp-table td.grid-cell-nav.cell-range-border-bottom {
  border-bottom: 2px solid #2563eb !important;
}
.erp-table td.grid-cell-nav.cell-range-border-left {
  border-left: 2px solid #2563eb !important;
}
.erp-table td.grid-cell-nav.cell-range-border-right {
  border-right: 2px solid #2563eb !important;
}

/* ==========================================================
   26. [고도화] 실시간 공정 진행 현황 & 긴급산출 통계 모달 스타일
   ========================================================== */
.realtime-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.realtime-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.realtime-kpi-card.urgent-highlight {
  border-color: #fca5a5;
  background-color: #fff1f2;
}

.realtime-kpi-card .kpi-label {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 2px;
}

.realtime-kpi-card .kpi-val {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.realtime-urgent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  font-size: 12px;
  transition: all 0.15s ease;
}

.realtime-urgent-row:hover {
  background: #fff5f5;
  border-color: #f43f5e;
}

/* ==========================================================================
   신고메모 멘션 기능 및 '내 메모 통합 관제함' 전용 스타일
   ========================================================================== */
.btn-mention-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.btn-mention-chip:hover {
  background: #e0e7ff;
  border-color: #6366f1;
  color: #4338ca;
  transform: translateY(-1px);
}

.mention-tag-highlight {
  display: inline-block;
  background: #e0e7ff;
  color: #3730a3;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 4px;
  font-size: inherit;
  cursor: pointer;
  border: 1px solid #c7d2fe;
}

.mention-tag-highlight:hover {
  background: #c7d2fe;
  text-decoration: underline;
}

.mention-tag-highlight.my-mention {
  background: #ffe4e6;
  color: #be123c;
  border-color: #fecdd3;
  font-weight: 800;
}

/* 내 메모 모달 탭 */
.btn-memo-tab {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-memo-tab:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-memo-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.btn-memo-tab .badge-sub-count {
  font-size: 10px;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
}

.btn-memo-tab.active .badge-sub-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* 내 메모 카드 */
.my-memo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.my-memo-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.my-memo-card.is-completed {
  background: #f8fafc;
  border-color: #e2e8f0;
  opacity: 0.75;
}

.my-memo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.my-memo-card-biz {
  display: flex;
  align-items: center;
  gap: 8px;
}

.my-memo-biz-name {
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  cursor: pointer;
}

.my-memo-biz-name:hover {
  color: #2563eb;
  text-decoration: underline;
}

.my-memo-indiv-code {
  font-size: 11px;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.my-memo-meta-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
}

.my-memo-card-body {
  font-size: 13px;
  line-height: 1.5;
  color: #1e293b;
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.my-memo-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #f1f5f9;
  padding-top: 8px;
  font-size: 11px;
  color: #64748b;
}

.my-memo-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-open-biz-memo {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-open-biz-memo:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-biz-memo-badge {
  border: 1px solid #fde68a;
  background: #fef3c7;
  color: #b45309;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: all 0.15s ease;
}

.btn-biz-memo-badge:hover {
  background: #fde68a;
  color: #92400e;
  transform: translateY(-1px);
}

.btn-biz-memo-badge.done {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #64748b;
}

/* 공정 단계 메모 뱃지 */
.memo-stage-pill {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
}

/* 진행판단 셀 인라인 미수금 뱃지 */
.judgment-unpaid-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecdd3;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 2px;
  transition: all 0.15s ease;
}

.judgment-unpaid-pill:hover {
  background: #fca5a5;
  color: #991b1b;
  transform: translateY(-1px);
}

/* 신고유형 미니 뱃지 추가 스타일 */
.stage-type-mini-pill.type-none {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.stage-type-mini-pill.type-duty {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}

.stage-type-mini-pill.type-exempt {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.stage-type-mini-pill.type-exempt-o {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  font-weight: 800;
}

.stage-type-mini-pill.type-exempt-x {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* ==========================================================
 * 신규: 중복체크, 산출물, 지원자, 수수료 메모 전용 스타일
 * ========================================================== */

/* 1. 중복체크 뱃지 */
.badge-dup-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 12px;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.badge-dup-alert:hover {
  background: #fecaca;
  color: #991b1b;
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.badge-dup-normal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 10px;
  background: #f8fafc;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.dup-reason-mini {
  font-size: 9.5px;
  color: #64748b;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  cursor: pointer;
}

.dup-reason-mini:hover {
  color: #1e293b;
  text-decoration: underline;
}

/* 2. 산출물 열 뱃지 */
.badge-output-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.badge-output-link:hover {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.badge-output-empty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  font-size: 10.5px;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.badge-output-empty:hover {
  color: #2563eb;
  border-color: #93c5fd;
  background: #f0f7ff;
}

/* 3. 지원자 열 스타일 */
.supporter-cell-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

.supporter-name-main {
  font-weight: 700;
  font-size: 12px;
  color: #0f172a;
}

.supporter-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  font-size: 10px;
  border-radius: 4px;
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.supporter-empty {
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
}

.supporter-empty:hover {
  color: #6366f1;
}

/* 4. 수수료 현금영수증 및 계산서 변경 뱃지 */
.badge-fee-note {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  font-size: 9.5px;
  font-weight: 700;
  border-radius: 4px;
  margin-top: 2px;
  white-space: nowrap;
}

.badge-fee-note.cash {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-fee-note.invoice {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5. 계약주체 (오투스, 정평) 및 신고주체 배지 & 토글 버튼 */
.badge-entity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  margin-top: 2px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.badge-entity.badge-entity-otus,
.badge-entity.entity-otus {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-entity.badge-entity-jp,
.badge-entity.entity-jp {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.btn-entity-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 2px;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.btn-entity-toggle.is-otus,
.btn-entity-toggle.entity-otus {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.btn-entity-toggle.is-otus:hover,
.btn-entity-toggle.entity-otus:hover {
  background: #dbeafe;
}

.btn-entity-toggle.is-jp,
.btn-entity-toggle.entity-jp {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.btn-entity-toggle.is-jp:hover,
.btn-entity-toggle.entity-jp:hover {
  background: #dcfce7;
}








/* ==========================================================================
   JP Smart Work Place - 총무팀 업무 전용 고도화 스타일 확장 (김혜빈 총무)
   ========================================================================== */

/* 사이드바 프로필 카드 (스크린샷 일치) */
.sidebar-user-card {
  padding: 12px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-user-card .sidebar-user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}
.sidebar-user-card .sidebar-user-email {
  font-size: 11px;
  color: #64748b;
}
.sidebar-user-card .sidebar-user-mode {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #bfdbfe;
  width: fit-content;
}

/* 총무팀 업무 메뉴 하이라이트 */
.menu-section.affairs-section {
  border-left: 3px solid #ef4444;
  background: #fdfefe;
  padding-left: 2px;
}
.menu-section.affairs-section .menu-section-title {
  color: #b91c1c;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.affairs-badge-live {
  background: #fef2f2;
  color: #dc2626;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #fecaca;
}

/* 회사 카드 & 팀 카드 그리드 */
.company-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.company-info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}
.company-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}
.company-info-card.jp::before { background: #3b82f6; }
.company-info-card.otus::before { background: #10b981; }

.company-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.company-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}
.company-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #475569;
}
.company-meta-item {
  display: flex;
}
.company-meta-item .meta-label {
  width: 90px;
  font-weight: 600;
  color: #64748b;
}
.company-meta-item .meta-val {
  flex: 1;
  font-weight: 500;
  color: #0f172a;
}

/* 팀 그리드 */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.team-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.team-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.team-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.team-member-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0;
}
.member-chip {
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 500;
}
.member-chip.leader {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
}

/* 독촉 프리뷰 박스 */
.dunning-preview-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 14px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #1e293b;
  max-height: 240px;
  overflow-y: auto;
}

/* 인보이스 상태 배지 */
.invoice-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.invoice-badge.success { background: #dcfce7; color: #15803d; }
.invoice-badge.warning { background: #fef3c7; color: #b45309; }
.invoice-badge.info { background: #e0f2fe; color: #0369a1; }
.invoice-badge.danger { background: #fee2e2; color: #b91c1c; }

/* 툴바 퀵 필터 칩 */
.quick-filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.btn-quick-chip {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-quick-chip:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.btn-quick-chip.active {
  background: #1e40af;
  color: #ffffff;
  border-color: #1e40af;
}


/* ==========================================================================
   팀원 다인원(증가) 표시 확장 스타일 (Smart Overflow & Dual View Mode)
   ========================================================================== */

/* 뷰 모드 세그먼트 토글 */
.team-view-toggle {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.btn-view-mode {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-view-mode:hover {
  color: #0f172a;
}
.btn-view-mode.active {
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* 팀 카드 통일 높이 및 반응형 */
.team-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.team-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 팀원 오버플로우 +N명 더보기 버튼 */
.btn-more-members {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  color: #2563eb;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-more-members:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

/* 확장 영역 애니메이션 */
.hidden-members {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #e2e8f0;
}

/* 팀 테이블 뷰 컨테이너 */
.teams-table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

