body {
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at top left, rgba(214, 138, 58, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(47, 153, 115, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(246, 239, 230, 0.98), rgba(241, 234, 223, 0.96));
}

.org-canvas {
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  position: relative;
}

.dept-section {
  width: 100%;
  max-width: 2000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.dept-box {
  width: fit-content;
  min-width: 320px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 20;
  margin-bottom: 40px;
}

.dept-header {
  background: var(--color-header);
  color: white;
  padding: 12px;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
  border-radius: var(--radius-md);
}

.dept-header.has-members {
  border-radius: 10px 10px 0 0;
  border-bottom: none;
  margin-bottom: 15px;
}

.node-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  position: relative;
  gap: 12px;
}

.node-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.box {
  width: fit-content;
  min-width: 112px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
}

.box-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text-soft);
  text-align: center;
  border-bottom: 1px solid var(--color-bg);
  padding-bottom: 4px;
  margin-bottom: 6px;
  word-break: keep-all;
}

.box-level-그룹 {
  min-width: 250px;
}

.box-level-그룹 .box-name {
  background: var(--color-header-soft);
  color: #ffffff;
  padding: 8px;
  border-radius: 6px 6px 0 0;
  margin: -6px -6px 8px -6px;
  border-bottom: none;
}

.box-level-디비전 {
  min-width: 150px;
}

.box-level-디비전 .box-name {
  background: #7b93ab;
  color: #ffffff;
  padding: 8px;
  border-radius: 6px 6px 0 0;
  margin: -6px -6px 8px -6px;
  border-bottom: none;
}

.box-level-팀 {
  width: auto;
  min-width: 120px;
}

.box-team {
  width: auto;
  min-width: 120px;
}

.member-grid {
  display: grid;
  grid-template-rows: repeat(10, auto);
  grid-auto-flow: column;
  gap: 3px;
  column-gap: 8px;
}

.cell-label {
  grid-column: span 1;
  background: var(--color-surface-strong);
  color: var(--color-text-soft);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  padding: 3px;
  border-radius: 4px;
  margin: 2px 0;
  height: fit-content;
}

.spacer-box {
  width: 100px;
  height: 26px;
  visibility: hidden;
}

.member-card {
  width: 100px;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  text-align: left;
  border: 1px solid var(--color-bg);
  border-left: 4px solid var(--color-surface-strong);
  background: var(--color-surface-soft);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  position: relative;
}

.member-card.full-width {
  width: 100% !important;
}

.member-card:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
  z-index: 50;
}

.drop-left::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--color-accent);
  border-radius: 4px;
  z-index: 20;
}

.drop-right::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--color-accent);
  border-radius: 4px;
  z-index: 20;
}

.co-삼안 {
  border-left-color: #ffb366 !important;
}

.co-한맥 {
  border-left-color: #ef4444 !important;
}

.co-피티씨 {
  border-left-color: #a855f7 !important;
}

.co-바론 {
  border-left-color: #3b82f6 !important;
}

.m-top {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.m-name {
  font-weight: 900;
  color: var(--color-text);
  font-size: 12px;
}

.m-rank {
  color: var(--color-text-muted);
  font-size: 8px;
  font-weight: 500;
  margin-left: auto;
}

.m-role {
  color: var(--color-header-soft);
  font-weight: 800;
  font-size: 8.5px;
  margin-left: 3px;
}

#modal {
  position: fixed;
  inset: 0;
  background: rgba(34, 46, 39, 0.62);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--color-surface);
  width: 100%;
  max-width: 650px;
  padding: 24px 24px 20px;
  border-radius: 20px;
  box-shadow: var(--shadow-float);
  position: relative;
  z-index: 2010;
}

#last-updated {
  z-index: 4000;
}

@media print {
  @page {
    size: A3 landscape;
    margin: 10mm;
  }

  body {
    background: white !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .top-wrap,
  .search-container,
  .tab-container,
  .stat-section,
  .fab-container,
  .admin-mode-btn,
  #last-updated,
  .admin-mode-btn {
    display: none !important;
  }

  .main-content {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    width: 100% !important;
  }

  .dept-container {
    page-break-inside: avoid;
    margin-bottom: 20px !important;
  }

  .member-card {
    box-shadow: none !important;
    border: 1px solid var(--color-border) !important;
  }
}

.modal-content.wide {
  max-width: 1060px;
  width: min(1040px, calc(100vw - 48px));
  max-height: calc(100vh - 28px);
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.modal-content.wide #modal-title {
  margin-bottom: 0;
  padding-bottom: 12px;
  color: var(--color-text);
}

.modal-content.wide #modal-fields {
  min-height: 0;
}

