/* mm- 매뉴얼 다운로드 모달 (헤더) */

.mm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 24px;
  background: rgba(15, 23, 42, 0.4);
  box-sizing: border-box;
}

.mm-overlay.is-open {
  display: flex;
}

.mm-dialog {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.mm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.mm-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.mm-icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
  color: #6b7280;
  display: inline-flex;
  line-height: 1;
}

.mm-icon-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.mm-icon-btn .material-symbols-outlined {
  font-size: 20px;
}

.mm-body {
  padding: 8px 14px 10px;
}

.mm-status {
  margin: 8px 0;
  padding: 10px 12px;
  font-size: 13px;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.mm-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.mm-row:last-child {
  border-bottom: 0;
}

.mm-row-name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}

.mm-row-file {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6b7280;
  word-break: break-all;
}

.mm-row-empty {
  color: #9ca3af;
}

.mm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.mm-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.mm-btn:hover {
  background: #f9fafb;
  color: #111827;
  text-decoration: none;
}

.mm-btn .material-symbols-outlined {
  font-size: 16px;
}

.mm-btn--primary {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.mm-btn--primary:hover {
  background: #dbeafe;
  color: #1e40af;
}

.mm-btn--success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #15803d;
}

.mm-btn--success:hover {
  background: #dcfce7;
  color: #166534;
}

.mm-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.45;
}

.mm-foot {
  display: flex;
  justify-content: flex-end;
  padding: 8px 14px 12px;
  border-top: 1px solid #e5e7eb;
}

.mm-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
