/* 2026-05-18_068 — 메모 박스 (모든 관리 화면 공통) */
.memo-box {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 58px;
}
.memo-box .memo-confirm,
.memo-box .memo-content {
  padding: 2px 6px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  font-size: 10px;
  cursor: pointer;
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
  color: #4b5563;
  transition: all 0.15s;
  white-space: nowrap;
}
.memo-box .memo-confirm:hover,
.memo-box .memo-content:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}
.memo-box .memo-confirm.confirmed {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
  font-weight: 700;
}
.memo-box .memo-content.has-memo {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
  font-weight: 700;
}
.memo-box .memo-count {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  background: #f59e0b;
  color: white;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
}

/* 모달 */
.memo-modal-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.memo-modal {
  background: #fff;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.memo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
}
.memo-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}
.memo-modal-header .memo-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
  padding: 0 4px;
}
.memo-modal-body {
  padding: 14px 18px;
  overflow-y: auto;
}
.memo-list {
  margin-bottom: 14px;
  max-height: 320px;
  overflow-y: auto;
}
.memo-item {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #fafafa;
}
.memo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 5px;
  gap: 8px;
}
.memo-author { font-weight: 600; }
.memo-role-customer { color: #2563eb; }
.memo-role-admin    { color: #166534; }
.memo-role-3pl      { color: #9333ea; }
.memo-role-system   { color: #6b7280; }
.memo-internal {
  display: inline-block;
  padding: 1px 6px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}
.memo-date { color: #6b7280; font-size: 11px; }
.memo-actions {
  display: inline-flex;
  gap: 4px;
}
.memo-actions button {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  cursor: pointer;
}
.memo-actions button:hover { background: #f3f4f6; }
.memo-actions button.danger { color: #b91c1c; border-color: #fecaca; }
.memo-actions button.danger:hover { background: #fef2f2; }
.memo-content-text {
  font-size: 13px;
  color: #1f2937;
  white-space: pre-wrap;
  line-height: 1.5;
}
.memo-empty {
  color: #9ca3af;
  text-align: center;
  padding: 30px 12px;
  font-size: 13px;
}

.memo-input { padding-top: 8px; border-top: 1px solid #e5e7eb; }
.memo-input textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 60px;
  box-sizing: border-box;
}
.memo-input label {
  display: block;
  margin: 8px 0;
  font-size: 12px;
  color: #4b5563;
  cursor: pointer;
}
.memo-input label input { margin-right: 4px; }
.memo-input .memo-submit {
  background: #2563eb;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.memo-input .memo-submit:hover { background: #1d4ed8; }