.modal-content.wide #modal-footer-area {
  margin-top: 0 !important;
  flex-shrink: 0;
}

.member-photo-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.member-basic-top-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.member-basic-editor {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.member-modal-tabs {
  display: flex;
  margin-bottom: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.member-modal-tab {
  flex: 1 1 0;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 900;
  color: var(--color-text-muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.member-modal-tab.is-active {
  color: var(--color-header);
  border-bottom-color: var(--color-header);
}

.member-modal-panel {
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-soft) 100%);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.member-modal-panel-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-header);
}

.member-basic-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.member-basic-left,
.member-basic-right,
.member-photo-panel,
.member-basic-fields {
  min-width: 0;
}

.member-basic-left,
.member-basic-right,
.member-photo-panel {
  height: 100%;
}

.member-basic-left {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.member-basic-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-content: start;
}

.member-basic-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.member-basic-field label,
.member-form-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--color-text-soft);
}

.member-form-input,
.member-form-select,
.member-form-time {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 800;
  outline: none;
}

.member-form-input,
.member-form-select {
  padding: 12px 14px;
}

.member-form-time {
  padding: 10px 12px;
}

.member-form-input:focus,
.member-form-select:focus,
.member-form-time:focus {
  border-color: rgba(47, 153, 115, 0.42);
  box-shadow: 0 0 0 4px rgba(47, 153, 115, 0.1);
}

.member-form-manual {
  margin-top: 8px;
}

.member-form-new-option {
  color: var(--color-header);
  font-weight: 900;
}

.member-seat-field {
  min-height: 0;
}

.member-seat-field-compact .seat-preview-card {
  min-height: 100%;
  height: 100%;
}

.member-detail-top-row {
  width: 100%;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.member-detail-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.member-name-field {
  min-width: 0;
}

.member-inline-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.member-inline-info-grid-edit {
  margin-top: 10px;
}

.member-inline-info-grid-stacked {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0;
}

.member-name-field-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.member-inline-info-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface-soft);
}

.member-inline-info-card label {
  display: block;
  font-size: 10px;
  font-weight: 900;
  color: var(--color-text-muted);
}

.member-inline-info-card strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--color-text);
  word-break: break-word;
}

.member-inline-info-card-full {
  grid-column: 1 / -1;
}

.modal-form-grid {
  align-items: start;
}

.modal-form-grid>.col-span-1,
.modal-form-grid>.col-span-2 {
  min-width: 0;
}

.member-photo-upload-card {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface-soft);
  box-sizing: border-box;
}

.member-photo-upload-card-compact {
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
}

.member-photo-upload-card-inline {
  min-height: 168px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.member-photo-panel,
.member-basic-right {
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-soft) 100%);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.member-basic-right {
  padding: 0;
  overflow: hidden;
}

.member-photo-preview-wrap {
  flex: 0 0 auto;
}

.member-photo-preview {
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  object-fit: cover;
  border: 3px solid var(--color-surface-strong);
  background: var(--color-surface);
}

.member-photo-upload-controls {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.member-photo-file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--color-header-soft);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.member-photo-file-label:hover {
  filter: brightness(1.05);
}

.member-photo-file-label input {
  display: none;
}

.member-photo-file-name {
  font-size: 11px;
  color: var(--color-text-soft);
  word-break: break-all;
}

.seat-preview-card {
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-soft) 100%);
  overflow: hidden;
  min-height: 100%;
}

.seat-preview-card.is-assigned {
  border-color: rgba(47, 153, 115, 0.3);
  box-shadow: var(--shadow-card);
}

.seat-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 8px;
  align-items: flex-start;
}

.seat-preview-head strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--color-text);
}

.seat-preview-head p {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-text-muted);
  font-weight: 700;
}

.seat-preview-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--color-header-soft) 0%, var(--color-header) 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: var(--shadow-float);
}

.seat-preview-badge-muted {
  background: var(--color-surface-strong);
  color: var(--color-text-muted);
}

.seat-preview-canvas {
  margin: 0 14px 14px;
  min-height: 220px;
  border-radius: 16px;
  border: 1px dashed var(--color-border);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.92), rgba(244, 233, 215, 0.96)),
    repeating-linear-gradient(0deg,
      rgba(217, 197, 168, 0.18),
      rgba(217, 197, 168, 0.18) 1px,
      transparent 1px,
      transparent 24px),
    repeating-linear-gradient(90deg,
      rgba(217, 197, 168, 0.18),
      rgba(217, 197, 168, 0.18) 1px,
      transparent 1px,
      transparent 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.seat-preview-card.is-assigned .seat-preview-canvas {
  border-color: rgba(47, 153, 115, 0.34);
  box-shadow: inset 0 0 0 1px rgba(47, 153, 115, 0.1);
}

.seat-preview-frame {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  background: var(--color-surface);
}

.seat-preview-card.is-assigned .seat-preview-frame {
  box-shadow: inset 0 0 0 2px rgba(47, 153, 115, 0.14);
}

.seat-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 900;
}

.member-seat-field-compact .seat-preview-head {
  padding: 14px 16px 10px;
}

.member-seat-field-compact .seat-preview-head strong {
  font-size: 17px;
}

.member-seat-field-compact .seat-preview-head p {
  font-size: 12px;
  line-height: 1.35;
}

.member-seat-field-compact .seat-preview-badge {
  font-size: 11px;
  padding: 7px 10px;
}

.member-seat-field-compact .seat-preview-canvas {
  min-height: 208px;
}

.member-seat-field-compact .seat-preview-frame,
.member-seat-field-compact .seat-preview-placeholder {
  min-height: 208px;
}

.member-photo-upload-card-inline {
  min-height: 168px;
  padding: 16px 14px;
  gap: 10px;
  align-items: stretch;
  justify-content: space-between;
  text-align: left;
}

.member-photo-card-title {
  font-size: 11px;
  font-weight: 900;
  color: var(--color-text-soft);
  line-height: 1.2;
}

.member-photo-upload-card-inline .member-photo-preview-wrap {
  margin: 0 auto;
}

.member-photo-upload-card-inline .member-photo-preview {
  width: 82px;
  height: 82px;
}

.member-photo-upload-card-inline .member-photo-upload-controls {
  align-items: center;
  text-align: center;
}

.member-photo-upload-card-inline .member-photo-file-label {
  padding: 9px 12px;
}

.member-photo-upload-card-inline .member-photo-file-name {
  font-size: 11px;
}

.member-basic-field input {
  min-width: 0;
  padding: 12px 14px;
}

.member-basic-field label {
  line-height: 1.2;
}


.seat-preview-placeholder-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(47, 153, 115, 0.1);
  color: var(--color-header-soft);
  font-size: 24px;
}

@media (max-width: 720px) {
  .member-basic-top-row {
    grid-template-columns: 1fr;
  }

  .member-basic-split {
    grid-template-columns: 1fr;
  }

  .member-basic-fields {
    grid-template-columns: 1fr;
  }

  .member-detail-top-row,
  .member-inline-info-grid {
    grid-template-columns: 1fr;
  }
}

.list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.list-table th {
  background: #f6eddd;
  color: #7d8478;
  font-weight: 800;
  padding: 10px;
  border: 1px solid #e0d0b4;
  position: sticky;
  top: 0;
  z-index: 20;
  text-align: center;
}

.list-table td {
  padding: 8px 10px;
  border: 1px solid #e0d0b4;
  text-align: center;
  background: #fffaf0;
  vertical-align: middle;
}

.col-name {
  width: 90px;
}

.col-rank {
  width: 80px;
}

.col-pos {
  width: 80px;
}

.col-unit-sm {
  width: 70px;
}

.col-unit-lg {
  width: 100px;
}

.col-corp {
  width: 110px;
}

.col-action {
  width: 90px;
}

.list-header-row {
  color: var(--color-text-soft);
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--color-border-soft);
}

.list-header-row td {
  font-size: 13px;
  text-align: left !important;
  padding: 10px 15px !important;
}

.list-header-row.lvl-0 td {
  background: var(--color-header) !important;
  color: white !important;
  font-size: 13.5px;
  font-weight: 900;
}

.list-header-row.lvl-1 td {
  background: var(--color-header-soft) !important;
  color: white !important;
}

.list-header-row.lvl-2 td {
  background: #6f8f84 !important;
  color: white !important;
}

.list-header-row.lvl-3 td {
  background: var(--color-accent) !important;
  color: white !important;
}

.list-header-row.lvl-4 td {
  background: var(--color-surface-strong) !important;
  color: var(--color-text-soft) !important;
}

.list-header-row:hover {
  filter: brightness(1.1);
}

.collapse-icon {
  margin-right: 8px;
  transition: transform 0.2s;
  display: inline-block;
}

.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.hidden-row {
  display: none !important;
}

.list-table tr:hover td {
  background: var(--color-surface-soft);
}

.list-table tr.dragging {
  opacity: 0.5;
  background: var(--color-accent-soft);
}

.list-search-target td {
  background: var(--color-accent-soft) !important;
  border-top: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

.list-action-btn {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-edit {
  background: var(--color-accent-soft);
  color: var(--color-header-soft);
}

.btn-delete {
  background: rgba(198, 71, 56, 0.12);
  color: #a33427;
}

.modal-footer-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: flex-end;
  align-items: center;
}

.modal-btn {
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  padding: 14px 18px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.modal-btn-cancel {
  flex: 1 1 0;
  background: var(--color-surface-strong);
  color: var(--color-text-soft);
  border-color: var(--color-border);
}

.modal-btn-cancel:hover {
  background: var(--color-surface-soft);
}

.modal-btn-save {
  flex: 1 1 0;
  background: var(--color-header);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 153, 115, 0.2);
}

.modal-btn-save:hover {
  background: var(--color-header-soft);
}

.modal-btn-delete {
  background: rgba(198, 71, 56, 0.12);
  color: #a33427;
  border-color: rgba(198, 71, 56, 0.2);
}

.modal-btn-delete:hover {
  background: rgba(198, 71, 56, 0.18);
}

.modal-btn-close {
  width: 100%;
  background: var(--color-header);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 153, 115, 0.2);
}

.modal-btn-close:hover {
  background: var(--color-header-soft);
}

.list-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 4px;
}

.list-toolbar-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.list-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.list-toolbar-divider {
  width: 1px;
  align-self: stretch;
  min-height: 36px;
  background: var(--color-border);
}

.list-mode-btn {
  border: 1px solid #d9c49e;
  background: #efe2ca;
  color: var(--color-header-soft);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.list-date-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.list-date-input {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.list-date-separator {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.list-view-status {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 4px 0;
}

.col-compare-status {
  width: 82px;
}

.col-compare-date {
  width: 132px;
}

.col-compare-category {
  width: 120px;
}

.list-empty-cell {
  padding: 24px 16px !important;
  color: var(--color-text-muted);
  font-weight: 700;
  text-align: center !important;
}

.list-compare-cell {
  text-align: left !important;
  vertical-align: top !important;
  line-height: 1.6;
}

.list-compare-line + .list-compare-line {
  margin-top: 3px;
}

.list-compare-chip-group {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.list-compare-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--color-surface-strong);
  color: var(--color-text);
  font-size: 10px;
  font-weight: 800;
}

.list-compare-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.list-compare-status-added {
  background: rgba(47, 153, 115, 0.14);
  color: #236847;
}

.list-compare-status-updated {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.list-compare-status-removed {
  background: rgba(198, 71, 56, 0.14);
  color: #a33427;
}

.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 15px;
  z-index: 5000;
}

.fab-main {
  width: 60px;
  height: 60px;
  background: var(--color-header);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(47, 153, 115, 0.28);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.fab-menu {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
}

.fab-container.active .fab-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-container.active .fab-main {
  transform: rotate(45deg);
  background: var(--color-header-soft);
}

.fab-sub {
  width: 50px;
  height: 50px;
  background: white;
  color: var(--color-header);
  border: 2px solid var(--color-header);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.fab-sub:hover {
  background: var(--color-header);
  color: white;
  transform: scale(1.1);
}

.fab-sub::after {
  content: attr(data-label);
  position: absolute;
  right: 65px;
  background: #1e293b;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
}

.fab-sub:hover::after {
  opacity: 1;
  right: 75px;
}

.clickable-title {
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}

.clickable-title:hover {
  color: #818cf8 !important;
  text-decoration: underline;
}

.search-section {
  position: fixed;
  top: 14px;
  left: 18px;
  background: var(--color-surface-soft);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-soft);
  z-index: 1010;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
  width: 150px;
}

.search-icon {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  transform: scale(0.9);
}

.stats-section {
  position: fixed;
  top: 14px;
  right: 18px;
  width: 332px;
  background: var(--color-surface-soft);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-soft);
  z-index: 1010;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.stats-title {
  font-size: 11px;
  line-height: 1.1;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  border-radius: 8px;
  overflow: hidden;
  border-style: hidden;
  box-shadow: 0 0 0 1px var(--color-border);
}

.stats-table th {
  background: var(--color-surface-soft);
  color: var(--color-text-muted);
  font-weight: 800;
  padding: 6px 4px;
  border: 1px solid var(--color-border);
  text-align: center;
}

.stats-table td {
  padding: 6px 4px;
  border: 1px solid var(--color-border);
  text-align: center;
  font-weight: 700;
  color: var(--color-text);
}

.stats-table .row-label {
  background: var(--color-surface-soft);
  color: var(--color-text-soft);
  font-weight: 800;
  width: 92px;
}

.stats-company-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stats-company-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  background: var(--color-text-muted);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.stats-company-dot.co-삼안 {
  background: #d68a3a;
}

.stats-company-dot.co-한맥 {
  background: #c64738;
}

.stats-company-dot.co-피티씨 {
  background: #8b6fb3;
}

.stats-company-dot.co-바론 {
  background: #2f9973;
}

.stats-table .total-cell {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-weight: 900;
}

.sum-row {
  background: #f1f5f9;
}

.sum-row td {
  font-weight: 900 !important;
  color: var(--color-text) !important;
}

@keyframes target-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 138, 58, 0.38);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(214, 138, 58, 0);
    transform: scale(1.05);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(214, 138, 58, 0);
    transform: scale(1);
  }
}

.search-target {
  animation: target-pulse 1.5s ease-in-out 2;
  position: relative;
  z-index: 1000 !important;
  border-color: var(--color-accent) !important;
}

.admin-mode-btn {
  position: fixed;
  bottom: 37.5px;
  right: 105px;
  z-index: 5001;
  width: 45px;
  height: 45px;
  background: var(--color-surface-soft);
  backdrop-filter: blur(4px);
  border: 1px solid var(--color-border-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
  cursor: pointer;
}

.admin-mode-btn::after {
  content: attr(data-label);
  position: absolute;
  bottom: 55px;
  right: 0;
  background: rgba(34, 46, 39, 0.88);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  pointer-events: none;
}

.admin-mode-btn:hover::after {
  opacity: 1;
  visibility: visible;
}

.admin-mode-btn.is-admin {
  background: var(--color-header);
  border-color: var(--color-header);
  box-shadow: 0 4px 15px rgba(47, 153, 115, 0.24);
}

.admin-mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.dept-tabs-container {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 2px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.dept-tabs-container::-webkit-scrollbar {
  display: none;
}

.dept-tab {
  padding: 5px 11px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.dept-tab:hover {
  border-color: var(--color-border-soft);
  background: var(--color-surface-soft);
}

.dept-tab.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  box-shadow: 0 4px 10px rgba(214, 138, 58, 0.2);
}

.member-inline-info-card {
  border-color: var(--color-border);
  background: var(--color-surface-soft);
}

.member-inline-info-card label {
  color: var(--color-text-muted);
}

.member-inline-info-card strong {
  color: var(--color-text);
}

.member-photo-upload-card {
  border-color: var(--color-border);
  background: var(--color-surface-soft);
}

.list-compare-chip {
  background: var(--color-surface-strong);
  color: var(--color-text);
}

.list-compare-status-added {
  background: rgba(47, 153, 115, 0.14);
  color: #236847;
}

.list-compare-status-updated {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.list-compare-status-removed {
  background: rgba(198, 71, 56, 0.14);
  color: #a33427;
}

.fab-main {
  background: var(--color-header);
  box-shadow: 0 10px 25px rgba(47, 153, 115, 0.28);
}

.fab-container.active .fab-main {
  background: var(--color-header-soft);
}

.fab-sub {
  color: var(--color-header);
  border-color: var(--color-header);
}

.fab-sub:hover {
  background: var(--color-header);
}

.fab-sub::after,
.admin-mode-btn::after {
  background: rgba(34, 46, 39, 0.88);
}

.stats-table {
  box-shadow: 0 0 0 1px var(--color-border);
}

.stats-table th,
.stats-table td {
  border-color: var(--color-border);
}

.stats-table th,
.stats-table .row-label {
  background: var(--color-surface-soft);
}

.stats-company-dot {
  background: var(--color-text-muted);
}

.stats-company-dot.co-삼안 {
  background: #d68a3a;
}

.stats-company-dot.co-한맥 {
  background: #c64738;
}

.stats-company-dot.co-피티씨 {
  background: #8b6fb3;
}

.stats-company-dot.co-바론 {
  background: #2f9973;
}

.stats-table .total-cell {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.sum-row {
  background: var(--color-surface-strong);
}

@keyframes target-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 138, 58, 0.38);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(214, 138, 58, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214, 138, 58, 0);
    transform: scale(1);
  }
}

.search-target {
  border-color: var(--color-accent) !important;
}

.admin-mode-btn.is-admin {
  background: var(--color-header);
  border-color: var(--color-header);
  box-shadow: 0 4px 15px rgba(47, 153, 115, 0.24);
}

.dept-tab {
  border-color: var(--color-border);
  color: var(--color-text-muted);
}

.dept-tab:hover {
  border-color: var(--color-border-soft);
  background: var(--color-surface-soft);
}

.dept-tab.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 4px 10px rgba(214, 138, 58, 0.2);
}
